<?xml version="1.0" encoding="UTF-8"?>
|
<ViewConfig>
|
<Arguments/>
|
<Context/>
|
<Model>
|
<DataType name="dtMain">
|
<Property name="creationType">com.fzzy.api.entity.GbCheckItem</Property>
|
<PropertyDef name="code">
|
<Property/>
|
<Property name="label">接口编码</Property>
|
<Property name="required">true</Property>
|
</PropertyDef>
|
<PropertyDef name="name">
|
<Property/>
|
<Property name="label">名称</Property>
|
</PropertyDef>
|
<PropertyDef name="parentCode">
|
<Property/>
|
<Property name="label">父编码</Property>
|
<Property name="defaultValue">0</Property>
|
</PropertyDef>
|
<PropertyDef name="disabledTag">
|
<Property/>
|
<Property name="label">禁用</Property>
|
<Property name="mapping">
|
<Property name="mapValues">${dorado.getDataProvider("apiTriggerPR#findByParent").getResult("YN")}</Property>
|
<Property name="keyProperty">code</Property>
|
<Property name="valueProperty">name</Property>
|
</Property>
|
<Property name="defaultValue">N</Property>
|
</PropertyDef>
|
<PropertyDef name="bizCode">
|
<Property/>
|
<Property name="label">对接系统编码</Property>
|
<Property name="defaultValue">0</Property>
|
</PropertyDef>
|
<PropertyDef name="simple">
|
<Property/>
|
<Property name="label">简拼</Property>
|
</PropertyDef>
|
<PropertyDef name="remark">
|
<Property/>
|
<Property name="label">备注说明</Property>
|
</PropertyDef>
|
</DataType>
|
</Model>
|
<View layout="regionPadding:10">
|
<Property name="packages">font-awesome,css-common</Property>
|
<DataSet id="dsMain">
|
<Property name="dataType">[dtMain]</Property>
|
<Property name="dataProvider">gbCheckItemPR#findByCode</Property>
|
</DataSet>
|
<ToolBar>
|
<Property name="style">
|
<Property name="height"></Property>
|
</Property>
|
<ToolBarLabel>
|
<Property name="text">工具栏:</Property>
|
<Property name="style">
|
<Property name="font-weight">bold</Property>
|
</Property>
|
</ToolBarLabel>
|
<TextEditor id="key" layoutConstraint="padding:5">
|
<Property name="blankText"> -- 编码或者名称 --</Property>
|
<Property name="width">300</Property>
|
<Property name="style">
|
<Property name="margin-right">10px</Property>
|
</Property>
|
</TextEditor>
|
<ToolBarButton>
|
<ClientEvent name="onClick">var key = view.get("#key.value");
|
view.get("#dsMain").set("parameter",{key:key}).flushAsync();
|
//view.get("#dsMain").flushAsync();
|
</ClientEvent>
|
<Property name="caption">查询</Property>
|
<Property name="iconClass">fa fa-search</Property>
|
<Property name="width">100</Property>
|
<Property name="exClassName">toolbar-button-push</Property>
|
</ToolBarButton>
|
<ToolBarButton>
|
<ClientEvent name="onClick">view.get("#dsMain").insert();
|
view.get("#dialogMain").show();</ClientEvent>
|
<Property name="caption">新增</Property>
|
<Property name="iconClass">fa fa-plus</Property>
|
<Property name="width">100</Property>
|
<Property name="exClassName">toolbar-button</Property>
|
</ToolBarButton>
|
<ToolBarButton>
|
<ClientEvent name="onClick">var cur = view.get("#dgMain").getCurrentItem();
|
if(cur){
|
view.get("#dialogMain").show();
|
}else{
|
$alert("请勾选需要修改的数据!");
|
}
|
</ClientEvent>
|
<Property name="caption">修改</Property>
|
<Property name="iconClass">fa fa-pencil</Property>
|
<Property name="width">100</Property>
|
<Property name="exClassName">toolbar-button-warm</Property>
|
</ToolBarButton>
|
<Separator>
|
<Property name="visible">false</Property>
|
</Separator>
|
<ToolBarButton>
|
<ClientEvent name="onClick">var cur = view.get("#dgMain").getCurrentItem();
|
if(cur){
|
view.get("#ajaxDelUpdate").set("parameter",cur).execute(function(result){
|
if(result){
|
$alert(result);
|
} else{
|
cur.set("czbz","d");
|
}
|
});
|
}else{
|
$alert("请勾选需要标记删除的数据!");
|
}
|
</ClientEvent>
|
<Property name="caption">标记删除</Property>
|
<Property name="iconClass">fa fa-minus</Property>
|
<Property name="exClassName">toolbar-button-warn</Property>
|
<Property name="width">100</Property>
|
<Property name="visible">false</Property>
|
<Property name="hideMode">display</Property>
|
</ToolBarButton>
|
<ToolBarButton>
|
<ClientEvent name="onClick">var cur = view.get("#dgMain").getCurrentItem();
|
if(cur){
|
view.get("#ajaxDel").set("parameter",cur).execute(function(result){
|
if(result){
|
$alert(result);
|
} else{
|
cur.remove();
|
}
|
});
|
}else{
|
$alert("请勾选需要删除的数据!");
|
}
|

