| <?xml version="1.0" encoding="UTF-8"?> | 
| <ViewConfig> | 
|   <Arguments/> | 
|   <Context/> | 
|   <Model> | 
|     <DataType name="dtMain"> | 
|       <Property name="creationType">com.ld.igds.models.CheckStandard</Property> | 
|       <PropertyDef name="id"> | 
|         <Property></Property> | 
|         <Property name="label">id</Property> | 
|         <Property name="required">false</Property> | 
|       </PropertyDef> | 
|       <PropertyDef name="companyId"> | 
|         <Property></Property> | 
|         <Property name="label">组织编码</Property> | 
|       </PropertyDef> | 
|       <PropertyDef name="deptId"> | 
|         <Property></Property> | 
|         <Property name="label">部门编码</Property> | 
|       </PropertyDef> | 
|       <PropertyDef name="foodVariety"> | 
|         <Property></Property> | 
|         <Property name="label">粮食品种</Property> | 
|         <Property name="mapping"> | 
|           <Property name="mapValues">${dorado.getDataProvider("dicTriggerPR#dicTrigger").getResult("FOOD_VARIETY_")}</Property> | 
|           <Property name="keyProperty">code</Property> | 
|           <Property name="valueProperty">name</Property> | 
|         </Property> | 
|         <Property name="required">true</Property> | 
|       </PropertyDef> | 
|       <PropertyDef name="standardId"> | 
|         <Property></Property> | 
|         <Property name="label">化验项编码</Property> | 
|         <Property name="required">true</Property> | 
|       </PropertyDef> | 
|       <PropertyDef name="operaSymbol"> | 
|         <Property></Property> | 
|         <Property name="label">标准要求</Property> | 
|         <Property name="mapping"> | 
|           <Property name="mapValues"></Property> | 
|         </Property> | 
|       </PropertyDef> | 
|       <PropertyDef name="unit"> | 
|         <Property></Property> | 
|         <Property name="label">单位</Property> | 
|         <Property name="required">false</Property> | 
|       </PropertyDef> | 
|       <PropertyDef name="standardName"> | 
|         <Property></Property> | 
|         <Property name="label">化验项</Property> | 
|         <Property name="required">true</Property> | 
|       </PropertyDef> | 
|       <PropertyDef name="upperLimit"> | 
|         <Property name="dataType">Double</Property> | 
|         <Property name="label">合格伐值</Property> | 
|       </PropertyDef> | 
|       <PropertyDef name="ruleNum"> | 
|         <Property></Property> | 
|         <Property name="label">扣重系数</Property> | 
|         <Property name="dataType">Double</Property> | 
|       </PropertyDef> | 
|       <PropertyDef name="ruleAdd"> | 
|         <Property></Property> | 
|         <Property name="label">增重%</Property> | 
|         <Property name="dataType">Double</Property> | 
|       </PropertyDef> | 
|       <PropertyDef name="ruleAddEnd"> | 
|         <Property></Property> | 
|         <Property name="label">增重上限%</Property> | 
|         <Property name="dataType">Double</Property> | 
|       </PropertyDef> | 
|       <PropertyDef name="ruleReduce"> | 
|         <Property></Property> | 
|         <Property name="label">扣重比例</Property> | 
|         <Property name="dataType">Double</Property> | 
|       </PropertyDef> | 
|       <PropertyDef name="standardPrice"> | 
|         <Property name="label">标准单价(元/斤)</Property> | 
|         <Property name="dataType">Double</Property> | 
|       </PropertyDef> | 
|       <PropertyDef name="rulePrice"> | 
|         <Property></Property> | 
|         <Property name="label">扣费系数</Property> | 
|         <Property name="dataType">Double</Property> | 
|       </PropertyDef> | 
|       <PropertyDef name="ruleReducePrice"> | 
|         <Property></Property> | 
|         <Property name="label">扣费比例</Property> | 
|         <Property name="dataType">Double</Property> | 
|       </PropertyDef> | 
|       <PropertyDef name="updateTime"> | 
|         <Property name="dataType">Date</Property> | 
|         <Property name="label">更新时间</Property> | 
|       </PropertyDef> | 
|       <PropertyDef name="remarks"> | 
|         <Property></Property> | 
|         <Property name="label">说明</Property> | 
|       </PropertyDef> | 
|     </DataType> | 
|     <DataType name="dtDicCheckItem"> | 
|       <Property name="creationType">com.ld.igds.models.DicCheckItem</Property> | 
|       <PropertyDef name="code"> | 
|         <Property></Property> | 
|         <Property name="label">编码</Property> | 
|         <Property name="required">true</Property> | 
|       </PropertyDef> | 
|       <PropertyDef name="name"> | 
|         <Property></Property> | 
|         <Property name="label">名称</Property> | 
|       </PropertyDef> | 
|       <PropertyDef name="unit"> | 
|         <Property></Property> | 
|         <Property name="label">单位</Property> | 
|       </PropertyDef> | 
|       <PropertyDef name="type"> | 
|         <Property></Property> | 
|         <Property name="label">所属指标</Property> | 
|         <Property name="mapping"> | 
|           <Property name="keyProperty">code</Property> | 
|           <Property name="valueProperty">name</Property> | 
|           <Property name="mapValues">${dorado.getDataProvider("dicCheckItemPR#triggerType").getResult()}</Property> | 
|         </Property> | 
|         <Property name="required">true</Property> | 
|       </PropertyDef> | 
|     </DataType> | 
|   </Model> | 
|   <View layout="padding:5;regionPadding:5"> | 
|     <ClientEvent name="onReady">var deptId = window.parent.deptId;//父页面中的分库编码
 | 
