데이터백업

Header 추가 : 장비타입
master
sj84 2023-08-31 14:23:17 +09:00
parent 1655308028
commit 8b29dc7a9f
2 changed files with 15 additions and 15 deletions

View File

@ -415,6 +415,7 @@ namespace INT69DC_7C
SerialNumber,
EquipmentColumns,
TimeStamp,
EquipmentType,
}
public enum MessageBoxIcon
@ -4359,7 +4360,8 @@ namespace INT69DC_7C
{
#region Field
private int m_EquipmentColumns;
private int m_EquipmentType;
private string m_LoginId;
private string m_SerialNumber;
@ -4378,6 +4380,11 @@ namespace INT69DC_7C
get { return this.m_EquipmentColumns; }
set { this.m_EquipmentColumns = value; }
}
public int EquipmentType
{
get { return this.m_EquipmentType; }
set { this.m_EquipmentType = value; }
}
public string LoginId
{
@ -4401,20 +4408,6 @@ namespace INT69DC_7C
#endregion
}
#endregion
#region Struct FileHeaderItem
[StructLayout(LayoutKind.Sequential)]
public struct StructFileHeaderItem
{
public int EquipmentColumns;
[MarshalAs(UnmanagedType.ByValTStr, SizeConst = 20)]
public string LoginId;
[MarshalAs(UnmanagedType.ByValTStr, SizeConst = 20)]
public string SerialNumber;
public DateTime TimeStamp;
}
#endregion
#region CalibrationStatus
public class CalibrationStatus

View File

@ -176,6 +176,7 @@ namespace INT69DC_7C.Forms
header.LoginId = this.ParentForm.SystemConfig.CurrentUser.ID;
header.SerialNumber = this.ParentForm.SystemConfig.SerialNumber;
header.EquipmentColumns = this.ParentForm.SystemConfig.EquipmentColumns;
header.EquipmentType = 103;
for (int i = 0; i < listSelectedFile.Count; i++)
this.CreateHeaderFile(this.ParentForm.PathHeaderFolder, listSelectedFile[i], header);
@ -746,6 +747,12 @@ namespace INT69DC_7C.Forms
value = header.TimeStamp.ToString("MM/dd/yyyy HH:mm:ss");
IniFile.WriteString(filePath, section, key, value);
Thread.Sleep(5);
// EquipmentType
key = DataStore.E_FileHeaderItem.EquipmentType.ToString();
value = header.EquipmentType.ToString();
IniFile.WriteString(filePath, section, key, value);
Thread.Sleep(5);
}
private void DirectoryFileDelete(string dirPath)
{