From 862bdd2d41a5d16e3ccc604a6e943eb2f719e597 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BC=A0=E6=9D=BE=E7=94=B7?= <446507344@qq.com> Date: Thu, 25 Jan 2024 08:29:40 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4=E6=88=90=E9=83=BDBC316-MP4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- APP/QMAPP.Web/App_Data/Menu.xml | 8 +- APP/QMAPP.Web/App_Data/PCPower.xml | 1 + APP/QMAPP.Web/Web.config | 6 +- APPMD/QMAPP.MD.DAL/PbomDAL.cs | 39 +++++ APPMD/QMAPP.MD.Web/Web.config | 6 +- APPQ5/QMAPP.FJC.BLL/FIS/DoorPlankPlanBLL.cs | 49 ++++-- APPQ5/QMAPP.FJC.BLL/FIS/FISPhraseBLL.cs | 4 +- .../Operation/MainOperationBLL.cs | 34 ++++ .../Basic/ProcessParameterDAL.cs | 31 ++++ APPQ5/QMAPP.FJC.DAL/FIS/FISPhraseDAL.cs | 6 +- APPQ5/QMAPP.FJC.DAL/Operation/PrintCodeDAL.cs | 13 ++ .../DAHandler/DataAcquirer.cs | 16 +- .../DataValidators/BFRecordValidator.cs | 68 ++++++++ .../DataValidators/PlanValidator.cs | 18 +- .../QMAPP.FJC.TRACING.csproj | 1 + APPQ5/QMAPP.FJC.Web/Web.config | 6 +- APPQ5/QMAPP.WinForm/App.config | 24 +-- .../Forms/Operation/OperationForm.Designer.cs | 90 +++++----- .../Forms/Operation/OperationForm.cs | 41 +++-- .../Forms/Operation/OperationForm.resx | 164 +++++++++--------- .../Forms/TianJin/PlanRePrintForm.cs | 12 +- .../QMAPP.WinForm/Forms/TianJin/TJFrmPlace.cs | 5 +- .../Forms/TianJin/TJPrintPlanLabel.cs | 24 ++- APPQ5/QMAPP.WinForm/Menu.xml | 1 + .../QMAPP.WinForm/Properties/AssemblyInfo.cs | 4 +- .../WCF/QMFrameWork.WebServiceHost/Web.config | 16 +- 26 files changed, 470 insertions(+), 217 deletions(-) create mode 100644 APPQ5/QMAPP.FJC.TRACING/DataValidators/BFRecordValidator.cs diff --git a/APP/QMAPP.Web/App_Data/Menu.xml b/APP/QMAPP.Web/App_Data/Menu.xml index 4e7acb3..1226a1d 100644 --- a/APP/QMAPP.Web/App_Data/Menu.xml +++ b/APP/QMAPP.Web/App_Data/Menu.xml @@ -298,7 +298,7 @@ --> - - + + diff --git a/APP/QMAPP.Web/App_Data/PCPower.xml b/APP/QMAPP.Web/App_Data/PCPower.xml index 2339765..24d8344 100644 --- a/APP/QMAPP.Web/App_Data/PCPower.xml +++ b/APP/QMAPP.Web/App_Data/PCPower.xml @@ -11,6 +11,7 @@ + diff --git a/APP/QMAPP.Web/Web.config b/APP/QMAPP.Web/Web.config index 4bd4d32..97a6b12 100644 --- a/APP/QMAPP.Web/Web.config +++ b/APP/QMAPP.Web/Web.config @@ -40,7 +40,7 @@ - + + - + --> diff --git a/APPMD/QMAPP.MD.DAL/PbomDAL.cs b/APPMD/QMAPP.MD.DAL/PbomDAL.cs index da36e5a..9545ba6 100644 --- a/APPMD/QMAPP.MD.DAL/PbomDAL.cs +++ b/APPMD/QMAPP.MD.DAL/PbomDAL.cs @@ -600,6 +600,45 @@ namespace QMAPP.MD.DAL throw ex; } } + + /// + /// 根据物料号查找BOM头 + /// + /// + /// BOM头列表 + public List GetPbomByMaterialCodeWithPlan(string materialCode,string BomCode) + { + + StringBuilder sqlBuilder = new StringBuilder(); + List parameters = new List(); + sqlBuilder.AppendLine("SELECT H.* "); + sqlBuilder.AppendLine(" FROM T_MD_PBOM AS H "); + sqlBuilder.AppendLine(" WHERE H.FLGDEL = '0' "); + sqlBuilder.AppendLine(" AND (EXISTS (SELECT 1 "); + sqlBuilder.AppendLine(" FROM T_MD_PBOM_ITEM AS I "); + sqlBuilder.AppendLine(" WHERE "); + sqlBuilder.AppendLine(" I.FLGDEL = '0' "); + sqlBuilder.AppendLine(" AND I.MATERIAL_CODE = @materialcode) "); + sqlBuilder.AppendLine(" ) and H.PBOM_CODE = @BomCode "); + + parameters.Add(new DataParameter("materialcode", DbType.String, materialCode)); + parameters.Add(new DataParameter("BomCode", DbType.String, BomCode)); + + try + { + using (IDataSession session = AppDataFactory.CreateMainSession()) + { + string sqlChange = ChangeSqlByDB(sqlBuilder.ToString(), session); + //获取信息 + return session.GetList(sqlChange, parameters.ToArray()).ToList(); + } + + } + catch (Exception ex) + { + throw ex; + } + } /// /// 根据物料号查找最终的总成BOM头 /// diff --git a/APPMD/QMAPP.MD.Web/Web.config b/APPMD/QMAPP.MD.Web/Web.config index 14c31eb..60e95ad 100644 --- a/APPMD/QMAPP.MD.Web/Web.config +++ b/APPMD/QMAPP.MD.Web/Web.config @@ -30,7 +30,7 @@ - + @@ -41,11 +41,11 @@ ---> + - +--> - + + - + --> diff --git a/APPQ5/QMAPP.WinForm/App.config b/APPQ5/QMAPP.WinForm/App.config index 3c6c0dd..0c052ac 100644 --- a/APPQ5/QMAPP.WinForm/App.config +++ b/APPQ5/QMAPP.WinForm/App.config @@ -2,20 +2,22 @@ - - - + --> + + + - - - - - - - - + + + + + -