| 
 | 
| //查询
 | 
| query = function(){
 | 
|     view.get("#dsMain").set("parameter",{deptId:deptId}).flushAsync();
 | 
| };
 | 
| 
 | 
| query();</ClientEvent> | 
|     <Property name="packages">font-awesome,css-common</Property> | 
|     <DataSet id="dsMain"> | 
|       <Property name="dataType">[dtMain]</Property> | 
|       <Property name="dataProvider">checkStandardPR#listStandard</Property> | 
|       <Property name="loadMode">manual</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"> | 
|         <Property name="caption">导出</Property> | 
|         <Property name="exClassName">btn-normal</Property> | 
|         <Property name="iconClass">fa fa-file-excel-o</Property> | 
|         <Property name="action">exportExcel</Property> | 
|       </Button> | 
|     </Container> | 
|     <Container layoutConstraint="center"> | 
|       <Property name="exClassName">bg-color</Property> | 
|       <DataGrid id="dataGridMain" layoutConstraint="center"> | 
|         <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> | 
|         <Property name="groupProperty">foodVariety</Property> | 
|         <DataColumn> | 
|           <Property name="property">foodVariety</Property> | 
|           <Property name="align">center</Property> | 
|           <Property name="name">foodVariety</Property> | 
|         </DataColumn> | 
|         <DataColumn> | 
|           <Property name="property">standardId</Property> | 
|           <Property name="align">center</Property> | 
|           <Property name="name">standardId</Property> | 
|         </DataColumn> | 
|         <DataColumn> | 
|           <Property name="property">standardName</Property> | 
|           <Property name="align">center</Property> | 
|           <Property name="name">standardName</Property> | 
|         </DataColumn> | 
|         <DataColumn name="operaSymbol"> | 
|           <Property name="property">operaSymbol</Property> | 
|           <Property name="align">center</Property> | 
|         </DataColumn> | 
|         <DataColumn name="upperLimit"> | 
|           <Property name="property">upperLimit</Property> | 
|           <Property name="align">left</Property> | 
|         </DataColumn> | 
|         <DataColumn name="updateTime"> | 
|           <Property name="property">updateTime</Property> | 
|           <Property name="align">center</Property> | 
|           <Property name="width">220</Property> | 
|         </DataColumn> | 
|         <DataColumn name="remarks"> | 
|           <Property name="property">remarks</Property> | 
|         </DataColumn> | 
|       </DataGrid> | 
|     </Container> | 
|     <Dialog id="dialogMain"> | 
|       <Property name="closeable">false</Property> | 
|       <Property name="caption">化验项配置信息</Property> | 
|       <Property name="width">750</Property> | 
|       <Property name="iconClass">fa fa-tasks</Property> | 
|       <Buttons> | 
|         <Button id="btnOk"> | 
|           <ClientEvent name="onClick">var data = view.get("#dsMain.data:#");
 | 
|             
 | 
|             if(data.validate() != 'ok'){
 | 
|             $notify("数据校验失败!!");
 | 
|             return;
 | 
|             }
 | 
|             
 | 
