Browse Source

修改

master
wushukun 7 years ago
parent
commit
97b5189631
2 changed files with 4 additions and 6 deletions
  1. +1
    -6
      BWP.B3_YunKen.Web/Pages/B3YunKen/Overlays/ReturnInStoreEdit_Ext.cs
  2. +3
    -0
      BWP.B3_YunKen.Web/Pages/B3YunKen/Overlays/SaleOutStoreEdit_Ext.cs

+ 1
- 6
BWP.B3_YunKen.Web/Pages/B3YunKen/Overlays/ReturnInStoreEdit_Ext.cs View File

@ -19,12 +19,7 @@ namespace BWP.Web.Pages.B3YunKen.Overlays
dmo.Code = null; dmo.Code = null;
} }
public override void AppToUI()
{
base.AppToUI();
if (MinDmo.ID != 0)
mDFContainer.MakeReadonly("AccountingUnit_ID");
}
protected override void BeforeDetailGridApplyLayout(DFEditGrid dFEditGrid) protected override void BeforeDetailGridApplyLayout(DFEditGrid dFEditGrid)


+ 3
- 0
BWP.B3_YunKen.Web/Pages/B3YunKen/Overlays/SaleOutStoreEdit_Ext.cs View File

@ -18,6 +18,7 @@ namespace BWP.Web.Pages.B3YunKen.Overlays
{ {
public class SaleOutStoreEdit_Ext: SaleOutStoreEdit public class SaleOutStoreEdit_Ext: SaleOutStoreEdit
{ {
protected override void AddCarDriverInfo(LayoutManager layOutManager, AutoLayoutConfig config) protected override void AddCarDriverInfo(LayoutManager layOutManager, AutoLayoutConfig config)
{ {
layOutManager.Add("Driver_Name", new DFValueLabel()); layOutManager.Add("Driver_Name", new DFValueLabel());
@ -64,6 +65,8 @@ namespace BWP.Web.Pages.B3YunKen.Overlays
public override void AppToUI() public override void AppToUI()
{ {
base.AppToUI(); base.AppToUI();
if (MinDmo.ID != 0)
mDFContainer.MakeReadonly("AccountingUnit_ID");
mDFContainer.MakeReadonly("SaleKind_ID",!CheckDefaultRole("编辑销售类型")); mDFContainer.MakeReadonly("SaleKind_ID",!CheckDefaultRole("编辑销售类型"));
} }


Loading…
Cancel
Save