| | |
| | | <Model> |
| | | <DataType name="dtMain"> |
| | | <Property name="creationType">com.ld.igds.models.DeptDevice</Property> |
| | | <PropertyDef name="id"> |
| | | <Property name="label">ID</Property> |
| | | <PropertyDef name="sbbh"> |
| | | <Property/> |
| | | <Property name="label">设备编号</Property> |
| | | <Property name="required">true</Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="kqdm"> |
| | | <Property></Property> |
| | | <Property name="label">库区代码</Property> |
| | | <PropertyDef name="companyId"> |
| | | <Property/> |
| | | <Property name="label">组织编码</Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="deptId"> |
| | | <Property/> |
| | | <Property name="label">所属库区</Property> |
| | | <Property name="readOnly">false</Property> |
| | | <Property name="required">true</Property> |
| | | <Property name="mapping"> |
| | | <Property name="mapValues">${dorado.getDataProvider("deptPR#loadParents").getResult()}</Property> |
| | | <Property name="keyProperty">id</Property> |
| | | <Property name="valueProperty">name</Property> |
| | | </Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="companyId"> |
| | | <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="sbbh"> |
| | | <Property></Property> |
| | | <Property name="label">设备编号</Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="sbyqmc"> |
| | | <Property></Property> |
| | | <Property/> |
| | | <Property name="label">设备仪器名称</Property> |
| | | <Property name="required">true</Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="sbyqdm"> |
| | | <Property></Property> |
| | | <Property/> |
| | | <Property name="label">设备仪器代码</Property> |
| | | <Property name="readOnly">false</Property> |
| | | <Property name="required">true</Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="sbggxh"> |
| | | <Property></Property> |
| | | <Property/> |
| | | <Property name="label">设备规格型号</Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="sccj"> |
| | | <Property></Property> |
| | | <Property/> |
| | | <Property name="label">生产厂家</Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="scrq"> |
| | |
| | | <Property name="label">生产日期</Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="sbms"> |
| | | <Property></Property> |
| | | <Property/> |
| | | <Property name="label">设备描述</Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="sbzt"> |
| | | <Property></Property> |
| | | <Property/> |
| | | <Property name="label">设备状态</Property> |
| | | <Property name="mapping"> |
| | | <Property name="keyProperty">key</Property> |
| | | <Property name="valueProperty">value</Property> |
| | | <Property name="mapValues"> |
| | | <Collection> |
| | | <Entity> |
| | | <Property name="key">1</Property> |
| | | <Property name="value">1:完好</Property> |
| | | </Entity> |
| | | <Entity> |
| | | <Property name="key">2</Property> |
| | | <Property name="value">2:报废</Property> |
| | | </Entity> |
| | | <Entity> |
| | | <Property name="key">3</Property> |
| | | <Property name="value">3:待检修</Property> |
| | | </Entity> |
| | | <Entity> |
| | | <Property name="key">4</Property> |
| | | <Property name="value">4:其他</Property> |
| | | </Entity> |
| | | </Collection> |
| | | </Property> |
| | | </Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="jdsj"> |
| | | <Property name="dataType">Date</Property> |
| | | <Property name="label">检定时间</Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="jddw"> |
| | | <Property></Property> |
| | | <Property/> |
| | | <Property name="label">检定单位</Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="updateTime"> |
| | | <Property name="dataType">Date</Property> |
| | | <Property name="dataType">DateTime</Property> |
| | | <Property name="label">更新时间</Property> |
| | | </PropertyDef> |
| | | </DataType> |
| | |
| | | <DataType name="dtCheck"> |
| | | <Property name="creationType">com.ld.igds.models.DeviceCheckup</Property> |
| | | <PropertyDef name="id"> |
| | | <Property/> |
| | | <Property></Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="companyId"> |
| | | <Property/> |
| | | <Property></Property> |
| | | <Property name="label">组织编码</Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="sbbh"> |
| | | <Property/> |
| | | <Property></Property> |
| | | <Property name="label">设备编号</Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="kqdm"> |
| | | <Property/> |
| | | <Property></Property> |
| | | <Property name="label">库区代码</Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="kqmc"> |
| | | <Property/> |
| | | <Property name="label">库区名称</Property> |
| | | <Property name="mapping"> |
| | | <Property name="mapValues">${dorado.getDataProvider("deptPR#loadParents").getResult()}</Property> |
| | | <Property name="keyProperty">id</Property> |
| | | <Property name="valueProperty">name</Property> |
| | | </Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="dwdm"> |
| | | <Property/> |
| | | <Property></Property> |
| | | <Property name="label">单位代码</Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="sbyqmc"> |
| | | <Property/> |
| | | <Property></Property> |
| | | <Property name="label">设备仪器名称</Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="sbyqdm"> |
| | | <Property/> |
| | | <Property></Property> |
| | | <Property name="label">设备仪器代码</Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="jdsj"> |
| | |
| | | <Property name="label">检定时间</Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="jddw"> |
| | | <Property/> |
| | | <Property></Property> |
| | | <Property name="label">检定单位</Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="jdjg"> |
| | | <Property></Property> |
| | | <Property name="label">检定结果</Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="remark"> |
| | | <Property></Property> |
| | | <Property name="label">备注</Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="zhgxsj"> |
| | | <Property name="dataType">Date</Property> |
| | | <Property name="dataType">DateTime</Property> |
| | | <Property name="label">最后更新时间</Property> |
| | | <Property name="readOnly">true</Property> |
| | | </PropertyDef> |
| | | </DataType> |
| | | </Model> |
| | | <View layout="regionPadding:10"> |
| | | <ClientEvent name="onReady">view.get("#dsParam").insert({});</ClientEvent> |
| | | <ClientEvent name="onReady">view.get("#dsParam").insert({});
 |