|             view.get("#uaAction").set("parameter",data).execute(function(){
 | 
|             
 | 
|             $notify("数据执行完成!!");
 | 
|             self.get("parent").hide();
 | 
|             });</ClientEvent> | 
|           <Property name="caption">确定</Property> | 
|           <Property name="iconClass">fa fa-check</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</Property> | 
|         </Button> | 
|       </Buttons> | 
|       <Children> | 
|         <Container> | 
|           <FieldSet layoutConstraint="padding:10px"> | 
|             <Property name="caption">基础信息</Property> | 
|             <Buttons/> | 
|             <Children> | 
|               <AutoForm> | 
|                 <Property name="dataSet">dsMain</Property> | 
|                 <Property name="cols">*,*,*</Property> | 
|                 <Property name="labelSeparator">:</Property> | 
|                 <Property name="labelAlign">right</Property> | 
|                 <Property name="labelWidth">90</Property> | 
|                 <AutoFormElement> | 
|                   <Property name="name">foodVariety</Property> | 
|                   <Property name="property">foodVariety</Property> | 
|                   <Editor/> | 
|                 </AutoFormElement> | 
|                 <AutoFormElement layoutConstraint="colSpan:2"> | 
|                   <Property name="name">standardName</Property> | 
|                   <Property name="property">standardName</Property> | 
|                   <Property name="trigger">ddStandar</Property> | 
|                   <Editor/> | 
|                 </AutoFormElement> | 
|                 <AutoFormElement> | 
|                   <Property name="name">operaSymbol</Property> | 
|                   <Property name="property">operaSymbol</Property> | 
|                   <Property name="trigger">listSymbol</Property> | 
|                   <Editor/> | 
|                 </AutoFormElement> | 
|                 <AutoFormElement id="upperLimit"> | 
|                   <Property name="name">upperLimit</Property> | 
|                   <Property name="property">upperLimit</Property> | 
|                   <Property name="showLabel">false</Property> | 
|                   <Editor/> | 
|                 </AutoFormElement> | 
|                 <AutoFormElement> | 
|                   <Property name="name">unit</Property> | 
|                   <Property name="property">unit</Property> | 
|                   <Editor/> | 
|                 </AutoFormElement> | 
|               </AutoForm> | 
|             </Children> | 
|           </FieldSet> | 
|           <FieldSet layoutConstraint="padding:10px"> | 
|             <Property name="caption">扣重规则</Property> | 
|             <Buttons/> | 
|             <Children> | 
|               <AutoForm> | 
|                 <Property name="dataSet">dsMain</Property> | 
|                 <Property name="cols">*,*</Property> | 
|                 <Property name="labelAlign">right</Property> | 
|                 <Property name="labelSeparator">:</Property> | 
|                 <Property name="labelWidth">120</Property> | 
|                 <AutoFormElement> | 
|                   <Property name="name">ruleNum</Property> | 
|                   <Property name="property">ruleNum</Property> | 
|                   <Property name="label">每高出标准</Property> | 
|                   <Property name="labelAlign">right</Property> | 
|                   <Editor/> | 
|                 </AutoFormElement> | 
|                 <AutoFormElement> | 
|                   <Property name="name">ruleReduce</Property> | 
|                   <Property name="property">ruleReduce</Property> | 
|                   <Property name="labelAlign">right</Property> | 
|                   <Property name="label">扣重(%)</Property> | 
|                   <Editor/> | 
|                 </AutoFormElement> | 
|               </AutoForm> | 
|             </Children> | 
|           </FieldSet> | 
|           <FieldSet layoutConstraint="padding:10px"> | 
|             <Property name="caption">扣费规则</Property> | 
|             <Buttons/> | 
|             <Children> | 
|               <AutoForm> | 
|                 <Property name="dataSet">dsMain</Property> | 
|                 <Property name="cols">*,*</Property> | 
|                 <Property name="labelAlign">right</Property> | 
|                 <Property name="labelSeparator">:</Property> | 
|                 <Property name="labelWidth">140</Property> | 
|                 <AutoFormElement> | 
|                   <Property name="name">standardPrice</Property> | 
|                   <Property name="property">standardPrice</Property> | 
|                   <Editor/> | 
|                 </AutoFormElement> | 
|                 <Label> | 
|                   <Property name="text">注意:系統仅以水分标准价格为准。</Property> | 
|                   <Property name="style"> | 
|                     <Property name="color">blue</Property> | 
|                   </Property> | 
|                 </Label> | 
|                 <AutoFormElement> | 
|                   <Property name="name">rulePrice</Property> | 
|                   <Property name="property">rulePrice</Property> | 
|                   <Property name="label">每高出标准</Property> | 
|                   <Property name="labelAlign">right</Property> | 
|                   <Editor/> | 
|                 </AutoFormElement> | 
|                 <AutoFormElement> | 
|                   <Property name="name">ruleReducePrice</Property> | 
|                   <Property name="property">ruleReducePrice</Property> | 
|                   <Property name="label">单价下调(元)</Property> | 
|                   <Property name="labelAlign">right</Property> | 
|                   <Editor/> | 
|                 </AutoFormElement> | 
|                 <AutoFormElement layoutConstraint="colSpan:2"> | 
|                   <Property name="name">remarks</Property> | 
|                   <Property name="property">remarks</Property> | 
|                   <Property name="editorType">TextArea</Property> | 
|                   <Editor/> | 
|                 </AutoFormElement> | 
|               </AutoForm> | 
|             </Children> | 
|           </FieldSet> | 
|         </Container> | 
|       </Children> | 
|       <Tools/> | 
|     </Dialog> | 
|     <UpdateAction id="uaAction"> | 
|       <Property name="dataResolver">checkStandardPR#saveStandard</Property> | 
|       <UpdateItem> | 
|         <Property name="dataSet">dsMain</Property> | 
|         <Property name="dataPath">[#current]</Property> | 
|       </UpdateItem> | 
|     </UpdateAction> | 
|     <AjaxAction id="ajaxDel"> | 
|       <Property name="service">checkStandardPR#delStandard</Property> | 
|       <Property name="confirmMessage">确定要执行删除么?</Property> | 
|     </AjaxAction> | 
|     <Export2ReportAction id="exportExcel"> | 
|       <Property name="dataFontSize">12</Property> | 
|       <Property name="extension">xlsx</Property> | 
|       <Property name="headerFontSize">16</Property> | 
|       <Property name="template">dataGridMain</Property> | 
|       <Property name="titleFontSize">20</Property> | 
|       <Property name="maxSize">3000</Property> | 
|       <Property name="fileName">化验标准项</Property> | 
|       <Property name="showTitle">true</Property> | 
|       <Property name="titleName">化验标准项配置</Property> | 
|     </Export2ReportAction> | 
|     <CustomDropDown id="ddStandar"> | 
|       <Property name="minHeight">400</Property> | 
|       <Property name="assignmentMap">standardId=code,standardName=name,unit=unit</Property> | 
|       <Property name="minWidth">500</Property> | 
|       <Property name="autoOpen">true</Property> | 
|       <Container layout="regionPadding:5"> | 
|         <DataSet id="dsStandar"> | 
|           <Property name="dataProvider">dicCheckItemPR#findData</Property> | 
|           <Property name="dataType">[dtDicCheckItem]</Property> | 
|           <Property name="parameter"></Property> | 
|         </DataSet> | 
|         <Container layout="hbox regionPadding:5"> | 
|           <TextEditor id="key"> | 
|             <Property name="blankText"> -- 编码或者名称 --</Property> | 
|             <Property name="width">200</Property> | 
|           </TextEditor> | 
|           <Button> | 
|             <ClientEvent name="onClick">var key = view.get("#key.value");
 | 
| view.get("#dsStandar").set("parameter",{key:key}).flushAsync();</ClientEvent> | 
|             <Property name="caption">查询</Property> | 
|             <Property name="iconClass">fa fa-search</Property> | 
|           </Button> | 
|           <Button> | 
|             <ClientEvent name="onClick">var data = view.get("#dsStandar.data:#");
 | 
|               if(data){
 | 
|               view.get("#ddStandar").close(data.toJSON());
 | 
|               }</ClientEvent> | 
|             <Property name="iconClass">fa fa-check</Property> | 
|             <Property name="caption">确定</Property> | 
|           </Button> | 
|         </Container> | 
|         <DataGrid> | 
|           <ClientEvent name="onDataRowDoubleClick">var data = view.get("#dsStandar.data:#");
 | 
|             if(data){
 | 
|             view.get("#ddStandar").close(data.toJSON());
 | 
|             }</ClientEvent> | 
|           <Property name="dataSet">dsStandar</Property> | 
|           <Property name="readOnly">true</Property> | 
|           <DataColumn> | 
|             <Property name="property">code</Property> | 
|             <Property name="width">100</Property> | 
|             <Property name="align">center</Property> | 
|             <Property name="name">code</Property> | 
|           </DataColumn> | 
|           <DataColumn name="name"> | 
|             <ClientEvent name="onRenderCell">arg.dom.style.fontWeight = "bold";
 | 
|               arg.processDefault = true;</ClientEvent> | 
|             <Property name="property">name</Property> | 
|             <Property name="align">center</Property> | 
|           </DataColumn> | 
|           <DataColumn> | 
|             <Property name="property">unit</Property> | 
|             <Property name="align">center</Property> | 
|             <Property name="name">unit</Property> | 
|           </DataColumn> | 
|         </DataGrid> | 
|       </Container> | 
|     </CustomDropDown> | 
|     <ListDropDown id="listSymbol"> | 
|       <Property name="items">>=,<=,=</Property> | 
|     </ListDropDown> | 
|   </View> | 
| </ViewConfig> |