| | |
| | | <Property name="label">更新时间</Property> |
| | | </PropertyDef> |
| | | </DataType> |
| | | <DataType name="dtQuery"> |
| | | <PropertyDef name="depotId"> |
| | | <Property/> |
| | | <Property name="label">所属仓库</Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="start"> |
| | | <Property name="label">起始日期</Property> |
| | | <Property name="dataType">Date</Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="end"> |
| | | <Property name="label">截止日期</Property> |
| | | <Property name="dataType">Date</Property> |
| | | </PropertyDef> |
| | | </DataType> |
| | | </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="dataType">[dtMain]</Property> |
| | | <Property name="dataProvider">secSnapDepotPR#pageSnapDepot</Property> |
| | | <Property name="pageSize">12</Property> |
| | | </DataSet> |
| | | <DataSet id="dsConf"> |
| | | <Property name="dataType">[dtConf]</Property> |
| | | </DataSet> |
| | | <ToolBar> |
| | | <ToolBarLabel> |
| | | <Property name="text">菜单栏:</Property> |
| | | </ToolBarLabel> |
| | | <Fill/> |
| | | <ToolBarButton> |
| | | <ClientEvent name="onClick">view.get("#dialogConf").show();
 |
| | | </ClientEvent> |
| | | <Property name="caption">抓拍配置</Property> |
| | | </ToolBarButton> |
| | | </ToolBar> |
| | | <Container layout="regionPadding:10" layoutConstraint="center"> |
| | | <Property name="exClassName">bg-color</Property> |
| | | <DataGrid layoutConstraint="center padding:5px"> |
| | | <Property name="dataSet">dsMain</Property> |
| | | <Property name="readOnly">true</Property> |
| | | <RowNumColumn> |
| | | <Property name="width">50</Property> |
| | | </RowNumColumn> |
| | | <DataColumn name="depotId"> |
| | | <Property name="property">depotId</Property> |
| | | </DataColumn> |
| | | <DataColumn name="updateTime"> |
| | | <Property name="property">updateTime</Property> |
| | | </DataColumn> |
| | | <DataColumn name="zpsj"> |
| | | <Property name="property">zpsj</Property> |
| | | </DataColumn> |
| | | <DataColumn name="txwjhzm"> |
| | | <Property name="property">txwjhzm</Property> |
| | | </DataColumn> |
| | | <DataColumn name="wjmc"> |
| | | <Property name="property">wjmc</Property> |
| | | </DataColumn> |
| | | <DataColumn name="yzwbh"> |
| | | <Property name="property">yzwbh</Property> |
| | | </DataColumn> |
| | | </DataGrid> |
| | | </Container> |
| | | <DataSet id="dsQuery"> |
| | | <ClientEvent name="onReady">self.insert({});</ClientEvent> |
| | | <Property name="dataType">dtQuery</Property> |
| | | </DataSet> |
| | | <Panel layout="regionPadding:10"> |
| | | <Property name="caption">视频图像信息管理</Property> |
| | | <Property name="iconClass">fa fa-bars</Property> |
| | | <Buttons/> |
| | | <Children> |
| | | <Container> |
| | | <Property name="contentOverflow">hidden</Property> |
| | | <Property name="exClassName">bg-color</Property> |
| | | <AutoForm> |
| | | <Property name="cols">80,*,*,*,*</Property> |
| | | <Property name="dataSet">dsQuery</Property> |
| | | <Label> |
| | | <Property name="text">查询条件:</Property> |
| | | </Label> |
| | | <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> |
| | | <Container layout="regionPadding:10"> |
| | | <Button layoutConstraint="left"> |
| | | <ClientEvent name="onClick">var entity = view.get("#dsQuery.data:#");
 |
| | | view.get("#dsMain").set("parameter",entity).flushAsync(function(){
 |
| | | $notify("查询成功!");
 |
| | | });</ClientEvent> |
| | | <Property name="caption">查询</Property> |
| | | <Property name="exClassName">btn-normal</Property> |
| | | <Property name="iconClass">fa fa-search</Property> |
| | | </Button> |
| | | <Button layoutConstraint="left"> |
| | | <ClientEvent name="onClick">view.get("#dsQuery").setData({});</ClientEvent> |
| | | <Property name="caption">重置</Property> |
| | | <Property name="exClassName">btn-warn</Property> |
| | | <Property name="iconClass">fa fa-refresh</Property> |
| | | </Button> |
| | | <Button layoutConstraint="left"> |
| | | <ClientEvent name="onClick">view.get("#dialogConf").show();</ClientEvent> |
| | | <Property name="caption">抓拍配置</Property> |
| | | <Property name="exClassName">btn-default</Property> |
| | | <Property name="iconClass">fa fa-cogs</Property> |
| | | </Button> |
| | | </Container> |
| | | </AutoForm> |
| | | </Container> |
| | | <Container layoutConstraint="center"> |
| | | <Property name="exClassName">bg-color</Property> |
| | | <DataBlockView> |
| | | <ClientEvent name="onRenderBlock">
 |
| | | var time = arg.data.get("zpsj").formatDate("Y-m-d H:i");
 |
| | | var hwdm = arg.data.getText("hwdm");
 |
| | | var cfdm = arg.data.getText("cfdm");
 |
| | | var kqdm = arg.data.getText("kqdm");
 |
| | | var imgSrc = "../../grain/file/get-depot-snap?filePath="+arg.data.get("wjdz");
 |
| | | var htm = "<div><img src='"+imgSrc+"' style='height:250px; width:100%;'><div><span style='padding-left:10px;'>库区:"+kqdm+"</span><span style='float:right;padding-right:10px;'>仓房:"+cfdm+"</span></div><div><span style='padding-left:10px;'>货位:"+hwdm+"</span><span style='float:right;padding-right:10px;'>时间:"+time+"</span></div></div>";
 |
| | | 
 |
| | | arg.dom.innerHTML = htm;
 |
| | | arg.progressDefault=false;</ClientEvent> |
| | | <Property name="dataSet">dsMain</Property> |
| | | <Property name="blockHeight">300</Property> |
| | | <Property name="blockWidth">390</Property> |
| | | <Property name="blockLayout">vertical</Property> |
| | | <Property name="horiPadding">15</Property> |
| | | <Property name="horiSpacing">15</Property> |
| | | <Property name="vertPadding">15</Property> |
| | | <Property name="vertSpacing">15</Property> |
| | | <Property name="lineSize">4</Property> |
| | | </DataBlockView> |
| | | </Container> |
| | | <ToolBar layoutConstraint="bottom"> |
| | | <Fill/> |
| | | <DataPilot layoutConstraint="right"> |
| | | <Property name="dataSet">dsMain</Property> |
| | | <Property name="itemCodes">pageSize,pages</Property> |
| | | </DataPilot> |
| | | </ToolBar> |
| | | </Children> |
| | | <Tools/> |
| | | </Panel> |
| | | <Dialog id="dialogConf"> |
| | | <Buttons/> |
| | | <Children> |
| | |
| | | </Children> |
| | | <Tools/> |
| | | </Dialog> |
| | | <AjaxAction id="ajaxDel"> |
| | | <Property name="service">videoImgPR#delData</Property> |
| | | <Property name="confirmMessage">当前数据删除后无法恢复,请确认要删除么?</Property> |
| | | </AjaxAction> |
| | | </View> |
| | | </ViewConfig> |