MWF.xDesktop.requireApp("Template","Explorer",null,false);MWF.xDesktop.requireApp("Attendance","Explorer",null,false);MWF.xDesktop.requireApp("Selector","package",null,false);MWF.xApplication.Attendance.ScheduleExplorer=new Class({Extends:MWF.xApplication.Attendance.Explorer,Implements:[Options,Events],initialize:function(e,t,i,l){this.setOptions(l);this.app=t;this.path="/x_component_Attendance/$ScheduleExplorer/";this.cssPath="/x_component_Attendance/$ScheduleExplorer/"+this.options.style+"/css.wcss";this._loadCss();this.actions=i;this.node=$(e);this.initData();if(!this.personActions)this.personActions=new MWF.xAction.org.express.RestActions},loadView:function(){this.view=new MWF.xApplication.Attendance.ScheduleExplorer.View(this.elementContentNode,this.app,this,this.viewData,this.options.searchKey);this.view.load();this.setContentSize()},createDocument:function(){if(this.view)this.view._createDocument()}});MWF.xApplication.Attendance.ScheduleExplorer.View=new Class({Extends:MWF.xApplication.Attendance.Explorer.View,_createItem:function(e){return new MWF.xApplication.Attendance.ScheduleExplorer.Document(this.table,e,this.explorer,this)},_getCurrentPageData:function(t,e){this.actions.listSchedule(function(e){if(t)t(e)})},_removeDocument:function(e,t){this.actions.deleteSchedule(e.id,function(e){this.explorer.view.reload();this.app.notice(this.app.lp.deleteDocumentOK,"success")}.bind(this))},_createDocument:function(){var e=new MWF.xApplication.Attendance.ScheduleExplorer.Schedule(this.explorer);e.create()},_openDocument:function(e){var t=new MWF.xApplication.Attendance.ScheduleExplorer.Schedule(this.explorer,e);t.edit()}});MWF.xApplication.Attendance.ScheduleExplorer.Document=new Class({Extends:MWF.xApplication.Attendance.Explorer.Document});MWF.xApplication.Attendance.ScheduleExplorer.Schedule=new Class({Extends:MWF.xApplication.Attendance.Explorer.PopupForm,options:{width:600,height:450,hasTop:true,hasBottom:true,title:"",draggable:true,closeAction:true},_createTableContent:function(){var e=this.app.lp.schedule;var t="
| "+e.setSchedule+" | |
| "+" | |
| "+" | |
| "+" | |
| "+" | |
| "+" | |
| "+" | |