gx.evt.autoSkip=false;function tabt054(){this.ServerClass="TAbt054";this.PackageName="GeneXus.Programs";this.setObjectType("trn");this.hasEnterEvent=true;this.SetStandaloneVars=function(){this.Gx_mode=gx.fn.getControlValue("vMODE")};this.Valid_Undcod=function(){gx.ajax.validSrvEvt("dyncall","Valid_Undcod",["gx.O.A922UndCod","gx.O.A925UndNomComp","gx.O.A926UndNomSigl","gx.O.A924UndIndTomb","gx.O.A921UndCampo1L"],["A925UndNomComp","A926UndNomSigl","A924UndIndTomb","A921UndCampo1L","Gx_mode","Z922UndCod","Z925UndNomComp","Z926UndNomSigl","Z924UndIndTomb","Z921UndCampo1L","Grid1",["BTN_GET","Enabled"],["BTN_ENTER","Enabled"],["BTN_CHECK","Enabled"]]);
return true};this.Valid_Loccod=function(){try{if(gx.fn.currentGridRowImpl(45)===0){return true}var a=gx.util.balloon.getNew("LOCCOD",gx.fn.currentGridRowImpl(45));this.AnyError=0;this.sMode40=this.Gx_mode;this.Gx_mode=gx.fn.getGridRowMode(40,45);this.standaloneModal1A40();this.standaloneNotModal1A40();if(gx.fn.gridDuplicateKey(47)){a.setError(gx.text.format(gx.getMessage("GXM_1004"),"Level1"));this.AnyError=1}}catch(b){}try{this.Gx_mode=this.sMode40;if(a==null){return true}return a.show()}catch(b){}return true
};this.standaloneModal1A40=function(){try{if(this.Gx_mode!="INS"){gx.fn.setCtrlProperty("LOCCOD","Enabled",0)}else{gx.fn.setCtrlProperty("LOCCOD","Enabled",1)}}catch(a){}return true};this.standaloneNotModal1A40=function(){return true};this.e111a39_client=function(){this.executeServerEvent("ENTER",true)};this.e121a39_client=function(){this.executeServerEvent("CANCEL",true)};this.GXValidFnc=[];this.GXCtrlIds=[2,15,18,20,24,26,29,31,34,36,39,41,46,47,48,49,50,51,52,53];this.GXLastCtrlId=53;this.Grid1Container=new gx.grid.grid(this,40,"Level1",45,"Grid1","Grid1","Grid1Container",this.CmpContext,this.IsMasterPage,"tabt054",[509],false,1,false,true,5,false,false,false,"",0,"px","Novo registro",true,false,false,null,null,false,"");
this.Grid1Container.addSingleLineEdit("nRcdDeleted_40",46,"vNRCDDELETED_40","","","nRcdDeleted_40","int",0,"px",4,4,"right",null,[],"nRcdDeleted_40","nRcdDeleted_40",true,0,false,false);this.Grid1Container.addSingleLineEdit(509,47,"LOCCOD","Localização","","LocCod","int",0,"px",3,3,"right",null,[],509,"LocCod",true,0,false,false);this.Grid1Container.addSingleLineEdit(512,48,"LOCNOM","Nome da localização","","LocNom","char",0,"px",45,45,"left",null,[],512,"LocNom",true,0,false,false);this.Grid1Container.addSingleLineEdit(513,49,"LOCNOMRESP","Responsável","","LocNomResp","char",0,"px",30,30,"left",null,[],513,"LocNomResp",true,0,false,false);
this.Grid1Container.addSingleLineEdit(511,50,"LOCDESENDE","Endereço","","LocDesEnde","char",0,"px",40,40,"left",null,[],511,"LocDesEnde",true,0,false,false);this.Grid1Container.addSingleLineEdit(514,51,"LOCNROFONE","Fone","","LocNroFone","char",0,"px",15,15,"left",null,[],514,"LocNroFone",true,0,false,false);this.Grid1Container.addSingleLineEdit(510,52,"LOCCODEMAI","e-mail","","LocCodEmai","char",0,"px",50,50,"left",null,[],510,"LocCodEmai",true,0,false,false);this.Grid1Container.addSingleLineEdit(508,53,"LOCCAMPO1L","Campo livre","","LocCampo1L","char",0,"px",50,50,"left",null,[],508,"LocCampo1L",true,0,false,false);
this.setGrid(this.Grid1Container);this.GXValidFnc[2]={fld:"TABLE1",grid:0};this.GXValidFnc[15]={fld:"TABLE2",grid:0};this.GXValidFnc[18]={fld:"TEXTBLOCK1",format:0,grid:0};this.GXValidFnc[20]={lvl:0,type:"int",len:3,dec:0,sign:false,pic:"ZZ9",ro:0,grid:0,gxgrid:null,fnc:this.Valid_Undcod,isvalid:null,rgrid:[this.Grid1Container],fld:"UNDCOD",gxz:"Z922UndCod",gxold:"O922UndCod",gxvar:"A922UndCod",ucs:[],op:[41,36,31,26],ip:[41,36,31,26,20],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A922UndCod=gx.num.intval(a)
},v2z:function(a){gx.O.Z922UndCod=gx.num.intval(a)},v2c:function(){gx.fn.setControlValue("UNDCOD",gx.O.A922UndCod,0)},c2v:function(){gx.O.A922UndCod=this.val()},val:function(){return gx.fn.getIntegerValue("UNDCOD",".")},nac:function(){return false}};this.GXValidFnc[24]={fld:"TEXTBLOCK2",format:0,grid:0};this.GXValidFnc[26]={lvl:0,type:"char",len:40,dec:0,sign:false,ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,fld:"UNDNOMCOMP",gxz:"Z925UndNomComp",gxold:"O925UndNomComp",gxvar:"A925UndNomComp",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A925UndNomComp=a
},v2z:function(a){gx.O.Z925UndNomComp=a},v2c:function(){gx.fn.setControlValue("UNDNOMCOMP",gx.O.A925UndNomComp,0)},c2v:function(){gx.O.A925UndNomComp=this.val()},val:function(){return gx.fn.getControlValue("UNDNOMCOMP")},nac:function(){return false}};this.GXValidFnc[29]={fld:"TEXTBLOCK3",format:0,grid:0};this.GXValidFnc[31]={lvl:0,type:"char",len:3,dec:0,sign:false,ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,fld:"UNDNOMSIGL",gxz:"Z926UndNomSigl",gxold:"O926UndNomSigl",gxvar:"A926UndNomSigl",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A926UndNomSigl=a
},v2z:function(a){gx.O.Z926UndNomSigl=a},v2c:function(){gx.fn.setControlValue("UNDNOMSIGL",gx.O.A926UndNomSigl,0)},c2v:function(){gx.O.A926UndNomSigl=this.val()},val:function(){return gx.fn.getControlValue("UNDNOMSIGL")},nac:function(){return false}};this.GXValidFnc[34]={fld:"TEXTBLOCK4",format:0,grid:0};this.GXValidFnc[36]={lvl:0,type:"char",len:1,dec:0,sign:false,ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,fld:"UNDINDTOMB",gxz:"Z924UndIndTomb",gxold:"O924UndIndTomb",gxvar:"A924UndIndTomb",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"combo",v2v:function(a){gx.O.A924UndIndTomb=a
},v2z:function(a){gx.O.Z924UndIndTomb=a},v2c:function(){gx.fn.setComboBoxValue("UNDINDTOMB",gx.O.A924UndIndTomb)},c2v:function(){gx.O.A924UndIndTomb=this.val()},val:function(){return gx.fn.getControlValue("UNDINDTOMB")},nac:function(){return false}};this.GXValidFnc[39]={fld:"TEXTBLOCK5",format:0,grid:0};this.GXValidFnc[41]={lvl:0,type:"char",len:100,dec:0,sign:false,ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,fld:"UNDCAMPO1L",gxz:"Z921UndCampo1L",gxold:"O921UndCampo1L",gxvar:"A921UndCampo1L",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A921UndCampo1L=a
},v2z:function(a){gx.O.Z921UndCampo1L=a},v2c:function(){gx.fn.setControlValue("UNDCAMPO1L",gx.O.A921UndCampo1L,0)},c2v:function(){gx.O.A921UndCampo1L=this.val()},val:function(){return gx.fn.getControlValue("UNDCAMPO1L")},nac:function(){return false}};this.GXValidFnc[46]={lvl:40,type:"int",len:4,dec:0,sign:false,pic:"9999",ro:0,grid:45,gxgrid:this.Grid1Container,fnc:null,isvalid:null,rgrid:[],fld:"vNRCDDELETED_40",gxz:"ZnRcdDeleted_40",gxold:"OnRcdDeleted_40",gxvar:"nRcdDeleted_40",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.nRcdDeleted_40=gx.num.intval(a)
},v2z:function(a){gx.O.ZnRcdDeleted_40=gx.num.intval(a)},v2c:function(){gx.fn.setGridControlValue("vNRCDDELETED_40",gx.fn.currentGridRowImpl(45),gx.O.nRcdDeleted_40,0)},c2v:function(){gx.O.nRcdDeleted_40=this.val()},val:function(){return gx.fn.getGridIntegerValue("vNRCDDELETED_40",gx.fn.currentGridRowImpl(45),".")},nac:function(){return false}};this.GXValidFnc[47]={lvl:40,type:"int",len:3,dec:0,sign:false,pic:"ZZ9",ro:0,grid:45,gxgrid:this.Grid1Container,fnc:this.Valid_Loccod,isvalid:null,rgrid:[],fld:"LOCCOD",gxz:"Z509LocCod",gxold:"O509LocCod",gxvar:"A509LocCod",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A509LocCod=gx.num.intval(a)
},v2z:function(a){gx.O.Z509LocCod=gx.num.intval(a)},v2c:function(){gx.fn.setGridControlValue("LOCCOD",gx.fn.currentGridRowImpl(45),gx.O.A509LocCod,0)},c2v:function(){gx.O.A509LocCod=this.val()},val:function(){return gx.fn.getGridIntegerValue("LOCCOD",gx.fn.currentGridRowImpl(45),".")},nac:function(){return false}};this.GXValidFnc[48]={lvl:40,type:"char",len:45,dec:0,sign:false,ro:0,grid:45,gxgrid:this.Grid1Container,fnc:null,isvalid:null,fld:"LOCNOM",gxz:"Z512LocNom",gxold:"O512LocNom",gxvar:"A512LocNom",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A512LocNom=a
},v2z:function(a){gx.O.Z512LocNom=a},v2c:function(){gx.fn.setGridControlValue("LOCNOM",gx.fn.currentGridRowImpl(45),gx.O.A512LocNom,0)},c2v:function(){gx.O.A512LocNom=this.val()},val:function(){return gx.fn.getGridControlValue("LOCNOM",gx.fn.currentGridRowImpl(45))},nac:function(){return false}};this.GXValidFnc[49]={lvl:40,type:"char",len:30,dec:0,sign:false,ro:0,grid:45,gxgrid:this.Grid1Container,fnc:null,isvalid:null,fld:"LOCNOMRESP",gxz:"Z513LocNomResp",gxold:"O513LocNomResp",gxvar:"A513LocNomResp",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A513LocNomResp=a
},v2z:function(a){gx.O.Z513LocNomResp=a},v2c:function(){gx.fn.setGridControlValue("LOCNOMRESP",gx.fn.currentGridRowImpl(45),gx.O.A513LocNomResp,0)},c2v:function(){gx.O.A513LocNomResp=this.val()},val:function(){return gx.fn.getGridControlValue("LOCNOMRESP",gx.fn.currentGridRowImpl(45))},nac:function(){return false}};this.GXValidFnc[50]={lvl:40,type:"char",len:40,dec:0,sign:false,ro:0,grid:45,gxgrid:this.Grid1Container,fnc:null,isvalid:null,fld:"LOCDESENDE",gxz:"Z511LocDesEnde",gxold:"O511LocDesEnde",gxvar:"A511LocDesEnde",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A511LocDesEnde=a
},v2z:function(a){gx.O.Z511LocDesEnde=a},v2c:function(){gx.fn.setGridControlValue("LOCDESENDE",gx.fn.currentGridRowImpl(45),gx.O.A511LocDesEnde,0)},c2v:function(){gx.O.A511LocDesEnde=this.val()},val:function(){return gx.fn.getGridControlValue("LOCDESENDE",gx.fn.currentGridRowImpl(45))},nac:function(){return false}};this.GXValidFnc[51]={lvl:40,type:"char",len:15,dec:0,sign:false,ro:0,grid:45,gxgrid:this.Grid1Container,fnc:null,isvalid:null,fld:"LOCNROFONE",gxz:"Z514LocNroFone",gxold:"O514LocNroFone",gxvar:"A514LocNroFone",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A514LocNroFone=a
},v2z:function(a){gx.O.Z514LocNroFone=a},v2c:function(){gx.fn.setGridControlValue("LOCNROFONE",gx.fn.currentGridRowImpl(45),gx.O.A514LocNroFone,0)},c2v:function(){gx.O.A514LocNroFone=this.val()},val:function(){return gx.fn.getGridControlValue("LOCNROFONE",gx.fn.currentGridRowImpl(45))},nac:function(){return false}};this.GXValidFnc[52]={lvl:40,type:"char",len:50,dec:0,sign:false,ro:0,grid:45,gxgrid:this.Grid1Container,fnc:null,isvalid:null,fld:"LOCCODEMAI",gxz:"Z510LocCodEmai",gxold:"O510LocCodEmai",gxvar:"A510LocCodEmai",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A510LocCodEmai=a
},v2z:function(a){gx.O.Z510LocCodEmai=a},v2c:function(){gx.fn.setGridControlValue("LOCCODEMAI",gx.fn.currentGridRowImpl(45),gx.O.A510LocCodEmai,0)},c2v:function(){gx.O.A510LocCodEmai=this.val()},val:function(){return gx.fn.getGridControlValue("LOCCODEMAI",gx.fn.currentGridRowImpl(45))},nac:function(){return false}};this.GXValidFnc[53]={lvl:40,type:"char",len:50,dec:0,sign:false,ro:0,grid:45,gxgrid:this.Grid1Container,fnc:null,isvalid:null,fld:"LOCCAMPO1L",gxz:"Z508LocCampo1L",gxold:"O508LocCampo1L",gxvar:"A508LocCampo1L",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A508LocCampo1L=a
},v2z:function(a){gx.O.Z508LocCampo1L=a},v2c:function(){gx.fn.setGridControlValue("LOCCAMPO1L",gx.fn.currentGridRowImpl(45),gx.O.A508LocCampo1L,0)},c2v:function(){gx.O.A508LocCampo1L=this.val()},val:function(){return gx.fn.getGridControlValue("LOCCAMPO1L",gx.fn.currentGridRowImpl(45))},nac:function(){return false}};this.A922UndCod=0;this.Z922UndCod=0;this.O922UndCod=0;this.A925UndNomComp="";this.Z925UndNomComp="";this.O925UndNomComp="";this.A926UndNomSigl="";this.Z926UndNomSigl="";this.O926UndNomSigl="";
this.A924UndIndTomb="";this.Z924UndIndTomb="";this.O924UndIndTomb="";this.A921UndCampo1L="";this.Z921UndCampo1L="";this.O921UndCampo1L="";this.ZnRcdDeleted_40=0;this.OnRcdDeleted_40=0;this.Z509LocCod=0;this.O509LocCod=0;this.Z512LocNom="";this.O512LocNom="";this.Z513LocNomResp="";this.O513LocNomResp="";this.Z511LocDesEnde="";this.O511LocDesEnde="";this.Z514LocNroFone="";this.O514LocNroFone="";this.Z510LocCodEmai="";this.O510LocCodEmai="";this.Z508LocCampo1L="";this.O508LocCampo1L="";this.A509LocCod=0;
this.A512LocNom="";this.A513LocNomResp="";this.A511LocDesEnde="";this.A514LocNroFone="";this.A510LocCodEmai="";this.A508LocCampo1L="";this.ServerEvents=["e111a39_client","e121a39_client"];this.EnterCtrl=["BTN_ENTER"];this.CheckCtrl=["BTN_CHECK"];this.VarControlMap.Gx_mode={id:"vMODE",grid:0,type:"char"};this.SetStandaloneVars()}tabt054.prototype=new gx.GxObject;gx.setParentObj(new tabt054());