| <?xml version="1.0" encoding="UTF-8"?> | 
| <ViewConfig> | 
|   <Arguments/> | 
|   <Context/> | 
|   <Model/> | 
|   <View layout="padding:5;regionPadding:5"> | 
|     <Property name="packages">font-awesome,css-common</Property> | 
|     <DataSet id="dsMain"> | 
|       <Property name="loadMode">lazy</Property> | 
|       <Property name="dataProvider">tempIntelPR#listIntelTask</Property> | 
|       <Property name="dataType">[dtTempIntelTask]</Property> | 
|     </DataSet> | 
|     <Container layout="regionPadding:10" layoutConstraint="top"> | 
|       <Property name="exClassName">bg-color</Property> | 
|       <Property name="contentOverflow">hidden</Property> | 
|       <Property name="height">55</Property> | 
|       <Label layoutConstraint="left"> | 
|         <Property name="text">菜单栏:</Property> | 
|       </Label> | 
|       <Button layoutConstraint="left"> | 
|         <ClientEvent name="onClick">view.get("#dsMain").insert();
 | 
| view.get("#dialogMain").show();</ClientEvent> | 
|         <Property name="caption">新增</Property> | 
|         <Property name="exClassName">btn-default</Property> | 
|         <Property name="iconClass">fa fa-plus</Property> | 
|       </Button> | 
|       <Button layoutConstraint="left"> | 
|         <ClientEvent name="onClick">var data = view.get("#dsMain.data:#");
 | 
