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 @@ - - - + --> + + + - - - - - - - - + + + + + -