| | |
| | | <Property name="label">检验结论</Property> |
| | | </PropertyDef> |
| | | </DataType> |
| | | <DataType name="dtTest"> |
| | | <Property name="creationType">com.fzzy.api.data.ApiParam</Property> |
| | | <PropertyDef name="start"> |
| | | <Property name="dataType">DateTime</Property> |
| | | <Property name="label">开始时间</Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="end"> |
| | | <Property name="dataType">DateTime</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">whjlShareApi2013PR2#listData</Property> |
| | | </DataSet> |
| | | <DataSet id="dsTest"> |
| | | <ClientEvent name="onReady">self.insert({});</ClientEvent> |
| | | <Property name="dataType">dtTest</Property> |
| | | </DataSet> |
| | | <Container layout="regionPadding:10" layoutConstraint="top"> |
| | | <Property name="exClassName">bg-color</Property> |
| | |
| | | <Property name="exClassName">btn-flush</Property> |
| | | </Button> |
| | | <Button layoutConstraint="left"> |
| | | <ClientEvent name="onClick">var select = view.get("#dgMain").get("selection");
 |
| | | view.get("#ajaxPull").set("parameter",select).execute(function(result){
 |
| | | view.get("#dsMain").flushAsync();
 |
| | | $notify(result);
 |
| | | });
 |
| | | </ClientEvent> |
| | | <Property name="caption">手动更新</Property> |
| | | <ClientEvent name="onClick">view.get("#testWarn").show()</ClientEvent> |
| | | <Property name="caption">手动拉取</Property> |
| | | <Property name="iconClass">fa fa-hand-o-up</Property> |
| | | <Property name="exClassName">btn-default</Property> |
| | | </Button> |
| | |
| | | <Property name="exClassName">btn-flush</Property> |
| | | </Button> |
| | | <Button layoutConstraint="left"> |
| | | <ClientEvent name="onClick">
 |
| | | var select = view.get("#dgMain").get("selection");
 |
| | | view.get("#ajaxsysDataToDept").execute(function(result){
 |
| | | view.get("#dsMain").flushAsync();
 |
| | | $notify(result);
 |
| | | });</ClientEvent> |
| | | <ClientEvent name="onClick">view.get("#testWarn2").show()</ClientEvent> |
| | | <Property name="caption">同步至库区</Property> |
| | | <Property name="iconClass">fa fa-hand-o-up</Property> |
| | | <Property name="exClassName">btn-default</Property> |
| | |
| | | </Children> |
| | | <Tools/> |
| | | </Dialog> |
| | | <Dialog id="testWarn" layout="padding:10;regionPadding:10"> |
| | | <Property name="width">40%</Property> |
| | | <Property name="iconClass">fa fa-flag-o</Property> |
| | | <Property name="closeable">false</Property> |
| | | <Property name="caption">起止时间</Property> |
| | | <Buttons> |
| | | <Button id="btnOk"> |
| | | <ClientEvent name="onClick"> |
| | | var data = view.get("#dsTest.data");
 |
| | | view.get("#ajaxPull").set("parameter",data).execute(function(result){
 |
| | | self.get("parent").hide();
 |
| | | view.get("#dsMain").flushAsync();
 |
| | | $notify(result);
 |
| | | });
</ClientEvent> |
| | | <Property name="caption">确定拉取</Property> |
| | | <Property name="iconClass">fa fa-check</Property> |
| | | </Button> |
| | | <Button> |
| | | <ClientEvent name="onClick">self.get("parent").hide();</ClientEvent> |
| | | <Property name="caption">取消</Property> |
| | | <Property name="iconClass">fa fa-times-circle</Property> |
| | | <Property name="width">90</Property> |
| | | </Button> |
| | | </Buttons> |
| | | <Children> |
| | | <AutoForm> |
| | | <Property name="dataSet">dsTest</Property> |
| | | <Property name="cols">*</Property> |
| | | <Property name="labelWidth">110</Property> |
| | | <Property name="labelAlign">right</Property> |
| | | <Property name="labelSeparator">:</Property> |
| | | <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> |
| | | <Label layoutConstraint="colSpan:2"> |
| | | <Property name="text">说明:必须填写起止时间!</Property> |
| | | </Label> |
| | | </AutoForm> |
| | | </Children> |
| | | <Tools/> |
| | | </Dialog> |
| | | <Dialog id="testWarn2" layout="padding:10;regionPadding:10"> |
| | | <Property name="width">40%</Property> |
| | | <Property name="iconClass">fa fa-flag-o</Property> |
| | | <Property name="closeable">false</Property> |
| | | <Property name="caption">起止时间</Property> |
| | | <Buttons> |
| | | <Button id="btnOk2"> |
| | | <ClientEvent name="onClick"> |
| | | var data = view.get("#dsTest.data");
 |
| | | view.get("#ajaxsysDataToDept").set("parameter",data).execute(function(result){
 |
| | | self.get("parent").hide();
 |
| | | $notify(result);
 |
| | | });
</ClientEvent> |
| | | <Property name="caption">确定推送</Property> |
| | | <Property name="iconClass">fa fa-check</Property> |
| | | </Button> |
| | | <Button> |
| | | <ClientEvent name="onClick">self.get("parent").hide();</ClientEvent> |
| | | <Property name="caption">取消</Property> |
| | | <Property name="iconClass">fa fa-times-circle</Property> |
| | | <Property name="width">90</Property> |
| | | </Button> |
| | | </Buttons> |
| | | <Children> |
| | | <AutoForm> |
| | | <Property name="dataSet">dsTest</Property> |
| | | <Property name="cols">*</Property> |
| | | <Property name="labelWidth">110</Property> |
| | | <Property name="labelAlign">right</Property> |
| | | <Property name="labelSeparator">:</Property> |
| | | <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> |
| | | <Label layoutConstraint="colSpan:2"> |
| | | <Property name="text">说明:必须填写起止时间!</Property> |
| | | </Label> |
| | | </AutoForm> |
| | | </Children> |
| | | <Tools/> |
| | | </Dialog> |
| | | <ListDropDown id="listDropYN"> |
| | | <Property name="items">是,否</Property> |
| | | </ListDropDown> |