gx.evt.autoSkip=false;function hztpaqui(){this.ServerClass="HZTpAqui";this.PackageName="";this.setObjectType("web");this.hasEnterEvent=true;this.SetStandaloneVars=function(){this.AV15TpaCod=gx.fn.getControlValue("vTPACOD")};this.Valid_Tpadsc=function(){try{if(gx.fn.currentGridRowImpl(26)===0){return true}var a=gx.util.balloon.getNew("TPADSC",gx.fn.currentGridRowImpl(26));this.AnyError=0}catch(b){}try{if(a==null){return true}return a.show()}catch(b){}return true};this.e130e2_client=function(){this.executeServerEvent("ENTER",true,arguments[0])
};this.e150e1_client=function(){this.executeServerEvent("CANCEL",true)};this.GXValidFnc=[];this.GXCtrlIds=[3,6,15,18,21,23,27,28];this.GXLastCtrlId=28;this.Subfile1Container=new gx.grid.grid(this,2,"WbpLvl2",26,"Subfile1","Subfile1","Subfile1Container",this.CmpContext,this.IsMasterPage,"hztpaqui",[],false,1,false,true,10,true,false,false,"",0,"px","Novo registro",true,false,false,null,null,false,"");this.Subfile1Container.addSingleLineEdit(899,27,"TPACOD","Tipo de aquisição","","TpaCod","char",0,"px",3,3,"left",null,[],899,"TpaCod",true,0,false,false);
this.Subfile1Container.addSingleLineEdit(1013,28,"TPADSC","Descrição","","TpaDsc","char",0,"px",25,25,"left",null,[],1013,"TpaDsc",true,0,false,false);this.setGrid(this.Subfile1Container);this.GXValidFnc[3]={fld:"TABLE3",grid:0};this.GXValidFnc[6]={fld:"TABLE1",grid:0};this.GXValidFnc[15]={fld:"TEXTBLOCK3",format:0,grid:0};this.GXValidFnc[18]={fld:"TABLE2",grid:0};this.GXValidFnc[21]={fld:"TEXTBLOCK2",format:0,grid:0};this.GXValidFnc[23]={lvl:0,type:"char",len:40,dec:0,sign:false,ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,fld:"vNOMECONTENDO",gxz:"ZV18NomeContendo",gxold:"OV18NomeContendo",gxvar:"AV18NomeContendo",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV18NomeContendo=a
},v2z:function(a){gx.O.ZV18NomeContendo=a},v2c:function(){gx.fn.setControlValue("vNOMECONTENDO",gx.O.AV18NomeContendo,0)},c2v:function(){gx.O.AV18NomeContendo=this.val()},val:function(){return gx.fn.getControlValue("vNOMECONTENDO")},nac:function(){return false}};this.GXValidFnc[27]={lvl:2,type:"char",len:3,dec:0,sign:false,ro:1,grid:26,gxgrid:this.Subfile1Container,fnc:null,isvalid:null,fld:"TPACOD",gxz:"Z899TpaCod",gxold:"O899TpaCod",gxvar:"A899TpaCod",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A899TpaCod=a
},v2z:function(a){gx.O.Z899TpaCod=a},v2c:function(){gx.fn.setGridControlValue("TPACOD",gx.fn.currentGridRowImpl(26),gx.O.A899TpaCod,0)},c2v:function(){gx.O.A899TpaCod=this.val()},val:function(){return gx.fn.getGridControlValue("TPACOD",gx.fn.currentGridRowImpl(26))},nac:function(){return false}};this.GXValidFnc[28]={lvl:2,type:"char",len:25,dec:0,sign:false,ro:1,grid:26,gxgrid:this.Subfile1Container,fnc:this.Valid_Tpadsc,isvalid:null,fld:"TPADSC",gxz:"Z1013TpaDsc",gxold:"O1013TpaDsc",gxvar:"A1013TpaDsc",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A1013TpaDsc=a
},v2z:function(a){gx.O.Z1013TpaDsc=a},v2c:function(){gx.fn.setGridControlValue("TPADSC",gx.fn.currentGridRowImpl(26),gx.O.A1013TpaDsc,0)},c2v:function(){gx.O.A1013TpaDsc=this.val()},val:function(){return gx.fn.getGridControlValue("TPADSC",gx.fn.currentGridRowImpl(26))},nac:function(){return false}};this.AV18NomeContendo="";this.ZV18NomeContendo="";this.OV18NomeContendo="";this.Z899TpaCod="";this.O899TpaCod="";this.Z1013TpaDsc="";this.O1013TpaDsc="";this.AV15TpaCod="";this.A899TpaCod="";this.A1013TpaDsc="";
this.ServerEvents=["e130e2_client","e150e1_client"];this.VarControlMap.AV15TpaCod={id:"vTPACOD",grid:0,type:"char"};this.VarControlMap.AV19CharDB={id:"vCHARDB",grid:0,type:"char"};this.Subfile1Container.addRefreshingVar(this.GXValidFnc[23]);this.Subfile1Container.addRefreshingVar({rfrVar:"AV19CharDB"});this.SetStandaloneVars()}hztpaqui.prototype=new gx.GxObject;gx.setParentObj(new hztpaqui());