From e05c6094353de7cd89f921eb7f2c767037b5e225 Mon Sep 17 00:00:00 2001 From: wugang <425674808@qq.com> Date: Thu, 18 Jan 2018 10:28:43 +0800 Subject: [PATCH] =?UTF-8?q?=E9=9C=80=E6=B1=82=E5=8D=95No.138149?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Pages/B3YunKen/Overlays/SaleForecastEdit_Ext.cs | 8 -------- BWP.B3_YunKen.Web/PluginClass.cs | 1 + ...ForecastEmployeeIsSame.cs => SaleForecastEmpIsSame.cs} | 2 +- BWP.B3_YunKen/BWP.B3_YunKen.csproj | 1 + 4 files changed, 3 insertions(+), 9 deletions(-) rename BWP.B3_YunKen/BLActions/{SaleForecastEmployeeIsSame.cs => SaleForecastEmpIsSame.cs} (95%) diff --git a/BWP.B3_YunKen.Web/Pages/B3YunKen/Overlays/SaleForecastEdit_Ext.cs b/BWP.B3_YunKen.Web/Pages/B3YunKen/Overlays/SaleForecastEdit_Ext.cs index 11e0ac1..098b158 100644 --- a/BWP.B3_YunKen.Web/Pages/B3YunKen/Overlays/SaleForecastEdit_Ext.cs +++ b/BWP.B3_YunKen.Web/Pages/B3YunKen/Overlays/SaleForecastEdit_Ext.cs @@ -100,13 +100,5 @@ namespace BWP.Web.Pages.B3YunKen.Overlays return query.EExecuteScalar(session); } - protected override void OnPreRender(EventArgs e) - { - base.OnPreRender(e); - var cus = mDFContainer.GetControl("Customer_ID"); - var emp = mDFContainer.GetControl("Employee_ID"); - if (cus != null && emp != null) - emp.Readonly = cus.Readonly; - } } } diff --git a/BWP.B3_YunKen.Web/PluginClass.cs b/BWP.B3_YunKen.Web/PluginClass.cs index cd5aa46..fa5be2e 100644 --- a/BWP.B3_YunKen.Web/PluginClass.cs +++ b/BWP.B3_YunKen.Web/PluginClass.cs @@ -33,6 +33,7 @@ namespace BWP.B3_YunKen.Web GlobalFlags.On(B3SaleConsts.Flags.QueryGoodsIsStandard); GlobalFlags.On(B3SaleConsts.Flags.PriceBillOnlySetStandard); GlobalFlags.On(B3SaleConsts.Flags.IsYunKen); + GlobalFlags.On(B3SaleConsts.Flags.SaleForecastEmployeeAndDeptIsReadOnly); WpfPageFactory.RegisterPageOverlay(typeof(OrderEdit).FullName, typeof(OrderEdit_Ext).FullName); WpfPageFactory.RegisterPageOverlay(typeof(SaleOutStoreEdit).FullName, typeof(SaleOutStoreEdit_Ext).FullName); WpfPageFactory.RegisterPageOverlay(typeof(SaleForecastEdit).FullName, typeof(SaleForecastEdit_Ext).FullName); diff --git a/BWP.B3_YunKen/BLActions/SaleForecastEmployeeIsSame.cs b/BWP.B3_YunKen/BLActions/SaleForecastEmpIsSame.cs similarity index 95% rename from BWP.B3_YunKen/BLActions/SaleForecastEmployeeIsSame.cs rename to BWP.B3_YunKen/BLActions/SaleForecastEmpIsSame.cs index 54e2c66..656e191 100644 --- a/BWP.B3_YunKen/BLActions/SaleForecastEmployeeIsSame.cs +++ b/BWP.B3_YunKen/BLActions/SaleForecastEmpIsSame.cs @@ -15,7 +15,7 @@ using BWP.B3Frameworks.BO; namespace BWP.B3_YunKen.BLActions { - public class SaleForecastEmployeeIsSame : IBLMethodAction + public class SaleForecastEmpIsSame : IBLMethodAction { public string Description { diff --git a/BWP.B3_YunKen/BWP.B3_YunKen.csproj b/BWP.B3_YunKen/BWP.B3_YunKen.csproj index 1cb401d..7ecdd4f 100644 --- a/BWP.B3_YunKen/BWP.B3_YunKen.csproj +++ b/BWP.B3_YunKen/BWP.B3_YunKen.csproj @@ -67,6 +67,7 @@ +