| | |
| | | </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> |
| | |
| | | <Property name="valueProperty">name</Property> |
| | | <Property name="mapValues">${dorado.getDataProvider("dicTriggerPR#dicTrigger").getResult("KHKHH")}</Property> |
| | | </Property> |
| | | <Property name="required">true</Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="bankAccount"> |
| | | <Property></Property> |
| | | <Property name="label">本方开户行账号</Property> |
| | | <Property name="required">true</Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="signUser"> |
| | | <Property></Property> |
| | |
| | | <PropertyDef name="lybzj"> |
| | | <Property name="dataType">Double</Property> |
| | | <Property name="label">履约保证金</Property> |
| | | <Property name="displayFormat">#,###0.00 元</Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="lyl"> |
| | | <Property name="dataType">Double</Property> |
| | | <Property name="label">履约率</Property> |
| | | <Property name="displayFormat"> ##.00%</Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="jsjg"> |
| | | <Property name="dataType">Double</Property> |
| | | <Property name="label">结算价格,元/吨</Property> |
| | | <Property name="label">结算价格</Property> |
| | | <Property name="displayFormat">#,###0.000 元/吨</Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="jszje"> |
| | | <Property name="dataType">Double</Property> |
| | | <Property name="label">结算总金额</Property> |
| | | <Property name="readOnly">true</Property> |
| | | <Property name="displayFormat">#,###0.00 元</Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="jsyhtyzx"> |
| | | <Property></Property> |
| | | <Property name="label">结算与合同一致性</Property> |
| | | <Property name="mapping"> |
| | | <Property name="mapValues">${dorado.getDataProvider("contractManagePR#triggerConsistency").getResult()}</Property> |
| | | <Property name="keyProperty">code</Property> |
| | | <Property name="valueProperty">name</Property> |
| | | </Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="jsyhtbyzyy"> |
| | | <Property></Property> |
| | |
| | | <PropertyDef name="auditDate"> |
| | | <Property></Property> |
| | | <Property name="label">审批时间</Property> |
| | | <Property name="dataType">Date</Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="auditStatus"> |
| | | <Property></Property> |
| | | <Property name="label">审批状态</Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="wcrq"> |
| | | <Property name="dataType">Date</Property> |
| | | <Property name="label">完成时间</Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="updateTime"> |
| | | <Property name="dataType">Date</Property> |
| | | <Property name="label">更新时间</Property> |
| | | <Property name="readOnly">true</Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="hqzz"> |
| | | <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();
 |
| | |
| | | <ClientEvent name="onCreate">//自动计算
 |
| | | countMoney = function(){
 |
| | | var curData = view.get("#dsMain.data:#");
 |
| | | 
 |
| | | var price = curData.get("price");
 |
| | | 
 |
| | | var contactAmount = curData.get("contactAmount");
 |
| | | 
 |
| | | if(price && contactAmount){
 |
| | | 
 |
| | | //计算倒入数量
 |
| | | var money = price*contactAmount/1000;
 |
| | | curData.set("money",money); 
 |
| | | }
 |
| | | };
 |
| | | countSettleMoney = function(){
 |
| | | var curData = view.get("#dsMain.data:#");
 |
| | | var price = curData.get("jsjg");
 |
| | | var completeNum = curData.get("completeNum");
 |
| | | if(price && completeNum){
 |
| | | //计算倒入数量
 |
| | | var money = price*completeNum/1000;
 |
| | | curData.set("jszje",money); 
 |
| | | }
 |
| | | };</ClientEvent> |
| | | <Property name="packages">font-awesome,css-common</Property> |
| | |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement> |
| | | <Property name="name">completeNum</Property> |
| | | <Property name="property">completeNum</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement> |
| | | <Property name="name">payType</Property> |
| | | <Property name="property">payType</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement> |
| | | <Property name="name">beginTime</Property> |
| | | <Property name="property">beginTime</Property> |
| | | <Editor/> |
| | |
| | | <Property name="name">planName</Property> |
| | | <Property name="property">planName</Property> |
| | | <Property name="trigger">ddPlan</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement> |
| | | <Property name="name">auditUser</Property> |
| | | <Property name="property">auditUser</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement> |
| | | <Property name="name">auditDate</Property> |
| | | <Property name="property">auditDate</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement> |
| | | <Property name="name">payType</Property> |
| | | <Property name="property">payType</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement> |
| | | <Property name="name">lybzj</Property> |
| | | <Property name="property">lybzj</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement> |
| | | <Property name="name">relEndTime</Property> |
| | | <Property name="property">relEndTime</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement> |
| | | <ClientEvent name="onBlur">countSettleMoney();</ClientEvent> |
| | | <Property name="name">completeNum</Property> |
| | | <Property name="property">completeNum</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement> |
| | | <ClientEvent name="onBlur">countSettleMoney();</ClientEvent> |
| | | <Property name="name">jsjg</Property> |
| | | <Property name="property">jsjg</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement> |
| | | <Property name="name">jszje</Property> |
| | | <Property name="property">jszje</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement> |
| | | <Property name="name">lyl</Property> |
| | | <Property name="property">lyl</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement> |
| | | <Property name="name">jsyhtyzx</Property> |
| | | <Property name="property">jsyhtyzx</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement> |
| | | <Property name="name">updateTime</Property> |
| | | <Property name="property">updateTime</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement layoutConstraint="colSpan:3"> |
| | | <Property name="name">jsyhtbyzyy</Property> |
| | | <Property name="property">jsyhtbyzyy</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | </AutoForm> |
| | |
| | | <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> |