<?xml version="1.0" encoding="UTF-8"?>
|
<ViewConfig>
|
<Arguments/>
|
<Context/>
|
<Model>
|
<DataType name="dtMain" parent="dtInoutCustomer"/>
|
</Model>
|
<View layout="padding:5;regionPadding:5">
|
<Property name="packages">font-awesome,css-common</Property>
|
<DataSet id="dsMain">
|
<Property name="dataType">[dtMain]</Property>
|
<Property name="dataProvider">inoutCustomerPR#queryList</Property>
|
</DataSet>
|
<DataSet id="dsQuery">
|
<ClientEvent name="onReady">self.insert({});</ClientEvent>
|
<Property name="dataType">dtMain</Property>
|
</DataSet>
|
<Container layout="regionPadding:10" layoutConstraint="top">
|
<Property name="exClassName">bg-color</Property>
|
<Property name="height">55</Property>
|
<Property name="contentOverflow">hidden</Property>
|
<Label layoutConstraint="left">
|
<Property name="text">菜单栏:</Property>
|
</Label>
|
<Button layoutConstraint="left">
|
<ClientEvent name="onClick">view.get("#dsMain").insert({
|
applyUser : "${loginUser.getCname()}",
|
applyTime : new Date()
|
});
|

|
view.get("#editId").set("readOnly",false);
|

|
view.get("#dialogMain").show();</ClientEvent>
|
<Property name="caption">新增</Property>
|
<Property name="exClassName">btn-default</Property>
|
<Property name="iconClass">fa fa-plus</Property>
|
</Button>
|
<Button layoutConstraint="left">
|
<ClientEvent name="onClick">var data = view.get("#dsMain.data:#");
|
if(data){
|
view.get("#editId").set("readOnly",true);
|
view.get("#dialogMain").show();
|
}</ClientEvent>
|
<Property name="caption">编辑</Property>
|
<Property name="exClassName">btn-warm</Property>
|
<Property name="iconClass">fa fa-pencil</Property>
|
</Button>
|
<Button layoutConstraint="left">
|
<ClientEvent name="onClick">var data = view.get("#dsMain.data:#");
|
if(!data){
|
return;
|
}
|
view.get("#ajaxDel").set("parameter",data).execute(function(result){
|
if(result){
|
$alert(result);
|
return;
|
}else{
|
data.remove();
|
}
|
});
|
</ClientEvent>
|
<Property name="caption">删除</Property>
|
<Property name="exClassName">btn-warn</Property>
|
<Property name="iconClass">fa fa-minus</Property>
|
</Button>
|
<Button layoutConstraint="left">
|
<Property name="caption">导出</Property>
|
<Property name="exClassName">btn-normal</Property>
|
<Property name="iconClass">fa fa-file-excel-o</Property>
|
<Property name="action">exportExcel</Property>
|
</Button>
|
<Button layoutConstraint="left">
|
<ClientEvent name="onClick">$alert("暂时不能通过页面导入……");
|
</ClientEvent>
|
<Property name="caption">导入</Property>
|
<Property name="exClassName">btn-normal</Property>
|
<Property name="iconClass">fa fa-file-excel-o</Property>
|
</Button>
|
<Button layoutConstraint="right">
|
<ClientEvent name="onClick">view.get("#dsQuery").setData({});</ClientEvent>
|
<Property name="exClassName">btn-warn</Property>
|
<Property name="iconClass">fa fa-refresh</Property>
|
<Property name="caption">重置</Property>
|
</Button>
|
<Button layoutConstraint="right">
|
<ClientEvent name="onClick">var data = view.get("#dsQuery.data");
|

