SaleController.js 806 B

1234567891011121314151617181920212223242526272829
  1. Ext.define('erp.controller.sys.step.SaleController', {
  2. extend: 'Ext.app.Controller',
  3. id:'SaleController',
  4. BaseUtil: Ext.create('erp.util.BaseUtil'),
  5. FormUtil: Ext.create('erp.util.FormUtil'),
  6. views:['sys.sale.SalePortal','core.form.YnField'],
  7. init:function(){
  8. var me=this;
  9. this.control({
  10. 'gridcolumn[dataIndex=ck_maxnum]':{
  11. beforerender:function(column){
  12. column.editor.minValue=150;
  13. }
  14. }
  15. });
  16. var app=erp.getApplication();
  17. var saleportal = activeItem.child('saleportal');
  18. if(!saleportal){
  19. var saleportal = Ext.widget('saleportal',{desc:'销售管理'});
  20. activeItem.add(saleportal);
  21. Ext.getCmp('syspanel').setTitle(saleportal.desc);
  22. }
  23. },
  24. changeInputValue:function(field,value){
  25. showResult('提示','修改成功!');
  26. field.originalValue=value;
  27. }
  28. });