|

楼主 |
发表于 2017-9-12 17:44:46
|
显示全部楼层
action:
- <?xml version="1.0" encoding="UTF-8" standalone="no"?><model xmlns="http://www.justep.com/model"><action name="queryV_SZ_HKYYPJZBAction" procedure="bizQueryProcedure"><permission name="range" type="List"/>
- <private name="concept" type="String" value="V_SZ_HKYYPJZB"/>
- <private name="select" type="String" value="V_SZ_HKYYPJZB.*"/>
- <private name="from" type="String" value="V_SZ_HKYYPJZB V_SZ_HKYYPJZB"/>
- <private name="aggregate" type="String"/>
- <private name="dataModel" type="String" value="/nsbd_zjp/sz_hkyypjzb/data"/>
- <private name="fnModel" type="String"/>
- <protected name="condition" type="String"/>
- <public name="distinct" type="Boolean" value="false"/>
- <public name="idColumn" type="String" value="V_SZ_HKYYPJZB"/>
- <public name="filter" type="String"/>
- <public name="limit" type="Integer"/>
- <public name="offset" type="Integer"/>
- <public name="columns" type="String"/>
- <public name="orderBy" type="String"/>
- <public name="aggregateColumns" type="String"/>
- <public name="variables" type="Map"/>
- </action>
- <action name="saveV_SZ_HKYYPJZBAction" procedure="bizSaveProcedure"><permission name="insertRange" type="List"/>
- <permission name="deleteRange" type="List"/>
- <permission name="updateRange" type="List"/>
- <private name="concept" type="String" value="V_SZ_HKYYPJZB"/>
- <private name="dataModel" type="String" value="/nsbd_zjp/sz_hkyypjzb/data"/>
- <private name="fnModel" type="String"/>
- <protected name="readOnly" type="String"/>
- <protected name="notNull" type="String"/>
- <public name="table" required="true" type="Table"/>
- </action>
- <action name="createV_SZ_HKYYPJZBAction" procedure="bizCreateProcedure"><private name="concept" type="String" value="V_SZ_HKYYPJZB"/>
- <private name="fnModel" type="String"/>
- <public name="table" required="true" type="Table"/>
- <public name="defaultValues" type="Map"/>
- </action>
- <action name="selecthkyypjzb" global="false" procedure="ksqlQueryProcedure"><private name="ksql" type="String" value="select V_SZ_HKYYPJZB.HPMC as HPMC,V_SZ_HKYYPJZB.CZMC as CZMC,V_SZ_HKYYPJZB.XMMC as XMMC,V_SZ_HKYYPJZB.GXSJ as GXSJ,V_SZ_HKYYPJZB.NDZ as NDZ,V_SZ_HKYYPJZB.FFZ as FFZ,V_SZ_HKYYPJZB.YYZTZS as YYZTZS,V_SZ_HKYYPJZB.YYZTFJ as YYZTFJ from V_SZ_HKYYPJZB V_SZ_HKYYPJZB where V_SZ_HKYYPJZB.GXSJ >= stringToDate(:start) and V_SZ_HKYYPJZB.GXSJ <= stringToDate(:end) and V_SZ_HKYYPJZB.CZMC =:czdm"></private>
- <public name="variables" type="Map"></public>
- <private name="dataModel" type="String" value="/nsbd_zjp/sz_hkyypjzb/data"></private>
- <public name="fnModel" type="String"></public>
- </action>
- </model>
复制代码
.w:
- <?xml version="1.0" encoding="UTF-8"?>
- <div xmlns="http://www.w3.org/1999/xhtml" xid="window" class="window" component="$UI/system/components/justep/window/window" design="device:pc">
- <div component="$UI/system/components/justep/model/model" xid="model"><div component="$UI/system/components/justep/reportData/reportData" xid="reportData1">
- <source xid="default1"><action xid="default2" name="selectHkyypjzb" type="ksqlaction"></action></source></div></div>
- <div component="$UI/system/components/justep/toolBar/toolBar" class="x-toolbar form-inline x-toolbar-spliter" xid="toolBar1">
- <a component="$UI/system/components/justep/button/button" class="btn btn-link btn-icon-left" onClick="{'operation':'report1.preview'}" xid="button2">
- <i xid="i2"></i>
- <span xid="span2"></span></a>
- <a component="$UI/system/components/justep/button/button" class="btn btn-link btn-icon-left" onClick="{'operation':'report1.print'}" xid="button3">
- <i xid="i3"></i>
- <span xid="span3"></span></a>
- <a component="$UI/system/components/justep/button/button" class="btn btn-link btn-icon-left" onClick="{'operation':'report1.exportPDF'}" xid="button4">
- <i xid="i4"></i>
- <span xid="span4"></span></a>
- <a component="$UI/system/components/justep/button/button" class="btn btn-link btn-icon-left" onClick="{'operation':'report1.exportWord'}" xid="button5">
- <i xid="i5"></i>
- <span xid="span5"></span></a>
- <a component="$UI/system/components/justep/button/button" class="btn btn-link btn-icon-left" onClick="{'operation':'report1.exportExcel'}" xid="button6">
- <i xid="i6"></i>
- <span xid="span6"></span></a></div>
-
- <div component="$UI/system/components/justep/report/report" src="new_xls.xml" reportName="report" autoLoad="false" dataList="reportData1" class="x-report x-scroll-h" xid="report1"></div></div>
复制代码
js:
- define(function(require){
- var $ = require("jquery");
- var justep = require("$UI/system/lib/justep");
- var a1;
- var a2;
- var a3;
- var Model = function(){
- this.callParent();
- a1=this.getContext().getRequestParameter("start");
- a2=this.getContext().getRequestParameter("end");
- a3=this.getContext().getRequestParameter("czmc");
- };
- Model.prototype.modelLoad = function(event){
- this.comp('reportData1').setStringVar("start" ,a1);
- this.comp('reportData1').setStringVar("end" , a2);
- this.comp('reportData1').setStringVar("czmc" , a3);
- this.comp('report1').refresh();
- };
- return Model;
- });
复制代码 |
|