gx.evt.autoSkip=false;function himh094(){this.ServerClass="HImh094";this.PackageName="";this.setObjectType("web");this.hasEnterEvent=true;this.SetStandaloneVars=function(){this.AV6CdpCod=gx.fn.getIntegerValue("vCDPCOD",".")};this.Valid_Cdpdes=function(){try{if(gx.fn.currentGridRowImpl(24)===0){return true}var a=gx.util.balloon.getNew("CDPDES",gx.fn.currentGridRowImpl(24));this.AnyError=0}catch(b){}try{if(a==null){return true}return a.show()}catch(b){}return true};this.e111q2_client=function(){this.executeServerEvent("ENTER",true)
};this.e141q2_client=function(){this.executeServerEvent("'HOME'",true,arguments[0])};this.e161q1_client=function(){this.executeServerEvent("CANCEL",true)};this.GXValidFnc=[];this.GXCtrlIds=[4,13,16,19,21,25,26];this.GXLastCtrlId=26;this.Grid1Container=new gx.grid.grid(this,2,"WbpLvl2",24,"Grid1","Grid1","Grid1Container",this.CmpContext,this.IsMasterPage,"himh094",[],false,1,false,true,10,true,false,false,"",0,"px","Novo registro",true,false,false,null,null,false,"");this.Grid1Container.addSingleLineEdit(100,25,"CDPCOD","Cond.","","CdpCod","int",0,"px",3,3,"right",null,[],100,"CdpCod",true,0,false,false);
this.Grid1Container.addSingleLineEdit(101,26,"CDPDES","Descrição","","CdpDes","char",0,"px",40,40,"left",null,[],101,"CdpDes",true,0,false,false);this.setGrid(this.Grid1Container);this.GXValidFnc[4]={fld:"TABLE1",grid:0};this.GXValidFnc[13]={fld:"TEXTBLOCK1",format:0,grid:0};this.GXValidFnc[16]={fld:"TABLE2",grid:0};this.GXValidFnc[19]={fld:"TEXTBLOCK2",format:0,grid:0};this.GXValidFnc[21]={lvl:0,type:"char",len:40,dec:0,sign:false,ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,fld:"vNOMECONTENDO",gxz:"ZV7NomeContendo",gxold:"OV7NomeContendo",gxvar:"AV7NomeContendo",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV7NomeContendo=a
},v2z:function(a){gx.O.ZV7NomeContendo=a},v2c:function(){gx.fn.setControlValue("vNOMECONTENDO",gx.O.AV7NomeContendo,0)},c2v:function(){gx.O.AV7NomeContendo=this.val()},val:function(){return gx.fn.getControlValue("vNOMECONTENDO")},nac:function(){return false}};this.GXValidFnc[25]={lvl:2,type:"int",len:3,dec:0,sign:false,pic:"ZZ9",ro:1,grid:24,gxgrid:this.Grid1Container,fnc:null,isvalid:null,rgrid:[],fld:"CDPCOD",gxz:"Z100CdpCod",gxold:"O100CdpCod",gxvar:"A100CdpCod",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A100CdpCod=gx.num.intval(a)
},v2z:function(a){gx.O.Z100CdpCod=gx.num.intval(a)},v2c:function(){gx.fn.setGridControlValue("CDPCOD",gx.fn.currentGridRowImpl(24),gx.O.A100CdpCod,0)},c2v:function(){gx.O.A100CdpCod=this.val()},val:function(){return gx.fn.getGridIntegerValue("CDPCOD",gx.fn.currentGridRowImpl(24),".")},nac:function(){return false}};this.GXValidFnc[26]={lvl:2,type:"char",len:40,dec:0,sign:false,ro:1,grid:24,gxgrid:this.Grid1Container,fnc:this.Valid_Cdpdes,isvalid:null,fld:"CDPDES",gxz:"Z101CdpDes",gxold:"O101CdpDes",gxvar:"A101CdpDes",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A101CdpDes=a
},v2z:function(a){gx.O.Z101CdpDes=a},v2c:function(){gx.fn.setGridControlValue("CDPDES",gx.fn.currentGridRowImpl(24),gx.O.A101CdpDes,0)},c2v:function(){gx.O.A101CdpDes=this.val()},val:function(){return gx.fn.getGridControlValue("CDPDES",gx.fn.currentGridRowImpl(24))},nac:function(){return false}};this.AV7NomeContendo="";this.ZV7NomeContendo="";this.OV7NomeContendo="";this.Z100CdpCod=0;this.O100CdpCod=0;this.Z101CdpDes="";this.O101CdpDes="";this.AV6CdpCod=0;this.A100CdpCod=0;this.A101CdpDes="";this.ServerEvents=["e111q2_client","e141q2_client","e161q1_client"];
this.EnterCtrl=["BUTTON1"];this.VarControlMap.AV6CdpCod={id:"vCDPCOD",grid:0,type:"int"};this.VarControlMap.AV8CharDB={id:"vCHARDB",grid:0,type:"char"};this.Grid1Container.addRefreshingVar(this.GXValidFnc[21]);this.Grid1Container.addRefreshingVar({rfrVar:"AV8CharDB"});this.SetStandaloneVars()}himh094.prototype=new gx.GxObject;gx.setParentObj(new himh094());