gx.evt.autoSkip=false;function gx02m0(){this.ServerClass="Gx02M0";this.PackageName="";this.setObjectType("web");this.hasEnterEvent=true;this.autoRefresh=true;this.SetStandaloneVars=function(){this.AV11pTrnCod=gx.fn.getControlValue("vPTRNCOD")};this.e13a52_client=function(){this.executeServerEvent("ENTER",true,arguments[0])};this.e14a51_client=function(){this.executeServerEvent("CANCEL",true)};this.GXValidFnc=[];this.GXCtrlIds=[2,8,9,12,14,17,19,22,24,27,29,32,34,37,38,42,43,44,45,46,47,50];this.GXLastCtrlId=50;
this.Grid1Container=new gx.grid.grid(this,2,"WbpLvl2",41,"Grid1","Grid1","Grid1Container",this.CmpContext,this.IsMasterPage,"gx02m0",[],false,1,false,true,10,true,false,false,"",0,"px","Novo registro",true,false,false,null,null,false,"");this.Grid1Container.addBitmap("&Linkselection","vLINKSELECTION",42,0,"px",17,"px",null,"","");this.Grid1Container.addSingleLineEdit(910,43,"TRNCOD","Codigo da transacao","","TrnCod","char",0,"px",16,16,"left",null,[],910,"TrnCod",true,0,false,false);this.Grid1Container.addSingleLineEdit(911,44,"TRNEMPCOD","Codigo da empresa","Selecionar","TrnEmpCod","int",0,"px",2,2,"right",null,[],911,"TrnEmpCod",true,0,false,false);
this.Grid1Container.addSingleLineEdit(968,45,"USUCOD","Operador","","UsuCod","char",0,"px",6,6,"left",null,[],968,"UsuCod",true,0,false,false);this.Grid1Container.addSingleLineEdit(908,46,"TRNCAMPO1L","Campo livre 1","","TrnCampo1L","char",0,"px",20,20,"left",null,[],908,"TrnCampo1L",true,0,false,false);this.Grid1Container.addSingleLineEdit(909,47,"TRNCAMPO2L","Campo livre 2","","TrnCampo2L","char",0,"px",30,30,"left",null,[],909,"TrnCampo2L",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:"TEXTBLOCKTRNCOD",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:"vCTRNCOD",gxz:"ZV6cTrnCod",gxold:"OV6cTrnCod",gxvar:"AV6cTrnCod",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV6cTrnCod=a},v2z:function(a){gx.O.ZV6cTrnCod=a},v2c:function(){gx.fn.setControlValue("vCTRNCOD",gx.O.AV6cTrnCod,0)
},c2v:function(){gx.O.AV6cTrnCod=this.val()},val:function(){return gx.fn.getControlValue("vCTRNCOD")},nac:function(){return false}};this.GXValidFnc[17]={fld:"TEXTBLOCKTRNEMPCOD",format:0,grid:0};this.GXValidFnc[19]={lvl:0,type:"int",len:2,dec:0,sign:false,pic:"Z9",ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,rgrid:[this.Grid1Container],fld:"vCTRNEMPCOD",gxz:"ZV7cTrnEmpCod",gxold:"OV7cTrnEmpCod",gxvar:"AV7cTrnEmpCod",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV7cTrnEmpCod=gx.num.intval(a)
},v2z:function(a){gx.O.ZV7cTrnEmpCod=gx.num.intval(a)},v2c:function(){gx.fn.setControlValue("vCTRNEMPCOD",gx.O.AV7cTrnEmpCod,0)},c2v:function(){gx.O.AV7cTrnEmpCod=this.val()},val:function(){return gx.fn.getIntegerValue("vCTRNEMPCOD",".")},nac:function(){return false}};this.GXValidFnc[22]={fld:"TEXTBLOCKUSUCOD",format:0,grid:0};this.GXValidFnc[24]={lvl:0,type:"char",len:6,dec:0,sign:false,ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,fld:"vCUSUCOD",gxz:"ZV8cUsuCod",gxold:"OV8cUsuCod",gxvar:"AV8cUsuCod",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV8cUsuCod=a
},v2z:function(a){gx.O.ZV8cUsuCod=a},v2c:function(){gx.fn.setControlValue("vCUSUCOD",gx.O.AV8cUsuCod,0)},c2v:function(){gx.O.AV8cUsuCod=this.val()},val:function(){return gx.fn.getControlValue("vCUSUCOD")},nac:function(){return false}};this.GXValidFnc[27]={fld:"TEXTBLOCKTRNCAMPO1LIVRE",format:0,grid:0};this.GXValidFnc[29]={lvl:0,type:"char",len:20,dec:0,sign:false,ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,fld:"vCTRNCAMPO1LIVRE",gxz:"ZV9cTrnCampo1Livre",gxold:"OV9cTrnCampo1Livre",gxvar:"AV9cTrnCampo1Livre",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV9cTrnCampo1Livre=a
},v2z:function(a){gx.O.ZV9cTrnCampo1Livre=a},v2c:function(){gx.fn.setControlValue("vCTRNCAMPO1LIVRE",gx.O.AV9cTrnCampo1Livre,0)},c2v:function(){gx.O.AV9cTrnCampo1Livre=this.val()},val:function(){return gx.fn.getControlValue("vCTRNCAMPO1LIVRE")},nac:function(){return false}};this.GXValidFnc[32]={fld:"TEXTBLOCKTRNCAMPO2LIVRE",format:0,grid:0};this.GXValidFnc[34]={lvl:0,type:"char",len:30,dec:0,sign:false,ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,fld:"vCTRNCAMPO2LIVRE",gxz:"ZV10cTrnCampo2Livre",gxold:"OV10cTrnCampo2Livre",gxvar:"AV10cTrnCampo2Livre",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV10cTrnCampo2Livre=a
},v2z:function(a){gx.O.ZV10cTrnCampo2Livre=a},v2c:function(){gx.fn.setControlValue("vCTRNCAMPO2LIVRE",gx.O.AV10cTrnCampo2Livre,0)},c2v:function(){gx.O.AV10cTrnCampo2Livre=this.val()},val:function(){return gx.fn.getControlValue("vCTRNCAMPO2LIVRE")},nac:function(){return false}};this.GXValidFnc[37]={fld:"GROUP2",grid:0};this.GXValidFnc[38]={fld:"TABLE3",grid:0};this.GXValidFnc[42]={lvl:2,type:"bits",len:4,dec:0,sign:false,ro:1,grid:41,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(41))},nac:function(){return false}};this.GXValidFnc[43]={lvl:2,type:"char",len:16,dec:0,sign:false,ro:1,grid:41,gxgrid:this.Grid1Container,fnc:null,isvalid:null,fld:"TRNCOD",gxz:"Z910TrnCod",gxold:"O910TrnCod",gxvar:"A910TrnCod",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A910TrnCod=a
},v2z:function(a){gx.O.Z910TrnCod=a},v2c:function(){gx.fn.setGridControlValue("TRNCOD",gx.fn.currentGridRowImpl(41),gx.O.A910TrnCod,0)},c2v:function(){gx.O.A910TrnCod=this.val()},val:function(){return gx.fn.getGridControlValue("TRNCOD",gx.fn.currentGridRowImpl(41))},nac:function(){return false}};this.GXValidFnc[44]={lvl:2,type:"int",len:2,dec:0,sign:false,pic:"Z9",ro:1,grid:41,gxgrid:this.Grid1Container,fnc:null,isvalid:null,rgrid:[],fld:"TRNEMPCOD",gxz:"Z911TrnEmpCod",gxold:"O911TrnEmpCod",gxvar:"A911TrnEmpCod",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A911TrnEmpCod=gx.num.intval(a)
},v2z:function(a){gx.O.Z911TrnEmpCod=gx.num.intval(a)},v2c:function(){gx.fn.setGridControlValue("TRNEMPCOD",gx.fn.currentGridRowImpl(41),gx.O.A911TrnEmpCod,0)},c2v:function(){gx.O.A911TrnEmpCod=this.val()},val:function(){return gx.fn.getGridIntegerValue("TRNEMPCOD",gx.fn.currentGridRowImpl(41),".")},nac:function(){return false}};this.GXValidFnc[45]={lvl:2,type:"char",len:6,dec:0,sign:false,ro:1,grid:41,gxgrid:this.Grid1Container,fnc:null,isvalid:null,fld:"USUCOD",gxz:"Z968UsuCod",gxold:"O968UsuCod",gxvar:"A968UsuCod",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A968UsuCod=a
},v2z:function(a){gx.O.Z968UsuCod=a},v2c:function(){gx.fn.setGridControlValue("USUCOD",gx.fn.currentGridRowImpl(41),gx.O.A968UsuCod,0)},c2v:function(){gx.O.A968UsuCod=this.val()},val:function(){return gx.fn.getGridControlValue("USUCOD",gx.fn.currentGridRowImpl(41))},nac:function(){return false}};this.GXValidFnc[46]={lvl:2,type:"char",len:20,dec:0,sign:false,ro:1,grid:41,gxgrid:this.Grid1Container,fnc:null,isvalid:null,fld:"TRNCAMPO1L",gxz:"Z908TrnCampo1L",gxold:"O908TrnCampo1L",gxvar:"A908TrnCampo1L",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A908TrnCampo1L=a
},v2z:function(a){gx.O.Z908TrnCampo1L=a},v2c:function(){gx.fn.setGridControlValue("TRNCAMPO1L",gx.fn.currentGridRowImpl(41),gx.O.A908TrnCampo1L,0)},c2v:function(){gx.O.A908TrnCampo1L=this.val()},val:function(){return gx.fn.getGridControlValue("TRNCAMPO1L",gx.fn.currentGridRowImpl(41))},nac:function(){return false}};this.GXValidFnc[47]={lvl:2,type:"char",len:30,dec:0,sign:false,ro:1,grid:41,gxgrid:this.Grid1Container,fnc:null,isvalid:null,fld:"TRNCAMPO2L",gxz:"Z909TrnCampo2L",gxold:"O909TrnCampo2L",gxvar:"A909TrnCampo2L",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A909TrnCampo2L=a
},v2z:function(a){gx.O.Z909TrnCampo2L=a},v2c:function(){gx.fn.setGridControlValue("TRNCAMPO2L",gx.fn.currentGridRowImpl(41),gx.O.A909TrnCampo2L,0)},c2v:function(){gx.O.A909TrnCampo2L=this.val()},val:function(){return gx.fn.getGridControlValue("TRNCAMPO2L",gx.fn.currentGridRowImpl(41))},nac:function(){return false}};this.GXValidFnc[50]={fld:"TABLE4",grid:0};this.AV6cTrnCod="";this.ZV6cTrnCod="";this.OV6cTrnCod="";this.AV7cTrnEmpCod=0;this.ZV7cTrnEmpCod=0;this.OV7cTrnEmpCod=0;this.AV8cUsuCod="";this.ZV8cUsuCod="";
this.OV8cUsuCod="";this.AV9cTrnCampo1Livre="";this.ZV9cTrnCampo1Livre="";this.OV9cTrnCampo1Livre="";this.AV10cTrnCampo2Livre="";this.ZV10cTrnCampo2Livre="";this.OV10cTrnCampo2Livre="";this.ZV5LinkSelection="";this.OV5LinkSelection="";this.Z910TrnCod="";this.O910TrnCod="";this.Z911TrnEmpCod=0;this.O911TrnEmpCod=0;this.Z968UsuCod="";this.O968UsuCod="";this.Z908TrnCampo1L="";this.O908TrnCampo1L="";this.Z909TrnCampo2L="";this.O909TrnCampo2L="";this.AV11pTrnCod="";this.AV5LinkSelection="";this.A910TrnCod="";
this.A911TrnEmpCod=0;this.A968UsuCod="";this.A908TrnCampo1L="";this.A909TrnCampo2L="";this.ServerEvents=["e13a52_client","e14a51_client"];this.VarControlMap.AV11pTrnCod={id:"vPTRNCOD",grid:0,type:"char"};this.Grid1Container.addRefreshingVar(this.GXValidFnc[14]);this.Grid1Container.addRefreshingVar(this.GXValidFnc[19]);this.Grid1Container.addRefreshingVar(this.GXValidFnc[24]);this.Grid1Container.addRefreshingVar(this.GXValidFnc[29]);this.Grid1Container.addRefreshingVar(this.GXValidFnc[34]);this.SetStandaloneVars()
}gx02m0.prototype=new gx.GxObject;gx.setParentObj(new gx02m0());