12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576 |
- Ext.define('erp.view.oa.meeting.StandMeetingMan',{
- extend:'Ext.grid.Panel',
- alias:'widget.StandMeetingMan',
- requires:['erp.view.oa.meeting.StandMeetingManbar'],
- layout:'fit',
- id:'StandMeetingMan',
- emptyText : $I18N.common.grid.emptyText,
- columnLines : true,
- autoScroll : true,
- detno:'smm_detno',
- keyField:'smm_id',
- mainField:'smm_smid',
- columns:[],
- bodyStyle:'bachgroud-color:#f1f1f1;',
- plugins:Ext.create('Ext.grid.plugin.CellEditing',{
- clicksToEdit:1
- }),
- bbar:{
- xtype: 'StandMeetingManbar',
- id:'StandMeetingManbar'
- },
- test:0,
- GridUtil:Ext.create('erp.util.GridUtil'),
- BaseUtil:Ext.create('erp.util.BaseUtil'),
- initComponent:function(){
- this.callParent(arguments);
- // console.log(urlCondition);
- //得到页面上显示的formCondition属性
- var urlCondition = this.BaseUtil.getUrlParam('formCondition');
- //定义通过IS拆分后的数值
- var cons=null;
- //存在urlCondition的情况下
- if(urlCondition){
- //对urlCondition进行拆分 urlCondition的格式一半为pp_idIS1
- if(urlCondition.indexOf('IS')>=0){
- cons = urlCondition.split("IS");
- }else{
- cons = urlCondition.split("=");
- if(cons[1].indexOf('\'')>=0){
- cons[1]=cons[1].slice(1,cons[1].length-1);
- }
- }
- }
- var pp_id=0;
- if(cons!=null){
- if(cons[0]&&cons[1]){
- if(cons[0]!=null&&cons[0]!=''){
- if(cons[1]>0){
- pp_id=cons[1];
- }else{
- pp_id=0;
- }
- }
-
- }
- }
- var condition = " smm_smid='"+pp_id+"'";
- this.getMyData(condition);
-
- },
- getMyData:function(condition){
- // console.log(condition);
- var me = this;
- var params = {
- caller:"StandMeetingMan",
- condition:condition
- };
-
- if(me.columns && me.columns.length > 2){
- me.GridUtil.loadNewStore(me,params);
- } else {
- me.GridUtil.getGridColumnsAndStore(me,'common/singleGridPanel.action',params);
-
- }
- }
- });
|