NewContactList.js 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. Ext.QuickTips.init();
  2. Ext.define('erp.controller.oa.persontask.myContactList.NewContactList', {
  3. extend: 'Ext.app.Controller',
  4. FormUtil: Ext.create('erp.util.FormUtil'),
  5. BaseUtil: Ext.create('erp.util.BaseUtil'),
  6. views:[
  7. 'oa.persontask.myContactList.NewContactList','core.form.Panel','core.button.Save','core.button.Close',
  8. 'core.form.YnField','core.trigger.DbfindTrigger'
  9. ],
  10. init:function(){
  11. // var me = this;
  12. this.control({
  13. 'erpSaveButton': {
  14. click: function(btn){
  15. this.FormUtil.beforeSave(this);
  16. }
  17. },
  18. 'erpCloseButton': {
  19. click: function(btn){
  20. this.FormUtil.beforeClose(this);
  21. }
  22. },
  23. 'textfield[id=cl_emname]': {
  24. afterrender: function(field){
  25. field.setValue(em_name);
  26. }
  27. },
  28. 'textfield[id=cl_emid]': {
  29. afterrender: function(field){
  30. field.setValue(em_uu);
  31. }
  32. },
  33. 'htmleditor[id=cl_context]': {
  34. afterrender: function(f){
  35. f.setHeight(300);
  36. }
  37. }
  38. });
  39. },
  40. getForm: function(btn){
  41. return btn.ownerCt.ownerCt;
  42. }
  43. });