| | | view.get("#dsParamCheck").insert({});</ClientEvent> |
| | | <Property name="packages">font-awesome,css-common</Property> |
| | | <DataSet id="dsMain"> |
| | | <Property name="dataType">[dtMain]</Property> |
| | |
| | | <DataSet id="dsParam"> |
| | | <Property name="dataType">dtParam</Property> |
| | | </DataSet> |
| | | <DataSet id="dsParamCheck"> |
| | | <Property name="dataType">dtParam</Property> |
| | | </DataSet> |
| | | <DataSet id="dsCheck"> |
| | | <Property name="dataType">[dtCheck]</Property> |
| | | <Property name="dataProvider">deptDevicePR#pageCheck</Property> |
| | | <Property name="pageSize">15</Property> |
| | | </DataSet> |
| | | <Container layout="regionPadding:10" layoutConstraint="top"> |
| | | <Property name="exClassName">bg-color</Property> |
| | |
| | | </Button> |
| | | <Button layoutConstraint="right"> |
| | | <ClientEvent name="onClick">//显示记录
 |
| | | view.get("#iFrame").reload();
 |
| | | var entity = view.get("#dsMain.data:#");
 |
| | | var code = entity.get("sbbh");
 |
| | | view.get("#dsCheck").set("parameter",{code:code}).flushAsync();
 |
| | | view.get("#dialogCheck").show();</ClientEvent> |
| | | <Property name="caption">查看检修记录</Property> |
| | | <Property name="exClassName">btn-flush</Property> |
| | | <Property name="iconClass">fa fa-bars</Property> |
| | | <Property name="visible">false</Property> |
| | | <Property name="visible">true</Property> |
| | | </Button> |
| | | </Container> |
| | | <Container layout="regionPadding:10" layoutConstraint="center"> |
| | |
| | | <Property name="iconClass">fa fa-search</Property> |
| | | </Button> |
| | | <Button layoutConstraint="left"> |
| | | <ClientEvent name="onClick">view.get("#dsParam").flushAsync();</ClientEvent> |
| | | <ClientEvent name="onClick">view.get("#dsParam").flushAsync();
 |
