Browse Source

批量审核

master
luanhui 8 years ago
parent
commit
670f0c1559
5 changed files with 27 additions and 1 deletions
  1. +1
    -1
      B3SubstituteKill.Web/Pages/B3SubstituteKill/Bills/StatPay_/StatPayEdit.cs
  2. +7
    -0
      B3SubstituteKill.Web/Pages/B3SubstituteKill/Bills/StatPay_/StatPayList.cs
  3. +8
    -0
      B3SubstituteKill.Web/Pages/B3SubstituteKill/Bills/StatPay_/StatPayList.xml
  4. +10
    -0
      B3SubstituteKill/BL/Bills/StatPay/StatPayBL.cs
  5. +1
    -0
      WebFolder/config/Plugins/B3SubstituteKill.plugin

+ 1
- 1
B3SubstituteKill.Web/Pages/B3SubstituteKill/Bills/StatPay_/StatPayEdit.cs View File

@ -126,7 +126,7 @@ __DFContainer.setValue('PriceBill_ID','');
editor.CanDeleteFunc = detail => CanSave;
editor.IsEditableFunc = (field, detail) =>
{
return CanSave && field.Name == "Number";
return CanSave ;//&& field.Name == "Number";
};
_costDetail = titlePanel.EAdd(new DFEditGrid(editor) { Width = Unit.Percentage(100) });
_costDetail.Columns.Add(new DFEditGridColumn("SubKillProductLine_Name"));


+ 7
- 0
B3SubstituteKill.Web/Pages/B3SubstituteKill/Bills/StatPay_/StatPayList.cs View File

@ -19,6 +19,7 @@ namespace BWP.Web.Pages.B3SubstituteKill.Bills.StatPay_
config.Add("Employee_ID");
config.Add("Date");
config.Add("Supplier_ID");
config.Add("SourceBillID");
}));
}
@ -32,8 +33,14 @@ namespace BWP.Web.Pages.B3SubstituteKill.Bills.StatPay_
AddDFBrowseGridColumn(grid, "Employee_Name");
AddDFBrowseGridColumn(grid, "Date");
AddDFBrowseGridColumn(grid, "Supplier_Name");
AddDFBrowseGridColumn(grid, "SourceBillType");
AddDFBrowseGridColumn(grid, "SourceBillID");
AddDFBrowseGridColumn(grid, "Remark");
}
}
public override bool EnableBatchCheck {
get { return CheckDefaultRole("批量审核",false); }
}
}
}

+ 8
- 0
B3SubstituteKill.Web/Pages/B3SubstituteKill/Bills/StatPay_/StatPayList.xml View File

@ -66,6 +66,14 @@
<Field name="BillState"/>
<QBE paramName ="BillState"/>
</EQ>
<EQ>
<Field name="SourceBillType"/>
<QBE paramName ="SourceBillType"/>
</EQ>
<EQ>
<Field name="SourceBillID"/>
<QBE paramName ="SourceBillID"/>
</EQ>
</And>
</Where>
</Select>


+ 10
- 0
B3SubstituteKill/BL/Bills/StatPay/StatPayBL.cs View File

@ -23,12 +23,22 @@ namespace BWP.B3SubstituteKill.BL
{
dmo.PriceBill_ID = null;
if (dmo.Date.HasValue && dmo.Supplier_ID.HasValue)
{
dmo.PriceBill_ID = SupplierRpc.GetPriceBillID(dmo.Supplier_ID.Value, dmo.Date.Value);
}
}
foreach (var d in dmo.CostDetails)
{
d.Money = d.Price * d.Number;
}
foreach (var d in dmo.CallbackPayDetails)
{
d.Money = d.Price * d.Number;
}
dmo.ReceiveMoney = dmo.CostDetails.CostMoney - dmo.CallbackPayDetails.CallbackPayMoney;
base.beforeSave(dmo);
}


+ 1
- 0
WebFolder/config/Plugins/B3SubstituteKill.plugin View File

@ -123,6 +123,7 @@
<Function index="9" name="作废" />
<Function index="10" name="完毕"/>
<Function index="11" name="撤销完毕"/>
<Function index="12" name="批量审核"/>
</FunctionGroup>
<FunctionGroup name="代宰收款" roleSchemas="employee">


Loading…
Cancel
Save