|
</ClientEvent>
|
<Property name="caption">删除</Property>
|
<Property name="iconClass">fa fa-minus</Property>
|
<Property name="exClassName">toolbar-button-warn</Property>
|
<Property name="width">100</Property>
|
</ToolBarButton>
|
<ToolBarButton>
|
<Property name="caption">刷新映射</Property>
|
<Property name="iconClass">fa fa-refresh</Property>
|
<Property name="exClassName">toolbar-button-push</Property>
|
<Property name="width">100</Property>
|
<Property name="action">ajaxRefreshCache</Property>
|
</ToolBarButton>
|
<Separator>
|
<Property name="visible">false</Property>
|
</Separator>
|
<ToolBarButton>
|
<ClientEvent name="onClick">var select = view.get("#dgMain").get("selection");
|
if(select && select.length > 0){
|
view.get("#ajaxPush").set("parameter",select).execute(function(result){
|
view.get("#dsMain").flushAsync();
|
$notify(result);
|
});
|
}else{
|
$alert("请勾选需要上报的数据!");
|
}</ClientEvent>
|
<Property name="caption">手动上传</Property>
|
<Property name="iconClass">fa fa-hand-o-up</Property>
|
<Property name="exClassName">toolbar-button-push</Property>
|
<Property name="width">100</Property>
|
<Property name="visible">false</Property>
|
<Property name="hideMode">display</Property>
|
</ToolBarButton>
|
<Fill>
|
<Property name="visible">false</Property>
|
<Property name="hideMode">display</Property>
|
</Fill>
|
<ToolBarButton>
|
<Property name="caption">上传记录</Property>
|
<Property name="iconClass">fa fa-bars</Property>
|
<Property name="exClassName">toolbar-button</Property>
|
<Property name="hideMode">display</Property>
|
<Property name="visible">false</Property>
|
</ToolBarButton>
|
</ToolBar>
|
<DataGrid id="dgMain">
|
<Property name="dataSet">dsMain</Property>
|
<Property name="selectionMode">multiRows</Property>
|
<Property name="readOnly">true</Property>
|
<RowNumColumn/>
|
<RowSelectorColumn>
|
<Property name="caption">上传</Property>
|
</RowSelectorColumn>
|
<DataColumn name="code">
|
<Property name="property">code</Property>
|
</DataColumn>
|
<DataColumn name="name">
|
<Property name="property">name</Property>
|
</DataColumn>
|
<DataColumn name="parentCode">
|
<Property name="property">parentCode</Property>
|
</DataColumn>
|
<DataColumn name="disabledTag">
|
<Property name="property">disabledTag</Property>
|
</DataColumn>
|
<DataColumn name="bizCode">
|
<Property name="property">bizCode</Property>
|
</DataColumn>
|
<DataColumn name="simple">
|
<Property name="property">simple</Property>
|
<Property name="visible">false</Property>
|
</DataColumn>
|
<DataColumn name="remark">
|
<Property name="property">remark</Property>
|
</DataColumn>
|
</DataGrid>
|
<Dialog id="dialogMain">
|
<Property name="width">800</Property>
|
<Property name="caption">检验项目信息</Property>
|
<Property name="iconClass">fa fa-sliders</Property>
|
<Property name="closeable">false</Property>
|
<Buttons>
|
<Button>
|
<ClientEvent name="onClick">var cur = view.get("#dgMain").getCurrentItem();
|
view.get("#updateSave").execute(function(){
|
self.get("parent").hide();
|
view.get("#dsMain").flushAsync();
|
});
|
</ClientEvent>
|
<Property name="caption">保存修改</Property>
|
<Property name="iconClass">fa fa-check</Property>
|
<Property name="exClassName">toolbar-button</Property>
|
</Button>
|
<Button>
|
<ClientEvent name="onClick">var cur = view.get("#dgMain").getCurrentItem();
|
self.get("parent").hide();
|
if(cur) cur.cancel();</ClientEvent>
|
<Property name="caption">取消修改</Property>
|
<Property name="iconClass">fa fa-times</Property>
|
<Property name="exClassName">toolbar-button-warn</Property>
|
</Button>
|
</Buttons>
|
<Children>
|
<AutoForm>
|
<Property name="dataSet">dsMain</Property>
|
<Property name="cols">*,*</Property>
|
<Property name="labelWidth">100</Property>
|
<Property name="labelAlign">left</Property>
|
<Property name="labelSeparator">:</Property>
|
<Property name="labelPosition">top</Property>
|
<AutoFormElement>
|
<Property name="name">code</Property>
|
<Property name="property">code</Property>
|
<Editor/>
|
</AutoFormElement>
|
<AutoFormElement>
|
<Property name="name">name</Property>
|
<Property name="property">name</Property>
|
<Editor/>
|
</AutoFormElement>
|
<AutoFormElement>
|
<Property name="name">parentCode</Property>
|
<Property name="property">parentCode</Property>
|
<Editor/>
|
</AutoFormElement>
|
<AutoFormElement>
|
<Property name="name">disabledTag</Property>
|
<Property name="property">disabledTag</Property>
|
<Editor/>
|
</AutoFormElement>
|
<AutoFormElement>
|
<Property name="name">bizCode</Property>
|
<Property name="property">bizCode</Property>
|
<Editor/>
|
</AutoFormElement>
|
<AutoFormElement>
|
<Property name="name">simple</Property>
|
<Property name="property">simple</Property>
|
<Property name="hideMode">display</Property>
|
<Property name="visible">false</Property>
|
<Editor/>
|
</AutoFormElement>
|
<AutoFormElement layoutConstraint="colSpan:2">
|
<Property name="name">remark</Property>
|
<Property name="property">remark</Property>
|
<Property name="editorType">TextArea</Property>
|
<Editor/>
|
</AutoFormElement>
|
</AutoForm>
|
</Children>
|
<Tools/>
|
</Dialog>
|
<UpdateAction id="updateSave">
|
<Property name="dataResolver">gbCheckItemPR#updateSave</Property>
|
<UpdateItem>
|
<Property name="dataPath">[#current]</Property>
|
<Property name="dataSet">dsMain</Property>
|
</UpdateItem>
|
</UpdateAction>
|
<AjaxAction id="ajaxDel">
|
<Property name="service">gbCheckItemPR#delData</Property>
|
<Property name="confirmMessage">当前数据删除后无法恢复,请确认要删除么?</Property>
|
</AjaxAction>
|
<AjaxAction id="ajaxRefreshCache">
|
<Property name="confirmMessage">确定要刷新么?</Property>
|
<Property name="successMessage">刷新成功!</Property>
|
<Property name="service">gbCheckItemService#flushCache</Property>
|
</AjaxAction>
|
</View>
|
</ViewConfig>
|