| | | view.get("#dsParam").insert({});</ClientEvent> |
| | | <Property name="caption">重置</Property> |
| | | <Property name="iconClass">fa fa-refresh</Property> |
| | | <Property name="exClassName">btn-default</Property> |
| | |
| | | <RowNumColumn> |
| | | <Property name="caption">序号</Property> |
| | | </RowNumColumn> |
| | | <DataColumn name="dwdm"> |
| | | <Property name="property">dwdm</Property> |
| | | <Property name="align">center</Property> |
| | | <DataColumn name="sbbh"> |
| | | <Property name="property">sbbh</Property> |
| | | <Property name="readOnly">true</Property> |
| | | <Property name="align">center</Property> |
| | | </DataColumn> |
| | | <DataColumn name="kqmc"> |
| | | <Property name="property">kqmc</Property> |
| | | <Property name="align">center</Property> |
| | | <DataColumn name="deptId"> |
| | | <Property name="property">deptId</Property> |
| | | <Property name="readOnly">true</Property> |
| | | <Property name="align">center</Property> |
| | | </DataColumn> |
| | | <DataColumn name="sbyqmc"> |
| | | <Property name="property">sbyqmc</Property> |
| | | <Property name="align">center</Property> |
| | | <Property name="readOnly">true</Property> |
| | | </DataColumn> |
| | | <DataColumn name="sbyqdm"> |
| | | <Property name="property">sbyqdm</Property> |
| | | <Property name="align">center</Property> |
| | | <Property name="readOnly">true</Property> |
| | | </DataColumn> |
| | | <DataColumn name="sbggxh"> |
| | | <Property name="property">sbggxh</Property> |
| | | <Property name="align">center</Property> |
| | | <Property name="readOnly">true</Property> |
| | | </DataColumn> |
| | | <DataColumn name="sccj"> |
| | | <Property name="property">sccj</Property> |
| | | <Property name="align">center</Property> |
| | | <Property name="readOnly">true</Property> |
| | | </DataColumn> |
| | | <DataColumn name="scrq"> |
| | | <Property name="property">scrq</Property> |
| | | <Property name="align">center</Property> |
| | | <Property name="readOnly">true</Property> |
| | | </DataColumn> |
| | | <DataColumn name="sbms"> |
| | | <Property name="property">sbms</Property> |
| | | <Property name="align">center</Property> |
| | | <Property name="readOnly">true</Property> |
| | | </DataColumn> |
| | | <DataColumn name="sbzt"> |
| | | <Property name="property">sbzt</Property> |
| | | <Property name="align">center</Property> |
| | | <Property name="readOnly">true</Property> |
| | | <Property name="align">center</Property> |
| | | </DataColumn> |
| | | <DataColumn name="jdsj"> |
| | | <Property name="property">jdsj</Property> |
| | | <Property name="align">center</Property> |
| | | <Property name="readOnly">true</Property> |
| | | <Property name="align">center</Property> |
| | | </DataColumn> |
| | | <DataColumn name="jddw"> |
| | | <Property name="property">jddw</Property> |
| | | <Property name="align">center</Property> |
| | | <Property name="readOnly">true</Property> |
| | | <Property name="align">center</Property> |
| | | </DataColumn> |
| | | <DataColumn name="updateTime"> |
| | | <Property name="property">updateTime</Property> |
| | | <Property name="align">center</Property> |
| | | <Property name="readOnly">true</Property> |
| | | <Property name="align">center</Property> |
| | | </DataColumn> |
| | | </DataGrid> |
| | | </Container> |
| | |
| | | <Property name="labelSeparator">:</Property> |
| | | <Property name="labelWidth">150</Property> |
| | | <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">sbbh</Property> |
| | | <Property name="property">sbbh</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement> |
| | | <Property name="name">deptId</Property> |
| | | <Property name="property">deptId</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement> |
| | |
| | | </Children> |
| | | <Tools/> |
| | | </Dialog> |
| | | <Dialog id="dialogCheck" layout="regionPadding:10"> |
| | | <Property name="width">90%</Property> |
| | | <Property name="height">90%</Property> |
| | | <Property name="caption">设备检修记录</Property> |
| | | <Property name="closeable">false</Property> |
| | | <Property name="background">crey</Property> |
| | | <Buttons> |
| | | <Button layoutConstraint="center"> |
| | | <ClientEvent name="onClick">self.get("parent").hide();</ClientEvent> |
| | | <Property name="caption">关闭</Property> |
| | | <Property name="iconClass">fa fa-times</Property> |
| | | </Button> |
| | | </Buttons> |
| | | <Children> |
| | | <Container layout="regionPadding:10" layoutConstraint="top"> |
| | | <Property name="exClassName">bg-color</Property> |
| | | <AutoForm> |
| | | <Property name="dataSet">dsParamCheck</Property> |
| | | <Property name="cols">*,*,*,*</Property> |
| | | <Property name="labelAlign">right</Property> |
| | | <Property name="labelSeparator">:</Property> |
| | | <Property name="labelWidth">140</Property> |
| | | <Container layout="regionPadding:10"> |
| | | <Button layoutConstraint="left"> |
| | | <ClientEvent name="onClick">var data = view.get("#dsMain.data:#")
 |
