Main.js 24 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603
  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. var r = new Request.HTML({
  257. url: toolbarUrl,
  258. method: "get",
  259. onSuccess: function(responseTree, responseElements, responseHTML, responseJavaScript){
  260. var toolbarNode = responseTree[0];
  261. if (callback) callback(toolbarNode);
  262. }.bind(this),
  263. onFailure: function(xhr){
  264. this.notice("request processToolbars error: "+xhr.responseText, "error");
  265. }.bind(this)
  266. });
  267. r.send();
  268. },
  269. loadEditContent: function(callback){
  270. this.designNode = new Element("div.designNode", {
  271. "styles": this.css.designNode
  272. }).inject(this.editContentNode);
  273. },
  274. //loadProperty--------------------------------------
  275. loadProperty: function(){
  276. this.designerTitleNode = new Element("div", {
  277. "styles": this.css.designerTitleNode,
  278. "text": this.lp.property
  279. }).inject(this.designerNode);
  280. this.designerResizeBar = new Element("div", {
  281. "styles": this.css.designerResizeBar
  282. }).inject(this.designerNode);
  283. this.loadDesignerResize();
  284. this.designerContentNode = new Element("div.designerContentNode", {
  285. "styles": this.css.designerContentNode
  286. }).inject(this.designerNode);
  287. this.designerStatementArea = new Element("div.designerStatementArea", {
  288. "styles": this.css.designerStatementArea
  289. }).inject(this.designerContentNode);
  290. this.propertyDomArea = this.designerStatementArea;
  291. this.designerStatementPercent = 0.3;
  292. this.designerContentResizeNode = new Element("div.designerContentResizeNode", {
  293. "styles": this.css.designerContentResizeNode
  294. }).inject(this.designerContentNode);
  295. this.designerContentArea = new Element("div.designerContentArea", {
  296. "styles": this.css.designerContentArea
  297. }).inject(this.designerContentNode);
  298. this.propertyContentArea = this.designerContentArea;
  299. this.loadDesignerStatementResize();
  300. //this.setPropertyContent();
  301. this.designerNode.addEvent("keydown", function(e){e.stopPropagation();});
  302. },
  303. loadDesignerResize: function(){
  304. this.designerResize = new Drag(this.designerResizeBar,{
  305. "snap": 1,
  306. "onStart": function(el, e){
  307. var x = (Browser.name=="firefox") ? e.event.clientX : e.event.x;
  308. var y = (Browser.name=="firefox") ? e.event.clientY : e.event.y;
  309. el.store("position", {"x": x, "y": y});
  310. var size = this.designerNode.getSize();
  311. el.store("initialWidth", size.x);
  312. }.bind(this),
  313. "onDrag": function(el, e){
  314. var x = (Browser.name=="firefox") ? e.event.clientX : e.event.x;
  315. // var y = e.event.y;
  316. var bodySize = this.content.getSize();
  317. var position = el.retrieve("position");
  318. var initialWidth = el.retrieve("initialWidth").toFloat();
  319. var dx = position.x.toFloat()-x.toFloat();
  320. var width = initialWidth+dx;
  321. if (width> bodySize.x/2) width = bodySize.x/2;
  322. if (width<40) width = 40;
  323. var nodeSize = this.node.getSize();
  324. var scale = width/nodeSize.x;
  325. var scale = scale*100;
  326. this.contentNode.setStyle("margin-right", scale+"%");
  327. this.designerNode.setStyle("width", scale+"%");
  328. }.bind(this)
  329. });
  330. },
  331. loadDesignerStatementResize: function(){
  332. this.designerContentResize = new Drag(this.designerContentResizeNode, {
  333. "snap": 1,
  334. "onStart": function(el, e){
  335. var x = (Browser.name=="firefox") ? e.event.clientX : e.event.x;
  336. var y = (Browser.name=="firefox") ? e.event.clientY : e.event.y;
  337. el.store("position", {"x": x, "y": y});
  338. var size = this.designerStatementArea.getSize();
  339. el.store("initialHeight", size.y);
  340. }.bind(this),
  341. "onDrag": function(el, e){
  342. var size = this.designerContentNode.getSize();
  343. // var x = e.event.x;
  344. var y = (Browser.name=="firefox") ? e.event.clientY : e.event.y;
  345. var position = el.retrieve("position");
  346. var dy = y.toFloat()-position.y.toFloat();
  347. var initialHeight = el.retrieve("initialHeight").toFloat();
  348. var height = initialHeight+dy;
  349. if (height<40) height = 40;
  350. if (height> size.y-40) height = size.y-40;
  351. this.designerStatementPercent = height/size.y;
  352. this.setDesignerStatementResize();
  353. }.bind(this)
  354. });
  355. },
  356. setDesignerStatementResize: function(){
  357. var size = this.designerContentNode.getSize();
  358. var contentHeight;
  359. debugger;
  360. if( this.statement && this.statement.selectMode && this.statement.selectMode.contains("view") ){
  361. this.designerContentResizeNode.show();
  362. this.designerStatementArea.show();
  363. var resizeNodeSize = this.designerContentResizeNode.getSize();
  364. var height = size.y-resizeNodeSize.y;
  365. var domHeight = this.designerStatementPercent*height;
  366. contentHeight = height-domHeight;
  367. this.designerStatementArea.setStyle("height", ""+domHeight+"px");
  368. this.designerContentArea.setStyle("height", ""+contentHeight+"px");
  369. }else{
  370. contentHeight = size.y;
  371. this.designerContentResizeNode.hide();
  372. this.designerStatementArea.hide();
  373. this.designerContentArea.setStyle("height", ""+contentHeight+"px");
  374. }
  375. if (this.statement){
  376. if (this.statement.currentSelectedModule){
  377. if (this.statement.currentSelectedModule.property){
  378. var tab = this.statement.currentSelectedModule.property.propertyTab;
  379. if (tab){
  380. var tabTitleSize = tab.tabNodeContainer.getSize();
  381. tab.pages.each(function(page){
  382. var topMargin = page.contentNodeArea.getStyle("margin-top").toFloat();
  383. var bottomMargin = page.contentNodeArea.getStyle("margin-bottom").toFloat();
  384. var tabContentNodeAreaHeight = contentHeight - topMargin - bottomMargin - tabTitleSize.y.toFloat()-15;
  385. page.contentNodeArea.setStyle("height", tabContentNodeAreaHeight);
  386. }.bind(this));
  387. }
  388. }
  389. }
  390. }
  391. },
  392. //resizeNode------------------------------------------------
  393. resizeNode: function(){
  394. var nodeSize = this.node.getSize();
  395. this.contentNode.setStyle("height", ""+nodeSize.y+"px");
  396. this.designerNode.setStyle("height", ""+nodeSize.y+"px");
  397. var contentToolbarMarginTop = this.contentToolbarNode.getStyle("margin-top").toFloat();
  398. var contentToolbarMarginBottom = this.contentToolbarNode.getStyle("margin-bottom").toFloat();
  399. var allContentToolberSize = this.contentToolbarNode.getComputedSize();
  400. var y = nodeSize.y - allContentToolberSize.totalHeight - contentToolbarMarginTop - contentToolbarMarginBottom;
  401. this.editContentNode.setStyle("height", ""+y+"px");
  402. if (this.designNode){
  403. var designMarginTop = this.designNode.getStyle("margin-top").toFloat();
  404. var designMarginBottom = this.designNode.getStyle("margin-bottom").toFloat();
  405. y = nodeSize.y - allContentToolberSize.totalHeight - contentToolbarMarginTop - contentToolbarMarginBottom - designMarginTop - designMarginBottom;
  406. this.designNode.setStyle("height", ""+y+"px");
  407. }
  408. titleSize = this.designerTitleNode.getSize();
  409. titleMarginTop = this.designerTitleNode.getStyle("margin-top").toFloat();
  410. titleMarginBottom = this.designerTitleNode.getStyle("margin-bottom").toFloat();
  411. titlePaddingTop = this.designerTitleNode.getStyle("padding-top").toFloat();
  412. titlePaddingBottom = this.designerTitleNode.getStyle("padding-bottom").toFloat();
  413. y = titleSize.y+titleMarginTop+titleMarginBottom+titlePaddingTop+titlePaddingBottom;
  414. y = nodeSize.y-y;
  415. this.designerContentNode.setStyle("height", ""+y+"px");
  416. this.designerResizeBar.setStyle("height", ""+y+"px");
  417. this.setDesignerStatementResize();
  418. titleSize = this.statementListTitleNode.getSize();
  419. titleMarginTop = this.statementListTitleNode.getStyle("margin-top").toFloat();
  420. titleMarginBottom = this.statementListTitleNode.getStyle("margin-bottom").toFloat();
  421. titlePaddingTop = this.statementListTitleNode.getStyle("padding-top").toFloat();
  422. titlePaddingBottom = this.statementListTitleNode.getStyle("padding-bottom").toFloat();
  423. nodeMarginTop = this.statementListAreaSccrollNode.getStyle("margin-top").toFloat();
  424. nodeMarginBottom = this.statementListAreaSccrollNode.getStyle("margin-bottom").toFloat();
  425. y = titleSize.y+titleMarginTop+titleMarginBottom+titlePaddingTop+titlePaddingBottom+nodeMarginTop+nodeMarginBottom;
  426. y = nodeSize.y-y;
  427. this.statementListAreaSccrollNode.setStyle("height", ""+y+"px");
  428. this.statementListResizeNode.setStyle("height", ""+y+"px");
  429. },
  430. //loadStatement------------------------------------------
  431. loadStatement: function(callback){
  432. debugger;
  433. this.getStatementData(this.options.id, function(vdata){
  434. this.setTitle(this.options.appTitle + "-"+vdata.name);
  435. if(this.taskitem)this.taskitem.setText(this.options.appTitle + "-"+vdata.name);
  436. this.options.appTitle = this.options.appTitle + "-"+vdata.name;
  437. this.statement = new MWF.xApplication.query.StatementDesigner.Statement(this, vdata);
  438. this.statement.load();
  439. if(callback)callback()
  440. }.bind(this));
  441. },
  442. getStatementData: function(id, callback){
  443. if (!this.options.id){
  444. this.loadNewStatementData(callback);
  445. }else{
  446. this.loadStatementData(id, callback);
  447. }
  448. },
  449. loadNewStatementData: function(callback){
  450. var url = "../x_component_query_StatementDesigner/$Statement/statement.json";
  451. MWF.getJSON(url, {
  452. "onSuccess": function(obj){
  453. this.actions.getUUID(function(id){
  454. obj.id=id;
  455. obj.isNewStatement = true;
  456. obj.application = this.application.id;
  457. this.createListStatementItem(obj, true);
  458. if (callback) callback(obj);
  459. }.bind(this));
  460. }.bind(this),
  461. "onerror": function(text){
  462. this.notice(text, "error");
  463. }.bind(this),
  464. "onRequestFailure": function(xhr){
  465. this.notice(xhr.responseText, "error");
  466. }.bind(this)
  467. });
  468. },
  469. loadStatementData: function(id, callback){
  470. this.actions.getStatement(id, function(json){
  471. if (json){
  472. var data = json.data;
  473. if (!this.application){
  474. this.actions.getApplication(data.query, function(json){
  475. this.application = {"name": json.data.name, "id": json.data.id};
  476. if (callback) callback(data);
  477. }.bind(this));
  478. }else{
  479. if (callback) callback(data);
  480. }
  481. }
  482. }.bind(this));
  483. },
  484. preview : function(){
  485. this.statement.preview();
  486. },
  487. saveStatement: function(){
  488. this.statement.save(function(){
  489. var name = this.statement.data.name;
  490. this.setTitle(MWF.APPDSMD.LP.title + "-"+name);
  491. this.options.desktopReload = true;
  492. this.options.id = this.statement.data.id;
  493. }.bind(this));
  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. });