YYC
2023-07-25 21bf8b454eee7e80d9471e4424e7520c4f82f3a7
igds-inout/src/main/java/com/ld/igds/m/view/ContractManage.view.xml
@@ -39,6 +39,9 @@
      </PropertyDef>
    </DataType>
    <DataType name="dtMain">
      <ClientEvent name="onDataChange">if(arg.property ==&quot;customerId&quot;){&#xD;
   autoByCustomer(arg.newValue);&#xD;
}</ClientEvent>
      <Property name="creationType">com.ld.igds.models.InoutContract</Property>
      <PropertyDef name="id">
        <Property></Property>
@@ -371,7 +374,18 @@
  </Model>
  <View layout="regionPadding:10">
    <ClientEvent name="onReady">var deptId = window.parent.deptId;//父页面中的分库编码&#xD;
&#xD;
//根据客户自动回填客户类型,客户开户行,客户开户行账号,客户签约人&#xD;
autoByCustomer = function(id){&#xD;
   view.get(&quot;#ajaxGetCustomer&quot;).set(&quot;parameter&quot;,id).execute(function(result){&#xD;
     if(result){&#xD;
     var data = view.get(&quot;#dsMain.data:#&quot;);&#xD;
     data.set(&quot;customerType&quot;,result.khlx);&#xD;
    data.set(&quot;customerBank&quot;,result.bank);&#xD;
     data.set(&quot;customerBankAccount&quot;,result.bankNum);&#xD;
     data.set(&quot;customerSignUser&quot;,result.fddbr);&#xD;
   }&#xD;
});&#xD;
};&#xD;
addMain = function(){&#xD;
   view.get(&quot;#dsMain&quot;).insert({});&#xD;
   view.get(&quot;#dialogMain&quot;).show();&#xD;
@@ -760,6 +774,9 @@
      <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>