| | | view.get("#dsCheck").insert({
 |
| | | sbbh:data.get("sbbh"),
 |
| | | kqdm:data.get("kqdm"),
 |
| | | kqmc:data.get("kqmc"),
 |
| | | sbyqmc:data.get("sbyqmc"),
 |
| | | sbyqdm:data.get("sbyqdm")
 |
| | | });
 |
| | | view.get("#addCheck").show();</ClientEvent> |
| | | <Property name="caption">新增</Property> |
| | | <Property name="exClassName">btn-normal</Property> |
| | | <Property name="iconClass">fa fa-plus</Property> |
| | | </Button> |
| | | <Button layoutConstraint="left"> |
| | | <ClientEvent name="onClick">var dialog= view.get("#addCheck");
 |
| | | dialog.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 cur = view.get("#dsCheck.data:#");
 |
| | | if(!cur) return;
 |
| | | view.get("#ajaxDelCheck").set("parameter",cur).execute(function(result){
 |
| | | if(result){
 |
| | | $alert(result);
 |
| | | return;
 |
| | | }else{
 |
| | | cur.remove();
 |
| | | }
 |
| | | });</ClientEvent> |
| | | <Property name="caption">删除</Property> |
| | | <Property name="exClassName">btn-warn</Property> |
| | | <Property name="iconClass">fa fa-trash-o</Property> |
| | | </Button> |
| | | </Container> |
| | | <AutoFormElement> |
| | | <Property name="name">start</Property> |
| | | <Property name="property">start</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement> |
| | | <Property name="name">end</Property> |
| | | <Property name="property">end</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <Container layout="regionPadding:10"> |
| | | <Button layoutConstraint="left"> |
| | | <ClientEvent name="onClick">var param = view.get("#dsParamCheck.data");
 |
| | | view.get("#dsCheck").set("parameter",param).flushAsync();</ClientEvent> |
| | | <Property name="caption">查询</Property> |
| | | <Property name="exClassName">btn-normal</Property> |
| | | <Property name="iconClass">fa fa-search</Property> |
| | | </Button> |
| | | <Button layoutConstraint="left"> |
| | | <ClientEvent name="onClick">view.get("#dsParamCheck").flushAsync();
 |
| | | view.get("#dsParamCheck").insert({});</ClientEvent> |
| | | <Property name="caption">重置</Property> |
| | | <Property name="iconClass">fa fa-refresh</Property> |
| | | <Property name="exClassName">btn-default</Property> |
| | | </Button> |
| | | </Container> |
| | | </AutoForm> |
| | | </Container> |
| | | <Container layout="regionPadding:10" layoutConstraint="center"> |
| | | <Property name="exClassName">bg-color</Property> |
| | | <DataGrid id="dgCheck"> |
| | | <ClientEvent name="onDataRowDoubleClick">var dialog= view.get("#addCheck");
 |
