<?xml version="1.0" encoding="UTF-8"?>
|
<ViewConfig>
|
<Arguments/>
|
<Context/>
|
<Model>
|
<DataType name="dtMain">
|
<Property name="creationType">com.ld.igds.models.InoutDriver</Property>
|
<PropertyDef name="id">
|
<Property></Property>
|
<Property name="label">身份证号</Property>
|
<Property name="required">true</Property>
|
</PropertyDef>
|
<PropertyDef name="companyId">
|
<Property></Property>
|
<Property name="label">组织编码</Property>
|
</PropertyDef>
|
<PropertyDef name="name">
|
<Property></Property>
|
<Property name="label">承运人姓名</Property>
|
<Property name="required">true</Property>
|
</PropertyDef>
|
<PropertyDef name="nation">
|
<Property></Property>
|
<Property name="label">民族</Property>
|
</PropertyDef>
|
<PropertyDef name="address">
|
<Property></Property>
|
<Property name="label">地址</Property>
|
</PropertyDef>
|
<PropertyDef name="mobile">
|
<Property></Property>
|
<Property name="label">手机</Property>
|
</PropertyDef>
|
<PropertyDef name="sex">
|
<Property></Property>
|
<Property name="label">性别</Property>
|
</PropertyDef>
|
<PropertyDef name="birthday">
|
<Property name="dataType">Date</Property>
|
<Property name="label">出生日期</Property>
|
</PropertyDef>
|
<PropertyDef name="updateTime">
|
<Property name="dataType">Date</Property>
|
<Property name="label">更新时间</Property>
|
</PropertyDef>
|
</DataType>
|
</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">inoutDriverPR#pageQuery</Property>
|
<Property name="pageSize">20</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="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">200</Property>
|
<Property name="blankText">-- 名称 --</Property>
|
<Property name="dataSet">dsQuery</Property>
|
<Property name="property">name</Property>
|
</TextEditor>
|
<TextEditor layoutConstraint="right">
|
<Property name="width">300</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">250</Property>
|
</DataColumn>
|
<DataColumn name="name">
|
<Property name="property">name</Property>
|
<Property name="width">300</Property>
|
<Property name="align">center</Property>
|
</DataColumn>
|
<DataColumn name="nation">
|
<Property name="property">nation</Property>
|
<Property name="align">center</Property>
|
</DataColumn>
|
<DataColumn name="mobile">
|
<Property name="property">mobile</Property>
|
<Property name="align">center</Property>
|
</DataColumn>
|
<DataColumn name="sex">
|
<Property name="property">sex</Property>
|
<Property name="align">center</Property>
|
</DataColumn>
|
<DataColumn name="birthday">
|
<Property name="property">birthday</Property>
|
<Property name="align">center</Property>
|
</DataColumn>
|
<DataColumn name="address">
|
<Property name="property">address</Property>
|
<Property name="width">300</Property>
|
<Property name="align">center</Property>
|
</DataColumn>
|
<DataColumn name="updateTime">
|
<Property name="property">updateTime</Property>
|
<Property name="align">center</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>
|
<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">120</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/>
|
</AutoFormElement>
|
<AutoFormElement>
|
<Property name="name">nation</Property>
|
<Property name="property">nation</Property>
|
<Editor/>
|
</AutoFormElement>
|
<AutoFormElement>
|
<Property name="name">mobile</Property>
|
<Property name="property">mobile</Property>
|
<Editor/>
|
</AutoFormElement>
|
<AutoFormElement>
|
<Property name="name">sex</Property>
|
<Property name="property">sex</Property>
|
<Editor/>
|
</AutoFormElement>
|
<AutoFormElement>
|
<Property name="name">birthday</Property>
|
<Property name="property">birthday</Property>
|
<Editor/>
|
</AutoFormElement>
|
<AutoFormElement layoutConstraint="colSpan:2">
|
<Property name="name">address</Property>
|
<Property name="property">address</Property>
|
<Editor/>
|
</AutoFormElement>
|
</AutoForm>
|
</Children>
|
<Tools/>
|
</Dialog>
|
<AjaxAction id="ajaxSave">
|
<Property name="service">inoutDriverPR#saveData</Property>
|
</AjaxAction>
|
<AjaxAction id="ajaxDel">
|
<Property name="service">inoutDriverPR#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>
|
<Property name="titleName">承运人信息列表</Property>
|
<Property name="showTitle">true</Property>
|
</Export2ReportAction>
|
</View>
|
</ViewConfig>
|