gx.evt.autoSkip=false;function hzsttrab(){this.ServerClass="HZStTrab";this.PackageName="GeneXus.Programs";this.setObjectType("web");this.hasEnterEvent=true;this.SetStandaloneVars=function(){this.AV37SltNro=gx.fn.getIntegerValue("vSLTNRO",".")};this.Valid_Ltrnro=function(){try{var a=gx.util.balloon.getNew("LTRNRO");this.AnyError=0}catch(b){}try{if(a==null){return true}return a.show()}catch(b){}return true};this.Valid_Sltnom=function(){try{if(gx.fn.currentGridRowImpl(28)===0){return true}var a=gx.util.balloon.getNew("SLTNOM",gx.fn.currentGridRowImpl(28));
this.AnyError=0}catch(b){}try{if(a==null){return true}return a.show()}catch(b){}return true};this.e14332_client=function(){this.executeServerEvent("ENTER",true,arguments[0])};this.e15332_client=function(){this.executeServerEvent("CANCEL",true,arguments[0])};this.GXValidFnc=[];this.GXCtrlIds=[3,8,11,14,16,19,21,25,29,30];this.GXLastCtrlId=30;this.Grid1Container=new gx.grid.grid(this,2,"WbpLvl2",28,"Grid1","Grid1","Grid1Container",this.CmpContext,this.IsMasterPage,"hzsttrab",[],false,1,false,true,0,false,false,false,"",0,"px","Novo registro",false,false,false,null,null,false,"");
this.Grid1Container.addSingleLineEdit(827,29,"SLTNRO","","","SltNro","int",0,"px",4,4,"right",null,[],827,"SltNro",true,0,false,false);this.Grid1Container.addSingleLineEdit(826,30,"SLTNOM","Nome","","SltNom","char",0,"px",40,40,"left",null,[],826,"SltNom",true,0,false,false);this.setGrid(this.Grid1Container);this.GXValidFnc[3]={fld:"TABLE2",grid:0};this.GXValidFnc[8]={fld:"TEXTTITULO",format:0,grid:0};this.GXValidFnc[11]={fld:"TABLE1",grid:0};this.GXValidFnc[14]={fld:"TEXTCAMPO",format:0,grid:0};
this.GXValidFnc[16]={fld:"TABLE3",grid:0};this.GXValidFnc[19]={lvl:0,type:"int",len:5,dec:0,sign:false,pic:"ZZZZ9",ro:1,grid:0,gxgrid:null,fnc:this.Valid_Ltrnro,isvalid:null,rgrid:[this.Grid1Container],fld:"LTRNRO",gxz:"Z525LtrNro",gxold:"O525LtrNro",gxvar:"A525LtrNro",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A525LtrNro=gx.num.intval(a)},v2z:function(a){gx.O.Z525LtrNro=gx.num.intval(a)},v2c:function(){gx.fn.setControlValue("LTRNRO",gx.O.A525LtrNro,0)},c2v:function(){gx.O.A525LtrNro=this.val()
},val:function(){return gx.fn.getIntegerValue("LTRNRO",".")},nac:function(){return false}};this.GXValidFnc[21]={lvl:0,type:"char",len:40,dec:0,sign:false,ro:1,grid:0,gxgrid:null,fnc:null,isvalid:null,fld:"LTRNOM",gxz:"Z524LtrNom",gxold:"O524LtrNom",gxvar:"A524LtrNom",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A524LtrNom=a},v2z:function(a){gx.O.Z524LtrNom=a},v2c:function(){gx.fn.setControlValue("LTRNOM",gx.O.A524LtrNom,0)},c2v:function(){gx.O.A524LtrNom=this.val()},val:function(){return gx.fn.getControlValue("LTRNOM")
},nac:function(){return false}};this.GXValidFnc[25]={lvl:0,type:"char",len:40,dec:0,sign:false,ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,fld:"vSCRNOMSETOR",gxz:"ZV40ScrNomSetor",gxold:"OV40ScrNomSetor",gxvar:"AV40ScrNomSetor",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV40ScrNomSetor=a},v2z:function(a){gx.O.ZV40ScrNomSetor=a},v2c:function(){gx.fn.setControlValue("vSCRNOMSETOR",gx.O.AV40ScrNomSetor,0)},c2v:function(){gx.O.AV40ScrNomSetor=this.val()},val:function(){return gx.fn.getControlValue("vSCRNOMSETOR")
},nac:function(){return false}};this.GXValidFnc[29]={lvl:2,type:"int",len:4,dec:0,sign:false,pic:"ZZZ9",ro:1,grid:28,gxgrid:this.Grid1Container,fnc:null,isvalid:null,rgrid:[],fld:"SLTNRO",gxz:"Z827SltNro",gxold:"O827SltNro",gxvar:"A827SltNro",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A827SltNro=gx.num.intval(a)},v2z:function(a){gx.O.Z827SltNro=gx.num.intval(a)},v2c:function(){gx.fn.setGridControlValue("SLTNRO",gx.fn.currentGridRowImpl(28),gx.O.A827SltNro,0)},c2v:function(){gx.O.A827SltNro=this.val()
},val:function(){return gx.fn.getGridIntegerValue("SLTNRO",gx.fn.currentGridRowImpl(28),".")},nac:function(){return false}};this.GXValidFnc[30]={lvl:2,type:"char",len:40,dec:0,sign:false,ro:1,grid:28,gxgrid:this.Grid1Container,fnc:this.Valid_Sltnom,isvalid:null,fld:"SLTNOM",gxz:"Z826SltNom",gxold:"O826SltNom",gxvar:"A826SltNom",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A826SltNom=a},v2z:function(a){gx.O.Z826SltNom=a},v2c:function(){gx.fn.setGridControlValue("SLTNOM",gx.fn.currentGridRowImpl(28),gx.O.A826SltNom,0)
},c2v:function(){gx.O.A826SltNom=this.val()},val:function(){return gx.fn.getGridControlValue("SLTNOM",gx.fn.currentGridRowImpl(28))},nac:function(){return false}};this.A525LtrNro=0;this.Z525LtrNro=0;this.O525LtrNro=0;this.A524LtrNom="";this.Z524LtrNom="";this.O524LtrNom="";this.AV40ScrNomSetor="";this.ZV40ScrNomSetor="";this.OV40ScrNomSetor="";this.Z827SltNro=0;this.O827SltNro=0;this.Z826SltNom="";this.O826SltNom="";this.AV37SltNro=0;this.A827SltNro=0;this.A826SltNom="";this.ServerEvents=["e14332_client","e15332_client"];
this.VarControlMap.AV37SltNro={id:"vSLTNRO",grid:0,type:"int"};this.Grid1Container.addRefreshingVar(this.GXValidFnc[25]);this.Grid1Container.addRefreshingVar(this.GXValidFnc[19]);this.Grid1Container.addRefreshingVar({rfrVar:"A827SltNro",rfrProp:"Title"});this.SetStandaloneVars()}hzsttrab.prototype=new gx.GxObject;gx.setParentObj(new hzsttrab());