| | |
| | | </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> |
| | |
| | | <Property name="pageSize">15</Property> |
| | | </DataSet> |
| | | <DataSet id="dsParam"> |
| | | <Property name="dataType">dtParam</Property> |
| | | </DataSet> |
| | | <DataSet id="dsParamCheck"> |
| | | <Property name="dataType">dtParam</Property> |
| | | </DataSet> |
| | | <DataSet id="dsCheck"> |
| | |
| | | <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> |
| | |
| | | <Children> |
| | | <Container layout="regionPadding:10" layoutConstraint="top"> |
| | | <Property name="exClassName">bg-color</Property> |
| | | <Button layoutConstraint="left"> |
| | | <ClientEvent name="onClick">var data = view.get("#dsMain.data:#")
 |
| | | <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"),
 |
| | |
| | | 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");
 |
| | | <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:#");
 |
| | | <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){
 |
| | |
| | | cur.remove();
 |
| | | }
 |
| | | });</ClientEvent> |
| | | <Property name="caption">删除</Property> |
| | | <Property name="exClassName">btn-warn</Property> |
| | | <Property name="iconClass">fa fa-trash-o</Property> |
| | | </Button> |
| | | <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();</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> |