12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758 |
- Ext.define('erp.view.scm.product.ProductApprovals.prodApprovalDetail',{
- extend: 'Ext.form.Panel',
- alias: 'widget.prodApprovalDetail',
- id: 'prodApprovalDetail',
- columnWidth:1,
- frame : true,
- layout : 'column',
- autoScroll : true,
- defaultType : 'textfield',
- labelSeparator : ':',
- buttonAlign : 'center',
- /*tools:[{xtype:'ProdApprovalDetailsaveButton',id:'prodApprovalDetailsave'}],//
- */ fieldDefaults : {
- margin : '2 2 2 2',
- fieldStyle : "background:#FFFAFA;color:#515151;",
- focusCls: 'x-form-field-cir-focus',
- labelAlign : "right",
- msgTarget: 'side',
- blankText : $I18N.common.form.blankText
- },
- FormUtil: Ext.create('erp.util.FormUtil'),
- BaseUtil: Ext.create('erp.util.BaseUtil'),
- saveUrl: '',
- updateUrl: '',
- deleteUrl: '',
- auditUrl: '',
- resAuditUrl: '',
- submitUrl: '',
- resSubmitUrl: '',
- bannedUrl: '',
- resBannedUrl: '',
- postUrl:'',
- printUrl: '',
- getIdUrl: '',
- keyField: '',
- codeField: '',
- statusField: '',
- params: null,
- caller: 'prodApprovalDetail',
- formCondition:null,
- Contextvalue:null,
- LastValue:null,
- enableTools: true,
- enableKeyEvents: true,
- _noc: 0,
- initComponent : function(){
- formCondition = getUrlParam('formCondition');//从url解析参数
- formCondition = (formCondition == null) ? "" : formCondition.replace(/IS/g,"=");
- //集团版
- var master=getUrlParam('newMaster');
- var param = {caller: this.caller || caller, condition: this.formCondition || formCondition, _noc: (getUrlParam('_noc') || this._noc)};
- if(master){
- param.master=master;
- }
- this.FormUtil.getItemsAndButtons(this, 'common/singleFormItems.action', this.params || param);//从后台拿到formpanel的items
- this.callParent(arguments);
- }
- });
|