데이터 백업 .csv 삭제
							parent
							
								
									61a4b9addd
								
							
						
					
					
						commit
						a6e1ebfc55
					
				|  | @ -390,6 +390,8 @@ namespace INT69DC_7C.Forms | |||
|                 msg.ShowDialog(); | ||||
|                 return; | ||||
|             } | ||||
| 
 | ||||
|             this.UpdateDisplayOtherFile(); | ||||
|         } | ||||
| 
 | ||||
|         private void SplashStart() | ||||
|  | @ -433,10 +435,14 @@ namespace INT69DC_7C.Forms | |||
|         { | ||||
|             List<string> listFile = new List<string>(); | ||||
|             Dictionary<string, int> dirNames = new Dictionary<string, int>(); | ||||
|             string[] fileName; | ||||
| 
 | ||||
|             #region File List 품번 순서데로 정렬 | ||||
|             foreach (FileInfo file in files) | ||||
|                 dirNames.Add(file.Name, int.Parse(file.Name.Substring(10, 1))); | ||||
|             { | ||||
|                 fileName = file.Name.Split('_'); | ||||
|                 dirNames.Add(file.Name, int.Parse(fileName[1].Substring(0, fileName[1].Length - 4))); | ||||
|             } | ||||
| 
 | ||||
|             var vrList = dirNames.OrderBy(x => x.Value); | ||||
|             foreach (var v in vrList) | ||||
|  | @ -502,7 +508,7 @@ namespace INT69DC_7C.Forms | |||
|                                     if (tree.Nodes[i].Nodes[j].Nodes[k].Checked == true) | ||||
|                                     { | ||||
|                                         //listSelectedFile.Add(tree.Nodes[i].Nodes[j].Nodes[k].Text); | ||||
|                                         listSelectedFile.Add(string.Format("{0}\\{1}\\{2}", tree.Nodes[i].Text, tree.Nodes[i].Nodes[j].Text, tree.Nodes[i].Nodes[j].Nodes[k].Text)); | ||||
|                                         listSelectedFile.Add(string.Format("{0}\\{1}\\{2}.csv", tree.Nodes[i].Text, tree.Nodes[i].Nodes[j].Text, tree.Nodes[i].Nodes[j].Nodes[k].Text)); | ||||
|                                     } | ||||
|                                 } | ||||
|                             } | ||||
|  | @ -517,7 +523,7 @@ namespace INT69DC_7C.Forms | |||
|         private void UpdateDisplayInspectionFile() | ||||
|         { | ||||
|             int fileCount = 0; | ||||
|             //TreeNode node; | ||||
|             string[] fileName; | ||||
|             List<string> years = new List<string>(); | ||||
|             List<string> months = new List<string>(); | ||||
|             List<string> days = new List<string>(); | ||||
|  | @ -583,7 +589,8 @@ namespace INT69DC_7C.Forms | |||
| 
 | ||||
|                         for (int k = 0; k < this.ListInspectionFile[i].Months[j].Days.Count; k++) | ||||
|                         { | ||||
|                             nodeMonth.Nodes.Add(this.ListInspectionFile[i].Months[j].Days[k]); | ||||
|                             fileName = this.ListInspectionFile[i].Months[j].Days[k].Split('.'); | ||||
|                             nodeMonth.Nodes.Add(fileName[0]); | ||||
|                             fileCount++; | ||||
|                         } | ||||
|                         node.Nodes.Add(nodeMonth); | ||||
|  | @ -597,7 +604,7 @@ namespace INT69DC_7C.Forms | |||
|         private void UpdateDisplayHistoryFile() | ||||
|         { | ||||
|             int fileCount = 0; | ||||
|             //TreeNode node; | ||||
|             string[] fileName; | ||||
|             List<string> years = new List<string>(); | ||||
|             List<string> months = new List<string>(); | ||||
|             List<string> days = new List<string>(); | ||||
|  | @ -663,7 +670,8 @@ namespace INT69DC_7C.Forms | |||
| 
 | ||||
|                         for (int k = 0; k < this.ListHistoryFile[i].Months[j].Days.Count; k++) | ||||
|                         { | ||||
|                             nodeMonth.Nodes.Add(this.ListHistoryFile[i].Months[j].Days[k]); | ||||
|                             fileName = this.ListHistoryFile[i].Months[j].Days[k].Split('.'); | ||||
|                             nodeMonth.Nodes.Add(fileName[0]); | ||||
|                             fileCount++; | ||||
|                         } | ||||
|                         node.Nodes.Add(nodeMonth); | ||||
|  | @ -676,6 +684,7 @@ namespace INT69DC_7C.Forms | |||
|         private void UpdateDisplayOtherFile() | ||||
|         { | ||||
|             bool directoryCheck = false; | ||||
|             string[] fileName; | ||||
| 
 | ||||
|             this.ParentForm.SystemConfig.CurrentForm = DataStore.FormStore.FormDataBackup; | ||||
| 
 | ||||
|  | @ -691,7 +700,15 @@ namespace INT69DC_7C.Forms | |||
|             this.listBoxOther.Items.Clear(); | ||||
| 
 | ||||
|             foreach (FileInfo file in files) | ||||
|             { | ||||
|                 if (file.Name.Substring(0, 1) == "S") | ||||
|                 { | ||||
|                     fileName = file.Name.Split('.'); | ||||
|                     this.listBoxOther.Items.Add(fileName[0]); | ||||
|                 } | ||||
|                 else | ||||
|                     this.listBoxOther.Items.Add(file.Name); | ||||
|             } | ||||
| 
 | ||||
|             this.labelOtherFileCount.Text = this.listBoxOther.Items.Count.ToString(); | ||||
|         } | ||||
|  |  | |||
|  | @ -11167,41 +11167,6 @@ namespace INT69DC_7C.Forms | |||
|         #endregion | ||||
| 
 | ||||
|         #region Backup | ||||
|         public List<string> GetSeletedNodeList(TreeView tree) | ||||
|         { | ||||
|             int yearCNT, monthCNT, dayCNT; | ||||
|             List<string> listSelectedFile = new List<string>(); | ||||
| 
 | ||||
|             yearCNT = tree.Nodes.Count; | ||||
|             if (yearCNT != 0) | ||||
|             { | ||||
|                 for (int i = 0; i < yearCNT; i++) | ||||
|                 { | ||||
|                     monthCNT = tree.Nodes[i].Nodes.Count; | ||||
|                     if (monthCNT != 0) | ||||
|                     { | ||||
|                         for (int j = 0; j < monthCNT; j++) | ||||
|                         { | ||||
|                             dayCNT = tree.Nodes[i].Nodes[j].Nodes.Count; | ||||
|                             if (dayCNT != 0) | ||||
|                             { | ||||
|                                 for (int k = 0; k < dayCNT; k++) | ||||
|                                 { | ||||
|                                     //if (tree.Nodes[i].Nodes[j].Nodes[k].Checked == true) | ||||
|                                     //{ | ||||
|                                     //listSelectedFile.Add(tree.Nodes[i].Nodes[j].Nodes[k].Text); | ||||
|                                     listSelectedFile.Add(string.Format("{0}\\{1}\\{2}", tree.Nodes[i].Text, tree.Nodes[i].Nodes[j].Text, tree.Nodes[i].Nodes[j].Nodes[k].Text)); | ||||
|                                     //} | ||||
|                                 } | ||||
|                             } | ||||
|                         } | ||||
|                     } | ||||
|                 } | ||||
|             } | ||||
| 
 | ||||
|             return listSelectedFile; | ||||
|         } | ||||
| 
 | ||||
|         private void DeleteLogFile(string path, DataStore.E_DataType type) | ||||
|         { | ||||
|             string dataFolderPath = ""; | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue