parent
1655308028
commit
8b29dc7a9f
|
@ -415,6 +415,7 @@ namespace INT69DC_7C
|
||||||
SerialNumber,
|
SerialNumber,
|
||||||
EquipmentColumns,
|
EquipmentColumns,
|
||||||
TimeStamp,
|
TimeStamp,
|
||||||
|
EquipmentType,
|
||||||
}
|
}
|
||||||
|
|
||||||
public enum MessageBoxIcon
|
public enum MessageBoxIcon
|
||||||
|
@ -4359,7 +4360,8 @@ namespace INT69DC_7C
|
||||||
{
|
{
|
||||||
#region Field
|
#region Field
|
||||||
private int m_EquipmentColumns;
|
private int m_EquipmentColumns;
|
||||||
|
private int m_EquipmentType;
|
||||||
|
|
||||||
private string m_LoginId;
|
private string m_LoginId;
|
||||||
private string m_SerialNumber;
|
private string m_SerialNumber;
|
||||||
|
|
||||||
|
@ -4378,6 +4380,11 @@ namespace INT69DC_7C
|
||||||
get { return this.m_EquipmentColumns; }
|
get { return this.m_EquipmentColumns; }
|
||||||
set { this.m_EquipmentColumns = value; }
|
set { this.m_EquipmentColumns = value; }
|
||||||
}
|
}
|
||||||
|
public int EquipmentType
|
||||||
|
{
|
||||||
|
get { return this.m_EquipmentType; }
|
||||||
|
set { this.m_EquipmentType = value; }
|
||||||
|
}
|
||||||
|
|
||||||
public string LoginId
|
public string LoginId
|
||||||
{
|
{
|
||||||
|
@ -4401,20 +4408,6 @@ namespace INT69DC_7C
|
||||||
#endregion
|
#endregion
|
||||||
}
|
}
|
||||||
#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
|
#region CalibrationStatus
|
||||||
public class CalibrationStatus
|
public class CalibrationStatus
|
||||||
|
|
|
@ -176,6 +176,7 @@ namespace INT69DC_7C.Forms
|
||||||
header.LoginId = this.ParentForm.SystemConfig.CurrentUser.ID;
|
header.LoginId = this.ParentForm.SystemConfig.CurrentUser.ID;
|
||||||
header.SerialNumber = this.ParentForm.SystemConfig.SerialNumber;
|
header.SerialNumber = this.ParentForm.SystemConfig.SerialNumber;
|
||||||
header.EquipmentColumns = this.ParentForm.SystemConfig.EquipmentColumns;
|
header.EquipmentColumns = this.ParentForm.SystemConfig.EquipmentColumns;
|
||||||
|
header.EquipmentType = 103;
|
||||||
|
|
||||||
for (int i = 0; i < listSelectedFile.Count; i++)
|
for (int i = 0; i < listSelectedFile.Count; i++)
|
||||||
this.CreateHeaderFile(this.ParentForm.PathHeaderFolder, listSelectedFile[i], header);
|
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");
|
value = header.TimeStamp.ToString("MM/dd/yyyy HH:mm:ss");
|
||||||
IniFile.WriteString(filePath, section, key, value);
|
IniFile.WriteString(filePath, section, key, value);
|
||||||
Thread.Sleep(5);
|
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)
|
private void DirectoryFileDelete(string dirPath)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue