한글 Encoding, 병합시 파일시간 기준
This commit is contained in:
@@ -181,7 +181,7 @@ namespace DDUtilityApp.MESDOWNLOADER
|
||||
rowFile["Name"] = file.Name;
|
||||
rowFile["FileName"] = file.Name;
|
||||
rowFile["Size"] = this.GetFileSize(file.Size, FileSizeType.MB);
|
||||
rowFile["Modified"] = file.Modified.ToLocalTime().ToString("yyyy-MM-dd HH:mm:ss");
|
||||
rowFile["Modified"] = file.Modified.ToLocalTime();
|
||||
rowFile["Type"] = file.Type;
|
||||
rowFile["url"] = url;
|
||||
rowFile["dir"] = dir;
|
||||
@@ -289,7 +289,7 @@ namespace DDUtilityApp.MESDOWNLOADER
|
||||
this.gridFiles.Columns.Add(new GridViewTextBoxColumn("Name") { ReadOnly=true, IsVisible = false });
|
||||
this.gridFiles.Columns.Add(new GridViewTextBoxColumn("FileName") { ReadOnly = true });
|
||||
this.gridFiles.Columns.Add(new GridViewTextBoxColumn("Size") { ReadOnly = true, TextAlignment = ContentAlignment.MiddleRight });
|
||||
this.gridFiles.Columns.Add(new GridViewTextBoxColumn("Modified") { ReadOnly = true });
|
||||
this.gridFiles.Columns.Add(new GridViewDateTimeColumn("Modified") { ReadOnly = true });
|
||||
this.gridFiles.Columns.Add(new GridViewTextBoxColumn("Type") { ReadOnly = true });
|
||||
}
|
||||
catch (Exception ex)
|
||||
@@ -328,14 +328,21 @@ namespace DDUtilityApp.MESDOWNLOADER
|
||||
else
|
||||
{
|
||||
// 선택된 파일들 추가
|
||||
List<DataRow> rowsSRC = new List<DataRow>();
|
||||
foreach(GridViewRowInfo row in this.gridFiles.SelectedRows)
|
||||
{
|
||||
DataRowView view = row.DataBoundItem as DataRowView;
|
||||
if (view != null && view.Row != null) rows.Add(view.Row);
|
||||
if (view != null && view.Row != null) rowsSRC.Add(view.Row);
|
||||
}
|
||||
|
||||
// 수정일자 정렬
|
||||
foreach (DataRow row in rowsSRC.OrderBy(row => row.Field<DateTime>("Modified")))
|
||||
rows.Add(row);
|
||||
}
|
||||
|
||||
// 다운로드
|
||||
|
||||
|
||||
// 다운로드
|
||||
bool hasZip = false;
|
||||
using (ProgressForm frmProgress = new ProgressForm(rows.Count))
|
||||
{
|
||||
@@ -438,7 +445,7 @@ namespace DDUtilityApp.MESDOWNLOADER
|
||||
this.DTFileInfo.Columns.Add("Name", typeof(string));
|
||||
this.DTFileInfo.Columns.Add("FileName", typeof(string));
|
||||
this.DTFileInfo.Columns.Add("Size", typeof(string));
|
||||
this.DTFileInfo.Columns.Add("Modified", typeof(string));
|
||||
this.DTFileInfo.Columns.Add("Modified", typeof(DateTime));
|
||||
this.DTFileInfo.Columns.Add("Type", typeof(string));
|
||||
this.DTFileInfo.Columns.Add("url", typeof(string));
|
||||
this.DTFileInfo.Columns.Add("dir", typeof(string));
|
||||
|
||||
Reference in New Issue
Block a user