diff --git a/APPMD/QMAPP.MD.DAL/ProcessRouteDAL.cs b/APPMD/QMAPP.MD.DAL/ProcessRouteDAL.cs index 79d5786..acb31eb 100644 --- a/APPMD/QMAPP.MD.DAL/ProcessRouteDAL.cs +++ b/APPMD/QMAPP.MD.DAL/ProcessRouteDAL.cs @@ -850,8 +850,12 @@ namespace QMAPP.MD.DAL parameters.Add(new DataParameter("bomcode", bomcode)); parameters.Add(new DataParameter("workcellcode", workcellcode)); + var workcellcode2 = ""; + if (!workcellcode.Contains("336")) + workcellcode2 = workcellcode.Substring(0, 3) + "304_" + workcellcode.Substring(3, workcellcode.Length - 3); + else + workcellcode2 = workcellcode; - var workcellcode2 = workcellcode.Substring(0, 3) + "304_" + workcellcode.Substring(3, workcellcode.Length - 3); parameters.Add(new DataParameter("workcellcode2", workcellcode2)); using (var session = AppDataFactory.CreateMainSession()) diff --git a/APPQ5/QMAPP.FJC.DAL/Operation/PbomItemDAL.cs b/APPQ5/QMAPP.FJC.DAL/Operation/PbomItemDAL.cs index 45158da..99cf425 100644 --- a/APPQ5/QMAPP.FJC.DAL/Operation/PbomItemDAL.cs +++ b/APPQ5/QMAPP.FJC.DAL/Operation/PbomItemDAL.cs @@ -29,7 +29,8 @@ namespace QMAPP.FJC.DAL.Operation { try { - string sql = $"SELECT * FROM [T_MD_PBOM_ITEM] where MATERIAL_CODE = '{MATERIAL_CODE}'"; + //20240812 线束自动填充 张松男 336产线 线束的 CREATEDATE 要比装饰条的时间靠前 + string sql = $"SELECT * FROM [T_MD_PBOM_ITEM] where MATERIAL_CODE = '{MATERIAL_CODE}' order by CREATEDATE"; List parameters = new List(); using (IDataSession session = AppDataFactory.CreateMainSession()) { diff --git a/APPQ5/QMAPP.WinForm/App.config b/APPQ5/QMAPP.WinForm/App.config index 8c309c6..f032b75 100644 --- a/APPQ5/QMAPP.WinForm/App.config +++ b/APPQ5/QMAPP.WinForm/App.config @@ -3,18 +3,8 @@ - - - - @@ -30,7 +20,7 @@ - + - - - - - + diff --git a/APPQ5/QMAPP.WinForm/Forms/Operation/OperationForm.cs b/APPQ5/QMAPP.WinForm/Forms/Operation/OperationForm.cs index 0d06402..a73f40a 100644 --- a/APPQ5/QMAPP.WinForm/Forms/Operation/OperationForm.cs +++ b/APPQ5/QMAPP.WinForm/Forms/Operation/OperationForm.cs @@ -895,15 +895,12 @@ namespace QMAPP.WinForm.Forms.Operation this.txtCode.Text = ""; //PlaySound.PlaySounds.Play(@okSoundPath); - if (!"770,018,278,304".Contains(productCode.Substring(0, 3))) + if (File.Exists(@okSoundPath)) { - if(File.Exists(@okSoundPath)) - { - System.Media.SoundPlayer media = new System.Media.SoundPlayer(@okSoundPath); - media.Play(); - } + System.Media.SoundPlayer media = new System.Media.SoundPlayer(@okSoundPath); + media.Play(); } - + if (this.lblLock.Tag.ToString().Equals("0")) {