From 21d2b9f52ba35d98bbab40116e8313d95aed88f0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=8C=83?= <15095123350@163.com> Date: Fri, 21 Mar 2025 10:00:27 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=89=E4=B8=AA=E6=8A=A5=E8=A1=A8=E5=A2=9E?= =?UTF-8?q?=E5=8A=A0=E7=99=BD=E5=A4=9C=E7=8F=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- shangjian/XGLFinishPro/Views/LanJu_Check_Report.xaml.cs | 7 +++++-- .../XGLFinishPro/Views/LanJu_Conversion_Report.xaml.cs | 7 +++++-- .../Views/LanJu_First_Inspection_Reprot.xaml.cs | 7 +++++-- 3 files changed, 15 insertions(+), 6 deletions(-) diff --git a/shangjian/XGLFinishPro/Views/LanJu_Check_Report.xaml.cs b/shangjian/XGLFinishPro/Views/LanJu_Check_Report.xaml.cs index 48e5434..8d0c128 100644 --- a/shangjian/XGLFinishPro/Views/LanJu_Check_Report.xaml.cs +++ b/shangjian/XGLFinishPro/Views/LanJu_Check_Report.xaml.cs @@ -44,6 +44,8 @@ namespace XGLFinishPro.Views private readonly List _minutes = new List { "00", "05", "10", "15", "20", "25", "30", "35", "40", "45", "50", "55" }; private string LineStr = ""; private readonly List teamGroup = new List() { "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); } diff --git a/shangjian/XGLFinishPro/Views/LanJu_Conversion_Report.xaml.cs b/shangjian/XGLFinishPro/Views/LanJu_Conversion_Report.xaml.cs index 5c8ad2d..2690a2b 100644 --- a/shangjian/XGLFinishPro/Views/LanJu_Conversion_Report.xaml.cs +++ b/shangjian/XGLFinishPro/Views/LanJu_Conversion_Report.xaml.cs @@ -47,6 +47,8 @@ namespace XGLFinishPro.Views private string workId = string.Empty; private string productName = string.Empty; private bool IsFinal = false; + private string shiftName = string.Empty; + private string shiftCode = LoginUser.ShiftCode; public LanJu_Conversion_Report() { InitializeComponent(); @@ -95,6 +97,7 @@ namespace XGLFinishPro.Views //this.CheckDate.Text = date; try { + shiftName = dbService.GetShiftById(shiftCode); this.Line.Text = dbService.GetBaseEquipment(Utils.GetAppSetting("DeviceCode")); product_code = string.Empty; DataTable dataTable = dbService.GetProOrderWorkorder(workId); @@ -173,7 +176,7 @@ namespace XGLFinishPro.Views } TypeDic = mainTypeDic; mesTableSelf = null; - mesTableSelf = dbService.GetMesTableSelf(deviceCode, productName, this.CheckDate.Text, "ConversionReport"); + mesTableSelf = dbService.GetMesTableSelf(deviceCode, productName, this.CheckDate.Text, "ConversionReport"+ shiftName); if (mesTableSelf == null) { mesTableSelf = new MesTableSelf() @@ -187,7 +190,7 @@ namespace XGLFinishPro.Views del_flag = "0", product_date = this.CheckDate.Text, bz = string.Empty, - report_name = "ConversionReport" + report_name = "ConversionReport"+ shiftName }; if (!string.IsNullOrEmpty(productName)) { diff --git a/shangjian/XGLFinishPro/Views/LanJu_First_Inspection_Reprot.xaml.cs b/shangjian/XGLFinishPro/Views/LanJu_First_Inspection_Reprot.xaml.cs index 12d8c4b..a7626c0 100644 --- a/shangjian/XGLFinishPro/Views/LanJu_First_Inspection_Reprot.xaml.cs +++ b/shangjian/XGLFinishPro/Views/LanJu_First_Inspection_Reprot.xaml.cs @@ -55,6 +55,8 @@ namespace XGLFinishPro.Views private string workId = string.Empty; private string date = string.Empty; + private string shiftName = string.Empty; + private string shiftCode = LoginUser.ShiftCode; public LanJu_First_Inspection_Reprot() { @@ -70,6 +72,7 @@ namespace XGLFinishPro.Views try { this.LeftCheckDate.SelectedDate = DateTime.Parse(LoginUser.WorkDate); + shiftName = dbService.GetShiftById(shiftCode); } catch { @@ -260,7 +263,7 @@ namespace XGLFinishPro.Views private MesTableSelf leftmesTableSelf; private void GetMesTableSeft() { - leftmesTableSelf = dbService.GetMesTableSelf(deviceCode, LProductName, this.LeftCheckDate.Text, "ConversionReportLeft"); + leftmesTableSelf = dbService.GetMesTableSelf(deviceCode, LProductName, this.LeftCheckDate.Text, "ConversionReportLeft"+ shiftName); if (leftmesTableSelf == null) { if (!string.IsNullOrEmpty(LProductName)) @@ -276,7 +279,7 @@ namespace XGLFinishPro.Views del_flag = "0", product_date = this.LeftCheckDate.Text, bz = string.Empty, - report_name = "ConversionReportLeft" + report_name = "ConversionReportLeft"+ shiftName }; } dbService.InsertMesTableSelf(leftmesTableSelf);