gx.evt.autoSkip=false;function gx0040(){this.ServerClass="Gx0040";this.PackageName="";this.setObjectType("web");this.hasEnterEvent=true;this.autoRefresh=true;this.SetStandaloneVars=function(){this.AV8pTpaCod=gx.fn.getControlValue("vPTPACOD")};this.e139b2_client=function(){this.executeServerEvent("ENTER",true,arguments[0])};this.e149b1_client=function(){this.executeServerEvent("CANCEL",true)};this.GXValidFnc=[];this.GXCtrlIds=[2,8,9,12,14,17,19,22,23,27,28,29,32];this.GXLastCtrlId=32;this.Grid1Container=new gx.grid.grid(this,2,"WbpLvl2",26,"Grid1","Grid1","Grid1Container",this.CmpContext,this.IsMasterPage,"gx0040",[],false,1,false,true,10,true,false,false,"",0,"px","Novo registro",true,false,false,null,null,false,"");
this.Grid1Container.addBitmap("&Linkselection","vLINKSELECTION",27,0,"px",17,"px",null,"","");this.Grid1Container.addSingleLineEdit(899,28,"TPACOD","Tipo de aquisição","","TpaCod","char",0,"px",3,3,"left",null,[],899,"TpaCod",true,0,false,false);this.Grid1Container.addSingleLineEdit(1013,29,"TPADSC","Descrição","","TpaDsc","char",0,"px",25,25,"left",null,[],1013,"TpaDsc",true,0,false,false);this.setGrid(this.Grid1Container);this.GXValidFnc[2]={fld:"TABLE1",grid:0};this.GXValidFnc[8]={fld:"GROUP1",grid:0};
this.GXValidFnc[9]={fld:"TABLE2",grid:0};this.GXValidFnc[12]={fld:"TEXTBLOCKTPACOD",format:0,grid:0};this.GXValidFnc[14]={lvl:0,type:"char",len:3,dec:0,sign:false,ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,fld:"vCTPACOD",gxz:"ZV6cTpaCod",gxold:"OV6cTpaCod",gxvar:"AV6cTpaCod",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV6cTpaCod=a},v2z:function(a){gx.O.ZV6cTpaCod=a},v2c:function(){gx.fn.setControlValue("vCTPACOD",gx.O.AV6cTpaCod,0)},c2v:function(){gx.O.AV6cTpaCod=this.val()
},val:function(){return gx.fn.getControlValue("vCTPACOD")},nac:function(){return false}};this.GXValidFnc[17]={fld:"TEXTBLOCKTPADES",format:0,grid:0};this.GXValidFnc[19]={lvl:0,type:"char",len:25,dec:0,sign:false,ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,fld:"vCTPADES",gxz:"ZV7cTpaDes",gxold:"OV7cTpaDes",gxvar:"AV7cTpaDes",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV7cTpaDes=a},v2z:function(a){gx.O.ZV7cTpaDes=a},v2c:function(){gx.fn.setControlValue("vCTPADES",gx.O.AV7cTpaDes,0)
},c2v:function(){gx.O.AV7cTpaDes=this.val()},val:function(){return gx.fn.getControlValue("vCTPADES")},nac:function(){return false}};this.GXValidFnc[22]={fld:"GROUP2",grid:0};this.GXValidFnc[23]={fld:"TABLE3",grid:0};this.GXValidFnc[27]={lvl:2,type:"bits",len:4,dec:0,sign:false,ro:1,grid:26,gxgrid:this.Grid1Container,fnc:null,isvalid:null,fld:"vLINKSELECTION",gxz:"ZV5LinkSelection",gxold:"OV5LinkSelection",gxvar:"AV5LinkSelection",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV5LinkSelection=a
},v2z:function(a){gx.O.ZV5LinkSelection=a},v2c:function(){},c2v:function(){gx.O.AV5LinkSelection=this.val()},val:function(){return gx.fn.getGridControlValue("vLINKSELECTION",gx.fn.currentGridRowImpl(26))},nac:function(){return false}};this.GXValidFnc[28]={lvl:2,type:"char",len:3,dec:0,sign:false,ro:1,grid:26,gxgrid:this.Grid1Container,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[29]={lvl:2,type:"char",len:25,dec:0,sign:false,ro:1,grid:26,gxgrid:this.Grid1Container,fnc:null,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.GXValidFnc[32]={fld:"TABLE4",grid:0};this.AV6cTpaCod="";this.ZV6cTpaCod="";this.OV6cTpaCod="";this.AV7cTpaDes="";this.ZV7cTpaDes="";this.OV7cTpaDes="";this.ZV5LinkSelection="";this.OV5LinkSelection="";
this.Z899TpaCod="";this.O899TpaCod="";this.Z1013TpaDsc="";this.O1013TpaDsc="";this.AV8pTpaCod="";this.AV5LinkSelection="";this.A899TpaCod="";this.A1013TpaDsc="";this.ServerEvents=["e139b2_client","e149b1_client"];this.VarControlMap.AV8pTpaCod={id:"vPTPACOD",grid:0,type:"char"};this.Grid1Container.addRefreshingVar(this.GXValidFnc[14]);this.Grid1Container.addRefreshingVar(this.GXValidFnc[19]);this.SetStandaloneVars()}gx0040.prototype=new gx.GxObject;gx.setParentObj(new gx0040());