JTakeTask.js 907 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. Ext.QuickTips.init();
  2. Ext.define('erp.controller.common.JTakeTask', {
  3. extend: 'Ext.app.Controller',
  4. FormUtil: Ext.create('erp.util.FormUtil'),
  5. BaseUtil: Ext.create('erp.util.BaseUtil'),
  6. views:[
  7. 'common.JProcess.JTakeTask','core.button.Add',
  8. 'core.button.Save','core.button.Close','core.button.Delete',
  9. ],
  10. init:function(){
  11. var me = this;
  12. /*formCondition = this.BaseUtil.getUrlParam('formCondition');
  13. */
  14. this.control({
  15. 'erpSaveButton': {
  16. click: function(btn){
  17. this.saveEmployee(btn);
  18. }
  19. },
  20. 'erpAddButton': {
  21. click: function(btn){
  22. me.FormUtil.onAdd('addEmployee', '新增员工', 'jsps/hr/employee/employee.jsp');
  23. }
  24. },
  25. 'erpCloseButton': {
  26. click: function(btn){
  27. }
  28. }
  29. });
  30. }
  31. });