| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566 |
- Ext.QuickTips.init();
- Ext.define('erp.controller.oa.attendance.askLeave', {
- extend: 'Ext.app.Controller',
- FormUtil: Ext.create('erp.util.FormUtil'),
- BaseUtil: Ext.create('erp.util.BaseUtil'),
- views:[
- 'oa.attendance.askLeave','core.form.Panel',
- 'core.button.Add','core.button.Submit','core.button.Audit','core.button.Save','core.button.Close','core.button.Print',
- 'core.button.Upload','core.button.Update','core.button.Delete','core.button.ResAudit','core.button.ResSubmit',
- 'core.form.YnField','core.trigger.DbfindTrigger'
- ],
- init:function(){
- var me = this;
- this.control({
- 'erpSaveButton': {
- click: function(btn){
- this.FormUtil.beforeSave(this);
- }
- },
- 'erpCloseButton': {
- click: function(btn){
- this.FormUtil.beforeClose(this);
- }
- },
- 'erpAddButton': {
- click: function(btn){
- me.FormUtil.onAdd('addAskLeave', '新增请假单', 'jsps/oa/attendance/askLeave.jsp');
- }
- },
- 'erpUpdateButton': {
- click: function(btn){
- this.FormUtil.onUpdate(this);
- }
- },
- 'erpDeleteButton': {
- click: function(btn){
- me.FormUtil.onDelete((Ext.getCmp('al_id').value));
- }
- },
- 'erpAuditButton': {
- click: function(btn){
- this.FormUtil.onAudit(Ext.getCmp('al_id').value);
- }
- },
- 'erpResAuditButton': {
- click: function(btn){
- this.FormUtil.onResAudit(Ext.getCmp('al_id').value);
- }
- },
- 'erpSubmitButton': {
- click: function(btn){
- this.FormUtil.onSubmit(Ext.getCmp('al_id').value);
-
- }
- },
- 'erpResSubmitButton': {
- click: function(btn){
- this.FormUtil.onResSubmit(Ext.getCmp('al_id').value);
- }
- }
- });
- },
- getForm: function(btn){
- return btn.ownerCt.ownerCt;
- }
- });
|