| | |
| | | </PropertyDef> |
| | | </DataType> |
| | | <DataType name="dtMain"> |
| | | <ClientEvent name="onDataChange">if(arg.property =="customerId"){
 |
| | | autoByCustomer(arg.newValue);
 |
| | | }</ClientEvent> |
| | | <Property name="creationType">com.ld.igds.models.InoutContract</Property> |
| | | <PropertyDef name="id"> |
| | | <Property></Property> |
| | |
| | | </Model> |
| | | <View layout="regionPadding:10"> |
| | | <ClientEvent name="onReady">var deptId = window.parent.deptId;//父页面中的分库编码
 |
| | | 
 |
| | | //根据客户自动回填客户类型,客户开户行,客户开户行账号,客户签约人
 |
| | | autoByCustomer = function(id){
 |
| | | view.get("#ajaxGetCustomer").set("parameter",id).execute(function(result){
 |
| | | if(result){
 |
| | | var data = view.get("#dsMain.data:#");
 |
| | | data.set("customerType",result.khlx);
 |
| | | data.set("customerBank",result.bank);
 |
| | | data.set("customerBankAccount",result.bankNum);
 |
| | | data.set("customerSignUser",result.fddbr);
 |
| | | }
 |
| | | });
 |
| | | };
 |
| | | addMain = function(){
 |
| | | view.get("#dsMain").insert({});
 |
| | | view.get("#dialogMain").show();
 |
| | |
| | | <Property name="confirmMessage">确定要删除吗?</Property> |
| | | <Property name="service">contractManagePR#delContract</Property> |
| | | </AjaxAction> |
| | | <AjaxAction id="ajaxGetCustomer"> |
| | | <Property name="service">inoutCustomerPR#queryListByParam</Property> |
| | | </AjaxAction> |
| | | <CustomDropDown id="ddCustomer"> |
| | | <Property name="minHeight">400</Property> |
| | | <Property name="assignmentMap">customerId=id,customerName=name</Property> |