| | |
| | | <Property name="label">熏蒸作业人员</Property> |
| | | </PropertyDef> |
| | | </DataType> |
| | | <DataType name="dtPest"> |
| | | <Property name="creationType">com.ld.igds.models.Pest</Property> |
| | | <PropertyDef name="batchId"> |
| | | <Property></Property> |
| | | <Property name="label">检测批次</Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="companyId"> |
| | | <Property></Property> |
| | | <Property name="label">组织编码</Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="depotId"> |
| | | <Property></Property> |
| | | <Property name="label">检测仓房</Property> |
| | | <Property name="mapping"> |
| | | <Property name="mapValues">${dorado.getDataProvider("depotPR#getAllCache").getResult()}</Property> |
| | | <Property name="keyProperty">id</Property> |
| | | <Property name="valueProperty">name</Property> |
| | | </Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="pestMax"> |
| | | <Property name="dataType">int</Property> |
| | | <Property name="label">最多数量</Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="method"> |
| | | <Property></Property> |
| | | <Property name="label">虫害检测方法</Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="position"> |
| | | <Property></Property> |
| | | <Property name="label">发生部位</Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="pestType"> |
| | | <Property></Property> |
| | | <Property name="label">虫害种类</Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="pestLevel"> |
| | | <Property></Property> |
| | | <Property name="label">虫粮等级判定</Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="pestAnalysis"> |
| | | <Property></Property> |
| | | <Property name="label">害虫抗药性分析</Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="pestStart"> |
| | | <Property name="dataType">int</Property> |
| | | <Property name="label">虫害采集点开始</Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="pestEnd"> |
| | | <Property name="dataType">int</Property> |
| | | <Property name="label">虫害采集点截至</Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="checkNum"> |
| | | <Property name="dataType">int</Property> |
| | | <Property name="label">采集通道个数</Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="receiveDate"> |
| | | <Property name="dataType">Date</Property> |
| | | <Property name="label">检测时间</Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="points"> |
| | | <Property></Property> |
| | | <Property name="label">采集点信息</Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="checkUser"> |
| | | <Property></Property> |
| | | <Property name="label">检测人</Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="remark"> |
| | | <Property></Property> |
| | | <Property name="label">备注信息</Property> |
| | | </PropertyDef> |
| | | </DataType> |
| | | <DataType name="dtParam"> |
| | | <PropertyDef name="depotId"> |
| | | <Property></Property> |
| | | <Property name="label">仓房名称</Property> |
| | | <Property name="mapping"> |
| | | <Property name="mapValues">${dorado.getDataProvider("depotPR#getAllCache").getResult()}</Property> |
| | | <Property name="keyProperty">id</Property> |
| | | <Property name="valueProperty">name</Property> |
| | | </Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="start"> |
| | | <Property name="dataType">Date</Property> |
| | | <Property name="label">开始时间</Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="end"> |
| | | <Property name="dataType">Date</Property> |
| | | <Property name="label">结束时间</Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="name"> |
| | | <Property name="label">操作人</Property> |
| | | </PropertyDef> |
| | | </DataType> |
| | | </Model> |
| | | <View layout="padding:5;regionPadding:5"> |
| | | <Property name="packages">font-awesome,css-common</Property> |
| | |
| | | <Property name="pageSize">20</Property> |
| | | <Property name="dataProvider">drugLogPR#pageDrugLog</Property> |
| | | </DataSet> |
| | | <Container layout="regionPadding:10" layoutConstraint="top"> |
| | | <DataSet id="dsParam"> |
| | | <ClientEvent name="onReady">self.insert({});
 |
| | | </ClientEvent> |
| | | <Property name="dataType">dtParam</Property> |
| | | </DataSet> |
| | | <Container> |
| | | <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 layoutConstraint="left"> |
| | | <ClientEvent name="onClick">view.get("#dsMain").insert({});
 |
| | | <AutoForm> |
| | | <Property name="cols">*,*,*,*,*</Property> |
| | | <Property name="dataSet">dsParam</Property> |
| | | <Property name="labelSeparator">:</Property> |
| | | <Property name="labelWidth">120</Property> |
| | | <AutoFormElement> |
| | | <Property name="name">depotId</Property> |
| | | <Property name="property">depotId</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">name</Property> |
| | | <Property name="property">name</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <Container layout="regionPadding:15"> |
| | | <Button layoutConstraint="left"> |
| | | <ClientEvent name="onClick">var param = view.get("#dsParam.data");
 |
| | | view.get("#dsMain").set("parameter",param).flushAsync();</ClientEvent> |
| | | <Property name="caption">查询</Property> |
| | | <Property name="iconClass">fa fa-refresh</Property> |
| | | <Property name="exClassName">btn-default</Property> |
| | | </Button> |
| | | <Button layoutConstraint="left"> |
| | | <ClientEvent name="onClick">view.get("#dsParam").setData({});
 |