| if(data){
 | 
|     view.get("#dialogMain").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 data = view.get("#dsMain.data:#");
 | 
| if(!data){
 | 
|     return;
 | 
| }
 | 
| view.get("#ajaxDel").set("parameter",data).execute(function(result){
 | 
|     if(result){
 | 
|         $alert(result);
 | 
|         return;
 | 
|     }else{
 | 
|         data.remove();
 | 
|     }
 | 
| });</ClientEvent> | 
|         <Property name="caption">删除</Property> | 
|         <Property name="exClassName">btn-warn</Property> | 
|         <Property name="iconClass">fa fa-minus</Property> | 
|       </Button> | 
|       <Button layoutConstraint="left"> | 
|         <ClientEvent name="onClick">var data = view.get("#dsMain.data:#");
 | 
| if(!data){
 | 
|     return;
 | 
| }
 | 
| view.get("#ajaxRun").set("parameter",data).execute(function(result){
 | 
|     if(result){
 | 
|         $alert(result);
 | 
|         return;
 | 
|     }else{
 | 
|         view.get("#dsMain").flushAsync();
 | 
|     }
 | 
| });</ClientEvent> | 
|         <Property name="caption">启动任务</Property> | 
|         <Property name="exClassName">btn-normal</Property> | 
|         <Property name="iconClass">fa fa-caret-square-o-right</Property> | 
|       </Button> | 
|       <Button layoutConstraint="left"> | 
|         <ClientEvent name="onClick">var data = view.get("#dsMain.data:#");
 | 
| if(!data){
 | 
|     return;
 | 
| }
 | 
| view.get("#ajaxStop").set("parameter",data).execute(function(result){
 | 
|     if(result){
 | 
|         $alert(result);
 | 
|         return;
 | 
|     }else{
 | 
|         view.get("#dsMain").flushAsync();
 | 
|     }
 | 
| });</ClientEvent> | 
|         <Property name="caption">任务停止</Property> | 
|         <Property name="exClassName">btn-warn</Property> | 
|         <Property name="iconClass">fa fa-power-off</Property> | 
|       </Button> | 
|       <Button layoutConstraint="left"> | 
|         <ClientEvent name="onClick">view.get("#dsMain").flushAsync();
 | 
| </ClientEvent> | 
|         <Property name="caption">刷新</Property> | 
|         <Property name="exClassName">btn-default</Property> | 
|         <Property name="iconClass">fa fa-refresh</Property> | 
|       </Button> | 
|     </Container> | 
|     <Container layout="regionPadding:10" layoutConstraint="center"> | 
|       <Property name="exClassName">bg-color</Property> | 
|       <DataGrid layoutConstraint="center padding:5px"> | 
|         <ClientEvent name="onDataRowDoubleClick">var data = view.get("#dsMain.data:#");
 | 
| if(data){
 | 
|     view.get("#dialogMain").show();
 | 
| }</ClientEvent> | 
|         <Property name="dataSet">dsMain</Property> | 
|         <Property name="readOnly">true</Property> | 
|         <RowNumColumn/> | 
|         <DataColumn name="depotId"> | 
|           <Property name="property">depotId</Property> | 
|           <Property name="align">center</Property> | 
|           <Property name="readOnly">true</Property> | 
|         </DataColumn> | 
|         <DataColumn> | 
|           <Property name="property">intelId</Property> | 
|           <Property name="name">intelId</Property> | 
|           <Property name="align">center</Property> | 
|           <Property name="readOnly">true</Property> | 
|         </DataColumn> | 
|         <DataColumn name="start"> | 
|           <Property name="property">start</Property> | 
|           <Property name="align">center</Property> | 
|           <Property name="readOnly">true</Property> | 
|         </DataColumn> | 
|         <DataColumn name="end"> | 
|           <Property name="property">end</Property> | 
|           <Property name="align">center</Property> | 
|           <Property name="readOnly">true</Property> | 
|         </DataColumn> | 
|         <DataColumn name="status"> | 
|           <Property name="property">status</Property> | 
|           <Property name="align">center</Property> | 
|           <Property name="readOnly">true</Property> | 
|         </DataColumn> | 
|         <DataColumn name="updateTime"> | 
|           <Property name="property">updateTime</Property> | 
|           <Property name="align">center</Property> | 
|         </DataColumn> | 
|         <DataColumn name="updateUser"> | 
|           <Property name="property">updateUser</Property> | 
|           <Property name="align">center</Property> | 
|         </DataColumn> | 
|       </DataGrid> | 
|     </Container> | 
|     <Dialog id="dialogMain" layout="padding:5;regionPadding:10"> | 
|       <Property name="height">350</Property> | 
|       <Property name="width">800</Property> | 
|       <Property name="caption">智能通风任务信息</Property> | 
|       <Property name="iconClass">fa fa-flag-o</Property> | 
|       <Property name="closeable">false</Property> | 
|       <Buttons> | 
|         <Button> | 
|           <ClientEvent name="onClick">var data = view.get("#dsMain.data:#");
 | 
| if(data.validate() != 'ok'){
 | 
|     $notify("数据校验失败!!");
 | 
|     return;
 | 
| }
 | 
| view.get("#uaAction").set("parameter",data).execute(function(){
 | 
|     self.get("parent").hide();
 | 
| });</ClientEvent> | 
|           <Property name="caption">确认</Property> | 
|           <Property name="iconClass">fa fa-check-circle</Property> | 
|           <Property name="width">90</Property> | 
|         </Button> | 
|         <Button> | 
|           <ClientEvent name="onClick">view.get("#dsMain.data:#").cancel();
 | 
| 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">dsMain</Property> | 
|           <Property name="cols">*,*</Property> | 
|           <Property name="labelWidth">100</Property> | 
|           <Property name="labelAlign">right</Property> | 
|           <Property name="labelSeparator">:</Property> | 
|           <AutoFormElement> | 
|             <Property name="name">depotId</Property> | 
|             <Property name="property">depotId</Property> | 
|             <Editor/> | 
|           </AutoFormElement> | 
|           <AutoFormElement> | 
|             <Property name="name">target</Property> | 
|             <Property name="property">target</Property> | 
|             <Editor/> | 
|           </AutoFormElement> | 
|           <AutoFormElement> | 
|             <Property name="name">intelId</Property> | 
|             <Property name="property">intelId</Property> | 
|             <Property name="trigger">autoMappingDropDown2</Property> | 
|             <Editor/> | 
|           </AutoFormElement> | 
|           <AutoFormElement> | 
|             <Property name="name">status</Property> | 
|             <Property name="property">status</Property> | 
|             <Property name="readOnly">true</Property> | 
|             <Editor/> | 
|           </AutoFormElement> | 
|           <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> | 
|           <AutoFormElement> | 
|             <Property name="name">updateTime</Property> | 
|             <Property name="property">updateTime</Property> | 
|             <Property name="readOnly">true</Property> | 
|             <Editor/> | 
|           </AutoFormElement> | 
|           <AutoFormElement> | 
|             <Property name="name">updateUser</Property> | 
|             <Property name="property">updateUser</Property> | 
|             <Property name="readOnly">true</Property> | 
|             <Editor/> | 
|           </AutoFormElement> | 
|           <Label layoutConstraint="colSpan:2"> | 
|             <Property name="text">说明:由于每个仓库的动作和执行设备有所区别,因此在任务绑定方案后需要根据当前仓库配置动作!</Property> | 
|             <Property name="style"> | 
|               <Property name="color">blue</Property> | 
|             </Property> | 
|           </Label> | 
|         </AutoForm> | 
|       </Children> | 
|       <Tools/> | 
|     </Dialog> | 
|     <UpdateAction id="uaAction"> | 
|       <Property name="dataResolver">tempIntelPR#saveIntelTask</Property> | 
|       <UpdateItem> | 
|         <Property name="dataSet">dsMain</Property> | 
|         <Property name="dataPath">[#current]</Property> | 
|       </UpdateItem> | 
|     </UpdateAction> | 
|     <AjaxAction id="ajaxDel"> | 
|       <Property name="confirmMessage">确定要删除吗?</Property> | 
|       <Property name="service">tempIntelPR#delIntelTask</Property> | 
|     </AjaxAction> | 
|     <AjaxAction id="ajaxRun"> | 
|       <Property name="confirmMessage">确定要启动当前任务么?</Property> | 
|       <Property name="service">tempIntelPR#taskRun</Property> | 
|     </AjaxAction> | 
|     <AjaxAction id="ajaxStop"> | 
|       <Property name="confirmMessage">确定要停止当前任务么?</Property> | 
|       <Property name="service">tempIntelPR#taskStop</Property> | 
|     </AjaxAction> | 
|   </View> | 
| </ViewConfig> |