|
view.get("#dsMain").set("parameter",data.toJSON()).flushAsync();</ClientEvent>
|
<Property name="caption">查询</Property>
|
<Property name="exClassName">btn-normal</Property>
|
<Property name="iconClass">fa fa-search</Property>
|
</Button>
|
<TextEditor layoutConstraint="right">
|
<Property name="width">180</Property>
|
<Property name="blankText">--名称--</Property>
|
<Property name="dataSet">dsQuery</Property>
|
<Property name="property">name</Property>
|
</TextEditor>
|
<TextEditor layoutConstraint="right">
|
<Property name="width">180</Property>
|
<Property name="blankText">--编码--</Property>
|
<Property name="dataSet">dsQuery</Property>
|
<Property name="property">id</Property>
|
</TextEditor>
|
</Container>
|
<Container layoutConstraint="center">
|
<Property name="exClassName">bg-color</Property>
|
<DataGrid id="dataGridMain">
|
<ClientEvent name="onDataRowDoubleClick">var data = view.get("#dsMain.data:#");
|
if(data){
|
view.get("#editId").set("readOnly",true);
|
view.get("#dialogMain").show();
|
}</ClientEvent>
|
<Property name="dataSet">dsMain</Property>
|
<Property name="readOnly">true</Property>
|
<RowNumColumn>
|
<Property name="width">50</Property>
|
<Property name="caption">序号</Property>
|
</RowNumColumn>
|
<DataColumn name="id">
|
<Property name="property">id</Property>
|
<Property name="align">center</Property>
|
<Property name="width">120</Property>
|
</DataColumn>
|
<DataColumn name="type">
|
<Property name="property">type</Property>
|
<Property name="align">center</Property>
|
</DataColumn>
|
<DataColumn name="name">
|
<Property name="property">name</Property>
|
<Property name="width">300</Property>
|
<Property name="align">center</Property>
|
</DataColumn>
|
<DataColumn name="khbh">
|
<Property name="property">khbh</Property>
|
<Property name="align">center</Property>
|
</DataColumn>
|
<DataColumn name="contactUser">
|
<Property name="property">contactUser</Property>
|
<Property name="align">center</Property>
|
</DataColumn>
|
<DataColumn name="phone">
|
<Property name="property">phone</Property>
|
<Property name="align">center</Property>
|
</DataColumn>
|
<DataColumn>
|
<Property name="property">bank</Property>
|
<Property name="align">center</Property>
|
<Property name="name">bank</Property>
|
</DataColumn>
|
<DataColumn>
|
<Property name="property">bankNum</Property>
|
<Property name="align">center</Property>
|
<Property name="name">bankNum</Property>
|
</DataColumn>
|
</DataGrid>
|
</Container>
|
<ToolBar layoutConstraint="bottom">
|
<Fill/>
|
<DataPilot layoutConstraint="right">
|
<Property name="dataSet">dsMain</Property>
|
<Property name="itemCodes">pageSize,pages</Property>
|
</DataPilot>
|
</ToolBar>
|
<Dialog id="dialogMain">
|
<Property name="closeable">false</Property>
|
<Property name="caption">数据信息</Property>
|
<Property name="width">60%</Property>
|
<Property name="iconClass">fa fa-tasks</Property>
|
<Buttons>
|
<Button id="btnOk">
|
<ClientEvent name="onClick">var data = view.get("#dsMain.data:#");
|

|
if(data.validate() != 'ok'){
|
$notify("数据校验失败!!");
|
return;
|
}
|

