Browse Source

需求单No.141600 牛羊过磅单,输入供应商后,可以把供应商档案上的{经办人}带入过磅单上的{经办人}字段中

master
yibo 7 years ago
parent
commit
fc15d751bd
1 changed files with 9 additions and 1 deletions
  1. +9
    -1
      B3SheepButcherManage.Web/Pages/B3SheepButcherManage/Bills/WeightBill_/WeightBillEdit.cs

+ 9
- 1
B3SheepButcherManage.Web/Pages/B3SheepButcherManage/Bills/WeightBill_/WeightBillEdit.cs View File

@ -69,7 +69,7 @@ namespace BWP.Web.Pages.B3SheepButcherManage.Bills.WeightBill_
var script = @"
var txtValue =parseInt(__DFContainer.getValue('Supplier_ID'));
simpleRestCall('/MainSystem/B3CowButcherManage/Rpcs/SupplierRpc/GetBySupplierID',[txtValue],
simpleRestCall('/MainSystem/B3CowButcherManage/Rpcs/SupplierRpc/GetBySupplierID',[txtValue,['Tel','Card_ID','Employee_ID','Employee_Name']],
function(result){
if(typeof(result.Tel)!='undefined')
{
@ -88,6 +88,14 @@ else
{
__DFContainer.setValue('Supplier_Card_ID','');
}
if(typeof(result.Employee_ID)!='undefined')
{
__DFContainer.getControl('Employee_ID').fill(result.Employee_ID,result.Employee_Name);
}
else
{
__DFContainer.getControl('Employee_ID').fill('','');
}
},{ });";
supplierInput.OnClientSelected = script;
}


Loading…
Cancel
Save