<?xml version="1.0" encoding="UTF-8"?>
|
<ViewConfig>
|
<Arguments/>
|
<Context/>
|
<Model>
|
<DataType name="dtMain">
|
<Property name="creationType">com.fzzy.api.entity.Api1108</Property>
|
<PropertyDef name="bizId">
|
<Property></Property>
|
<Property name="label">业务id</Property>
|
</PropertyDef>
|
<PropertyDef name="kqdm">
|
<Property></Property>
|
<Property name="label">库区代码</Property>
|
</PropertyDef>
|
<PropertyDef name="dwdm">
|
<Property></Property>
|
<Property name="label">单位代码</Property>
|
</PropertyDef>
|
<PropertyDef name="kqmc">
|
<Property></Property>
|
<Property name="label">库区名称</Property>
|
</PropertyDef>
|
<PropertyDef name="yjmc">
|
<Property></Property>
|
<Property name="label">药剂名称</Property>
|
</PropertyDef>
|
<PropertyDef name="bzw">
|
<Property></Property>
|
<Property name="label">包装物</Property>
|
<Property name="mapping">
|
<Property name="mapValues">${dorado.getDataProvider("apiTriggerService#trigger").getResult("YJBZW")}</Property>
|
<Property name="keyProperty">code</Property>
|
<Property name="valueProperty">name</Property>
|
</Property>
|
</PropertyDef>
|
<PropertyDef name="ggxh">
|
<Property></Property>
|
<Property name="label">型号规格</Property>
|
</PropertyDef>
|
<PropertyDef name="aqsysms">
|
<Property></Property>
|
<Property name="label">安全使用说明书</Property>
|
</PropertyDef>
|
<PropertyDef name="sccj">
|
<Property></Property>
|
<Property name="label">生产厂家</Property>
|
</PropertyDef>
|
<PropertyDef name="cgly">
|
<Property></Property>
|
<Property name="label">采购来源</Property>
|
</PropertyDef>
|
<PropertyDef name="cctj">
|
<Property></Property>
|
<Property name="label">储存条件</Property>
|
</PropertyDef>
|
<PropertyDef name="ccdd">
|
<Property></Property>
|
<Property name="label">储存地点</Property>
|
<Property name="mapping">
|
<Property name="mapValues">${dorado.getDataProvider("apiTriggerService#trigger").getResult("YJCCDD")}</Property>
|
<Property name="keyProperty">code</Property>
|
<Property name="valueProperty">name</Property>
|
</Property>
|
</PropertyDef>
|
<PropertyDef name="bzwclfs">
|
<Property></Property>
|
<Property name="label">包装物处理方式</Property>
|
</PropertyDef>
|
<PropertyDef name="czclfs">
|
<Property></Property>
|
<Property name="label">残渣处理方式</Property>
|
</PropertyDef>
|
<PropertyDef name="bzq">
|
<Property></Property>
|
<Property name="label">保质期</Property>
|
</PropertyDef>
|
<PropertyDef name="cgrq">
|
<Property></Property>
|
<Property name="label">采购日期</Property>
|
<Property name="dataType">DateTime</Property>
|
</PropertyDef>
|
<PropertyDef name="kcsl">
|
<Property name="dataType">double</Property>
|
<Property name="label">库存数量</Property>
|
</PropertyDef>
|
<PropertyDef name="czbz">
|
<Property></Property>
|
<Property name="label">操作标志</Property>
|
<Property name="mapping">
|
<Property name="mapValues">${dorado.getDataProvider("apiTriggerService#trigger").getResult("CZBZ")}</Property>
|
<Property name="keyProperty">code</Property>
|
<Property name="valueProperty">name</Property>
|
</Property>
|
</PropertyDef>
|
<PropertyDef name="zhgxsj">
|
<Property></Property>
|
<Property name="label">最后更新时间</Property>
|
<Property name="dataType">DateTime</Property>
|
</PropertyDef>
|
<PropertyDef name="id">
|
</PropertyDef>
|
<PropertyDef name="yjbh">
|
<Property></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">api1108PR#listAll</Property>
|
</DataSet>
|
<ToolBar>
|
<ToolBarLabel>
|
<Property name="text">工具栏:</Property>
|
<Property name="style">
|
<Property name="font-weight">bold</Property>
|
</Property>
|
</ToolBarLabel>
|
<ToolBarButton>
|
<ClientEvent name="onClick">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/>
|
<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>
|
</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>
|
<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>
|
</ToolBarButton>
|
<Fill/>
|
<ToolBarButton>
|
<Property name="caption">上传记录</Property>
|
<Property name="iconClass">fa fa-bars</Property>
|
<Property name="exClassName">toolbar-button</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="bizId">
|
<Property name="property">bizId</Property>
|
<Property name="visible">false</Property>
|
</DataColumn>
|
<DataColumn name="kqdm">
|
<Property name="property">kqdm</Property>
|
</DataColumn>
|
<DataColumn name="dwdm">
|
<Property name="property">dwdm</Property>
|
</DataColumn>
|
<DataColumn name="kqmc">
|
<Property name="property">kqmc</Property>
|
</DataColumn>
|
<DataColumn name="yjmc">
|
<Property name="property">yjmc</Property>
|
</DataColumn>
|
<DataColumn name="bzw">
|
<Property name="property">bzw</Property>
|
</DataColumn>
|
<DataColumn name="ggxh">
|
<Property name="property">ggxh</Property>
|
</DataColumn>
|
<DataColumn name="aqsysms">
|
<Property name="property">aqsysms</Property>
|
<Property name="visible">false</Property>
|
</DataColumn>
|
<DataColumn name="sccj">
|
<Property name="property">sccj</Property>
|
</DataColumn>
|
<DataColumn name="cgly">
|
<Property name="property">cgly</Property>
|
</DataColumn>
|
<DataColumn name="cctj">
|
<Property name="property">cctj</Property>
|
</DataColumn>
|
<DataColumn name="ccdd">
|
<Property name="property">ccdd</Property>
|
</DataColumn>
|
<DataColumn name="bzwclfs">
|
<Property name="property">bzwclfs</Property>
|
<Property name="visible">false</Property>
|
</DataColumn>
|
<DataColumn name="czclfs">
|
<Property name="property">czclfs</Property>
|
<Property name="visible">false</Property>
|
</DataColumn>
|
<DataColumn name="bzq">
|
<Property name="property">bzq</Property>
|
</DataColumn>
|
<DataColumn name="cgrq">
|
<Property name="property">cgrq</Property>
|
</DataColumn>
|
<DataColumn name="kcsl">
|
<Property name="property">kcsl</Property>
|
</DataColumn>
|
<DataColumn name="czbz">
|
<Property name="property">czbz</Property>
|
</DataColumn>
|
<DataColumn name="zhgxsj">
|
<Property name="property">zhgxsj</Property>
|
</DataColumn>
|
<DataColumn name="id">
|
<Property name="property">id</Property>
|
<Property name="visible">false</Property>
|
</DataColumn>
|
</DataGrid>
|
<Dialog id="dialogMain">
|
<Property name="width">1000</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">id</Property>
|
<Property name="property">id</Property>
|
<Property name="hideMode">display</Property>
|
<Property name="visible">false</Property>
|
<Editor/>
|
</AutoFormElement>
|
<AutoFormElement>
|
<Property name="name">kqdm</Property>
|
<Property name="property">kqdm</Property>
|
<Editor/>
|
</AutoFormElement>
|
<AutoFormElement>
|
<Property name="name">dwdm</Property>
|
<Property name="property">dwdm</Property>
|
<Editor/>
|
</AutoFormElement>
|
<AutoFormElement>
|
<Property name="name">kqmc</Property>
|
<Property name="property">kqmc</Property>
|
<Editor/>
|
</AutoFormElement>
|
<AutoFormElement>
|
<Property name="name">yjmc</Property>
|
<Property name="property">yjmc</Property>
|
<Editor/>
|
</AutoFormElement>
|
<AutoFormElement>
|
<Property name="name">bzw</Property>
|
<Property name="property">bzw</Property>
|
<Editor/>
|
</AutoFormElement>
|
<AutoFormElement>
|
<Property name="name">ggxh</Property>
|
<Property name="property">ggxh</Property>
|
<Editor/>
|
</AutoFormElement>
|
<AutoFormElement>
|
<Property name="name">aqsysms</Property>
|
<Property name="property">aqsysms</Property>
|
<Editor/>
|
</AutoFormElement>
|
<AutoFormElement>
|
<Property name="name">sccj</Property>
|
<Property name="property">sccj</Property>
|
<Editor/>
|
</AutoFormElement>
|
<AutoFormElement>
|
<Property name="name">cgly</Property>
|
<Property name="property">cgly</Property>
|
<Editor/>
|
</AutoFormElement>
|
<AutoFormElement>
|
<Property name="name">cctj</Property>
|
<Property name="property">cctj</Property>
|
<Editor/>
|
</AutoFormElement>
|
<AutoFormElement>
|
<Property name="name">ccdd</Property>
|
<Property name="property">ccdd</Property>
|
<Editor/>
|
</AutoFormElement>
|
<AutoFormElement>
|
<Property name="name">bzwclfs</Property>
|
<Property name="property">bzwclfs</Property>
|
<Editor/>
|
</AutoFormElement>
|
<AutoFormElement>
|
<Property name="name">czclfs</Property>
|
<Property name="property">czclfs</Property>
|
<Editor/>
|
</AutoFormElement>
|
<AutoFormElement>
|
<Property name="name">bzq</Property>
|
<Property name="property">bzq</Property>
|
<Editor/>
|
</AutoFormElement>
|
<AutoFormElement>
|
<Property name="name">cgrq</Property>
|
<Property name="property">cgrq</Property>
|
<Editor/>
|
</AutoFormElement>
|
<AutoFormElement>
|
<Property name="name">kcsl</Property>
|
<Property name="property">kcsl</Property>
|
<Editor/>
|
</AutoFormElement>
|
<AutoFormElement>
|
<Property name="name">czbz</Property>
|
<Property name="property">czbz</Property>
|
<Editor/>
|
</AutoFormElement>
|
<AutoFormElement>
|
<Property name="name">zhgxsj</Property>
|
<Property name="property">zhgxsj</Property>
|
<Editor/>
|
</AutoFormElement>
|
<AutoFormElement>
|
<Property name="name">yjbh</Property>
|
<Property name="property">yjbh</Property>
|
<Property name="tip">库区编码加上四位顺序码</Property>
|
<Editor/>
|
</AutoFormElement>
|
<AutoFormElement>
|
<Property name="name">bizId</Property>
|
<Property name="property">bizId</Property>
|
<Editor/>
|
</AutoFormElement>
|
</AutoForm>
|
</Children>
|
<Tools/>
|
</Dialog>
|
<UpdateAction id="updateSave">
|
<Property name="dataResolver">api1108PR#updateSave</Property>
|
<UpdateItem>
|
<Property name="dataPath">[#current]</Property>
|
<Property name="dataSet">dsMain</Property>
|
</UpdateItem>
|
</UpdateAction>
|
<AjaxAction id="ajaxPush">
|
<Property name="service">api1108PR#pushData</Property>
|
<Property name="confirmMessage">确定要上报么?</Property>
|
</AjaxAction>
|
<AjaxAction id="ajaxDel">
|
<Property name="service">api1108PR#delData</Property>
|
<Property name="confirmMessage">当前数据删除后无法恢复,请确认要删除么?</Property>
|
</AjaxAction>
|
<AjaxAction id="ajaxDelUpdate">
|
<Property name="service">api1108PR#delUpdate</Property>
|
<Property name="confirmMessage">确定要将数据标记为删除么?</Property>
|
</AjaxAction>
|
</View>
|
</ViewConfig>
|