| | |
| | | </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> |
| | |
| | | <PropertyDef name="customerBank"> |
| | | <Property></Property> |
| | | <Property name="label">客户开户行</Property> |
| | | <Property name="mapping"> |
| | | <Property name="keyProperty">code</Property> |
| | | <Property name="valueProperty">name</Property> |
| | | <Property name="mapValues">${dorado.getDataProvider("dicTriggerPR#dicTrigger").getResult("KHKHH")}</Property> |
| | | </Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="customerBankAccount"> |
| | | <Property></Property> |
| | |
| | | <PropertyDef name="bank"> |
| | | <Property></Property> |
| | | <Property name="label">本方开户行</Property> |
| | | <Property name="mapping"> |
| | | <Property name="keyProperty">code</Property> |
| | | <Property name="valueProperty">name</Property> |
| | | <Property name="mapValues">${dorado.getDataProvider("dicTriggerPR#dicTrigger").getResult("KHKHH")}</Property> |
| | | </Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="bankAccount"> |
| | | <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();
 |
| | |
| | | if(price && contactAmount){
 |
| | | 
 |
| | | //计算倒入数量
 |
| | | var money = price*contactAmount;
 |
| | | var money = price*contactAmount/1000;
 |
| | | curData.set("money",money); 
 |
| | | }
 |
| | | };</ClientEvent> |
| | |
| | | <DataColumn name="name"> |
| | | <Property name="property">name</Property> |
| | | <Property name="align">center</Property> |
| | | <Property name="width">340</Property> |
| | | </DataColumn> |
| | | <DataColumn name="type"> |
| | | <Property name="property">type</Property> |
| | |
| | | <DataColumn name="customerName"> |
| | | <Property name="property">customerName</Property> |
| | | <Property name="align">center</Property> |
| | | <Property name="width">300</Property> |
| | | </DataColumn> |
| | | <DataColumn name="money"> |
| | | <Property name="property">money</Property> |
| | |
| | | <Property name="property">signAddress</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement layoutConstraint="colSpan:3"> |
| | | <Property name="name">remark</Property> |
| | | <Property name="property">remark</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | </AutoForm> |
| | | </Children> |
| | | </FieldSet> |
| | |
| | | <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> |