| | | dialog.show();</ClientEvent> |
| | | <Property name="dataSet">dsCheck</Property> |
| | | <Property name="readOnly">true</Property> |
| | | <RowNumColumn/> |
| | | <DataColumn name="sbbh"> |
| | | <Property name="property">sbbh</Property> |
| | | <Property name="align">center</Property> |
| | | </DataColumn> |
| | | <DataColumn name="kqdm"> |
| | | <Property name="property">kqdm</Property> |
| | | <Property name="align">center</Property> |
| | | <Property name="width">260</Property> |
| | | </DataColumn> |
| | | <DataColumn name="sbyqmc"> |
| | | <Property name="property">sbyqmc</Property> |
| | | <Property name="align">center</Property> |
| | | </DataColumn> |
| | | <DataColumn name="sbyqdm"> |
| | | <Property name="property">sbyqdm</Property> |
| | | <Property name="align">center</Property> |
| | | </DataColumn> |
| | | <DataColumn name="jdsj"> |
| | | <Property name="property">jdsj</Property> |
| | | <Property name="align">center</Property> |
| | | </DataColumn> |
| | | <DataColumn name="jddw"> |
| | | <Property name="property">jddw</Property> |
| | | <Property name="align">center</Property> |
| | | </DataColumn> |
| | | <DataColumn name="jdjg"> |
| | | <Property name="property">jdjg</Property> |
| | | <Property name="align">center</Property> |
| | | </DataColumn> |
| | | <DataColumn name="remark"> |
| | | <Property name="property">remark</Property> |
| | | <Property name="align">center</Property> |
| | | </DataColumn> |
| | | <DataColumn name="zhgxsj"> |
| | | <Property name="property">zhgxsj</Property> |
| | | <Property name="align">center</Property> |
| | | </DataColumn> |
| | | </DataGrid> |
| | | </Container> |
| | | <Container layout="regionPadding:10" layoutConstraint="bottom"> |
| | | <Property name="exClassName">bg-color</Property> |
| | | <DataPilot layoutConstraint="right"> |
| | | <Property name="dataSet">dsCheck</Property> |
| | | <Property name="itemCodes">pageSize,pages</Property> |
| | | </DataPilot> |
| | | </Container> |
| | | </Children> |
| | | <Tools/> |
| | | </Dialog> |
| | | <Dialog id="addCheck"> |
| | | <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">view.get("#ajaxSave").execute(function(result){
 |
| | | if(result){
 |
| | | $alert(result);
 |
| | | }else{
 |
| | | $notify("保存成功!!");
 |
| | | view.get("#addCheck").hide();
 |
| | | }
 |
