|
|
|
|
@ -44,6 +44,8 @@ namespace XGLFinishPro.Views
|
|
|
|
|
private readonly List<string> _minutes = new List<string> { "00", "05", "10", "15", "20", "25", "30", "35", "40", "45", "50", "55" };
|
|
|
|
|
private string LineStr = "";
|
|
|
|
|
private readonly List<string> teamGroup = new List<string>() { "A", "B", "C", "D", "E", "F" };
|
|
|
|
|
private string shiftName = string.Empty;
|
|
|
|
|
private string shiftCode = LoginUser.ShiftCode;
|
|
|
|
|
public LanJu_Check_Report()
|
|
|
|
|
{
|
|
|
|
|
InitializeComponent();
|
|
|
|
|
@ -59,6 +61,7 @@ namespace XGLFinishPro.Views
|
|
|
|
|
{
|
|
|
|
|
this.NickName.Text = LoginUser.UserName;
|
|
|
|
|
LineStr = dbService.GetBaseEquipment(Utils.GetAppSetting("DeviceCode"));
|
|
|
|
|
shiftName = dbService.GetShiftById(shiftCode);
|
|
|
|
|
LoadData();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@ -85,7 +88,7 @@ namespace XGLFinishPro.Views
|
|
|
|
|
}
|
|
|
|
|
list.ForEach(t => t.value = t.value.Insert(0, "A"));
|
|
|
|
|
|
|
|
|
|
mesTableSelf = dbService.GetMesTableSelf(deviceCode, null, date, "CheckReport");
|
|
|
|
|
mesTableSelf = dbService.GetMesTableSelf(deviceCode, null, date, "CheckReport" + shiftName);
|
|
|
|
|
if (mesTableSelf == null)
|
|
|
|
|
{
|
|
|
|
|
mesTableSelf = new MesTableSelf()
|
|
|
|
|
@ -98,7 +101,7 @@ namespace XGLFinishPro.Views
|
|
|
|
|
del_flag = "0",
|
|
|
|
|
product_date = date,
|
|
|
|
|
bz = string.Empty,
|
|
|
|
|
report_name = "CheckReport"
|
|
|
|
|
report_name = "CheckReport" + shiftName
|
|
|
|
|
};
|
|
|
|
|
dbService.InsertMesTableSelf(mesTableSelf);
|
|
|
|
|
}
|
|
|
|
|
|