text: var UniResGridViewControllerBase = GridViewControllerBase.extend({
  construct: function(config) {
      if(!config)config={};
      if(!config.appctx)config.appctx='';
      if(!config.containerid)config.containerid='';
      arguments.callee.$.construct.call(this,this.getDefaultCfg(config));
      this.regCodeLists(config);
      this.regUICounters(config);
      this.regUIActions(config);
      this.regUpdatePanels(config);
      this.regControllers(config);
  }
  ,regCodeLists:function(config)
  {
  }
  ,regUICounters:function(config)
  {
  }
  ,regUpdatePanels:function(config)
  {
       var me=this;
  }
  ,regControllers:function(config)
  {
    var cid=config.containerid;
      if(cid!='')cid=cid+'_';
  }
  ,regUIActions:function(config)
  {
    var uiaction_0 = {"type":"DEUIACTION","tag":"New"
  };
      this.regUIAction(uiaction_0);
    var uiaction_1 = {"type":"DEUIACTION","tag":"Edit","actiontarget":"SINGLEKEY"
  };
      this.regUIAction(uiaction_1);
    var uiaction_2 = {"type":"DEUIACTION","tag":"View","actiontarget":"SINGLEKEY"
  };
      this.regUIAction(uiaction_2);
    var uiaction_3 = {"type":"DEUIACTION","tag":"Copy","actiontarget":"SINGLEKEY"
  };
      this.regUIAction(uiaction_3);
    var uiaction_4 = {"type":"DEUIACTION","tag":"ToggleRowEdit"
  };
      this.regUIAction(uiaction_4);
    var uiaction_5 = {"type":"DEUIACTION","tag":"NewRow"
  };
      this.regUIAction(uiaction_5);
    var uiaction_6 = {"type":"DEUIACTION","tag":"Remove","actiontarget":"MULTIKEY"
  };
      this.regUIAction(uiaction_6);
    var uiaction_7 = {"type":"DEUIACTION","tag":"ExportExcel"
  };
      this.regUIAction(uiaction_7);
    var uiaction_8 = {"type":"DEUIACTION","tag":"Print","actiontarget":"MULTIKEY"
  };
      this.regUIAction(uiaction_8);
    var uiaction_9 = {"type":"DEUIACTION","tag":"ExportModel"
  };
      this.regUIAction(uiaction_9);
    var uiaction_10 = {"type":"DEUIACTION","tag":"Import"
  };
      this.regUIAction(uiaction_10);
    var uiaction_11 = {"type":"DEUIACTION","tag":"ToggleFilter"
  };
      this.regUIAction(uiaction_11);
    var uiaction_12 = {"type":"DEUIACTION","tag":"Help"
  };
      this.regUIAction(uiaction_12);
  }
  ,onInit:function(){
     arguments.callee.$.onInit.call(this);
     var form=this.getSearchForm();
   
  }
  ,onSearchFormFieldChanged: function (fieldname, field, value) {
     var me=this;
     var form=me.getSearchForm();
  }
  ,getNewDataView:function(arg){
         if(!arg)arg={};
         var newmode=arg.srfnewmode;
         if(!newmode)newmode='';
        if(true){
  	var view={
  			title: '统一资源实体编辑视图',
  			openMode:'POPUPMODAL',
  			 height: 0,
  	    	    width: 0,
      	    layout: 'fit',
              maximizable:true,
              viewurl:'/common/unireseditview.jsp',
              viewparam:arg
        	};
  	return view;
         }
         return null;
      }
  
  ,getEditDataView:function(arg){
         if(!arg)arg={};
         var list = [arg.srfeditmode2,arg.srfeditmode];
         for(var i=0;i<2;i++){
            var editmode=list[i];
            if(!editmode)
               continue;
        }
        if(true){
  	   return {  title: '统一资源实体编辑视图', openMode:'POPUPMODAL', height: 0, width: 0,
      	              layout: 'fit',   maximizable:true,   viewurl:'/common/unireseditview.jsp',   viewparam:arg  	};
         }
         return null;
      }
  ,getDefaultCfg:function(cfg){
       var me=this;   
      var config={backendurl:cfg.appctx+'/common/UniResGridView.do?'+'srfcid='+cfg.containerid+'&',loaddefault:true
                  ,viewurl:'/common/uniresgridview.jsp?'+'srfcid='+cfg.containerid+'&'
                 ,ctrls:{grid:{multiSelect:true
  ,enablePaging:true,pageSize:20,forceFit:false
  ,columns:[
  { "title" : '统一资源名称',"width":150,"data" :'uniresname',"orderable":true}
  
  ,{ "title" : '资源编号',"width":150,"data" :'resourceid',"orderable":true}
  
  ,{ "title" : '备注',"data" :'memo',"orderable":true}
  
  ,{ "title" : '更新人',"width":150,"data" :'updateman',"orderable":true}
  
  ,{ "title" : '更新时间',"width":150,"data" :'updatedate',"orderable":true}
  ]
  },searchForm:{enableAdvanceSearch:false,dename:'UNIRES'}}};
      return  $.extend({},config,cfg);
  }
  ,doHideParentColumns: function (parentMode)
      {
          var me=this;
          arguments.callee.$.doHideParentColumns.call(this,parentMode);
   
  }
  });