| | | });</ClientEvent> |
| | | <Property name="caption">确定</Property> |
| | | <Property name="iconClass">fa fa-check</Property> |
| | | </Button> |
| | | <Button> |
| | | <ClientEvent name="onClick">view.get("#dsCheck.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">dsCheck</Property> |
| | | <Property name="cols">*,*</Property> |
| | | <Property name="labelAlign">right</Property> |
| | | <Property name="labelSeparator">:</Property> |
| | | <Property name="labelWidth">150</Property> |
| | | <AutoFormElement> |
| | | <Property name="name">sbbh</Property> |
| | | <Property name="property">sbbh</Property> |
| | | <Property name="readOnly">true</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement> |
| | | <Property name="name">kqdm</Property> |
| | | <Property name="property">kqdm</Property> |
| | | <Property name="readOnly">true</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement> |
| | | <Property name="name">sbyqmc</Property> |
| | | <Property name="property">sbyqmc</Property> |
| | | <Property name="readOnly">true</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement> |
| | | <Property name="name">sbyqdm</Property> |
| | | <Property name="property">sbyqdm</Property> |
| | | <Property name="readOnly">true</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement> |
| | | <Property name="name">jdsj</Property> |
| | | <Property name="property">jdsj</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement> |
| | | <Property name="name">jddw</Property> |
| | | <Property name="property">jddw</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement> |
| | | <Property name="name">zhgxsj</Property> |
| | | <Property name="property">zhgxsj</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement> |
| | | <Property name="name">jdjg</Property> |
| | | <Property name="property">jdjg</Property> |
| | | <Property name="trigger">listDropYN</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="uaSave"> |
| | | <Property name="dataResolver">deptDevicePR#saveDeptDevice</Property> |
| | | <UpdateItem> |
| | | <Property name="dataSet">dsMain</Property> |
| | | <Property name="dataPath">[#current]</Property> |
| | | <Property name="validateData">false</Property> |
| | | </UpdateItem> |
| | | </UpdateAction> |
| | | <UpdateAction id="ajaxSave"> |
| | | <Property name="dataResolver">deptDevicePR#saveCheck</Property> |
| | | <UpdateItem> |
| | | <Property name="dataSet">dsCheck</Property> |
| | | <Property name="dataPath">[#current]</Property> |
| | | <Property name="validateData">false</Property> |
| | | </UpdateItem> |
| | |
| | | <Property name="service">deptDevicePR#delCheck</Property> |
| | | <Property name="confirmMessage">确定要执行删除么?</Property> |
| | | </AjaxAction> |
| | | <Dialog id="dialogCheck"> |
| | | <Property name="width">90%</Property> |
| | | <Property name="height">90%</Property> |
| | | <Buttons> |
| | | <Button layoutConstraint="center"> |
| | | <ClientEvent name="onClick">self.get("parent").hide();</ClientEvent> |
| | | <Property name="caption">关闭</Property> |
| | | <Property name="iconClass">fa fa-times</Property> |
| | | </Button> |
| | | </Buttons> |
| | | <Children> |
| | | <Container> |
| | | <Button> |
| | | <ClientEvent name="onClick">view.get("#dsMain").insert();</ClientEvent> |
| | | <Property name="caption">新增</Property> |
| | | <Property name="exClassName">btn-normal</Property> |
| | | <Property name="iconClass">fa fa-plus</Property> |
| | | </Button> |
| | | <Button> |
| | | <ClientEvent name="onClick">var cur = view.get("#dsCheck.data:#");
 |
| | | if(!cur) return;
 |
| | | view.get("#ajaxDelCheck").set("parameter",cur).execute(function(result){
 |
| | | if(result){
 |
| | | $alert(result);
 |
| | | return;
 |
| | | }else{
 |
| | | cur.remove();
 |
| | | }
 |
| | | });</ClientEvent> |
| | | <Property name="caption">删除</Property> |
| | | <Property name="exClassName">btn-warn</Property> |
| | | <Property name="iconClass">fa fa-trash-o</Property> |
| | | </Button> |
| | | </Container> |
| | | <Container> |
| | | <DataGrid id="dgCheck"> |
| | | <Property name="dataSet">dsCheck</Property> |
| | | <Property name="readOnly">true</Property> |
| | | <DataColumn name="sbbh"> |
| | | <Property name="property">sbbh</Property> |
| | | </DataColumn> |
| | | <DataColumn name="kqdm"> |
| | | <Property name="property">kqdm</Property> |
| | | </DataColumn> |
| | | <DataColumn name="kqmc"> |
| | | <Property name="property">kqmc</Property> |
| | | </DataColumn> |
| | | <DataColumn name="dwdm"> |
| | | <Property name="property">dwdm</Property> |
| | | </DataColumn> |
| | | <DataColumn name="sbyqmc"> |
| | | <Property name="property">sbyqmc</Property> |
| | | </DataColumn> |
| | | <DataColumn name="sbyqdm"> |
| | | <Property name="property">sbyqdm</Property> |
| | | </DataColumn> |
| | | <DataColumn name="jdsj"> |
| | | <Property name="property">jdsj</Property> |
| | | </DataColumn> |
| | | <DataColumn name="jddw"> |
| | | <Property name="property">jddw</Property> |
| | | </DataColumn> |
| | | <DataColumn name="zhgxsj"> |
| | | <Property name="property">zhgxsj</Property> |
| | | </DataColumn> |
| | | </DataGrid> |
| | | </Container> |
| | | </Children> |
| | | <Tools/> |
| | | </Dialog> |
| | | <ListDropDown id="listDropYN"> |
| | | <Property name="items">合格,不合格</Property> |
| | | </ListDropDown> |
| | | </View> |
| | | </ViewConfig> |