gx.evt.autoSkip=false;function gx02n0(){this.ServerClass="Gx02N0";this.PackageName="";this.setObjectType("web");this.hasEnterEvent=true;this.autoRefresh=true;this.SetStandaloneVars=function(){this.AV8pG01TrnCod=gx.fn.getControlValue("vPG01TRNCOD");this.AV9pG01CodChave=gx.fn.getControlValue("vPG01CODCHAVE")};this.e13bs2_client=function(){this.executeServerEvent("ENTER",true,arguments[0])};this.e14bs1_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,"gx02n0",[],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(456,28,"G01TRNCOD","G01TrnCod","","G01TrnCod","char",0,"px",16,16,"left",null,[],456,"G01TrnCod",true,0,false,false);
this.Grid1Container.addSingleLineEdit(454,29,"G01CODCHAV","G01CodChave","","G01CodChav","char",0,"px",35,35,"left",null,[],454,"G01CodChav",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:"TEXTBLOCKG01TRNCOD",format:0,grid:0};this.GXValidFnc[14]={lvl:0,type:"char",len:16,dec:0,sign:false,ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,fld:"vCG01TRNCOD",gxz:"ZV6cG01TrnCod",gxold:"OV6cG01TrnCod",gxvar:"AV6cG01TrnCod",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV6cG01TrnCod=a
},v2z:function(a){gx.O.ZV6cG01TrnCod=a},v2c:function(){gx.fn.setControlValue("vCG01TRNCOD",gx.O.AV6cG01TrnCod,0)},c2v:function(){gx.O.AV6cG01TrnCod=this.val()},val:function(){return gx.fn.getControlValue("vCG01TRNCOD")},nac:function(){return false}};this.GXValidFnc[17]={fld:"TEXTBLOCKG01CODCHAVE",format:0,grid:0};this.GXValidFnc[19]={lvl:0,type:"char",len:35,dec:0,sign:false,ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,fld:"vCG01CODCHAVE",gxz:"ZV7cG01CodChave",gxold:"OV7cG01CodChave",gxvar:"AV7cG01CodChave",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV7cG01CodChave=a
},v2z:function(a){gx.O.ZV7cG01CodChave=a},v2c:function(){gx.fn.setControlValue("vCG01CODCHAVE",gx.O.AV7cG01CodChave,0)},c2v:function(){gx.O.AV7cG01CodChave=this.val()},val:function(){return gx.fn.getControlValue("vCG01CODCHAVE")},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:16,dec:0,sign:false,ro:1,grid:26,gxgrid:this.Grid1Container,fnc:null,isvalid:null,fld:"G01TRNCOD",gxz:"Z456G01TrnCod",gxold:"O456G01TrnCod",gxvar:"A456G01TrnCod",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A456G01TrnCod=a
},v2z:function(a){gx.O.Z456G01TrnCod=a},v2c:function(){gx.fn.setGridControlValue("G01TRNCOD",gx.fn.currentGridRowImpl(26),gx.O.A456G01TrnCod,0)},c2v:function(){gx.O.A456G01TrnCod=this.val()},val:function(){return gx.fn.getGridControlValue("G01TRNCOD",gx.fn.currentGridRowImpl(26))},nac:function(){return false}};this.GXValidFnc[29]={lvl:2,type:"char",len:35,dec:0,sign:false,ro:1,grid:26,gxgrid:this.Grid1Container,fnc:null,isvalid:null,fld:"G01CODCHAV",gxz:"Z454G01CodChav",gxold:"O454G01CodChav",gxvar:"A454G01CodChav",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A454G01CodChav=a
},v2z:function(a){gx.O.Z454G01CodChav=a},v2c:function(){gx.fn.setGridControlValue("G01CODCHAV",gx.fn.currentGridRowImpl(26),gx.O.A454G01CodChav,0)},c2v:function(){gx.O.A454G01CodChav=this.val()},val:function(){return gx.fn.getGridControlValue("G01CODCHAV",gx.fn.currentGridRowImpl(26))},nac:function(){return false}};this.GXValidFnc[32]={fld:"TABLE4",grid:0};this.AV6cG01TrnCod="";this.ZV6cG01TrnCod="";this.OV6cG01TrnCod="";this.AV7cG01CodChave="";this.ZV7cG01CodChave="";this.OV7cG01CodChave="";this.ZV5LinkSelection="";
this.OV5LinkSelection="";this.Z456G01TrnCod="";this.O456G01TrnCod="";this.Z454G01CodChav="";this.O454G01CodChav="";this.AV8pG01TrnCod="";this.AV9pG01CodChave="";this.AV5LinkSelection="";this.A456G01TrnCod="";this.A454G01CodChav="";this.ServerEvents=["e13bs2_client","e14bs1_client"];this.VarControlMap.AV8pG01TrnCod={id:"vPG01TRNCOD",grid:0,type:"char"};this.VarControlMap.AV9pG01CodChave={id:"vPG01CODCHAVE",grid:0,type:"char"};this.Grid1Container.addRefreshingVar(this.GXValidFnc[14]);this.Grid1Container.addRefreshingVar(this.GXValidFnc[19]);
this.SetStandaloneVars()}gx02n0.prototype=new gx.GxObject;gx.setParentObj(new gx02n0());