|
|
@ -37,9 +37,10 @@ namespace BWP.Web.Pages.B3SheepButcherManage.Bills.Pay_ |
|
|
config.Add("Date"); |
|
|
config.Add("Date"); |
|
|
config.Add("Supplier_ID"); |
|
|
config.Add("Supplier_ID"); |
|
|
config.Add("Supplier_Bank"); |
|
|
config.Add("Supplier_Bank"); |
|
|
|
|
|
config.Add("Supplier_BankAccount"); |
|
|
config.Add("Supplier_Card_ID"); |
|
|
config.Add("Supplier_Card_ID"); |
|
|
config.Add("Account_ID"); |
|
|
config.Add("Account_ID"); |
|
|
config.Add("Account_BankAccountNumber"); |
|
|
|
|
|
|
|
|
//config.Add("Account_BankAccountNumber");
|
|
|
config.Add("PaySupplier_ID"); |
|
|
config.Add("PaySupplier_ID"); |
|
|
config.Add("PaySupplier_AccountNo"); |
|
|
config.Add("PaySupplier_AccountNo"); |
|
|
config.Add("Remark"); |
|
|
config.Add("Remark"); |
|
|
@ -74,13 +75,13 @@ __DFContainer.setValue('PaySupplier_AccountNo',''); |
|
|
} |
|
|
} |
|
|
if (layoutManager.Contains("Supplier_ID")) |
|
|
if (layoutManager.Contains("Supplier_ID")) |
|
|
{ |
|
|
{ |
|
|
var paySupplierInput = layoutManager["PaySupplier_ID"].InputControl as DFChoiceBox; |
|
|
|
|
|
|
|
|
var paySupplierInput = layoutManager["Supplier_ID"].InputControl as DFChoiceBox; |
|
|
|
|
|
|
|
|
if (paySupplierInput != null) |
|
|
if (paySupplierInput != null) |
|
|
{ |
|
|
{ |
|
|
var script = @"
|
|
|
var script = @"
|
|
|
var txtValue =parseInt(__DFContainer.getValue('Supplier_ID')); |
|
|
var txtValue =parseInt(__DFContainer.getValue('Supplier_ID')); |
|
|
simpleRestCall('/MainSystem/B3CowButcherManage/Rpcs/SupplierRpc/GetBySupplierID',[txtValue,['Bank','Card_ID']], |
|
|
|
|
|
|
|
|
simpleRestCall('/MainSystem/B3CowButcherManage/Rpcs/SupplierRpc/GetBySupplierID',[txtValue,['Bank','Card_ID','BankAccount']], |
|
|
function(result){ |
|
|
function(result){ |
|
|
if(typeof(result.Bank)!='undefined') |
|
|
if(typeof(result.Bank)!='undefined') |
|
|
{ |
|
|
{ |
|
|
@ -97,7 +98,15 @@ if(typeof(result.Card_ID)!='undefined') |
|
|
else |
|
|
else |
|
|
{ |
|
|
{ |
|
|
__DFContainer.setValue('Supplier_Card_ID',''); |
|
|
__DFContainer.setValue('Supplier_Card_ID',''); |
|
|
} |
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
if(typeof(result.BankAccount)!='undefined') |
|
|
|
|
|
{ |
|
|
|
|
|
__DFContainer.setValue('Supplier_BankAccount',result.BankAccount); |
|
|
|
|
|
} |
|
|
|
|
|
else |
|
|
|
|
|
{ |
|
|
|
|
|
__DFContainer.setValue('Supplier_BankAccount',''); |
|
|
|
|
|
} |
|
|
},{ });";
|
|
|
},{ });";
|
|
|
paySupplierInput.OnClientSelected = script; |
|
|
paySupplierInput.OnClientSelected = script; |
|
|
} |
|
|
} |
|
|
|