Statement.js 25 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640
  1. MWF.xApplication.query = MWF.xApplication.query || {};
  2. MWF.xApplication.query.Query = MWF.xApplication.query.Query || {};
  3. MWF.xDesktop.requireApp("query.Query", "Viewer", null, false);
  4. MWF.xApplication.query.Query.Statement = MWF.QStatement = new Class({
  5. Extends: MWF.QViewer,
  6. options: {
  7. },
  8. initialize: function(container, json, options, app, parentMacro){
  9. //本类有三种事件,
  10. //一种是通过 options 传进来的事件,包括 loadView、openDocument、select
  11. //一种是用户配置的 事件, 在this.options.moduleEvents 中定义的作为类事件
  12. //还有一种也是用户配置的事件,不在this.options.moduleEvents 中定义的作为 this.node 的DOM事件
  13. this.setOptions(options);
  14. this.path = "../x_component_query_Query/$Viewer/";
  15. this.cssPath = "../x_component_query_Query/$Viewer/"+this.options.style+"/css.wcss";
  16. this._loadCss();
  17. this.lp = MWF.xApplication.query.Query.LP;
  18. this.app = app;
  19. this.container = $(container);
  20. this.json = json || {};
  21. this.parentMacro = parentMacro;
  22. this.originalJson = Object.clone(json);
  23. this.viewJson = null;
  24. this.filterItems = [];
  25. this.searchStatus = "none"; //none, custom, default
  26. this.items = [];
  27. this.selectedItems = [];
  28. this.hideColumns = [];
  29. this.openColumns = [];
  30. this.parameter = {};
  31. this.gridJson = null;
  32. if (this.options.isload){
  33. this.init(function(){
  34. this.load();
  35. }.bind(this));
  36. }
  37. },
  38. init: function(callback){
  39. if (this.json.view){
  40. this.viewJson = JSON.decode(this.json.view);
  41. if (callback) callback();
  42. }else{
  43. this.getView(callback);
  44. }
  45. },
  46. loadMacro: function (callback) {
  47. MWF.require("MWF.xScript.Macro", function () {
  48. this.Macro = new MWF.Macro.ViewContext(this);
  49. if (callback) callback();
  50. }.bind(this));
  51. },
  52. createActionbarNode : function(){
  53. this.actionbarAreaNode.empty();
  54. if( typeOf(this.json.showActionbar) === "boolean" && this.json.showActionbar !== true )return;
  55. if( typeOf( this.viewJson.actionbarHidden ) === "boolean" ){
  56. if( this.viewJson.actionbarHidden === true || !this.viewJson.actionbarList || !this.viewJson.actionbarList.length )return;
  57. this.actionbar = new MWF.xApplication.query.Query.Statement.Actionbar(this.actionbarAreaNode, this.viewJson.actionbarList[0], this, {});
  58. this.actionbar.load();
  59. }
  60. },
  61. _loadPageNode : function(){
  62. this.viewPageAreaNode.empty();
  63. if( !this.paging ){
  64. var json;
  65. if( !this.viewJson.pagingList || !this.viewJson.pagingList.length ){
  66. json = {
  67. "firstPageText": this.lp.firstPage,
  68. "lastPageText": this.lp.lastPage
  69. };
  70. }else{
  71. json = this.viewJson.pagingList[0];
  72. }
  73. this.paging = new MWF.xApplication.query.Query.Statement.Paging(this.viewPageAreaNode, json, this, {});
  74. this.paging.load();
  75. }else{
  76. this.paging.reload();
  77. }
  78. },
  79. // _initPage: function(){
  80. // var i = this.count/this.json.pageSize;
  81. // this.pages = (i.toInt()<i) ? i.toInt()+1 : i;
  82. // this.currentPage = this.options.defaultPage || 1;
  83. // this.options.defaultPage = null;
  84. // },
  85. lookup: function(data, callback){
  86. if( this.lookuping )return;
  87. this.lookuping = true;
  88. // this.getLookupAction(function(){
  89. // if (this.json.application){
  90. var d = data || {};
  91. // d.count = this.json.count;
  92. // this.lookupAction.bundleView(this.json.id, d, function(json){
  93. // this.bundleItems = json.data.valueList;
  94. // this._initPage();
  95. debugger;
  96. this.loadParameter();
  97. this.loadFilter( data );
  98. this.currentPage = this.options.defaultPage || 1;
  99. this.options.defaultPage = null;
  100. if( this.noDataTextNode )this.noDataTextNode.destroy();
  101. this.loadCurrentPageData( function (json) {
  102. if(this.count){
  103. this.fireEvent("postLoad"); //用户配置的事件
  104. this.lookuping = false;
  105. if(callback)callback(this);
  106. }else{
  107. this.viewPageAreaNode.empty();
  108. if( this.viewJson.noDataText ){
  109. var noDataTextNodeStyle = this.css.noDataTextNode;
  110. if( this.viewJson.viewStyles && this.viewJson.viewStyles["noDataTextNode"] ){
  111. noDataTextNodeStyle = this.viewJson.viewStyles["noDataTextNode"];
  112. }
  113. this.noDataTextNode = new Element( "div", {
  114. "styles": noDataTextNodeStyle,
  115. "text" : this.viewJson.noDataText
  116. }).inject( this.contentAreaNode );
  117. }
  118. // if (this.loadingAreaNode){
  119. // this.loadingAreaNode.destroy();
  120. // this.loadingAreaNode = null;
  121. // }
  122. this.fireEvent("postLoad"); //用户配置的事件
  123. this.lookuping = false;
  124. if(callback)callback(this);
  125. }
  126. }.bind(this), true,"all");
  127. // }.bind(this));
  128. // }
  129. // }.bind(this));
  130. },
  131. loadFilter : function( data ){
  132. this.filterList = [];
  133. ( data.filterList || [] ).each( function (d) {
  134. var parameterName = d.path.replace(/\./g, "_");
  135. if( d.comparison === "like" || d.comparison === "notLike" ){
  136. this.parameter[ parameterName ] = "%"+d.value+"%";
  137. }else{
  138. this.parameter[ parameterName ] = d.value;
  139. }
  140. d.value = parameterName;
  141. this.filterList.push( d );
  142. }.bind(this))
  143. },
  144. loadParameter : function(){
  145. ( this.viewJson.filterList || [] ).each( function (f) {
  146. var value = f.value;
  147. debugger;
  148. if( f.valueType === "script" ){
  149. value = this.Macro.exec( f.valueScript ? f.valueScript.code : "", this);
  150. }else if( f.value.indexOf( "@" ) > -1 ){
  151. var user = layout.user;
  152. switch ( f.value ) {
  153. case "@person":
  154. value = user.distinguishedName;
  155. break;
  156. case "@identityList":
  157. value = user.identityList.map( function (d) {
  158. return d.distinguishedName;
  159. })
  160. break;
  161. case "@unitList":
  162. o2.Actions.load("x_organization_assemble_express").UnitAction.listWithPerson({ "personList" : [user.distinguishedName] }, function (json) {
  163. value = json.unitList;
  164. }, null, false)
  165. break;
  166. case "@unitAllList":
  167. o2.Actions.load("x_organization_assemble_express").UnitAction.listWithIdentitySupNested({ "personList" : [user.distinguishedName] }, function (json) {
  168. value = json.unitList;
  169. }, null, false)
  170. break;
  171. case "@year":
  172. value = (new Date().getFullYear()).toString();
  173. break;
  174. case "@season":
  175. var m = new Date().format("%m");
  176. if( ["01","02","03"].contains(m) ){
  177. value = "1"
  178. }else if( ["04","05","06"].contains(m) ){
  179. value = "2"
  180. }else if( ["07","08","09"].contains(m) ){
  181. value = "3"
  182. }else{
  183. value = "4"
  184. }
  185. break;
  186. case "@month":
  187. value = new Date().format("%Y-%m");
  188. break;
  189. case "@time":
  190. value = new Date().format("db");
  191. break;
  192. case "@date":
  193. value = new Date().format("%Y-%m-%d");
  194. break;
  195. default:
  196. }
  197. }
  198. this.parameter[ f.parameter ] = value;
  199. }.bind(this))
  200. },
  201. loadCurrentPageData: function( callback, async, type ){
  202. //是否需要在翻页的时候清空之前的items ?
  203. debugger;
  204. if( this.pageloading )return;
  205. this.pageloading = true;
  206. this.items = [];
  207. var p = this.currentPage;
  208. var d = {
  209. "filterList" : this.filterList,
  210. "parameter" : this.parameter
  211. };
  212. while (this.viewTable.rows.length>1){
  213. this.viewTable.deleteRow(-1);
  214. }
  215. //this.createLoadding();
  216. this.loadViewRes = o2.Actions.load("x_query_assemble_surface").StatementAction.executeV2(
  217. this.json.statementId || this.json.statementName,
  218. type || "data", p, this.json.pageSize, d, function(json){
  219. if( type === "all" || type === "count" ){
  220. if( typeOf(json.count) === "number" ){
  221. this.count = json.count;
  222. var i = this.count/this.json.pageSize;
  223. this.pages = (i.toInt()<i) ? i.toInt()+1 : i;
  224. }
  225. }
  226. this.gridJson = json.data;
  227. this.fireEvent("postLoadPageData");
  228. // if (this.viewJson.group.column){
  229. // this.gridJson = json.data.groupGrid;
  230. // }else{
  231. // this.gridJson = json.data.grid;
  232. this.loadData();
  233. // }
  234. if (this.gridJson.length) this._loadPageNode();
  235. if (this.loadingAreaNode){
  236. this.loadingAreaNode.destroy();
  237. this.loadingAreaNode = null;
  238. }
  239. this.pageloading = false;
  240. this.fireEvent("loadView"); //options 传入的事件
  241. this.fireEvent("postLoadPage");
  242. if(callback)callback( json );
  243. }.bind(this), null, async === false ? false : true );
  244. },
  245. getView: function(callback){
  246. this.getViewRes = o2.Actions.load("x_query_assemble_surface").StatementAction.get(this.json.statementId || this.json.statementName, function(json){
  247. debugger;
  248. var viewData = JSON.decode(json.data.view);
  249. if( !this.json.pageSize )this.json.pageSize = viewData.pageSize;
  250. this.viewJson = viewData.data;
  251. this.json.application = json.data.query;
  252. //this.json = Object.merge(this.json, json.data);
  253. this.statementJson = json.data;
  254. if (callback) callback();
  255. }.bind(this));
  256. },
  257. loadData: function(){
  258. if (this.gridJson.length){
  259. // if( !this.options.paging ){
  260. this.gridJson.each(function(line, i){
  261. this.items.push(new MWF.xApplication.query.Query.Statement.Item(this, line, null, i));
  262. }.bind(this));
  263. // }else{
  264. // this.loadPaging();
  265. // }
  266. }else{
  267. if (this.viewPageAreaNode) this.viewPageAreaNode.empty();
  268. }
  269. },
  270. loadDataByPaging : function(){
  271. if( this.isItemsLoading )return;
  272. if( !this.isItemsLoaded ){
  273. var from = Math.min( this.pageNumber * this.options.perPageCount , this.gridJson.length);
  274. var to = Math.min( ( this.pageNumber + 1 ) * this.options.perPageCount + 1 , this.gridJson.length);
  275. this.isItemsLoading = true;
  276. for( var i = from; i<to; i++ ){
  277. this.items.push(new MWF.xApplication.query.Query.Statement.Item(this, this.gridJson[i], null, i));
  278. }
  279. this.isItemsLoading = false;
  280. this.pageNumber ++;
  281. if( to == this.gridJson.length )this.isItemsLoaded = true;
  282. }
  283. },
  284. getFilter: function(){
  285. var filterData = [];
  286. if (this.searchStatus==="custom"){
  287. if (this.filterItems.length){
  288. this.filterItems.each(function(filter){
  289. filterData.push(filter.data);
  290. }.bind(this));
  291. }
  292. }
  293. if (this.searchStatus==="default"){
  294. var key = this.viewSearchInputNode.get("value");
  295. if (key && key!==this.lp.searchKeywork){
  296. this.viewJson.customFilterList.each(function(entry){
  297. if (entry.formatType==="textValue"){
  298. var d = {
  299. "path": entry.path,
  300. "value": key,
  301. "formatType": entry.formatType,
  302. "logic": "and",
  303. "comparison": "like"
  304. };
  305. filterData.push(d);
  306. }
  307. if (entry.formatType==="numberValue"){
  308. var v = key.toFloat();
  309. if (!isNaN(v)){
  310. var d = {
  311. "path": entry.path,
  312. "value": v,
  313. "formatType": entry.formatType,
  314. "logic": "and",
  315. "comparison": "like"
  316. };
  317. filterData.push(d);
  318. }
  319. }
  320. }.bind(this));
  321. }
  322. }
  323. return (filterData.length) ? filterData : null;
  324. },
  325. viewSearchCustomAddToFilter: function(){
  326. var pathIdx = this.viewSearchCustomPathListNode.selectedIndex;
  327. var comparisonIdx = this.viewSearchCustomComparisonListNode.selectedIndex;
  328. if (pathIdx===-1){
  329. MWF.xDesktop.notice("error", {"x": "left", "y": "top"}, this.lp.filterErrorTitle, this.viewSearchCustomPathListNode, {"x": 0, "y": 85});
  330. return false;
  331. }
  332. if (comparisonIdx===-1){
  333. MWF.xDesktop.notice("error", {"x": "left", "y": "top"}, this.lp.filterErrorComparison, this.viewSearchCustomComparisonListNode, {"x": 0, "y": 85});
  334. return false;
  335. }
  336. var pathOption = this.viewSearchCustomPathListNode.options[pathIdx];
  337. var entry = pathOption.retrieve("entry");
  338. if (entry){
  339. var pathTitle = entry.title;
  340. var path = entry.path;
  341. var comparison = this.viewSearchCustomComparisonListNode.options[comparisonIdx].get("value");
  342. var comparisonTitle = this.viewSearchCustomComparisonListNode.options[comparisonIdx].get("text");
  343. var value = "";
  344. if( entry.valueType === "script" && entry.valueScript && entry.valueScript.code ){
  345. var idx = this.viewSearchCustomValueNode.selectedIndex;
  346. if (idx!==-1){
  347. var v = this.viewSearchCustomValueNode.options[idx].get("value");
  348. value = entry.formatType === "booleanValue" ? (v==="true") : v;
  349. }
  350. }else{
  351. switch (entry.formatType){
  352. case "numberValue":
  353. value = this.viewSearchCustomValueNode.get("value");
  354. break;
  355. case "dateTimeValue":
  356. value = this.viewSearchCustomValueNode.get("value");
  357. break;
  358. case "booleanValue":
  359. var idx = this.viewSearchCustomValueNode.selectedIndex;
  360. if (idx!==-1){
  361. var v = this.viewSearchCustomValueNode.options[idx].get("value");
  362. value = (v==="true");
  363. }
  364. break;
  365. default:
  366. value = this.viewSearchCustomValueNode.get("value");
  367. }
  368. }
  369. if (value===""){
  370. MWF.xDesktop.notice("error", {"x": "left", "y": "top"}, this.lp.filterErrorValue, this.viewSearchCustomValueContentNode, {"x": 0, "y": 85});
  371. return false;
  372. }
  373. this.filterItems.push(new MWF.xApplication.query.Query.Statement.Filter(this, {
  374. "logic": "and",
  375. "path": path,
  376. "title": pathTitle,
  377. "comparison": comparison,
  378. "comparisonTitle": comparisonTitle,
  379. "value": value,
  380. "formatType": (entry.formatType=="datetimeValue") ? "dateTimeValue": entry.formatType
  381. }, this.viewSearchCustomFilterContentNode));
  382. this.searchCustomView();
  383. }
  384. },
  385. //搜索相关结束
  386. getStatementInfor : function () {
  387. return this.json;
  388. },
  389. switchStatement : function (json) {
  390. this.switchView(json);
  391. }
  392. });
  393. MWF.xApplication.query.Query.Statement.Item = new Class({
  394. Extends : MWF.xApplication.query.Query.Viewer.Item,
  395. initialize: function(view, data, prev, i){
  396. this.view = view;
  397. this.data = data;
  398. this.css = this.view.css;
  399. this.isSelected = false;
  400. this.prev = prev;
  401. this.idx = i;
  402. this.clazzType = "item";
  403. this.load();
  404. },
  405. load: function(){
  406. this.view.fireEvent("queryLoadItemRow", [null, this]);
  407. var viewStyles = this.view.viewJson.viewStyles;
  408. var viewContentTdNode = ( viewStyles && viewStyles["contentTd"] ) ? viewStyles["contentTd"] : this.css.viewContentTdNode;
  409. this.node = new Element("tr", {
  410. "styles": ( viewStyles && viewStyles["contentTr"] ) ? viewStyles["contentTr"] : this.css.viewContentTrNode
  411. });
  412. if (this.prev){
  413. this.node.inject(this.prev.node, "after");
  414. }else{
  415. this.node.inject(this.view.viewTable);
  416. }
  417. //if (this.view.json.select==="single" || this.view.json.select==="multi"){
  418. this.selectTd = new Element("td", { "styles": viewContentTdNode }).inject(this.node);
  419. this.selectTd.setStyles({"cursor": "pointer"});
  420. if (this.view.json.itemStyles) this.selectTd.setStyles(this.view.json.itemStyles);
  421. if( this.view.isSelectTdHidden() ){
  422. this.selectTd.hide();
  423. }
  424. //}
  425. //序号
  426. if (this.view.viewJson.isSequence==="yes"){
  427. this.sequenceTd = new Element("td", {"styles": viewContentTdNode}).inject(this.node);
  428. this.sequenceTd.setStyle("width", "10px");
  429. var s= 1+this.view.json.pageSize*(this.view.currentPage-1)+this.idx;
  430. this.sequenceTd.set("text", s);
  431. }
  432. debugger;
  433. Object.each(this.view.entries, function(c, k){
  434. //if (cell){
  435. if (this.view.hideColumns.indexOf(k)===-1){
  436. var td = new Element("td", {"styles": viewContentTdNode}).inject(this.node);
  437. var cell = this.getText( c, k, td ); //this.data[k];
  438. if (cell === undefined || cell === null) cell = "";
  439. // if (k!== this.view.viewJson.group.column){
  440. var v = cell;
  441. if (c.isHtml){
  442. td.set("html", v);
  443. }else{
  444. td.set("text", v);
  445. }
  446. if( typeOf(c.contentProperties) === "object" )td.setProperties(c.contentProperties);
  447. if (this.view.json.itemStyles) td.setStyles(this.view.json.itemStyles);
  448. if( typeOf(c.contentStyles) === "object" )td.setStyles(c.contentStyles);
  449. // }else{
  450. // if (this.view.json.itemStyles) td.setStyles(this.view.json.itemStyles);
  451. // }
  452. if (this.view.openColumns.indexOf(k)!==-1){
  453. this.setOpenWork(td, c)
  454. }
  455. // if (k!== this.view.viewJson.group.column){
  456. Object.each( c.events || {}, function (e , key) {
  457. if(e.code){
  458. if( key === "loadContent" ){
  459. this.view.Macro.fire( e.code,
  460. {"node" : td, "json" : c, "data" : v, "view": this.view, "row" : this});
  461. }else if( key !== "loadTitle" ){
  462. td.addEvent(key, function(event){
  463. return this.view.Macro.fire(
  464. e.code,
  465. {"node" : td, "json" : c, "data" : v, "view": this.view, "row" : this},
  466. event
  467. );
  468. }.bind(this));
  469. }
  470. }
  471. }.bind(this));
  472. // }
  473. }
  474. //}
  475. }.bind(this));
  476. //默认选中
  477. var defaultSelectedScript = this.view.json.defaultSelectedScript || this.view.viewJson.defaultSelectedScript;
  478. if( !this.isSelected && defaultSelectedScript ){
  479. // var flag = this.view.json.select || this.view.viewJson.select || "none";
  480. // if ( flag ==="single" || flag==="multi"){
  481. //
  482. // }
  483. var flag = this.view.Macro.exec( defaultSelectedScript,
  484. {"node" : this.node, "data" : this.data, "view": this.view, "row" : this});
  485. if( flag ){
  486. if( flag === "multi" || flag === "single" ){
  487. this.select( flag );
  488. }else if( flag.toString() === "true" ){
  489. var f = this.view.json.select || this.view.viewJson.select || "none";
  490. if ( f ==="single" || f==="multi"){
  491. this.select();
  492. }
  493. }
  494. }
  495. }
  496. this.setEvent();
  497. this.view.fireEvent("postLoadItemRow", [null, this]);
  498. },
  499. getText : function(c, k, td){
  500. var path = c.path, code = c.code, obj = this.data;
  501. if( path ){
  502. var pathList = path.split(".");
  503. for( var i=0; i<pathList.length; i++ ){
  504. var p = pathList[i];
  505. if( (/(^[1-9]\d*$)/.test(p)) )p = p.toInt();
  506. if( obj[ p ] ){
  507. obj = obj[ p ];
  508. }else{
  509. obj = "";
  510. break;
  511. }
  512. }
  513. }
  514. if( code && code.trim())obj = MWF.Macro.exec( code, {"value": obj, "data": this.data, "entry": c, "node" : td, "json" : c, "row" : this});
  515. var toName = function (value) {
  516. if(typeOf(value) === "array"){
  517. Array.each( value, function (v, idx) {
  518. value[idx] = toName(v)
  519. })
  520. }else if( typeOf(value) === "object" ){
  521. Object.each( value, function (v, key) {
  522. value[key] = toName(v);
  523. })
  524. }else if( typeOf( value ) === "string" ){
  525. value = o2.name.cn( value )
  526. }
  527. return value;
  528. };
  529. var d;
  530. if( obj!= undefined && obj!= null ){
  531. if( typeOf(obj) === "array" ) {
  532. d = c.isName ? JSON.stringify(toName(Array.clone(obj))) : JSON.stringify(obj);
  533. }else if( typeOf(obj) === "object" ){
  534. d = c.isName ? JSON.stringify(toName(Object.clone(obj))) : JSON.stringify(obj);
  535. }else{
  536. d = c.isName ? o2.name.cn( obj.toString() ) : obj;
  537. }
  538. }
  539. return d;
  540. },
  541. setOpenWork: function(td, column){
  542. td.setStyle("cursor", "pointer");
  543. if( column.clickCode ){
  544. if( !this.view.Macro ){
  545. MWF.require("MWF.xScript.Macro", function () {
  546. this.view.businessData = {};
  547. this.view.Macro = new MWF.Macro.PageContext(this.view);
  548. }.bind(this), false);
  549. }
  550. td.addEvent("click", function( ev ){
  551. var result = this.view.Macro.fire(column.clickCode, this, ev);
  552. ev.stopPropagation();
  553. return result;
  554. }.bind(this));
  555. }else{
  556. // if (this.view.json.type==="cms"){
  557. // td.addEvent("click", function(ev){
  558. // this.openCms(ev)
  559. // ev.stopPropagation();
  560. // }.bind(this));
  561. // }else{
  562. td.addEvent("click", function(ev){
  563. this.openWorkAndCompleted(ev)
  564. ev.stopPropagation();
  565. }.bind(this));
  566. // }
  567. }
  568. }
  569. });
  570. MWF.xApplication.query.Query.Statement.Filter = new Class({
  571. Extends : MWF.xApplication.query.Query.Viewer.Filter
  572. });
  573. MWF.xApplication.query.Query.Statement.Actionbar = new Class({
  574. Extends : MWF.xApplication.query.Query.Viewer.Actionbar
  575. });
  576. MWF.xApplication.query.Query.Statement.Paging = new Class({
  577. Extends : MWF.xApplication.query.Query.Viewer.Paging
  578. });