gx.evt.autoSkip=false;function gx02j1(){this.ServerClass="Gx02J1";this.PackageName="";this.setObjectType("web");this.hasEnterEvent=true;this.autoRefresh=true;this.SetStandaloneVars=function(){this.AV7pUsuCod=gx.fn.getControlValue("vPUSUCOD");this.AV8pPrgCod=gx.fn.getControlValue("vPPRGCOD")};this.e13a12_client=function(){this.executeServerEvent("ENTER",true,arguments[0])};this.e14a11_client=function(){this.executeServerEvent("CANCEL",true)};this.GXValidFnc=[];this.GXCtrlIds=[2,8,9,12,14,17,18,22,23,24,27];
this.GXLastCtrlId=27;this.Grid1Container=new gx.grid.grid(this,2,"WbpLvl2",21,"Grid1","Grid1","Grid1Container",this.CmpContext,this.IsMasterPage,"gx02j1",[],false,1,false,true,10,true,false,false,"",0,"px","Novo registro",true,false,false,null,null,false,"");this.Grid1Container.addBitmap("&Linkselection","vLINKSELECTION",22,0,"px",17,"px",null,"","");this.Grid1Container.addSingleLineEdit(693,23,"PRGCOD","Programa","Selecionar","PrgCod","char",0,"px",8,8,"left",null,[],693,"PrgCod",true,0,false,false);
this.Grid1Container.addSingleLineEdit(968,24,"USUCOD","Operador","","UsuCod","char",0,"px",6,6,"left",null,[],968,"UsuCod",false,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:"TEXTBLOCKPRGCOD",format:0,grid:0};this.GXValidFnc[14]={lvl:0,type:"char",len:8,dec:0,sign:false,ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,fld:"vCPRGCOD",gxz:"ZV6cPrgCod",gxold:"OV6cPrgCod",gxvar:"AV6cPrgCod",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV6cPrgCod=a
},v2z:function(a){gx.O.ZV6cPrgCod=a},v2c:function(){gx.fn.setControlValue("vCPRGCOD",gx.O.AV6cPrgCod,0)},c2v:function(){gx.O.AV6cPrgCod=this.val()},val:function(){return gx.fn.getControlValue("vCPRGCOD")},nac:function(){return false}};this.GXValidFnc[17]={fld:"GROUP2",grid:0};this.GXValidFnc[18]={fld:"TABLE3",grid:0};this.GXValidFnc[22]={lvl:2,type:"bits",len:4,dec:0,sign:false,ro:1,grid:21,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(21))},nac:function(){return false}};this.GXValidFnc[23]={lvl:2,type:"char",len:8,dec:0,sign:false,ro:1,grid:21,gxgrid:this.Grid1Container,fnc:null,isvalid:null,fld:"PRGCOD",gxz:"Z693PrgCod",gxold:"O693PrgCod",gxvar:"A693PrgCod",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A693PrgCod=a
},v2z:function(a){gx.O.Z693PrgCod=a},v2c:function(){gx.fn.setGridControlValue("PRGCOD",gx.fn.currentGridRowImpl(21),gx.O.A693PrgCod,0)},c2v:function(){gx.O.A693PrgCod=this.val()},val:function(){return gx.fn.getGridControlValue("PRGCOD",gx.fn.currentGridRowImpl(21))},nac:function(){return false}};this.GXValidFnc[24]={lvl:2,type:"char",len:6,dec:0,sign:false,ro:1,grid:21,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(21),gx.O.A968UsuCod,0)},c2v:function(){gx.O.A968UsuCod=this.val()},val:function(){return gx.fn.getGridControlValue("USUCOD",gx.fn.currentGridRowImpl(21))},nac:function(){return false}};this.GXValidFnc[27]={fld:"TABLE4",grid:0};this.AV6cPrgCod="";this.ZV6cPrgCod="";this.OV6cPrgCod="";this.ZV5LinkSelection="";this.OV5LinkSelection="";this.Z693PrgCod="";this.O693PrgCod="";this.Z968UsuCod="";
this.O968UsuCod="";this.AV7pUsuCod="";this.AV8pPrgCod="";this.AV5LinkSelection="";this.A693PrgCod="";this.A968UsuCod="";this.ServerEvents=["e13a12_client","e14a11_client"];this.VarControlMap.AV7pUsuCod={id:"vPUSUCOD",grid:0,type:"char"};this.VarControlMap.AV8pPrgCod={id:"vPPRGCOD",grid:0,type:"char"};this.VarControlMap.AV7pUsuCod={id:"vPUSUCOD",grid:0,type:"char"};this.Grid1Container.addRefreshingVar(this.GXValidFnc[14]);this.Grid1Container.addRefreshingVar({rfrVar:"AV7pUsuCod"});this.SetStandaloneVars()
}gx02j1.prototype=new gx.GxObject;gx.setParentObj(new gx02j1());