gx.evt.autoSkip=false;function himh266(){this.ServerClass="HImh266";this.PackageName="";this.setObjectType("web");this.hasEnterEvent=true;this.SetStandaloneVars=function(){this.AV10AcoNroPar=gx.fn.getIntegerValue("vACONROPAR",".")};this.Valid_Acodes=function(){try{if(gx.fn.currentGridRowImpl(22)===0){return true}var a=gx.util.balloon.getNew("ACODES",gx.fn.currentGridRowImpl(22));this.AnyError=0}catch(b){}try{if(a==null){return true}return a.show()}catch(b){}return true};this.e12j02_client=function(){this.executeServerEvent("ENTER",true,arguments[0])
};this.e15j01_client=function(){this.executeServerEvent("CANCEL",true)};this.GXValidFnc=[];this.GXCtrlIds=[3,13,16,19,21,23,24,25];this.GXLastCtrlId=25;this.Subfile1Container=new gx.grid.grid(this,2,"WbpLvl2",22,"Subfile1","Subfile1","Subfile1Container",this.CmpContext,this.IsMasterPage,"himh266",[],false,1,false,true,10,true,false,false,"",0,"px","Novo registro",true,false,false,null,null,false,"");this.Subfile1Container.addSingleLineEdit(4,23,"ACONRO","Número","","AcoNro","int",50,"px",3,3,"right",null,[],4,"AcoNro",true,0,false,false);
this.Subfile1Container.addSingleLineEdit(3,24,"ACODES","Descrição","","AcoDes","char",260,"px",50,50,"left",null,[],3,"AcoDes",true,0,false,false);this.Subfile1Container.addSingleLineEdit(2,25,"ACOCOD","Código","","AcoCod","char",60,"px",10,10,"left",null,[],2,"AcoCod",true,0,false,false);this.setGrid(this.Subfile1Container);this.GXValidFnc[3]={fld:"TABLE1",grid:0};this.GXValidFnc[13]={fld:"TEXTBLOCK3",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:"ZV22NomeContendo",gxold:"OV22NomeContendo",gxvar:"AV22NomeContendo",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV22NomeContendo=a},v2z:function(a){gx.O.ZV22NomeContendo=a},v2c:function(){gx.fn.setControlValue("vNOMECONTENDO",gx.O.AV22NomeContendo,0)},c2v:function(){gx.O.AV22NomeContendo=this.val()},val:function(){return gx.fn.getControlValue("vNOMECONTENDO")
},nac:function(){return false}};this.GXValidFnc[23]={lvl:2,type:"int",len:3,dec:0,sign:false,pic:"ZZ9",ro:1,grid:22,gxgrid:this.Subfile1Container,fnc:null,isvalid:null,rgrid:[],fld:"ACONRO",gxz:"Z4AcoNro",gxold:"O4AcoNro",gxvar:"A4AcoNro",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A4AcoNro=gx.num.intval(a)},v2z:function(a){gx.O.Z4AcoNro=gx.num.intval(a)},v2c:function(){gx.fn.setGridControlValue("ACONRO",gx.fn.currentGridRowImpl(22),gx.O.A4AcoNro,0)},c2v:function(){gx.O.A4AcoNro=this.val()
},val:function(){return gx.fn.getGridIntegerValue("ACONRO",gx.fn.currentGridRowImpl(22),".")},nac:function(){return false}};this.GXValidFnc[24]={lvl:2,type:"char",len:50,dec:0,sign:false,ro:1,grid:22,gxgrid:this.Subfile1Container,fnc:this.Valid_Acodes,isvalid:null,fld:"ACODES",gxz:"Z3AcoDes",gxold:"O3AcoDes",gxvar:"A3AcoDes",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A3AcoDes=a},v2z:function(a){gx.O.Z3AcoDes=a},v2c:function(){gx.fn.setGridControlValue("ACODES",gx.fn.currentGridRowImpl(22),gx.O.A3AcoDes,0)
},c2v:function(){gx.O.A3AcoDes=this.val()},val:function(){return gx.fn.getGridControlValue("ACODES",gx.fn.currentGridRowImpl(22))},nac:function(){return false}};this.GXValidFnc[25]={lvl:2,type:"char",len:10,dec:0,sign:false,ro:1,grid:22,gxgrid:this.Subfile1Container,fnc:null,isvalid:null,fld:"ACOCOD",gxz:"Z2AcoCod",gxold:"O2AcoCod",gxvar:"A2AcoCod",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A2AcoCod=a},v2z:function(a){gx.O.Z2AcoCod=a},v2c:function(){gx.fn.setGridControlValue("ACOCOD",gx.fn.currentGridRowImpl(22),gx.O.A2AcoCod,0)
},c2v:function(){gx.O.A2AcoCod=this.val()},val:function(){return gx.fn.getGridControlValue("ACOCOD",gx.fn.currentGridRowImpl(22))},nac:function(){return false}};this.AV22NomeContendo="";this.ZV22NomeContendo="";this.OV22NomeContendo="";this.Z4AcoNro=0;this.O4AcoNro=0;this.Z3AcoDes="";this.O3AcoDes="";this.Z2AcoCod="";this.O2AcoCod="";this.AV10AcoNroPar=0;this.A4AcoNro=0;this.A3AcoDes="";this.A2AcoCod="";this.ServerEvents=["e12j02_client","e15j01_client"];this.VarControlMap.AV10AcoNroPar={id:"vACONROPAR",grid:0,type:"int"};
this.Subfile1Container.addRefreshingVar(this.GXValidFnc[21]);this.SetStandaloneVars()}himh266.prototype=new gx.GxObject;gx.setParentObj(new himh266());