| | |
| | | </PropertyDef> |
| | | </DataType> |
| | | </Model> |
| | | <View layout="padding:5;regionPadding:5"> |
| | | <View layout="padding:10"> |
| | | <ClientEvent name="onReady">//var TYPE = "INOUT_DETAIL";
 |
| | | //页面展示类型,1 正常报表页面;2 监管展示页面
 |
| | | var ViewType = "${request.getParameter('viewType')}";
 |
| | |
| | | if(ViewType==1){
 |
| | | view.get("#form1").set("visible",true);
 |
| | | view.get("#dataGridMain1").set("visible",true);
 |
| | | view.get("#tool").set("visible",true);
 |
| | | }
 |
| | | 
 |
| | | if(ViewType==2){
 |
| | | view.get("#form2").set("visible",true);
 |
| | | view.get("#dataGridMain2").set("visible",true);
 |
| | | 
 |
| | | view.get("#tool").set("visible",true);
 |
| | | }
 |
| | | 
 |
| | | var deptId = window.parent.DEPT_ID;//父页面中的分库编码
 |
| | |
| | | <Property></Property> |
| | | <Property name="loadMode">manual</Property> |
| | | </DataSet> |
| | | <Container> |
| | | <Property name="className">c-param</Property> |
| | | <AutoForm id="form1" layoutConstraint="top"> |
| | | <Property name="cols">*,*,*,*</Property> |
| | | <Property name="cols">*,*,*,*,90,90,110</Property> |
| | | <Property name="dataSet">dsQuery</Property> |
| | | <Property name="exClassName">bg-color</Property> |
| | | <Property name="labelWidth">100</Property> |
| | | <Property name="labelWidth">110</Property> |
| | | <Property name="labelAlign">right</Property> |
| | | <Property name="hideMode">display</Property> |
| | | <Property name="visible">false</Property> |
| | |
| | | <Property name="property">end</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <Container layout="hbox regionPadding:15"> |
| | | <Button> |
| | | <ClientEvent name="onClick"> var data = view.get("#dsQuery.data");
 |
| | | view.get("#dsMain").set("parameter",data).flushAsync();</ClientEvent> |
| | | <Property name="caption">查询</Property> |
| | | <Property name="exClassName">btn1</Property> |
| | | <Property name="caption">搜索</Property> |
| | | <Property name="exClassName">btn-q1</Property> |
| | | <Property name="iconClass">fa fa-search</Property> |
| | | </Button> |
| | | <Button> |
| | | <ClientEvent name="onClick">view.get("#dsQuery").flushAsync();</ClientEvent> |
| | | <Property name="exClassName">btn2</Property> |
| | | <Property name="exClassName">btn-q2</Property> |
| | | <Property name="iconClass">fa fa-refresh</Property> |
| | | <Property name="caption">重置</Property> |
| | | </Button> |
| | |
| | | <Property name="caption">导出EXCEL</Property> |
| | | <Property name="exClassName">btn4</Property> |
| | | <Property name="iconClass">fa fa-file-excel-o</Property> |
| | | <Property name="menu">menuExport</Property> |
| | | <Property name="action">exportExcel</Property> |
| | | </Button> |
| | | </Container> |
| | | </AutoForm> |
| | | <AutoForm id="form2" layoutConstraint="top"> |
| | | <Property name="cols">*,*,*,*</Property> |
| | | <Property name="cols">*,*,*,*,90,90,110</Property> |
| | | <Property name="dataSet">dsQuery</Property> |
| | | <Property name="exClassName">bg-color</Property> |
| | | <Property name="labelWidth">100</Property> |
| | | <Property name="labelWidth">110</Property> |
| | | <Property name="labelAlign">right</Property> |
| | | <Property name="hideMode">display</Property> |
| | | <Property name="visible">false</Property> |
| | |
| | | <Property name="property">end</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <Container layout="hbox regionPadding:15"> |
| | | <Button> |
| | | <ClientEvent name="onClick"> var data = view.get("#dsQuery.data");
 |
