gx.evt.autoSkip=false;function hzlctrab(){this.ServerClass="HZLcTrab";this.PackageName="GeneXus.Programs";this.setObjectType("web");this.hasEnterEvent=true;this.SetStandaloneVars=function(){this.AV35LtrNro=gx.fn.getIntegerValue("vLTRNRO",".")};this.Valid_Ltrnom=function(){try{if(gx.fn.currentGridRowImpl(20)===0){return true}var a=gx.util.balloon.getNew("LTRNOM",gx.fn.currentGridRowImpl(20));this.AnyError=0}catch(b){}try{if(a==null){return true}return a.show()}catch(b){}return true};this.e132l2_client=function(){this.executeServerEvent("'VOLTAR'",true,arguments[0])
};this.e152l2_client=function(){this.executeServerEvent("ENTER",true,arguments[0])};this.e162l2_client=function(){this.executeServerEvent("CANCEL",true,arguments[0])};this.GXValidFnc=[];this.GXCtrlIds=[3,8,12,15,17,21,22];this.GXLastCtrlId=22;this.Grid1Container=new gx.grid.grid(this,2,"WbpLvl2",20,"Grid1","Grid1","Grid1Container",this.CmpContext,this.IsMasterPage,"hzlctrab",[],false,1,false,true,10,true,false,false,"",0,"px","Novo registro",true,false,false,null,null,false,"");this.Grid1Container.addSingleLineEdit(525,21,"LTRNRO","","","LtrNro","int",0,"px",5,5,"right",null,[],525,"LtrNro",true,0,false,false);
this.Grid1Container.addSingleLineEdit(524,22,"LTRNOM","Nome","","LtrNom","char",0,"px",40,40,"left",null,[],524,"LtrNom",true,0,false,false);this.setGrid(this.Grid1Container);this.GXValidFnc[3]={fld:"TABLE2",grid:0};this.GXValidFnc[8]={fld:"TITULO",format:0,grid:0};this.GXValidFnc[12]={fld:"TABLE1",grid:0};this.GXValidFnc[15]={fld:"TEXTBLOCK1",format:0,grid:0};this.GXValidFnc[17]={lvl:0,type:"char",len:40,dec:0,sign:false,ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,fld:"vLTRNOM",gxz:"ZV36LtrNom",gxold:"OV36LtrNom",gxvar:"AV36LtrNom",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV36LtrNom=a
},v2z:function(a){gx.O.ZV36LtrNom=a},v2c:function(){gx.fn.setControlValue("vLTRNOM",gx.O.AV36LtrNom,0)},c2v:function(){gx.O.AV36LtrNom=this.val()},val:function(){return gx.fn.getControlValue("vLTRNOM")},nac:function(){return false}};this.GXValidFnc[21]={lvl:2,type:"int",len:5,dec:0,sign:false,pic:"ZZZZ9",ro:1,grid:20,gxgrid:this.Grid1Container,fnc:null,isvalid:null,rgrid:[],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.setGridControlValue("LTRNRO",gx.fn.currentGridRowImpl(20),gx.O.A525LtrNro,0)},c2v:function(){gx.O.A525LtrNro=this.val()},val:function(){return gx.fn.getGridIntegerValue("LTRNRO",gx.fn.currentGridRowImpl(20),".")},nac:function(){return false}};this.GXValidFnc[22]={lvl:2,type:"char",len:40,dec:0,sign:false,ro:1,grid:20,gxgrid:this.Grid1Container,fnc:this.Valid_Ltrnom,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.setGridControlValue("LTRNOM",gx.fn.currentGridRowImpl(20),gx.O.A524LtrNom,0)},c2v:function(){gx.O.A524LtrNom=this.val()},val:function(){return gx.fn.getGridControlValue("LTRNOM",gx.fn.currentGridRowImpl(20))},nac:function(){return false}};this.AV36LtrNom="";this.ZV36LtrNom="";this.OV36LtrNom="";this.Z525LtrNro=0;this.O525LtrNro=0;this.Z524LtrNom="";this.O524LtrNom="";this.AV35LtrNro=0;this.A525LtrNro=0;this.A524LtrNom="";this.ServerEvents=["e132l2_client","e152l2_client","e162l2_client"];
this.VarControlMap.AV35LtrNro={id:"vLTRNRO",grid:0,type:"int"};this.Grid1Container.addRefreshingVar(this.GXValidFnc[17]);this.Grid1Container.addRefreshingVar({rfrVar:"A525LtrNro",rfrProp:"Title"});this.SetStandaloneVars()}hzlctrab.prototype=new gx.GxObject;gx.setParentObj(new hzlctrab());