|
view.get("#ajaxSave").set("parameter",data).execute(function(result){
|
if(result){
|
$alert(result);
|
return;
|
}
|
$notify("数据执行完成!!");
|
self.get("parent").hide();
|
});</ClientEvent>
|
<Property name="caption">确定</Property>
|
<Property name="iconClass">fa fa-check</Property>
|
</Button>
|
<Button>
|
<ClientEvent name="onClick">view.get("#dsMain.data:#").cancel();
|
self.get("parent").hide();</ClientEvent>
|
<Property name="caption">取消</Property>
|
<Property name="iconClass">fa fa-times</Property>
|
</Button>
|
</Buttons>
|
<Children>
|
<AutoForm>
|
<Property name="dataSet">dsMain</Property>
|
<Property name="cols">*,*</Property>
|
<Property name="labelAlign">right</Property>
|
<Property name="labelSeparator">:</Property>
|
<Property name="labelWidth">140</Property>
|
<AutoFormElement>
|
<Property name="name">name</Property>
|
<Property name="property">name</Property>
|
<Editor/>
|
</AutoFormElement>
|
<AutoFormElement id="editId">
|
<Property name="name">id</Property>
|
<Property name="property">id</Property>
|
<Editor>
|
<TextEditor>
|
<Property name="blankText">-- 规则:5位数字(不填则系统自动生成) --</Property>
|
</TextEditor>
|
</Editor>
|
</AutoFormElement>
|
<AutoFormElement layoutConstraint="colSpan:2">
|
<Property name="name">address</Property>
|
<Property name="property">address</Property>
|
<Editor/>
|
</AutoFormElement>
|
<AutoFormElement>
|
<Property name="name">khbh</Property>
|
<Property name="property">khbh</Property>
|
<Editor/>
|
</AutoFormElement>
|
<Label>
|
<Property name="text">说明:企业客户填写统一社会信用代码,个人客户填写身份证号</Property>
|
<Property name="style">
|
<Property name="color">blue</Property>
|
</Property>
|
</Label>
|
<AutoFormElement>
|
<Property name="name">khlx</Property>
|
<Property name="property">khlx</Property>
|
<Editor/>
|
</AutoFormElement>
|
<AutoFormElement>
|
<Property name="name">phone</Property>
|
<Property name="property">phone</Property>
|
<Editor/>
|
</AutoFormElement>
|
<AutoFormElement>
|
<Property name="name">bank</Property>
|
<Property name="property">bank</Property>
|
<Editor/>
|
</AutoFormElement>
|
<AutoFormElement>
|
<Property name="name">bankNum</Property>
|
<Property name="property">bankNum</Property>
|
<Editor/>
|
</AutoFormElement>
|
<AutoFormElement>
|
<Property name="name">deptId</Property>
|
<Property name="property">deptId</Property>
|
<Editor/>
|
</AutoFormElement>
|
<AutoFormElement>
|
<Property name="name">foodArea</Property>
|
<Property name="property">foodArea</Property>
|
<Editor/>
|
</AutoFormElement>
|
<AutoFormElement>
|
<Property name="name">type</Property>
|
<Property name="property">type</Property>
|
<Editor/>
|
</AutoFormElement>
|
<AutoFormElement>
|
<Property name="name">contactUser</Property>
|
<Property name="property">contactUser</Property>
|
<Editor/>
|
</AutoFormElement>
|
<AutoFormElement>
|
<Property name="name">cardId</Property>
|
<Property name="property">cardId</Property>
|
<Editor/>
|
</AutoFormElement>
|
<AutoFormElement>
|
<Property name="name">fddbr</Property>
|
<Property name="property">fddbr</Property>
|
<Editor/>
|
</AutoFormElement>
|
<AutoFormElement>
|
<Property name="name">yzbm</Property>
|
<Property name="property">yzbm</Property>
|
<Editor/>
|
</AutoFormElement>
|
<AutoFormElement>
|
<Property name="name">dzyx</Property>
|
<Property name="property">dzyx</Property>
|
<Editor/>
|
</AutoFormElement>
|
<AutoFormElement>
|
<Property name="name">updateTime</Property>
|
<Property name="property">updateTime</Property>
|
<Editor/>
|
</AutoFormElement>
|
</AutoForm>
|
</Children>
|
<Tools/>
|
</Dialog>
|
<AjaxAction id="ajaxSave">
|
<Property name="service">inoutCustomerPR#saveData</Property>
|
</AjaxAction>
|
<AjaxAction id="ajaxDel">
|
<Property name="service">inoutCustomerPR#delData</Property>
|
<Property name="confirmMessage">确定要执行删除么?</Property>
|
</AjaxAction>
|
<Export2ReportAction id="exportExcel">
|
<Property name="dataFontSize">12</Property>
|
<Property name="extension">xlsx</Property>
|
<Property name="fileName">往来单位数据</Property>
|
<Property name="headerFontSize">16</Property>
|
<Property name="template">dataGridMain</Property>
|
<Property name="titleFontSize">20</Property>
|
<Property name="maxSize">3000</Property>
|
</Export2ReportAction>
|
</View>
|
</ViewConfig>
|