| | | view.get("#dsMain").set("parameter",data).flushAsync();</ClientEvent> |
| | | <Property name="caption">查询</Property> |
| | | <Property name="exClassName">btn1</Property> |
| | | <Property name="caption">搜索</Property> |
| | | <Property name="exClassName">btn-q1</Property> |
| | | <Property name="iconClass">fa fa-search</Property> |
| | | </Button> |
| | | <Button> |
| | | <ClientEvent name="onClick">view.get("#dsQuery").flushAsync();</ClientEvent> |
| | | <Property name="exClassName">btn2</Property> |
| | | <Property name="exClassName">btn-q2</Property> |
| | | <Property name="iconClass">fa fa-refresh</Property> |
| | | <Property name="caption">重置</Property> |
| | | </Button> |
| | |
| | | <Property name="caption">导出EXCEL</Property> |
| | | <Property name="exClassName">btn4</Property> |
| | | <Property name="iconClass">fa fa-file-excel-o</Property> |
| | | <Property name="menu">menuExport</Property> |
| | | <Property name="action">exportExcel</Property> |
| | | </Button> |
| | | </Container> |
| | | </AutoForm> |
| | | </Container> |
| | | <Container layoutConstraint="center"> |
| | | <Property name="exClassName">bg-color</Property> |
| | | <Property name="className">c-data</Property> |
| | | <AutoForm id="autoForm1" layoutConstraint="top"> |
| | | <Property name="cols">*,*,*,*,*,*,*</Property> |
| | | <Property name="dataSet">dsQuery</Property> |
| | | <Property name="labelAlign">right</Property> |
| | | <Property name="showHint">false</Property> |
| | | <Property name="labelWidth">120</Property> |
| | | <AutoFormElement layoutConstraint="colSpan:7"> |
| | | <Property name="name">title</Property> |
| | | <Property name="property">title</Property> |
| | |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | </AutoForm> |
| | | <DataGrid id="dataGridMain1" layoutConstraint="center"> |
| | | <DataGrid id="dataGridMain1" layoutConstraint="padding:8"> |
| | | <ClientEvent name="onRenderRow">if(arg.data.get('id') == '合计'){
 |
| | | //arg.dom.style.background = "#fcc5c5";
 |
| | | arg.dom.style.fontWeight = "bold";
 |
| | |
| | | <Property name="highlightCurrentRow">false</Property> |
| | | <Property name="hideMode">display</Property> |
| | | <Property name="visible">true</Property> |
| | | <Property name="headerRowHeight">30</Property> |
| | | <Property name="rowHeight">50</Property> |
| | | <RowNumColumn/> |
| | | <DataColumn name="id"> |
| | | <Property name="property">id</Property> |
| | |
| | | <Property name="caption">离库时间</Property> |
| | | </DataColumn> |
| | | </DataGrid> |
| | | <DataGrid id="dataGridMain2" layoutConstraint="center"> |
| | | <DataGrid id="dataGridMain2" layoutConstraint="padding:8"> |
| | | <ClientEvent name="onRenderRow">if(arg.data.get('id') == '合计'){
 |
| | | //arg.dom.style.background = "#fcc5c5";
 |
| | | arg.dom.style.fontWeight = "bold";
 |
| | |
| | | <Property name="highlightCurrentRow">false</Property> |
| | | <Property name="visible">false</Property> |
| | | <Property name="hideMode">display</Property> |
| | | <Property name="headerRowHeight">30</Property> |
| | | <Property name="rowHeight">50</Property> |
| | | <RowNumColumn> |
| | | <Property name="caption">序号</Property> |
| | | </RowNumColumn> |
| | |
| | | <Editor/> |
| | | </DataColumn> |
| | | </DataGrid> |
| | | <ToolBar id="tool" layoutConstraint="bottom"> |
| | | <Property name="hideMode">display</Property> |
| | | <Property name="visible">false</Property> |
| | | <Fill/> |
| | | <DataPilot layoutConstraint="right"> |
| | | <Property name="itemCodes">pageSize,pages</Property> |
| | | <Property name="dataSet">dsMain</Property> |
| | | </DataPilot> |
| | | </ToolBar> |
| | | </Container> |
| | | </View> |
| | | </ViewConfig> |