gx.evt.autoSkip=false;function gx04k0(){this.ServerClass="Gx04K0";this.PackageName="GeneXus.Programs";this.setObjectType("web");this.hasEnterEvent=true;this.autoRefresh=true;this.SetStandaloneVars=function(){this.AV8pStrCod=gx.fn.getIntegerValue("vPSTRCOD",".")};this.e13fb2_client=function(){this.executeServerEvent("ENTER",true,arguments[0])};this.e14fb1_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,"gx04k0",[],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(1070,28,"STRCOD","Setor","","StrCod","int",0,"px",5,5,"right",null,[],1070,"StrCod",true,0,false,false);this.Grid1Container.addSingleLineEdit(1071,29,"STRNOM","setor","Selecionar","StrNom","char",0,"px",50,50,"left",null,[],1071,"StrNom",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:"TEXTBLOCKSTRCOD",format:0,grid:0};this.GXValidFnc[14]={lvl:0,type:"int",len:5,dec:0,sign:false,pic:"ZZZZ9",ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,rgrid:[this.Grid1Container],fld:"vCSTRCOD",gxz:"ZV6cStrCod",gxold:"OV6cStrCod",gxvar:"AV6cStrCod",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV6cStrCod=gx.num.intval(a)
},v2z:function(a){gx.O.ZV6cStrCod=gx.num.intval(a)},v2c:function(){gx.fn.setControlValue("vCSTRCOD",gx.O.AV6cStrCod,0)},c2v:function(){gx.O.AV6cStrCod=this.val()},val:function(){return gx.fn.getIntegerValue("vCSTRCOD",".")},nac:function(){return false}};this.GXValidFnc[17]={fld:"TEXTBLOCKSTRNOM",format:0,grid:0};this.GXValidFnc[19]={lvl:0,type:"char",len:50,dec:0,sign:false,ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,fld:"vCSTRNOM",gxz:"ZV7cStrNom",gxold:"OV7cStrNom",gxvar:"AV7cStrNom",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV7cStrNom=a
},v2z:function(a){gx.O.ZV7cStrNom=a},v2c:function(){gx.fn.setControlValue("vCSTRNOM",gx.O.AV7cStrNom,0)},c2v:function(){gx.O.AV7cStrNom=this.val()},val:function(){return gx.fn.getControlValue("vCSTRNOM")},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:"int",len:5,dec:0,sign:false,pic:"ZZZZ9",ro:1,grid:26,gxgrid:this.Grid1Container,fnc:null,isvalid:null,rgrid:[],fld:"STRCOD",gxz:"Z1070StrCod",gxold:"O1070StrCod",gxvar:"A1070StrCod",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A1070StrCod=gx.num.intval(a)
},v2z:function(a){gx.O.Z1070StrCod=gx.num.intval(a)},v2c:function(){gx.fn.setGridControlValue("STRCOD",gx.fn.currentGridRowImpl(26),gx.O.A1070StrCod,0)},c2v:function(){gx.O.A1070StrCod=this.val()},val:function(){return gx.fn.getGridIntegerValue("STRCOD",gx.fn.currentGridRowImpl(26),".")},nac:function(){return false}};this.GXValidFnc[29]={lvl:2,type:"char",len:50,dec:0,sign:false,ro:1,grid:26,gxgrid:this.Grid1Container,fnc:null,isvalid:null,fld:"STRNOM",gxz:"Z1071StrNom",gxold:"O1071StrNom",gxvar:"A1071StrNom",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A1071StrNom=a
},v2z:function(a){gx.O.Z1071StrNom=a},v2c:function(){gx.fn.setGridControlValue("STRNOM",gx.fn.currentGridRowImpl(26),gx.O.A1071StrNom,0)},c2v:function(){gx.O.A1071StrNom=this.val()},val:function(){return gx.fn.getGridControlValue("STRNOM",gx.fn.currentGridRowImpl(26))},nac:function(){return false}};this.GXValidFnc[32]={fld:"TABLE4",grid:0};this.AV6cStrCod=0;this.ZV6cStrCod=0;this.OV6cStrCod=0;this.AV7cStrNom="";this.ZV7cStrNom="";this.OV7cStrNom="";this.ZV5LinkSelection="";this.OV5LinkSelection="";
this.Z1070StrCod=0;this.O1070StrCod=0;this.Z1071StrNom="";this.O1071StrNom="";this.AV8pStrCod=0;this.AV5LinkSelection="";this.A1070StrCod=0;this.A1071StrNom="";this.ServerEvents=["e13fb2_client","e14fb1_client"];this.VarControlMap.AV8pStrCod={id:"vPSTRCOD",grid:0,type:"int"};this.Grid1Container.addRefreshingVar(this.GXValidFnc[14]);this.Grid1Container.addRefreshingVar(this.GXValidFnc[19]);this.SetStandaloneVars()}gx04k0.prototype=new gx.GxObject;gx.setParentObj(new gx04k0());