Main.js 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554
  1. MWF.xApplication.Attendance = MWF.xApplication.Attendance || {};
  2. MWF.require("MWF.widget.O2Identity", null, false);
  3. //MWF.xDesktop.requireApp("Attendance", "Actions.RestActions", null, false);
  4. MWF.xDesktop.requireApp("Attendance", "Common", null, false);
  5. MWF.xDesktop.requireApp("Template", "MDomItem", null, false);
  6. MWF.xApplication.Attendance.options = {
  7. multitask: false,
  8. executable: true
  9. };
  10. MWF.xApplication.Attendance.Main = new Class({
  11. Extends: MWF.xApplication.Common.Main,
  12. Implements: [Options, Events],
  13. options: {
  14. "curNaviId": null,
  15. "style": "default",
  16. "name": "Attendance",
  17. "icon": "icon.png",
  18. "width": "1400",
  19. "height": "700",
  20. "isResize": true,
  21. "isMax": true,
  22. "title": MWF.xApplication.Attendance.LP.title
  23. },
  24. onQueryLoad: function () {
  25. this.lp = MWF.xApplication.Attendance.LP;
  26. },
  27. loadApplication: function (callback) {
  28. if (!this.options.isRefresh) {
  29. this.maxSize(function () {
  30. this.loadLayout();
  31. }.bind(this));
  32. } else {
  33. this.loadLayout();
  34. }
  35. },
  36. loadLayout: function () {
  37. this.manageUnits = [];
  38. this.manageTopUnits = [];
  39. this.enableType = "";
  40. this.restActions = MWF.Actions.get("x_attendance_assemble_control");
  41. this.personActions = MWF.Actions.get("x_organization_assemble_personal");
  42. this.orgActions = MWF.Actions.get("x_organization_assemble_express");
  43. this.createNode();
  44. this.loadApplicationContent();
  45. },
  46. isAdmin: function () {
  47. return this.isTopUnitManager() || MWF.AC.isAttendanceManager() || MWF.AC.isAdministrator()
  48. },
  49. isUnitManager: function () {
  50. return this.manageUnits.length > 0;
  51. },
  52. isTopUnitManager: function () {
  53. return this.manageTopUnits.length > 0;
  54. },
  55. getNameFlag: function (name) {
  56. var t = typeOf(name);
  57. if (t === "array") {
  58. var v = [];
  59. name.each(function (id) {
  60. v.push((typeOf(id) === "object") ? (id.distinguishedName || id.id || id.unique || id.name) : id);
  61. });
  62. return v;
  63. } else {
  64. return [(t === "object") ? (name.distinguishedName || name.id || name.unique || name.name) : name];
  65. }
  66. },
  67. loadController: function (callback) {
  68. this.restActions.listPermission(function (json) {
  69. json.data = json.data || [];
  70. json.data.each(function (item) {
  71. if (item.adminLevel == "COMPANY" && item.adminName == layout.desktop.session.user.distinguishedName) {
  72. this.manageTopUnits.push(item.unitName)
  73. } else if (item.adminLevel == "DEPT" && item.adminName == layout.desktop.session.user.distinguishedName) {
  74. this.manageUnits.push(item.unitName)
  75. }
  76. }.bind(this));
  77. if (callback) callback(json);
  78. }.bind(this));
  79. },
  80. loadEnableType: function (callback) {
  81. var action = o2.Actions.load("x_attendance_assemble_control");
  82. action.AttendanceSettingAction.enableType(//平台封装好的方法
  83. function (json) { //服务调用成功的回调函数, json为服务传回的数据
  84. console.log(json);
  85. if (json.data && json.data.value) {
  86. debugger;
  87. this.enableType = json.data.value;
  88. }
  89. if (callback) callback(json);
  90. }.bind(this));
  91. },
  92. createNode: function () {
  93. this.content.setStyle("overflow", "hidden");
  94. this.node = new Element("div", {
  95. "styles": { "width": "100%", "height": "100%", "overflow": "hidden" }
  96. }).inject(this.content);
  97. },
  98. loadApplicationContent: function () {
  99. this.loadController(function () {
  100. this.loadEnableType(function () {
  101. this.loaNavi();
  102. }.bind(this));
  103. }.bind(this));
  104. //this.loadApplicationLayout();
  105. },
  106. loaNavi: function (callback) {
  107. this.naviNode = new Element("div.naviNode", {
  108. "styles": this.css.naviNode
  109. }).inject(this.node);
  110. var curNavi = { "id": "" };
  111. if (this.status) {
  112. curNavi.id = this.status.id
  113. }
  114. if (this.options.curNaviId) {
  115. curNavi.id = this.options.curNaviId;
  116. }
  117. this.navi = new MWF.xApplication.Attendance.Navi(this, this.naviNode, curNavi);
  118. },
  119. clearContent: function () {
  120. if (this.explorerContent) {
  121. if (this.explorer && this.explorer.destroy) {
  122. this.explorer.destroy();
  123. }
  124. this.explorerContent.destroy();
  125. this.explorerContent = null;
  126. }
  127. },
  128. openMyIndex: function () {
  129. MWF.xDesktop.requireApp("Attendance", "MyIndex", function () {
  130. this.clearContent();
  131. this.explorerContent = new Element("div", {
  132. "styles": this.css.rightContentNode
  133. }).inject(this.node);
  134. this.explorer = new MWF.xApplication.Attendance.MyIndex(this.explorerContent, this, this.restActions, { "isAdmin": this.isAdmin() });
  135. this.explorer.load();
  136. }.bind(this));
  137. },
  138. openMyDetail: function () {
  139. MWF.xDesktop.requireApp("Attendance", "MyDetail", function () {
  140. this.clearContent();
  141. this.explorerContent = new Element("div", {
  142. "styles": this.css.rightContentNode
  143. }).inject(this.node);
  144. this.explorer = new MWF.xApplication.Attendance.MyDetail(this.explorerContent, this, this.restActions, { "isAdmin": this.isAdmin() });
  145. this.explorer.load();
  146. }.bind(this));
  147. },
  148. openUnitIndex: function () {
  149. MWF.xDesktop.requireApp("Attendance", "UnitIndex", function () {
  150. this.clearContent();
  151. this.explorerContent = new Element("div", {
  152. "styles": this.css.rightContentNode
  153. }).inject(this.node);
  154. this.explorer = new MWF.xApplication.Attendance.UnitIndex(this.explorerContent, this, this.restActions, { "isAdmin": this.isAdmin() });
  155. this.explorer.load();
  156. }.bind(this));
  157. },
  158. openUnitDetail: function () {
  159. MWF.xDesktop.requireApp("Attendance", "UnitDetail", function () {
  160. this.clearContent();
  161. this.explorerContent = new Element("div", {
  162. "styles": this.css.rightContentNode
  163. }).inject(this.node);
  164. this.explorer = new MWF.xApplication.Attendance.UnitDetail(this.explorerContent, this, this.restActions, { "isAdmin": this.isAdmin() });
  165. this.explorer.load();
  166. }.bind(this));
  167. },
  168. openDingdingUnitDetail: function () {
  169. MWF.xDesktop.requireApp("Attendance", "UnitDingdingDetail", function () {
  170. this.clearContent();
  171. this.explorerContent = new Element("div", {
  172. "styles": this.css.rightContentNode
  173. }).inject(this.node);
  174. this.explorer = new MWF.xApplication.Attendance.UnitDingdingDetail(this.explorerContent, this, this.restActions, { "isAdmin": this.isAdmin() });
  175. this.explorer.load();
  176. }.bind(this));
  177. },
  178. openPeopleDetail: function () {
  179. MWF.xDesktop.requireApp("Attendance", "PeopleDetail", function () {
  180. this.clearContent();
  181. this.explorerContent = new Element("div", {
  182. "styles": this.css.rightContentNode
  183. }).inject(this.node);
  184. this.explorer = new MWF.xApplication.Attendance.PeopleDetail(this.explorerContent, this, this.restActions, { "isAdmin": this.isAdmin() });
  185. this.explorer.load();
  186. }.bind(this));
  187. },
  188. openDingdingPeopleDetail: function () {
  189. MWF.xDesktop.requireApp("Attendance", "PeopleDingdingDetail", function () {
  190. this.clearContent();
  191. this.explorerContent = new Element("div", {
  192. "styles": this.css.rightContentNode
  193. }).inject(this.node);
  194. this.explorer = new MWF.xApplication.Attendance.PeopleDingdingDetail(this.explorerContent, this, this.restActions, { "isAdmin": this.isAdmin() });
  195. this.explorer.load();
  196. }.bind(this));
  197. },
  198. openTopUnitDetail: function () {
  199. MWF.xDesktop.requireApp("Attendance", "TopUnitDetail", function () {
  200. this.clearContent();
  201. this.explorerContent = new Element("div", {
  202. "styles": this.css.rightContentNode
  203. }).inject(this.node);
  204. this.explorer = new MWF.xApplication.Attendance.TopUnitDetail(this.explorerContent, this, this.restActions, { "isAdmin": this.isAdmin() });
  205. this.explorer.load();
  206. }.bind(this));
  207. },
  208. openSelfHoliday: function () {
  209. MWF.xDesktop.requireApp("Attendance", "SelfHoliday", function () {
  210. this.clearContent();
  211. this.explorerContent = new Element("div", {
  212. "styles": this.css.rightContentNode
  213. }).inject(this.node);
  214. this.explorer = new MWF.xApplication.Attendance.SelfHoliday(this.explorerContent, this, this.restActions, { "isAdmin": this.isAdmin() });
  215. this.explorer.load();
  216. }.bind(this));
  217. },
  218. openMyAppealDeal: function () {
  219. MWF.xDesktop.requireApp("Attendance", "MyAppeal", function () {
  220. this.clearContent();
  221. this.explorerContent = new Element("div", {
  222. "styles": this.css.rightContentNode
  223. }).inject(this.node);
  224. this.explorer = new MWF.xApplication.Attendance.MyAppeal(this.explorerContent, this, this.restActions, { "isAdmin": this.isAdmin() });
  225. this.explorer.load();
  226. }.bind(this));
  227. },
  228. openAppealDeal: function () {
  229. MWF.xDesktop.requireApp("Attendance", "AppealExplorer", function () {
  230. this.clearContent();
  231. this.explorerContent = new Element("div", {
  232. "styles": this.css.rightContentNode
  233. }).inject(this.node);
  234. this.explorer = new MWF.xApplication.Attendance.AppealExplorer(this.explorerContent, this, this.restActions, { "isAdmin": this.isAdmin() });
  235. this.explorer.load();
  236. }.bind(this));
  237. },
  238. openImporting: function () {
  239. MWF.xDesktop.requireApp("Attendance", "ImportExplorer", function () {
  240. this.clearContent();
  241. this.explorerContent = new Element("div", {
  242. "styles": this.css.rightContentNode
  243. }).inject(this.node);
  244. this.explorer = new MWF.xApplication.Attendance.ImportExplorer(this.explorerContent, this, this.restActions, { "isAdmin": this.isAdmin() });
  245. this.explorer.load();
  246. }.bind(this));
  247. },
  248. openImportedInvalidInfor: function () {
  249. MWF.xDesktop.requireApp("Attendance", "InvalidInfor", function () {
  250. this.clearContent();
  251. this.explorerContent = new Element("div", {
  252. "styles": this.css.rightContentNode
  253. }).inject(this.node);
  254. this.explorer = new MWF.xApplication.Attendance.InvalidInfor(this.explorerContent, this, this.restActions, { "isAdmin": this.isAdmin() });
  255. this.explorer.load();
  256. }.bind(this));
  257. },
  258. openAbnormalExport: function () {
  259. MWF.xDesktop.requireApp("Attendance", "AbnormalExport", function () {
  260. this.clearContent();
  261. this.explorerContent = new Element("div", {
  262. "styles": this.css.rightContentNode
  263. }).inject(this.node);
  264. this.explorer = new MWF.xApplication.Attendance.AbnormalExport(this.explorerContent, this, this.restActions, { "isAdmin": this.isAdmin() });
  265. this.explorer.load();
  266. }.bind(this));
  267. },
  268. openScheduleSetting: function () {
  269. MWF.xDesktop.requireApp("Attendance", "ScheduleExplorer", function () {
  270. this.clearContent();
  271. this.explorerContent = new Element("div", {
  272. "styles": this.css.rightContentNode
  273. }).inject(this.node);
  274. this.explorer = new MWF.xApplication.Attendance.ScheduleExplorer(this.explorerContent, this, this.restActions, { "isAdmin": this.isAdmin() });
  275. this.explorer.load();
  276. }.bind(this));
  277. },
  278. openPermissionSetting: function () {
  279. MWF.xDesktop.requireApp("Attendance", "PermissionExplorer", function () {
  280. this.clearContent();
  281. this.explorerContent = new Element("div", {
  282. "styles": this.css.rightContentNode
  283. }).inject(this.node);
  284. this.explorer = new MWF.xApplication.Attendance.PermissionExplorer(this.explorerContent, this, this.restActions, { "isAdmin": this.isAdmin() });
  285. this.explorer.load();
  286. }.bind(this));
  287. },
  288. openHolidaySetting: function () {
  289. MWF.xDesktop.requireApp("Attendance", "HolidayExplorer", function () {
  290. this.clearContent();
  291. this.explorerContent = new Element("div", {
  292. "styles": this.css.rightContentNode
  293. }).inject(this.node);
  294. this.explorer = new MWF.xApplication.Attendance.HolidayExplorer(this.explorerContent, this, this.restActions, { "isAdmin": this.isAdmin() });
  295. this.explorer.load();
  296. }.bind(this));
  297. },
  298. openStaticsCycleExplorer: function () {
  299. MWF.xDesktop.requireApp("Attendance", "StatisticsCycle", function () {
  300. this.clearContent();
  301. this.explorerContent = new Element("div", {
  302. "styles": this.css.rightContentNode
  303. }).inject(this.node);
  304. this.explorer = new MWF.xApplication.Attendance.StatisticsCycle(this.explorerContent, this, this.restActions, { "isAdmin": this.isAdmin() });
  305. this.explorer.load();
  306. }.bind(this));
  307. },
  308. openAppSetting: function () {
  309. MWF.xDesktop.requireApp("Attendance", "AppSetting", function () {
  310. var setting = new MWF.xApplication.Attendance.AppSetting(this, this.restActions);
  311. setting.edit();
  312. }.bind(this));
  313. },
  314. openAddressSetting: function () {
  315. MWF.xDesktop.requireApp("Attendance", "AddressExplorer", function () {
  316. this.clearContent();
  317. this.explorerContent = new Element("div", {
  318. "styles": this.css.rightContentNode
  319. }).inject(this.node);
  320. this.explorer = new MWF.xApplication.Attendance.AddressExplorer(this.explorerContent, this, this.restActions, { "isAdmin": this.isAdmin() });
  321. this.explorer.load();
  322. }.bind(this));
  323. },
  324. openPersonSetting: function () {
  325. MWF.xDesktop.requireApp("Attendance", "PersonSetting", function () {
  326. this.clearContent();
  327. this.explorerContent = new Element("div", {
  328. "styles": this.css.rightContentNode
  329. }).inject(this.node);
  330. this.explorer = new MWF.xApplication.Attendance.PersonSetting(this.explorerContent, this, this.restActions, { "isAdmin": this.isAdmin() });
  331. this.explorer.load();
  332. }.bind(this));
  333. },
  334. recordStatus: function () {
  335. return this.navi && this.navi.currentItem ? this.navi.currentItem.retrieve("data") : {};
  336. }
  337. });
  338. MWF.xApplication.Attendance.Navi = new Class({
  339. Implements: [Options, Events],
  340. options: {
  341. "id": ""
  342. },
  343. initialize: function (app, node, options) {
  344. this.setOptions(options);
  345. this.app = app;
  346. this.node = $(node);
  347. this.css = this.app.css;
  348. this.currentMenu = null;
  349. this.currentItem = null;
  350. this.menus = {};
  351. this.items = {};
  352. this.elements = [];
  353. this.load();
  354. },
  355. load: function () {
  356. this.scrollNode = new Element("div.naviScrollNode", { "styles": this.css.naviScrollNode }).inject(this.node);
  357. this.areaNode = new Element("div.naviAreaNode", { "styles": this.css.naviAreaNode }).inject(this.scrollNode);
  358. this.setNodeScroll();
  359. var naviUrl = this.app.path + "navi.json";
  360. MWF.getJSON(naviUrl, function (json) {
  361. json.each(function (navi) {
  362. if (navi.access && navi.access == "admin") {
  363. if (this.app.isAdmin()) this.createNaviNode(navi);
  364. } else if (navi.access && navi.access == "admin_dept") {
  365. if (this.app.isUnitManager() || this.app.isAdmin()) this.createNaviNode(navi);
  366. } else if (navi.access && navi.access == "dingding") { //启用钉钉考勤同步后
  367. debugger;
  368. if ((this.app.isUnitManager() || this.app.isAdmin()) && (this.app.enableType == "dingding")) this.createNaviNode(navi);
  369. } else {
  370. this.createNaviNode(navi);
  371. }
  372. }.bind(this));
  373. if (this.options.id == "") this.elements[0].click();
  374. this.setContentSize();
  375. this.app.addEvent("resize", this.setContentSize.bind(this));
  376. }.bind(this));
  377. },
  378. setNodeScroll: function () {
  379. MWF.require("MWF.widget.DragScroll", function () {
  380. new MWF.widget.DragScroll(this.scrollNode);
  381. }.bind(this));
  382. MWF.require("MWF.widget.ScrollBar", function () {
  383. new MWF.widget.ScrollBar(this.scrollNode, { "indent": false });
  384. }.bind(this));
  385. },
  386. createNaviNode: function (data) {
  387. if (data.type == "sep") {
  388. var flag = true;
  389. if (data.access == "admin") {
  390. if (!this.app.isAdmin()) flag = false;
  391. } else if (data.access && data.access == "admin_dept") {
  392. if (!this.app.isUnitManager() && !this.app.isAdmin()) flag = false;
  393. }
  394. if (flag) {
  395. new Element("div", { "styles": this.css.viewNaviSepartorNode }).inject(this.areaNode);
  396. }
  397. } else if (data.sub && data.sub.length > 0) {
  398. this.createNaviMenuNode(data);
  399. } else {
  400. this.menus[data.id] = {};
  401. this.createNaviItemNode(data, data.id);
  402. }
  403. },
  404. createNaviMenuNode: function (data) {
  405. if (data.access == "admin") {
  406. if (!this.app.isAdmin()) return;
  407. } else if (data.access == "admin_dept") {
  408. if (!this.app.isUnitManager() && !this.app.isAdmin()) return;
  409. }
  410. var _self = this;
  411. var menuNode = new Element("div", {
  412. "styles": this.css.naviMenuNode
  413. });
  414. menuNode.store("data", data);
  415. menuNode.store("type", "menu");
  416. var textNode = new Element("div", {
  417. "styles": this.css.naviMenuTextNode,
  418. "text": data.title
  419. });
  420. textNode.inject(menuNode);
  421. menuNode.inject(this.areaNode);
  422. this.menus[data.id] = {};
  423. this.menus[data.id].node = menuNode;
  424. this.elements.push(menuNode);
  425. menuNode.addEvents({
  426. "mouseover": function () { if (_self.currentMenu != this) this.setStyles(_self.app.css.naviMenuNode_over); },
  427. "mouseout": function () { if (_self.currentMenu != this) this.setStyles(_self.app.css.naviMenuNode); },
  428. "mousedown": function () { if (_self.currentMenu != this) this.setStyles(_self.app.css.naviMenuNode_down); },
  429. "mouseup": function () { if (_self.currentMenu != this) this.setStyles(_self.app.css.naviMenuNode_over); },
  430. "click": function () {
  431. //if (_self.currentNavi!=this) _self.doAction.apply(_self, [this]);
  432. _self.clickMenu.apply(_self, [this]);
  433. }
  434. });
  435. data.sub.each(function (d) {
  436. this.createNaviItemNode(d, data.id, menuNode)
  437. }.bind(this))
  438. },
  439. clickMenu: function (naviNode) {
  440. var navi = naviNode.retrieve("data");
  441. var action = navi.action;
  442. this.closeCurrentMenu();
  443. if (this.menus[navi.id].itemNodes) {
  444. this.menus[navi.id].itemNodes.each(function (itemNode) {
  445. itemNode.setStyle("display", "block");
  446. })
  447. }
  448. var type = naviNode.retrieve("type");
  449. if (!navi.target || navi.target != "_blank") {
  450. naviNode.setStyles(this.css.naviMenuNode_current);
  451. this.currentMenu = naviNode;
  452. }
  453. },
  454. closeCurrentMenu: function () {
  455. if (this.currentMenu) {
  456. var data = this.currentMenu.retrieve("data");
  457. if (this.menus[data.id].itemNodes) {
  458. this.menus[data.id].itemNodes.each(function (itemNode) {
  459. itemNode.setStyle("display", "none");
  460. })
  461. }
  462. this.currentMenu.setStyles(this.css.naviMenuNode);
  463. }
  464. },
  465. createNaviItemNode: function (data, menuId) {
  466. if (data.access == "admin") {
  467. if (!this.app.isAdmin()) return;
  468. } else if (data.access && data.access == "admin_dept") {
  469. if (!this.app.isUnitManager() && !this.app.isAdmin()) return;
  470. }
  471. var _self = this;
  472. var items = this.menus[menuId].itemNodes = this.menus[menuId].itemNodes || [];
  473. var itemNode = new Element("div", {
  474. "styles": this.css.naviItemNode
  475. });
  476. itemNode.setStyle("display", "block");
  477. items.push(itemNode);
  478. itemNode.store("data", data);
  479. itemNode.store("type", "item");
  480. var textNode = new Element("div", {
  481. "styles": this.css.naviItemTextNode,
  482. "text": data.title
  483. });
  484. textNode.inject(itemNode);
  485. itemNode.inject(this.areaNode);
  486. this.elements.push(itemNode);
  487. this.items[data.id] = itemNode;
  488. itemNode.addEvents({
  489. "mouseover": function () { if (_self.currentItem != this) this.setStyles(_self.app.css.naviItemNode_over); },
  490. "mouseout": function () { if (_self.currentItem != this) this.setStyles(_self.app.css.naviItemNode); },
  491. "mousedown": function () { if (_self.currentItem != this) this.setStyles(_self.app.css.naviItemNode_down); },
  492. "mouseup": function () { if (_self.currentItem != this) this.setStyles(_self.app.css.naviItemNode_over); },
  493. "click": function () {
  494. _self.clickItem.apply(_self, [this]);
  495. }
  496. });
  497. if (data.id == this.options.id) {
  498. itemNode.click();
  499. }
  500. },
  501. clickItem: function (naviNode) {
  502. var navi = naviNode.retrieve("data");
  503. var action = navi.action;
  504. var type = naviNode.retrieve("type");
  505. if (!navi.target || navi.target != "_blank") {
  506. if (this.currentItem) this.currentItem.setStyles(this.css.naviItemNode);
  507. naviNode.setStyles(this.css.naviItemNode_current);
  508. this.currentItem = naviNode;
  509. }
  510. if (navi.action && this.app[navi.action]) {
  511. this.app[navi.action].call(this.app, navi);
  512. }
  513. },
  514. setContentSize: function () {
  515. var size = this.app.content.getSize();
  516. this.scrollNode.setStyle("height", size.y - 5);
  517. }
  518. //loadCalendar: function () {
  519. // var calendarArea = new Element("div#calendarArea",{
  520. // "styles" : this.css.calendarArea
  521. // }).inject(this.node)
  522. // this.calendar = new MWF.xApplication.Attendance.Calendar( calendarArea, this.app, this.actions )
  523. // this.calendar.load();
  524. //}
  525. });