gx.evt.autoSkip=false;function himh155(){this.ServerClass="HImh155";this.PackageName="GeneXus.Programs";this.setObjectType("web");this.hasEnterEvent=true;this.SetStandaloneVars=function(){};this.Valid_Undcod=function(){try{var a=gx.util.balloon.getNew("UNDCOD");this.AnyError=0}catch(b){}try{if(a==null){return true}return a.show()}catch(b){}return true};this.e170o1_client=function(){this.clearMessages();gx.popup.openUrl(gx.http.formatLink("himh161.aspx",[this.A922UndCod]),["A922UndCod"]);this.refreshOutputs([])
};this.e180o2_client=function(){this.clearMessages();gx.popup.openUrl(gx.http.formatLink("timt015.aspx",[this.A922UndCod,this.A509LocCod]),["A922UndCod","A509LocCod"]);this.refreshOutputs([])};this.e110o2_client=function(){this.executeServerEvent("ENTER",true)};this.e120o2_client=function(){this.executeServerEvent("'IRPARA'",false)};this.e130o2_client=function(){this.executeServerEvent("'VOLTAR'",false)};this.e140o2_client=function(){this.executeServerEvent("'NOVO'",false)};this.e190o2_client=function(){this.executeServerEvent("CANCEL",true,arguments[0])
};this.GXValidFnc=[];this.GXCtrlIds=[3,16,20,23,26,28,30,34,35,36,37,38,39,40];this.GXLastCtrlId=40;this.Grid1Container=new gx.grid.grid(this,2,"WbpLvl2",33,"Grid1","Grid1","Grid1Container",this.CmpContext,this.IsMasterPage,"himh155",[],false,1,false,true,0,false,false,false,"",0,"px","Novo registro",false,false,false,null,null,false,"");this.Grid1Container.addBitmap("&Imgeditar","vIMGEDITAR",34,0,"px",17,"px","e180o2_client","","");this.Grid1Container.addSingleLineEdit(509,35,"LOCCOD","Localização","","LocCod","int",0,"px",3,3,"right",null,[],509,"LocCod",true,0,false,false);
this.Grid1Container.addSingleLineEdit(512,36,"LOCNOM","Nome","","LocNom","char",0,"px",45,45,"left",null,[],512,"LocNom",true,0,false,false);this.Grid1Container.addSingleLineEdit(510,37,"LOCCODEMAI","e-mail","","LocCodEmai","char",0,"px",50,50,"left",null,[],510,"LocCodEmai",true,0,false,false);this.Grid1Container.addSingleLineEdit(511,38,"LOCDESENDE","Endereço","","LocDesEnde","char",0,"px",40,40,"left",null,[],511,"LocDesEnde",true,0,false,false);this.Grid1Container.addSingleLineEdit(513,39,"LOCNOMRESP","Responsável","","LocNomResp","char",0,"px",30,30,"left",null,[],513,"LocNomResp",true,0,false,false);
this.Grid1Container.addSingleLineEdit(514,40,"LOCNROFONE","Fone","","LocNroFone","char",0,"px",15,15,"left",null,[],514,"LocNroFone",true,0,false,false);this.setGrid(this.Grid1Container);this.GXValidFnc[3]={fld:"TABLE1",grid:0};this.GXValidFnc[16]={lvl:0,type:"int",len:3,dec:0,sign:false,pic:"ZZ9",ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,rgrid:[],fld:"vLOCCODNAVEGAR",gxz:"ZV23LocCodNavegar",gxold:"OV23LocCodNavegar",gxvar:"AV23LocCodNavegar",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV23LocCodNavegar=gx.num.intval(a)
},v2z:function(a){gx.O.ZV23LocCodNavegar=gx.num.intval(a)},v2c:function(){gx.fn.setControlValue("vLOCCODNAVEGAR",gx.O.AV23LocCodNavegar,0)},c2v:function(){gx.O.AV23LocCodNavegar=this.val()},val:function(){return gx.fn.getIntegerValue("vLOCCODNAVEGAR",".")},nac:function(){return false}};this.GXValidFnc[20]={fld:"TEXTBLOCK1",format:0,grid:0};this.GXValidFnc[23]={fld:"TABLE2",grid:0};this.GXValidFnc[26]={fld:"TEXTBLOCK2",format:0,grid:0};this.GXValidFnc[28]={lvl:0,type:"int",len:3,dec:0,sign:false,pic:"ZZ9",ro:1,grid:0,gxgrid:null,fnc:this.Valid_Undcod,isvalid:null,rgrid:[this.Grid1Container],fld:"UNDCOD",gxz:"Z922UndCod",gxold:"O922UndCod",gxvar:"A922UndCod",ucs:[],op:[],ip:[],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[30]={lvl:0,type:"char",len:40,dec:0,sign:false,ro:1,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[34]={lvl:2,type:"bits",len:5,dec:0,sign:false,ro:1,grid:33,gxgrid:this.Grid1Container,fnc:null,isvalid:null,fld:"vIMGEDITAR",gxz:"ZV27ImgEditar",gxold:"OV27ImgEditar",gxvar:"AV27ImgEditar",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV27ImgEditar=a
},v2z:function(a){gx.O.ZV27ImgEditar=a},v2c:function(){},c2v:function(){gx.O.AV27ImgEditar=this.val()},val:function(){return gx.fn.getGridControlValue("vIMGEDITAR",gx.fn.currentGridRowImpl(33))},nac:function(){return false}};this.GXValidFnc[35]={lvl:2,type:"int",len:3,dec:0,sign:false,pic:"ZZ9",ro:1,grid:33,gxgrid:this.Grid1Container,fnc:null,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(33),gx.O.A509LocCod,0)},c2v:function(){gx.O.A509LocCod=this.val()},val:function(){return gx.fn.getGridIntegerValue("LOCCOD",gx.fn.currentGridRowImpl(33),".")},nac:function(){return false}};this.GXValidFnc[36]={lvl:2,type:"char",len:45,dec:0,sign:false,ro:1,grid:33,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(33),gx.O.A512LocNom,0)},c2v:function(){gx.O.A512LocNom=this.val()},val:function(){return gx.fn.getGridControlValue("LOCNOM",gx.fn.currentGridRowImpl(33))},nac:function(){return false}};this.GXValidFnc[37]={lvl:2,type:"char",len:50,dec:0,sign:false,ro:1,grid:33,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(33),gx.O.A510LocCodEmai,0)},c2v:function(){gx.O.A510LocCodEmai=this.val()},val:function(){return gx.fn.getGridControlValue("LOCCODEMAI",gx.fn.currentGridRowImpl(33))},nac:function(){return false}};this.GXValidFnc[38]={lvl:2,type:"char",len:40,dec:0,sign:false,ro:1,grid:33,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(33),gx.O.A511LocDesEnde,0)},c2v:function(){gx.O.A511LocDesEnde=this.val()},val:function(){return gx.fn.getGridControlValue("LOCDESENDE",gx.fn.currentGridRowImpl(33))},nac:function(){return false}};this.GXValidFnc[39]={lvl:2,type:"char",len:30,dec:0,sign:false,ro:1,grid:33,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(33),gx.O.A513LocNomResp,0)},c2v:function(){gx.O.A513LocNomResp=this.val()},val:function(){return gx.fn.getGridControlValue("LOCNOMRESP",gx.fn.currentGridRowImpl(33))},nac:function(){return false}};this.GXValidFnc[40]={lvl:2,type:"char",len:15,dec:0,sign:false,ro:1,grid:33,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(33),gx.O.A514LocNroFone,0)},c2v:function(){gx.O.A514LocNroFone=this.val()},val:function(){return gx.fn.getGridControlValue("LOCNROFONE",gx.fn.currentGridRowImpl(33))},nac:function(){return false}};this.AV23LocCodNavegar=0;this.ZV23LocCodNavegar=0;this.OV23LocCodNavegar=0;this.A922UndCod=0;this.Z922UndCod=0;this.O922UndCod=0;this.A925UndNomComp="";this.Z925UndNomComp="";this.O925UndNomComp="";
this.ZV27ImgEditar="";this.OV27ImgEditar="";this.Z509LocCod=0;this.O509LocCod=0;this.Z512LocNom="";this.O512LocNom="";this.Z510LocCodEmai="";this.O510LocCodEmai="";this.Z511LocDesEnde="";this.O511LocDesEnde="";this.Z513LocNomResp="";this.O513LocNomResp="";this.Z514LocNroFone="";this.O514LocNroFone="";this.AV27ImgEditar="";this.A509LocCod=0;this.A512LocNom="";this.A510LocCodEmai="";this.A511LocDesEnde="";this.A513LocNomResp="";this.A514LocNroFone="";this.ServerEvents=["e110o2_client","e120o2_client","e130o2_client","e140o2_client","e190o2_client"];
this.EnterCtrl=["BUTTON4"];this.Grid1Container.addRefreshingVar(this.GXValidFnc[28]);this.SetStandaloneVars()}himh155.prototype=new gx.GxObject;gx.setParentObj(new himh155());