Main.js 24 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602
  1. MWF.APPDSMD = MWF.xApplication.query.StatementDesigner;
  2. MWF.APPDSMD.options = {
  3. "multitask": true,
  4. "executable": false
  5. };
  6. MWF.xDesktop.requireApp("query.StatementDesigner", "Statement", null, false);
  7. MWF.xApplication.query.StatementDesigner.Main = new Class({
  8. Extends: MWF.xApplication.Common.Main,
  9. Implements: [Options, Events],
  10. options: {
  11. "style": "default",
  12. "name": "query.StatementDesigner",
  13. "icon": "icon.png",
  14. "title": MWF.APPDSMD.LP.title,
  15. "appTitle": MWF.APPDSMD.LP.title,
  16. "id": "",
  17. "tooltip": {
  18. "unCategory": MWF.APPDSMD.LP.unCategory
  19. },
  20. "actions": null,
  21. "category": null,
  22. "processData": null
  23. },
  24. onQueryLoad: function(){
  25. this.shortcut = true;
  26. if (this.status){
  27. this.options.application = this.status.applicationId;
  28. this.application = this.status.application;
  29. this.options.id = this.status.id;
  30. }
  31. if( !this.application && this.options.application ){
  32. this.application = this.options.application;
  33. }
  34. if (!this.options.id){
  35. this.options.desktopReload = false;
  36. this.options.title = this.options.title + "-"+MWF.APPDSMD.LP.newStatement;
  37. }
  38. if (!this.actions) this.actions = MWF.Actions.get("x_query_assemble_designer");
  39. this.lp = MWF.xApplication.query.StatementDesigner.LP;
  40. this.addEvent("queryClose", function(e){
  41. if (this.explorer){
  42. this.explorer.reload();
  43. }
  44. }.bind(this));
  45. },
  46. loadApplication: function(callback){
  47. this.createNode();
  48. if (!this.options.isRefresh){
  49. this.maxSize(function(){
  50. this.openStatement(function(){
  51. if (callback) callback();
  52. });
  53. }.bind(this));
  54. }else{
  55. this.openStatement(function(){
  56. if (callback) callback();
  57. });
  58. }
  59. if (!this.options.readMode) this.addKeyboardEvents();
  60. },
  61. createNode: function(){
  62. this.content.setStyle("overflow", "hidden");
  63. this.node = new Element("div", {
  64. "styles": {"width": "100%", "height": "100%", "overflow": "hidden"}
  65. }).inject(this.content);
  66. },
  67. addKeyboardEvents: function(){
  68. this.addEvent("keySave", function(e){
  69. this.keySave(e);
  70. }.bind(this));
  71. },
  72. keySave: function(e){
  73. if (this.shortcut) {
  74. this.view.save();
  75. e.preventDefault();
  76. }
  77. },
  78. getApplication:function(callback){
  79. if (!this.application){
  80. this.actions.getApplication(this.options.application, function(json){
  81. this.application = {"name": json.data.name, "id": json.data.id};
  82. if (callback) callback();
  83. }.bind(this));
  84. }else{
  85. if (callback) callback();
  86. }
  87. },
  88. openStatement: function(callback){
  89. this.getApplication(function(){
  90. this.loadNodes();
  91. this.loadStatementListNodes();
  92. // this.loadToolbar();
  93. this.loadContentNode();
  94. this.loadProperty();
  95. // this.loadTools();
  96. this.resizeNode();
  97. this.addEvent("resize", this.resizeNode.bind(this));
  98. this.loadStatement(function(){
  99. if (callback) callback();
  100. }.bind(this));
  101. this.setScrollBar(this.designerStatementArea, null, {
  102. "V": {"x": 0, "y": 0},
  103. "H": {"x": 0, "y": 0}
  104. });
  105. }.bind(this));
  106. },
  107. loadNodes: function(){
  108. this.statementListNode = new Element("div", {
  109. "styles": this.css.statementListNode
  110. }).inject(this.node);
  111. this.designerNode = new Element("div", {
  112. "styles": this.css.designerNode
  113. }).inject(this.node);
  114. this.contentNode = new Element("div", {
  115. "styles": this.css.contentNode
  116. }).inject(this.node);
  117. this.formContentNode = this.contentNode;
  118. },
  119. loadStatementListNodes: function(){
  120. this.statementListTitleNode = new Element("div", {
  121. "styles": this.css.statementListTitleNode,
  122. "text": this.lp.statement
  123. }).inject(this.statementListNode);
  124. this.statementListResizeNode = new Element("div", {"styles": this.css.statementListResizeNode}).inject(this.statementListNode);
  125. this.statementListAreaSccrollNode = new Element("div", {"styles": this.css.statementListAreaSccrollNode}).inject(this.statementListNode);
  126. this.statementListAreaNode = new Element("div", {"styles": this.css.statementListAreaNode}).inject(this.statementListAreaSccrollNode);
  127. this.loadStatementListResize();
  128. this.loadStatementList();
  129. },
  130. loadStatementListResize: function(){
  131. this.statementListResize = new Drag(this.statementListResizeNode,{
  132. "snap": 1,
  133. "onStart": function(el, e){
  134. var x = (Browser.name=="firefox") ? e.event.clientX : e.event.x;
  135. var y = (Browser.name=="firefox") ? e.event.clientY : e.event.y;
  136. el.store("position", {"x": x, "y": y});
  137. var size = this.statementListAreaSccrollNode.getSize();
  138. el.store("initialWidth", size.x);
  139. }.bind(this),
  140. "onDrag": function(el, e){
  141. var x = (Browser.name=="firefox") ? e.event.clientX : e.event.x;
  142. var bodySize = this.content.getSize();
  143. var position = el.retrieve("position");
  144. var initialWidth = el.retrieve("initialWidth").toFloat();
  145. var dx = x.toFloat() - position.x.toFloat();
  146. var width = initialWidth+dx;
  147. if (width> bodySize.x/2) width = bodySize.x/2;
  148. if (width<40) width = 40;
  149. this.contentNode.setStyle("margin-left", width+1);
  150. this.statementListNode.setStyle("width", width);
  151. }.bind(this)
  152. });
  153. this.statementListResizeNode.addEvents({
  154. "touchstart": function(e){
  155. el = e.target;
  156. var x = (Browser.name=="firefox") ? e.page.clientX : e.page.x;
  157. var y = (Browser.name=="firefox") ? e.page.clientY : e.page.y;
  158. el.store("position", {"x": x, "y": y});
  159. var size = this.statementListAreaSccrollNode.getSize();
  160. el.store("initialWidth", size.x);
  161. }.bind(this),
  162. "touchmove": function(e){
  163. el = e.target;
  164. var x = (Browser.name=="firefox") ? e.page.clientX : e.page.x;
  165. var bodySize = this.content.getSize();
  166. var position = el.retrieve("position");
  167. var initialWidth = el.retrieve("initialWidth").toFloat();
  168. var dx = x.toFloat() - position.x.toFloat();
  169. var width = initialWidth+dx;
  170. if (width> bodySize.x/2) width = bodySize.x/2;
  171. if (width<40) width = 40;
  172. this.contentNode.setStyle("margin-left", width+1);
  173. this.statementListNode.setStyle("width", width);
  174. }.bind(this)
  175. });
  176. },
  177. loadStatementList: function(){
  178. this.actions.listStatement(this.application.id, {},function (json) {
  179. json.data.each(function(statement){
  180. this.createListStatementItem(statement);
  181. }.bind(this));
  182. }.bind(this), null, false);
  183. },
  184. //列示所有查询配置列表
  185. createListStatementItem: function(statement, isNew){
  186. var _self = this;
  187. var listStatementItem = new Element("div", {"styles": this.css.listStatementItem}).inject(this.statementListAreaNode, (isNew) ? "top": "bottom");
  188. var listStatementItemIcon = new Element("div", {"styles": this.css.listStatementItemIcon}).inject(listStatementItem);
  189. var listStatementItemText = new Element("div", {"styles": this.css.listStatementItemText, "text": (statement.name) ? statement.name+" ("+statement.alias+")" : this.lp.newStatement}).inject(listStatementItem);
  190. listStatementItem.store("statement", statement);
  191. listStatementItem.addEvents({
  192. "click": function(e){_self.loadStatementByData(this, e);},
  193. "mouseover": function(){if (_self.currentListStatementItem!=this) this.setStyles(_self.css.listStatementItem_over);},
  194. "mouseout": function(){if (_self.currentListStatementItem!=this) this.setStyles(_self.css.listStatementItem);}
  195. });
  196. },
  197. //打开查询配置
  198. loadStatementByData: function(node, e){
  199. var statement = node.retrieve("statement");
  200. if (!statement.isNewStatement){
  201. var _self = this;
  202. var options = {
  203. "appId": "query.StatementDesigner"+statement.id,
  204. "id" : statement.id,
  205. // "application": _self.application.id,
  206. "application": {
  207. "name": _self.application.name,
  208. "id": _self.application.id,
  209. },
  210. "onQueryLoad": function(){
  211. this.actions = _self.actions;
  212. this.category = _self;
  213. this.options.id = statement.id;
  214. this.application = _self.application;
  215. this.explorer = _self.explorer;
  216. }
  217. };
  218. this.desktop.openApplication(e, "query.StatementDesigner", options);
  219. }
  220. },
  221. //loadContentNode-------------------------------------------
  222. loadContentNode: function(){
  223. this.contentToolbarNode = new Element("div", {
  224. "styles": this.css.contentToolbarNode
  225. }).inject(this.contentNode);
  226. if (!this.options.readMode) this.loadContentToolbar();
  227. this.editContentNode = new Element("div", {
  228. "styles": this.css.editContentNode
  229. }).inject(this.contentNode);
  230. this.loadEditContent();
  231. // this.loadEditContent(function(){
  232. // // if (this.designDcoument) this.designDcoument.body.setStyles(this.css.designBody);
  233. // // if (this.designNode) this.designNode.setStyles(this.css.designNode);
  234. // }.bind(this));
  235. },
  236. loadContentToolbar: function(callback){
  237. this.getFormToolbarHTML(function(toolbarNode){
  238. var spans = toolbarNode.getElements("span");
  239. spans.each(function(item, idx){
  240. var img = item.get("MWFButtonImage");
  241. if (img){
  242. item.set("MWFButtonImage", this.path+""+this.options.style+"/toolbar/"+img);
  243. }
  244. }.bind(this));
  245. $(toolbarNode).inject(this.contentToolbarNode);
  246. MWF.require("MWF.widget.Toolbar", function(){
  247. this.toolbar = new MWF.widget.Toolbar(toolbarNode, {"style": "ProcessCategory"}, this);
  248. this.toolbar.load();
  249. if (this.statement) if (this.statement.checkToolbars) this.statement.checkToolbars();
  250. if (callback) callback();
  251. }.bind(this));
  252. }.bind(this));
  253. },
  254. getFormToolbarHTML: function(callback){
  255. var toolbarUrl = this.path+this.options.style+"/toolbars.html";
  256. MWF.getRequestText(toolbarUrl, function(responseText, responseXML){
  257. var htmlString = responseText;
  258. htmlString = o2.bindJson(htmlString, {"lp": this.lp.formToolbar});
  259. var temp = new Element('div').set('html', htmlString);
  260. if (callback) callback( temp.childNodes[0] );
  261. }.bind(this));
  262. },
  263. loadEditContent: function(callback){
  264. this.designNode = new Element("div.designNode", {
  265. "styles": this.css.designNode
  266. }).inject(this.editContentNode);
  267. },
  268. //loadProperty--------------------------------------
  269. loadProperty: function(){
  270. this.designerTitleNode = new Element("div", {
  271. "styles": this.css.designerTitleNode,
  272. "text": this.lp.property
  273. }).inject(this.designerNode);
  274. this.designerResizeBar = new Element("div", {
  275. "styles": this.css.designerResizeBar
  276. }).inject(this.designerNode);
  277. this.loadDesignerResize();
  278. this.designerContentNode = new Element("div.designerContentNode", {
  279. "styles": this.css.designerContentNode
  280. }).inject(this.designerNode);
  281. this.designerStatementArea = new Element("div.designerStatementArea", {
  282. "styles": this.css.designerStatementArea
  283. }).inject(this.designerContentNode);
  284. this.propertyDomArea = this.designerStatementArea;
  285. this.designerStatementPercent = 0.3;
  286. this.designerContentResizeNode = new Element("div.designerContentResizeNode", {
  287. "styles": this.css.designerContentResizeNode
  288. }).inject(this.designerContentNode);
  289. this.designerContentArea = new Element("div.designerContentArea", {
  290. "styles": this.css.designerContentArea
  291. }).inject(this.designerContentNode);
  292. this.propertyContentArea = this.designerContentArea;
  293. this.loadDesignerStatementResize();
  294. //this.setPropertyContent();
  295. this.designerNode.addEvent("keydown", function(e){e.stopPropagation();});
  296. },
  297. loadDesignerResize: function(){
  298. this.designerResize = new Drag(this.designerResizeBar,{
  299. "snap": 1,
  300. "onStart": function(el, e){
  301. var x = (Browser.name=="firefox") ? e.event.clientX : e.event.x;
  302. var y = (Browser.name=="firefox") ? e.event.clientY : e.event.y;
  303. el.store("position", {"x": x, "y": y});
  304. var size = this.designerNode.getSize();
  305. el.store("initialWidth", size.x);
  306. }.bind(this),
  307. "onDrag": function(el, e){
  308. var x = (Browser.name=="firefox") ? e.event.clientX : e.event.x;
  309. // var y = e.event.y;
  310. var bodySize = this.content.getSize();
  311. var position = el.retrieve("position");
  312. var initialWidth = el.retrieve("initialWidth").toFloat();
  313. var dx = position.x.toFloat()-x.toFloat();
  314. var width = initialWidth+dx;
  315. if (width> bodySize.x/2) width = bodySize.x/2;
  316. if (width<40) width = 40;
  317. var nodeSize = this.node.getSize();
  318. var scale = width/nodeSize.x;
  319. var scale = scale*100;
  320. this.contentNode.setStyle("margin-right", scale+"%");
  321. this.designerNode.setStyle("width", scale+"%");
  322. }.bind(this)
  323. });
  324. },
  325. loadDesignerStatementResize: function(){
  326. this.designerContentResize = new Drag(this.designerContentResizeNode, {
  327. "snap": 1,
  328. "onStart": function(el, e){
  329. var x = (Browser.name=="firefox") ? e.event.clientX : e.event.x;
  330. var y = (Browser.name=="firefox") ? e.event.clientY : e.event.y;
  331. el.store("position", {"x": x, "y": y});
  332. var size = this.designerStatementArea.getSize();
  333. el.store("initialHeight", size.y);
  334. }.bind(this),
  335. "onDrag": function(el, e){
  336. var size = this.designerContentNode.getSize();
  337. // var x = e.event.x;
  338. var y = (Browser.name=="firefox") ? e.event.clientY : e.event.y;
  339. var position = el.retrieve("position");
  340. var dy = y.toFloat()-position.y.toFloat();
  341. var initialHeight = el.retrieve("initialHeight").toFloat();
  342. var height = initialHeight+dy;
  343. if (height<40) height = 40;
  344. if (height> size.y-40) height = size.y-40;
  345. this.designerStatementPercent = height/size.y;
  346. this.setDesignerStatementResize();
  347. }.bind(this)
  348. });
  349. },
  350. setDesignerStatementResize: function(){
  351. var size = this.designerContentNode.getSize();
  352. var contentHeight;
  353. debugger;
  354. if( this.statement && this.statement.selectMode && this.statement.selectMode.contains("view") ){
  355. this.designerContentResizeNode.show();
  356. this.designerStatementArea.show();
  357. var resizeNodeSize = this.designerContentResizeNode.getSize();
  358. var height = size.y-resizeNodeSize.y;
  359. var domHeight = this.designerStatementPercent*height;
  360. contentHeight = height-domHeight;
  361. this.designerStatementArea.setStyle("height", ""+domHeight+"px");
  362. this.designerContentArea.setStyle("height", ""+contentHeight+"px");
  363. }else{
  364. contentHeight = size.y;
  365. this.designerContentResizeNode.hide();
  366. this.designerStatementArea.hide();
  367. this.designerContentArea.setStyle("height", ""+contentHeight+"px");
  368. }
  369. if (this.statement){
  370. if (this.statement.currentSelectedModule){
  371. if (this.statement.currentSelectedModule.property){
  372. var tab = this.statement.currentSelectedModule.property.propertyTab;
  373. if (tab){
  374. var tabTitleSize = tab.tabNodeContainer.getSize();
  375. tab.pages.each(function(page){
  376. var topMargin = page.contentNodeArea.getStyle("margin-top").toFloat();
  377. var bottomMargin = page.contentNodeArea.getStyle("margin-bottom").toFloat();
  378. var tabContentNodeAreaHeight = contentHeight - topMargin - bottomMargin - tabTitleSize.y.toFloat()-15;
  379. page.contentNodeArea.setStyle("height", tabContentNodeAreaHeight);
  380. }.bind(this));
  381. }
  382. }
  383. }
  384. }
  385. },
  386. //resizeNode------------------------------------------------
  387. resizeNode: function(){
  388. var nodeSize = this.node.getSize();
  389. this.contentNode.setStyle("height", ""+nodeSize.y+"px");
  390. this.designerNode.setStyle("height", ""+nodeSize.y+"px");
  391. var contentToolbarMarginTop = this.contentToolbarNode.getStyle("margin-top").toFloat();
  392. var contentToolbarMarginBottom = this.contentToolbarNode.getStyle("margin-bottom").toFloat();
  393. var allContentToolberSize = this.contentToolbarNode.getComputedSize();
  394. var y = nodeSize.y - allContentToolberSize.totalHeight - contentToolbarMarginTop - contentToolbarMarginBottom;
  395. this.editContentNode.setStyle("height", ""+y+"px");
  396. if (this.designNode){
  397. var designMarginTop = this.designNode.getStyle("margin-top").toFloat();
  398. var designMarginBottom = this.designNode.getStyle("margin-bottom").toFloat();
  399. y = nodeSize.y - allContentToolberSize.totalHeight - contentToolbarMarginTop - contentToolbarMarginBottom - designMarginTop - designMarginBottom;
  400. this.designNode.setStyle("height", ""+y+"px");
  401. }
  402. titleSize = this.designerTitleNode.getSize();
  403. titleMarginTop = this.designerTitleNode.getStyle("margin-top").toFloat();
  404. titleMarginBottom = this.designerTitleNode.getStyle("margin-bottom").toFloat();
  405. titlePaddingTop = this.designerTitleNode.getStyle("padding-top").toFloat();
  406. titlePaddingBottom = this.designerTitleNode.getStyle("padding-bottom").toFloat();
  407. y = titleSize.y+titleMarginTop+titleMarginBottom+titlePaddingTop+titlePaddingBottom;
  408. y = nodeSize.y-y;
  409. this.designerContentNode.setStyle("height", ""+y+"px");
  410. this.designerResizeBar.setStyle("height", ""+y+"px");
  411. this.setDesignerStatementResize();
  412. titleSize = this.statementListTitleNode.getSize();
  413. titleMarginTop = this.statementListTitleNode.getStyle("margin-top").toFloat();
  414. titleMarginBottom = this.statementListTitleNode.getStyle("margin-bottom").toFloat();
  415. titlePaddingTop = this.statementListTitleNode.getStyle("padding-top").toFloat();
  416. titlePaddingBottom = this.statementListTitleNode.getStyle("padding-bottom").toFloat();
  417. nodeMarginTop = this.statementListAreaSccrollNode.getStyle("margin-top").toFloat();
  418. nodeMarginBottom = this.statementListAreaSccrollNode.getStyle("margin-bottom").toFloat();
  419. y = titleSize.y+titleMarginTop+titleMarginBottom+titlePaddingTop+titlePaddingBottom+nodeMarginTop+nodeMarginBottom;
  420. y = nodeSize.y-y;
  421. this.statementListAreaSccrollNode.setStyle("height", ""+y+"px");
  422. this.statementListResizeNode.setStyle("height", ""+y+"px");
  423. },
  424. //loadStatement------------------------------------------
  425. loadStatement: function(callback){
  426. debugger;
  427. this.getStatementData(this.options.id, function(vdata){
  428. this.setTitle(this.options.appTitle + "-"+vdata.name);
  429. if(this.taskitem)this.taskitem.setText(this.options.appTitle + "-"+vdata.name);
  430. this.options.appTitle = this.options.appTitle + "-"+vdata.name;
  431. this.statement = new MWF.xApplication.query.StatementDesigner.Statement(this, vdata);
  432. this.statement.load();
  433. if(callback)callback()
  434. }.bind(this));
  435. },
  436. getStatementData: function(id, callback){
  437. if (!this.options.id){
  438. this.loadNewStatementData(callback);
  439. }else{
  440. this.loadStatementData(id, callback);
  441. }
  442. },
  443. loadNewStatementData: function(callback){
  444. var url = "../x_component_query_StatementDesigner/$Statement/statement.json";
  445. MWF.getJSON(url, {
  446. "onSuccess": function(obj){
  447. this.actions.getUUID(function(id){
  448. obj.id=id;
  449. obj.isNewStatement = true;
  450. obj.application = this.application.id;
  451. this.createListStatementItem(obj, true);
  452. if (callback) callback(obj);
  453. }.bind(this));
  454. }.bind(this),
  455. "onerror": function(text){
  456. this.notice(text, "error");
  457. }.bind(this),
  458. "onRequestFailure": function(xhr){
  459. this.notice(xhr.responseText, "error");
  460. }.bind(this)
  461. });
  462. },
  463. loadStatementData: function(id, callback){
  464. this.actions.getStatement(id, function(json){
  465. if (json){
  466. var data = json.data;
  467. if (!this.application){
  468. this.actions.getApplication(data.query, function(json){
  469. this.application = {"name": json.data.name, "id": json.data.id};
  470. if (callback) callback(data);
  471. }.bind(this));
  472. }else{
  473. if (callback) callback(data);
  474. }
  475. }
  476. }.bind(this));
  477. },
  478. preview : function(){
  479. this.statement.preview();
  480. },
  481. saveStatement: function(){
  482. this.statement.save(function(){
  483. var name = this.statement.data.name;
  484. this.setTitle(MWF.APPDSMD.LP.title + "-"+name);
  485. this.options.desktopReload = true;
  486. this.options.id = this.statement.data.id;
  487. }.bind(this));
  488. },
  489. saveView: function(){
  490. this.saveStatement();
  491. },
  492. saveForm: function(){
  493. this.saveStatement();
  494. },
  495. statementHelp: function(){
  496. window.open("../x_component_query_StatementDesigner/$Statement/tutorial/tutorial-statement.html", "o2statement")
  497. // var content = new Element("div", {"styles": {"margin": "20px"}});
  498. // content.set("html", this.lp.tableHelp);
  499. // o2.DL.open({
  500. // "title": "table help",
  501. // "content": content,
  502. // "width": 500,
  503. // "height": 300,
  504. // "buttonList": [
  505. // {
  506. // "text": "ok",
  507. // "action": function(){this.close();}
  508. // }
  509. // ]
  510. // });
  511. },
  512. recordStatus: function(){
  513. //if (this.tab){
  514. var openViews = [];
  515. openViews.push(this.statement.data.id);
  516. var currentId = this.statement.data.id;
  517. var application = o2.typeOf(this.application) === "object" ? {
  518. name: this.application.name,
  519. id: this.application.id
  520. } : this.application;
  521. return {
  522. "id": this.options.id,
  523. "application": application,
  524. "openViews": openViews,
  525. "currentId": currentId
  526. };
  527. //}
  528. //return {"id": this.options.id, "application": this.application};
  529. }
  530. // dictionaryExplode: function(){
  531. // this.view.explode();
  532. // },
  533. // dictionaryImplode: function(){
  534. // this.view.implode();
  535. // }
  536. //recordStatus: function(){
  537. // return {"id": this.options.id};
  538. //},
  539. });