| 1 |
- MWF.xDesktop.requireApp("Attendance","Explorer",null,false);MWF.xDesktop.requireApp("Template","MDomItem",null,false);MWF.xDesktop.requireApp("Selector","package",null,false);MWF.xApplication.Attendance.InvalidInfor=new Class({Extends:MWF.xApplication.Attendance.Explorer,Implements:[Options,Events],initialize:function(t,e,n,i){this.setOptions(i);this.app=e;this.path="/x_component_Attendance/$InvalidInfor/";this.cssPath="/x_component_Attendance/$InvalidInfor/"+this.options.style+"/css.wcss";this._loadCss();this.actions=n;this.node=$(t);this.initData();if(!this.personActions)this.personActions=new MWF.xAction.org.express.RestActions},loadView:function(){this.view=new MWF.xApplication.Attendance.InvalidInfor.View(this.elementContentNode,this.app,this,this.viewData,this.options.searchKey);this.view.load();this.setContentSize()},removeSelectedDocument:function(){this.view.items.each(function(t){if(t.checkboxElement.get("checked")){this.actions.deleteDetail(t.data.id,null,null,false);this.view.reload();this.app.notice(this.app.lp.deleteDocumentOK,"success")}}.bind(this))}});MWF.xApplication.Attendance.InvalidInfor.View=new Class({Extends:MWF.xApplication.Attendance.Explorer.View,_createItem:function(t){return new MWF.xApplication.Attendance.InvalidInfor.Document(this.table,t,this.explorer,this)},_getCurrentPageData:function(e,t){if(!t)t=20;var n=this.items.length?this.items[this.items.length-1].data.id:"(0)";var i={recordStatus:-1};this.actions.listDetailFilterNext(n,t,i,function(t){if(e)e(t)}.bind(this))},_removeDocument:function(t,e){this.actions.deleteDetail(t.id,function(t){this.explorer.view.reload();this.app.notice(this.app.lp.deleteDocumentOK,"success")}.bind(this))},_createDocument:function(){},_openDocument:function(t){}});MWF.xApplication.Attendance.InvalidInfor.Document=new Class({Extends:MWF.xApplication.Attendance.Explorer.Document});
|