| | |
| | | <ClientEvent name="onReady">self.insert({});</ClientEvent> |
| | | <Property name="dataType">dtBaseParam</Property> |
| | | </DataSet> |
| | | <DataSet id="dsDeptList"> |
| | | <Property name="dataProvider">deptPR#getData</Property> |
| | | <Property name="userData">库区列表下拉框</Property> |
| | | <Property name="loadMode">manual</Property> |
| | | <Property name="dataType">[dtDept]</Property> |
| | | </DataSet> |
| | | <DataSet id="dsDepotList"> |
| | | <Property name="dataProvider">depotPR#getData</Property> |
| | | <Property name="userData">仓库列表下拉框</Property> |
| | | <Property name="loadMode">manual</Property> |
| | | <Property name="dataType">[dtDepot]</Property> |
| | | </DataSet> |
| | | <Container> |
| | | <Property name="className">c-param</Property> |
| | | <AutoForm> |
| | |
| | | </ToolBarButton> |
| | | <ToolBarButton> |
| | | <ClientEvent name="onClick">var data = view.get("#dgMain").get("selection"); |
| | | view.get("#dialogMain").show(); |
| | | </ClientEvent> |
| | | if(data){
 |
| | | view.get("#dialogMain").show(); |
| | | }else{
 |
| | | $notify("请选择需要修改的信息……");
 |
| | | }
</ClientEvent> |
| | | <Property name="id">btnUpdate</Property> |
| | | <Property name="caption">修改</Property> |
| | | <Property name="exClassName">btn2</Property> |
| | |
| | | <ToolBarButton> |
| | | <ClientEvent name="onClick">var data = view.get("#dgMain").get("selection") |
| | | if(!data){ |
| | | $alert("请选择数据"); |
| | | }else{ |
| | | $alert("请选择需要删除的信息……"); |
| | | }else{ |
| | | view.get("#ajaxDelData").set("parameter", data).execute(function(result){ |
| | | if("200"!=result.code){ |
| | | $alert("异常信息:"+result.message); |
| | |
| | | <Property name="readOnly">true</Property> |
| | | <RowSelectorColumn/> |
| | | <RowNumColumn/> |
| | | <DataColumn name="pledgeBank"> |
| | | <Property name="property">pledgeBank</Property> |
| | | </DataColumn> |
| | | <DataColumn name="pledgeCompany"> |
| | | <Property name="property">pledgeCompany</Property> |
| | | </DataColumn> |
| | | <DataColumn name="name"> |
| | | <Property name="property">name</Property> |
| | | <Property name="width">400</Property> |
| | |
| | | <Property name="align">center</Property> |
| | | <Property name="width">200</Property> |
| | | </DataColumn> |
| | | <DataColumn name="signTime"> |
| | | <Property name="property">signTime</Property> |
| | | </DataColumn> |
| | | <DataColumn name="pledgeStart"> |
| | | <Property name="property">pledgeStart</Property> |
| | | </DataColumn> |
| | | <DataColumn name="pledgeEnd"> |
| | | <Property name="property">pledgeEnd</Property> |
| | | </DataColumn> |
| | | </DataGrid> |
| | | </Container> |
| | | <Dialog id="dialogMain" layout="regionPadding:8"> |
| | | <Property name="closeable">false</Property> |
| | | <Property name="caption">质押合同</Property> |
| | | <Property name="width">1200</Property> |
| | | <Property name="width">80%</Property> |
| | | <Property name="iconClass">fa fa-tasks</Property> |
| | | <Property name="height">90%</Property> |
| | | <Buttons> |
| | | <Button id="btnOk"> |
| | | <ClientEvent name="onClick">view.get("#saveAction").execute(function(){
 |
| | |
| | | </Buttons> |
| | | <Children> |
| | | <Container> |
| | | <AutoForm layoutConstraint="top "> |
| | | <AutoForm layoutConstraint="top"> |
| | | <Property name="dataSet">dsMain</Property> |
| | | <Property name="showHint">false</Property> |
| | | <Property name="cols">210,*,210</Property> |
| | |
| | | <Property name="exClassName">f-title</Property> |
| | | <Property name="text">质押合同单</Property> |
| | | </Label> |
| | | <Control/> |
| | | <Control layoutConstraint="colSpan:2"/> |
| | | <AutoFormElement> |
| | | <Property name="name">id</Property> |
| | | <Property name="property">id</Property> |
| | |
| | | <Property name="labelAlign">right</Property> |
| | | <Property name="labelSeparator">:</Property> |
| | | <Property name="labelWidth">120</Property> |
| | | <AutoFormElement> |
| | | <Property name="name">contractNo</Property> |
| | | <Property name="property">contractNo</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement> |
| | | <Property name="name">contractName</Property> |
| | | <Property name="property">contractName</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement> |
| | | <Property name="name">contractAmount</Property> |
| | | <Property name="property">contractAmount</Property> |
| | | <AutoFormElement layoutConstraint="colSpan:2"> |
| | | <Property name="name">name</Property> |
| | | <Property name="property">name</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement> |
| | |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement> |
| | | <Property name="name">name</Property> |
| | | <Property name="property">name</Property> |
| | | <Property name="name">pledgeDept</Property> |
| | | <Property name="property">pledgeDept</Property> |
| | | <Property name="trigger">dsDeptDropDown</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement> |
| | | <Property name="name">status</Property> |
| | | <Property name="property">status</Property> |
| | | <Property name="name">depotNames</Property> |
| | | <Property name="property">depotNames</Property> |
| | | <Property name="trigger">CDDDept</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement> |
| | |
| | | <Property name="property">pledgeEnd</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement> |
| | | <Property name="name">pledgeDept</Property> |
| | | <Property name="property">pledgeDept</Property> |
| | | <AutoFormElement layoutConstraint="colSpan:2"> |
| | | <Property name="name">contractName</Property> |
| | | <Property name="property">contractName</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement> |
| | | <Property name="name">contractNo</Property> |
| | | <Property name="property">contractNo</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement> |
| | | <Property name="name">contractAmount</Property> |
| | | <Property name="property">contractAmount</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement> |
| | | <Property name="name">repaidAmount</Property> |
| | | <Property name="property">repaidAmount</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement> |
| | | <Property name="name">status</Property> |
| | | <Property name="property">status</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement layoutConstraint="colSpan:3"> |
| | | <Property name="name">remark</Property> |
| | | <Property name="property">remark</Property> |
| | | <Property name="editorType">TextArea</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement> |
| | | <Property name="name">createBy</Property> |
| | | <Property name="property">createBy</Property> |
| | | <Property name="readOnly">true</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement> |
| | | <Property name="name">createTime</Property> |
| | | <Property name="property">createTime</Property> |
| | | <Property name="readOnly">true</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <HtmlContainer layoutConstraint="colSpan:3"> |
| | | <Property name="content">1.当前单据仅作为当前系统业务信息登记使用,不作为实际双方合约约束。<br>
 |
| | | 2.当前单据默认支持为1个合约对应1个库区,如果同时对应多个库区请数据登记。<br>
 |
| | | 3.质押状态如果=解押,系统对应催办提醒等功能自动完成。<br></Property> |
| | | <Property name="exClassName">h-tip</Property> |
| | | <Property name="contentOverflow">hidden</Property> |
| | | </HtmlContainer> |
| | | </AutoForm> |
| | | </Container> |
| | | </Children> |
| | |
| | | <AjaxAction id="ajaxInitAdd"> |
| | | <Property name="service">pledgeContractPR#initAdd</Property> |
| | | </AjaxAction> |
| | | <DataSetDropDown id="dsDeptDropDown"> |
| | | <ClientEvent name="onOpen">
 |
| | | var entity = view.get("#dsMain.data:#");
 |
| | | if(!entity){
 |
| | | $alert("请先选择质押公司");
 |
| | | }else{
 |
| | | var pledgeCompany = entity.get("pledgeCompany");
 |
| | | if(!pledgeCompany){
 |
| | | $alert("请先选择质押公司");
 |
| | | }else{
 |
| | | view.get("#dsDeptList").set("parameter",entity.get("pledgeCompany")).flushAsync();
 |
| | | } |
| | | }</ClientEvent> |
| | | <Property name="dataSet">dsDeptList</Property> |
| | | <Property name="height">450</Property> |
| | | <Property name="autoOpen">true</Property> |
| | | <Property name="assignmentMap">pledgeDept=id</Property> |
| | | <Property name="width">400</Property> |
| | | <DataColumn> |
| | | <Property name="align">center</Property> |
| | | <Property name="name">kqmc</Property> |
| | | <Property name="property">kqmc</Property> |
| | | <Editor/> |
| | | </DataColumn> |
| | | </DataSetDropDown> |
| | | <CustomDropDown id="CDDDept"> |
| | | <ClientEvent name="onOpen">
 |
| | | var entity = view.get("#dsMain.data:#");
 |
| | | if(!entity){
 |
| | | $alert("请先选择质押库区");
 |
| | | }else{
 |
| | | var pledgeDept = entity.get("pledgeDept");
 |
| | | if(!pledgeDept){
 |
| | | $alert("请先选择质押库区");
 |
| | | }else{
 |
| | | view.get("#dsDeptSelect").set("parameter",entity.get("pledgeDept")).flushAsync();
 |
| | | } |
| | | }</ClientEvent> |
| | | <Property name="minWidth">400</Property> |
| | | <Property name="minHeight">400</Property> |
| | | <Property name="assignmentMap">depotIds=depotIds,depotNames=depotNames</Property> |
| | | <Panel> |
| | | <Property name="showCaptionBar">false</Property> |
| | | <Buttons> |
| | | <Button> |
| | | <ClientEvent name="onClick">var selection = view.get("#dgDepotSelect").get("selection");
 |
| | | if(!selection || selection.length == 0){
 |
| | | $alert("请选择仓库");
 |
| | | return;
 |
| | | }
 |
| | | 
 |
| | | var depotIds = "",depotNames="";
 |
| | | selection.each(function(item){
 |
| | | depotIds += item.get("id")+",";
 |
| | | depotNames+=item.get("name")+",";
 |
| | | });
 |
| | | 
 |
| | | view.get("#CDDDept").close({depotIds:depotIds,depotNames:depotNames});</ClientEvent> |
| | | <Property name="caption">确认选择</Property> |
| | | </Button> |
| | | <Button> |
| | | <ClientEvent name="onClick">view.get("#CDDDept").close({});
 |
| | | view.get("#dgDepotSelect").set("selection",null);</ClientEvent> |
| | | <Property name="caption">取消操作</Property> |
| | | </Button> |
| | | </Buttons> |
| | | <Children> |
| | | <DataSet id="dsDeptSelect"> |
| | | <Property name="dataType">[dtDepot]</Property> |
| | | <Property name="dataProvider">depotPR#getData</Property> |
| | | <Property name="userData">库区列表下拉框</Property> |
| | | <Property name="loadMode">manual</Property> |
| | | </DataSet> |
| | | <DataGrid id="dgDepotSelect"> |
| | | <Property name="dataSet">dsDeptSelect</Property> |
| | | <Property name="selectionMode">multiRows</Property> |
| | | <RowSelectorColumn> |
| | | <Property name="caption">选择</Property> |
| | | <Property name="width">50</Property> |
| | | </RowSelectorColumn> |
| | | <DataColumn name="name"> |
| | | <Property name="property">name</Property> |
| | | <Property name="readOnly">true</Property> |
| | | </DataColumn> |
| | | <DataColumn name="id"> |
| | | <Property name="property">id</Property> |
| | | <Property name="readOnly">true</Property> |
| | | </DataColumn> |
| | | <DataColumn name="depotType"> |
| | | <Property name="property">depotType</Property> |
| | | <Property name="readOnly">true</Property> |
| | | </DataColumn> |
| | | </DataGrid> |
| | | </Children> |
| | | <Tools/> |
| | | </Panel> |
| | | </CustomDropDown> |
| | | </View> |
| | | </ViewConfig> |