| <?xml version="1.0" encoding="UTF-8"?> | 
| <ViewConfig> | 
|   <Arguments/> | 
|   <Context/> | 
|   <Model> | 
|     <DataType name="dtMain"> | 
|       <Property name="creationType">com.ld.igds.models.DicSysConf</Property> | 
|       <PropertyDef name="id"> | 
|         <Property></Property> | 
|         <Property name="label">编号</Property> | 
|       </PropertyDef> | 
|       <PropertyDef name="companyId"> | 
|         <Property></Property> | 
|         <Property name="label">组织编码</Property> | 
|       </PropertyDef> | 
|       <PropertyDef name="grainAuto"> | 
|         <Property></Property> | 
|         <Property name="label">粮情批次自动优化</Property> | 
|         <Property name="mapping"> | 
|           <Property name="mapValues"> | 
|             <Collection> | 
|               <Entity> | 
|                 <Property name="code">N</Property> | 
|                 <Property name="name">关闭</Property> | 
|               </Entity> | 
|               <Entity> | 
|                 <Property name="code">Y</Property> | 
|                 <Property name="name">开启</Property> | 
|               </Entity> | 
|             </Collection> | 
|           </Property> | 
|           <Property name="keyProperty">code</Property> | 
|           <Property name="valueProperty">name</Property> | 
|         </Property> | 
|       </PropertyDef> | 
|       <PropertyDef name="grainErrorAuto"> | 
|         <Property></Property> | 
|         <Property name="label">粮情异常自动处理</Property> | 
|         <Property name="mapping"> | 
|           <Property name="mapValues"> | 
|             <Collection> | 
|               <Entity> | 
|                 <Property name="code">N</Property> | 
|                 <Property name="name">关闭</Property> | 
|               </Entity> | 
|               <Entity> | 
|                 <Property name="code">Y</Property> | 
|                 <Property name="name">开启</Property> | 
|               </Entity> | 
|             </Collection> | 
|           </Property> | 
|           <Property name="keyProperty">code</Property> | 
|           <Property name="valueProperty">name</Property> | 
|         </Property> | 
|         <Property name="required">true</Property> | 
|       </PropertyDef> | 
|       <PropertyDef name="grainMaxAuto"> | 
|         <Property></Property> | 
|         <Property name="label">粮情高温优化</Property> | 
|         <Property name="mapping"> | 
|           <Property name="mapValues"> | 
|             <Collection> | 
|               <Entity> | 
|                 <Property name="code">N</Property> | 
|                 <Property name="name">关闭</Property> | 
|               </Entity> | 
|               <Entity> | 
|                 <Property name="code">Y</Property> | 
|                 <Property name="name">开启</Property> | 
|               </Entity> | 
|             </Collection> | 
|           </Property> | 
|           <Property name="keyProperty">code</Property> | 
|           <Property name="valueProperty">name</Property> | 
|         </Property> | 
|         <Property name="required">true</Property> | 
|       </PropertyDef> | 
|       <PropertyDef name="grainMoreTag"> | 
|         <Property></Property> | 
|         <Property name="label">一分机多仓</Property> | 
|         <Property name="mapping"> | 
|           <Property name="mapValues"> | 
|             <Collection> | 
|               <Entity> | 
|                 <Property name="code">N</Property> | 
|                 <Property name="name">关闭</Property> | 
|               </Entity> | 
|               <Entity> | 
|                 <Property name="code">Y</Property> | 
|                 <Property name="name">开启</Property> | 
|               </Entity> | 
|             </Collection> | 
|           </Property> | 
|           <Property name="keyProperty">code</Property> | 
|           <Property name="valueProperty">name</Property> | 
|         </Property> | 
|         <Property name="required">true</Property> | 
|       </PropertyDef> | 
|       <PropertyDef name="grainOffset"> | 
|         <Property name="dataType">Double</Property> | 
|         <Property name="label">偏移量</Property> | 
|       </PropertyDef> | 
|       <PropertyDef name="warnToWxTag"> | 
|         <Property></Property> | 
|         <Property name="label">警告推送微信启用</Property> | 
|         <Property name="mapping"> | 
|           <Property name="mapValues"> | 
|             <Collection> | 
|               <Entity> | 
|                 <Property name="code">N</Property> | 
|                 <Property name="name">关闭</Property> | 
|               </Entity> | 
|               <Entity> | 
|                 <Property name="code">Y</Property> | 
|                 <Property name="name">开启</Property> | 
|               </Entity> | 
|             </Collection> | 
|           </Property> | 
|           <Property name="keyProperty">code</Property> | 
|           <Property name="valueProperty">name</Property> | 
|         </Property> | 
|         <Property name="required">true</Property> | 
|       </PropertyDef> | 
|       <PropertyDef name="intervalTime"> | 
|         <Property name="dataType">int</Property> | 
|         <Property name="label">执行间隔时间</Property> | 
|         <Property name="displayFormat">0.0 秒</Property> | 
|         <Property name="required">true</Property> | 
|       </PropertyDef> | 
|       <PropertyDef name="intervalGas"> | 
|         <Property name="dataType">int</Property> | 
|         <Property name="label">气体检测间隔</Property> | 
|         <Property name="displayFormat">0.0 秒</Property> | 
|         <Property name="required">true</Property> | 
|       </PropertyDef> | 
|       <PropertyDef name="intervalPest"> | 
|         <Property name="dataType">int</Property> | 
|         <Property name="label">虫害检测间隔</Property> | 
|         <Property name="displayFormat">0.0 秒</Property> | 
|         <Property name="required">true</Property> | 
|       </PropertyDef> | 
|       <PropertyDef name="grainAddPoint"> | 
|         <Property></Property> | 
|         <Property name="label">粮情点走势开启</Property> | 
|         <Property name="mapping"> | 
|           <Property name="mapValues"> | 
|             <Collection> | 
|               <Entity> | 
|                 <Property name="code">N</Property> | 
|                 <Property name="name">关闭</Property> | 
|               </Entity> | 
|               <Entity> | 
|                 <Property name="code">Y</Property> | 
|                 <Property name="name">开启</Property> | 
|               </Entity> | 
|             </Collection> | 
|           </Property> | 
|           <Property name="keyProperty">code</Property> | 
|           <Property name="valueProperty">name</Property> | 
|         </Property> | 
|         <Property name="required">true</Property> | 
|       </PropertyDef> | 
|       <PropertyDef name="quantityPath"> | 
|         <Property></Property> | 
|         <Property name="label">数量检测服务地址</Property> | 
|       </PropertyDef> | 
|       <PropertyDef name="sysName"> | 
|         <Property></Property> | 
|         <Property name="label">系统名称</Property> | 
|         <Property name="required">true</Property> | 
|         <Validator name="validator1" type="length"> | 
|           <Property name="maxLength">8</Property> | 
|           <Property name="minLength">1</Property> | 
|           <Property name="resultMessage">长度要求1-8个汉字</Property> | 
|         </Validator> | 
|       </PropertyDef> | 
|       <PropertyDef name="threePath"> | 
|         <Property></Property> | 
|         <Property name="label">三维可视化路径</Property> | 
|       </PropertyDef> | 
|       <PropertyDef name="screeName"> | 
|         <Property></Property> | 
|         <Property name="label">大屏名称</Property> | 
|         <Property name="required">true</Property> | 
|         <Validator name="validator1" type="length"> | 
|           <Property name="maxLength">20</Property> | 
|           <Property name="minLength">1</Property> | 
|           <Property name="resultMessage">长度要求1-14个汉字</Property> | 
|         </Validator> | 
|       </PropertyDef> | 
|       <PropertyDef name="support"> | 
|         <Property></Property> | 
|         <Property name="label">技术支持</Property> | 
|         <Property name="required">true</Property> | 
|         <Validator name="validator1" type="length"> | 
|           <Property name="maxLength">25</Property> | 
|           <Property name="minLength">1</Property> | 
|           <Property name="resultMessage">长度要求1-25个汉字</Property> | 
|         </Validator> | 
|       </PropertyDef> | 
|       <PropertyDef name="email"> | 
|         <Property></Property> | 
|         <Property name="label">公司邮箱</Property> | 
|       </PropertyDef> | 
|       <PropertyDef name="phone"> | 
|         <Property></Property> | 
|         <Property name="label">公司电话</Property> | 
|       </PropertyDef> | 
|       <PropertyDef name="website"> | 
|         <Property></Property> | 
|         <Property name="label">公司网站</Property> | 
|       </PropertyDef> | 
|       <PropertyDef name="address"> | 
|         <Property></Property> | 
|         <Property name="label">公司地址</Property> | 
|       </PropertyDef> | 
|     </DataType> | 
|   </Model> | 
|   <View layout="padding:5;regionPadding:5"> | 
|     <ClientEvent name="onReady">view.get("#dialogPwd").show();</ClientEvent> | 
|     <Property name="packages">font-awesome,css-common</Property> | 
|     <DataSet id="dsMain"> | 
|       <Property name="dataProvider">sysConPR#getData</Property> | 
|       <Property name="dataType">dtMain</Property> | 
|     </DataSet> | 
|     <Container layout="regionPadding:10" layoutConstraint="top"> | 
|       <Property name="exClassName">bg-color</Property> | 
|       <Property name="height">55</Property> | 
|       <Property name="contentOverflow">hidden</Property> | 
|       <Label layoutConstraint="left"> | 
|         <Property name="text">菜单栏:</Property> | 
|       </Label> | 
|       <Button id="btnUpdate" layoutConstraint="left"> | 
|         <Property name="caption">确认修改</Property> | 
|         <Property name="exClassName">btn-normal</Property> | 
|         <Property name="iconClass">fa fa-check</Property> | 
|         <Property name="action">updateData</Property> | 
|       </Button> | 
|       <Button layoutConstraint="left"> | 
|         <Property name="caption">刷新缓存</Property> | 
|         <Property name="exClassName">btn-flush</Property> | 
|         <Property name="iconClass">fa fa-refresh</Property> | 
|         <Property name="action">ajaxRefreshCache</Property> | 
|       </Button> | 
|       <Button layoutConstraint="left"> | 
|         <ClientEvent name="onClick">window.location.reload();</ClientEvent> | 
|         <Property name="caption">重新验证</Property> | 
|         <Property name="exClassName">btn-warn</Property> | 
|         <Property name="iconClass">fa fa-key</Property> | 
|       </Button> | 
|       <Button layoutConstraint="left"> | 
|         <Property name="caption">刷新所有缓存</Property> | 
|         <Property name="exClassName">btn-flush</Property> | 
|         <Property name="iconClass">fa fa-refresh</Property> | 
|         <Property name="action">ajaxRefreshCacheALL</Property> | 
|       </Button> | 
|     </Container> | 
|     <Panel> | 
|       <Property name="caption">高级系统参数配置</Property> | 
|       <Property name="iconClass">fa fa-cog</Property> | 
|       <Property name="tags">tagShow</Property> | 
|       <Property name="visible">false</Property> | 
|       <Buttons/> | 
|       <Children> | 
|         <AutoForm> | 
|           <Property name="dataSet">dsMain</Property> | 
|           <Property name="labelAlign">right</Property> | 
|           <Property name="labelSeparator">:</Property> | 
|           <Property name="labelWidth">140</Property> | 
|           <Property name="cols">*,*,*,*</Property> | 
|           <Control/> | 
|           <AutoFormElement> | 
|             <Property name="name">grainAuto</Property> | 
|             <Property name="property">grainAuto</Property> | 
|             <Property name="hideMode">display</Property> | 
|             <Property name="visible">false</Property> | 
|             <Editor/> | 
|           </AutoFormElement> | 
|           <Label layoutConstraint="colSpan:2"> | 
|             <Property name="text">说明:开启后,粮情批次根据上一个批次自动优化</Property> | 
|             <Property name="hideMode">display</Property> | 
|             <Property name="visible">false</Property> | 
|           </Label> | 
|           <Control> | 
|             <Property name="hideMode">display</Property> | 
|             <Property name="visible">false</Property> | 
|           </Control> | 
|           <AutoFormElement> | 
|             <Property name="name">grainErrorAuto</Property> | 
|             <Property name="property">grainErrorAuto</Property> | 
|             <Editor/> | 
|           </AutoFormElement> | 
|           <Label layoutConstraint="colSpan:2"> | 
|             <Property name="text">说明:开启后,粮情异常点自动优化</Property> | 
|           </Label> | 
|           <Control/> | 
|           <AutoFormElement> | 
|             <Property name="name">grainMaxAuto</Property> | 
|             <Property name="property">grainMaxAuto</Property> | 
|             <Editor/> | 
|           </AutoFormElement> | 
|           <Label layoutConstraint="colSpan:2"> | 
|             <Property name="text">说明:开启后,粮情高温点自动优化调整</Property> | 
|           </Label> | 
|           <Control/> | 
|           <AutoFormElement> | 
|             <Property name="name">grainMoreTag</Property> | 
|             <Property name="property">grainMoreTag</Property> | 
|             <Editor/> | 
|           </AutoFormElement> | 
|           <Label layoutConstraint="colSpan:2"> | 
|             <Property name="text">说明:一分机多仓需要开启</Property> | 
|           </Label> | 
|           <Control/> | 
|           <AutoFormElement> | 
|             <Property name="name">intervalTime</Property> | 
|             <Property name="property">intervalTime</Property> | 
|             <Editor/> | 
|           </AutoFormElement> | 
|           <Label layoutConstraint="colSpan:2"> | 
|             <Property name="text">说明:网络模式=【无线】有效</Property> | 
|           </Label> | 
|           <Control/> | 
|           <AutoFormElement> | 
|             <Property name="name">intervalGas</Property> | 
|             <Property name="property">intervalGas</Property> | 
|             <Editor/> | 
|           </AutoFormElement> | 
|           <Label layoutConstraint="colSpan:2"/> | 
|           <Control/> | 
|           <AutoFormElement> | 
|             <Property name="name">intervalPest</Property> | 
|             <Property name="property">intervalPest</Property> | 
|             <Editor/> | 
|           </AutoFormElement> | 
|           <Label layoutConstraint="colSpan:2"/> | 
|           <Control/> | 
|           <AutoFormElement> | 
|             <Property name="name">warnToWxTag</Property> | 
|             <Property name="property">warnToWxTag</Property> | 
|             <Editor/> | 
|           </AutoFormElement> | 
|           <Label layoutConstraint="colSpan:2"> | 
|             <Property name="text">说明:开启微信警告通知功能</Property> | 
|           </Label> | 
|           <Control/> | 
|           <AutoFormElement> | 
|             <Property name="name">grainAddPoint</Property> | 
|             <Property name="property">grainAddPoint</Property> | 
|             <Editor/> | 
|           </AutoFormElement> | 
|           <Label layoutConstraint="colSpan:2"> | 
|             <Property name="text">说明:开启后支持粮情点走势查看</Property> | 
|           </Label> | 
|         </AutoForm> | 
|       </Children> | 
|       <Tools/> | 
|     </Panel> | 
|     <Panel> | 
|       <Property name="caption">系统运维参数配置</Property> | 
|       <Property name="iconClass">fa fa-cog</Property> | 
|       <Property name="tags">tagShow</Property> | 
|       <Property name="visible">false</Property> | 
|       <Buttons/> | 
|       <Children> | 
|         <AutoForm> | 
|           <Property name="dataSet">dsMain</Property> | 
|           <Property name="labelAlign">right</Property> | 
|           <Property name="labelSeparator">:</Property> | 
|           <Property name="labelWidth">140</Property> | 
|           <Property name="cols">*,*,*,*</Property> | 
|           <Control/> | 
|           <AutoFormElement> | 
|             <Property name="name">sysName</Property> | 
|             <Property name="property">sysName</Property> | 
|             <Editor/> | 
|           </AutoFormElement> | 
|           <Label layoutConstraint="colSpan:2"> | 
|             <Property name="text">说明:系统菜单上面名称,如果配置为:SUB_NAME 表示当前所属分库名称</Property> | 
|           </Label> | 
|           <Control/> | 
|           <AutoFormElement> | 
|             <Property name="name">screeName</Property> | 
|             <Property name="property">screeName</Property> | 
|             <Editor/> | 
|           </AutoFormElement> | 
|           <Label layoutConstraint="colSpan:2"> | 
|             <Property name="text">说明:大屏名称,如果配置为:SUB_NAME智慧粮库综合大屏,表示:XX粮库智慧粮库综合大屏</Property> | 
|           </Label> | 
|           <Control/> | 
|           <AutoFormElement> | 
|             <Property name="name">support</Property> | 
|             <Property name="property">support</Property> | 
|             <Editor/> | 
|           </AutoFormElement> | 
|           <AutoFormElement> | 
|             <Property name="name">website</Property> | 
|             <Property name="property">website</Property> | 
|             <Editor> | 
|               <TextEditor> | 
|                 <Property name="blankText"> -- 必须以 http:// 开头--</Property> | 
|               </TextEditor> | 
|             </Editor> | 
|           </AutoFormElement> | 
|           <Control/> | 
|           <Control/> | 
|           <AutoFormElement> | 
|             <Property name="name">phone</Property> | 
|             <Property name="property">phone</Property> | 
|             <Editor/> | 
|           </AutoFormElement> | 
|           <AutoFormElement> | 
|             <Property name="name">email</Property> | 
|             <Property name="property">email</Property> | 
|             <Editor/> | 
|           </AutoFormElement> | 
|           <Control/> | 
|           <Control/> | 
|           <AutoFormElement layoutConstraint="colSpan:2"> | 
|             <Property name="name">address</Property> | 
|             <Property name="property">address</Property> | 
|             <Editor/> | 
|           </AutoFormElement> | 
|           <Control/> | 
|           <Control/> | 
|           <AutoFormElement> | 
|             <Property name="name">quantityPath</Property> | 
|             <Property name="property">quantityPath</Property> | 
|             <Editor> | 
|               <TextEditor> | 
|                 <Property name="blankText"> -- 必须以 http:// 开头--</Property> | 
|               </TextEditor> | 
|             </Editor> | 
|           </AutoFormElement> | 
|           <Label layoutConstraint="colSpan:2"> | 
|             <Property name="text">说明:数量在线检测独立服务地址</Property> | 
|           </Label> | 
|           <Control/> | 
|           <AutoFormElement> | 
|             <Property name="name">threePath</Property> | 
|             <Property name="property">threePath</Property> | 
|             <Editor> | 
|               <TextEditor> | 
|                 <Property name="blankText"> -- 必须以 http:// 开头--</Property> | 
|               </TextEditor> | 
|             </Editor> | 
|           </AutoFormElement> | 
|           <Label layoutConstraint="colSpan:2"> | 
|             <Property name="text">说明:三维可视化独立服务地址</Property> | 
|           </Label> | 
|         </AutoForm> | 
|       </Children> | 
|       <Tools/> | 
|     </Panel> | 
|     <AjaxAction id="ajaxRefreshCache"> | 
|       <Property name="service">sysConPR#flushCacheSysConf</Property> | 
|       <Property name="successMessage">刷新成功!</Property> | 
|       <Property name="confirmMessage">确定要刷新缓存么?</Property> | 
|     </AjaxAction> | 
|     <AjaxAction id="ajaxCheckPwd"> | 
|       <Property name="service">systemPR#checkUserByPwd</Property> | 
|     </AjaxAction> | 
|     <UpdateAction id="updateData"> | 
|       <Property name="dataResolver">sysConPR#updateSysData</Property> | 
|       <Property name="confirmMessage">确定要执行更新么?</Property> | 
|       <Property name="successMessage">数据更新完成!!!</Property> | 
|       <UpdateItem> | 
|         <Property name="dataSet">dsMain</Property> | 
|         <Property name="dataPath">[#current]</Property> | 
|       </UpdateItem> | 
|     </UpdateAction> | 
|     <AjaxAction id="ajaxRefreshCacheALL"> | 
|       <Property name="service">systemRunner#flushAllCache</Property> | 
|       <Property name="successMessage">刷新成功!</Property> | 
|       <Property name="confirmMessage">确定要刷新所有缓存么?</Property> | 
|     </AjaxAction> | 
|     <Dialog id="dialogPwd"> | 
|       <Property name="caption">二次密码验证</Property> | 
|       <Buttons> | 
|         <Button> | 
|           <ClientEvent name="onClick">var pwd = view.get("#passwordEditor").get("value");
 | 
| view.get("#ajaxCheckPwd").set("parameter",pwd).execute(function(result){
 | 
|     if(result){
 | 
|         $alert(result);
 | 
|     }else{
 | 
|         self.get("parent").close();
 | 
|         view.get("^tagShow").set("visible",true);
 | 
|         view.get("#dsMain").flushAsync();
 | 
|     }
 | 
| });</ClientEvent> | 
|           <Property name="width">85</Property> | 
|           <Property name="caption">确定</Property> | 
|         </Button> | 
|         <Button> | 
|           <ClientEvent name="onClick">self.get("parent").close();
 | 
| </ClientEvent> | 
|           <Property name="width">85</Property> | 
|           <Property name="caption">取消</Property> | 
|         </Button> | 
|       </Buttons> | 
|       <Children> | 
|         <PasswordEditor id="passwordEditor" layoutConstraint="padding:10"/> | 
|       </Children> | 
|       <Tools/> | 
|     </Dialog> | 
|   </View> | 
| </ViewConfig> |