| | | view.get("#dsMain").set("parameter",{}).flushAsync();</ClientEvent> |
| | | <Property name="caption">重置</Property> |
| | | <Property name="exClassName">btn-warn</Property> |
| | | <Property name="iconClass">fa fa-refresh</Property> |
| | | </Button> |
| | | </Container> |
| | | </AutoForm> |
| | | </Container> |
| | | <Container layout="regionPadding:5" layoutConstraint="center"> |
| | | <Property name="exClassName">bg-color</Property> |
| | | <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 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:#");
 |
| | | <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:#");
 |
| | | <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;
 |
| | | }
 |
| | |
| | | }
 |
| | | });
 |
| | | </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">view.get("#dsMain").flushAsync();</ClientEvent> |
| | | <Property name="caption">刷新</Property> |
| | | <Property name="exClassName">btn-default</Property> |
| | | <Property name="iconClass">fa fa-search</Property> |
| | | </Button> |
| | | <TextEditor id="paramName" layoutConstraint="right"> |
| | | <Property name="width">200</Property> |
| | | <Property name="blankText">--操作人--</Property> |
| | | <Property name="trigger">triggerQuery</Property> |
| | | </TextEditor> |
| | | <Trigger id="triggerQuery"> |
| | | <ClientEvent name="onExecute">var name = view.get("#paramName.text");
 |
| | | view.get("#dsMain").set("parameter",{name:name}).flushAsync();</ClientEvent> |
| | | <Property name="iconClass">fa fa-search</Property> |
| | | </Trigger> |
| | | </Container> |
| | | <Container layout="regionPadding:5" layoutConstraint="center"> |
| | | <Property name="exClassName">bg-color</Property> |
| | | <Property name="caption">删除</Property> |
| | | <Property name="exClassName">btn-warn</Property> |
| | | <Property name="iconClass">fa fa-minus</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-search</Property> |
| | | </Button> |
| | | </Container> |
| | | <DataGrid> |
| | | <ClientEvent name="onDataRowDoubleClick">var data = view.get("#dsMain.data:#");
 |
| | | if(data){
 |
| | |
| | | <AutoFormElement> |
| | | <Property name="name">pestBatchId</Property> |
| | | <Property name="property">pestBatchId</Property> |
| | | <Property name="trigger">cddPest</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement> |
| | |
| | | <Property name="items">片剂,注射剂,乳剂,丸剂,颗粒剂,其他</Property> |
| | | <Property name="autoOpen">true</Property> |
| | | </ListDropDown> |
| | | <CustomDropDown id="cddPest"> |
| | | <ClientEvent name="onOpen">var key = view.get("#dsMain.data:#").get("depotId");
 |
| | | console.log(key)
 |
| | | view.get("#dsPest").set("parameter",{depotId:key}).flushAsync();</ClientEvent> |
| | | <Property name="width">500</Property> |
| | | <Property name="assignmentMap">pestBatchId=batchId</Property> |
| | | <Property name="height">500</Property> |
| | | <Property name="maxHeight">500</Property> |
| | | <Property name="minHeight">500</Property> |
| | | <Container layout="regionPadding:5"> |
| | | <DataSet id="dsPest"> |
| | | <Property name="dataType">[dtPest]</Property> |
| | | <Property name="dataProvider">pestDataPR#getData</Property> |
| | | <Property name="pageSize">10</Property> |
| | | </DataSet> |
| | | <Container> |
| | | <Property name="exClassName">bg-color</Property> |
| | | <DataGrid id="dgPest" layoutConstraint="top"> |
| | | <ClientEvent name="onDataRowDoubleClick">var data = view.get("#dsPest.data:#");
 |
| | | if(data){
 |
| | | view.get("#cddPest").close(data.toJSON());
 |
| | | }</ClientEvent> |
| | | <Property name="dataSet">dsPest</Property> |
| | | <Property name="readOnly">true</Property> |
| | | <DataColumn> |
| | | <Property name="property">depotId</Property> |
| | | <Property name="name">depotId</Property> |
| | | <Property name="align">center</Property> |
| | | </DataColumn> |
| | | <DataColumn name="batchId"> |
| | | <Property name="property">batchId</Property> |
| | | <Property name="align">center</Property> |
| | | </DataColumn> |
| | | <DataColumn name="receiveDate"> |
| | | <Property name="property">receiveDate</Property> |
| | | <Property name="align">center</Property> |
| | | </DataColumn> |
| | | </DataGrid> |
| | | </Container> |
| | | <Container layoutConstraint="bottom"> |
| | | <Property name="exClassName">bg-color</Property> |
| | | <DataPilot layoutConstraint="right"> |
| | | <Property name="dataSet">dsPest</Property> |
| | | <Property name="itemCodes">pageSize,pages</Property> |
| | | </DataPilot> |
| | | </Container> |
| | | </Container> |
| | | </CustomDropDown> |
| | | </View> |
| | | </ViewConfig> |