gx.evt.autoSkip=false;function himh080(){this.ServerClass="HImh080";this.PackageName="GeneXus.Programs";this.setObjectType("web");this.hasEnterEvent=false;this.SetStandaloneVars=function(){};this.Validv_Loccodauxiliar=function(){try{var a=gx.util.balloon.getNew("vLOCCODAUXILIAR");this.AnyError=0}catch(b){}try{if(a==null){return true}return a.show()}catch(b){}return true};this.Validv_Usucod=function(){try{var a=gx.util.balloon.getNew("vUSUCOD");this.AnyError=0}catch(b){}try{if(a==null){return true
}return a.show()}catch(b){}return true};this.Validv_Undcod=function(){try{var a=gx.util.balloon.getNew("vUNDCOD");this.AnyError=0}catch(b){}try{if(a==null){return true}return a.show()}catch(b){}return true};this.Validv_Loccod=function(){try{var a=gx.util.balloon.getNew("vLOCCOD");this.AnyError=0}catch(b){}try{if(a==null){return true}return a.show()}catch(b){}return true};this.e11192_client=function(){this.executeServerEvent("'ELIMINAR'",false)};this.e12192_client=function(){this.executeServerEvent("'VOLTAR'",false)
};this.e13192_client=function(){this.executeServerEvent("'INCLUIR LOCAL'",false)};this.e16191_client=function(){this.executeServerEvent("ENTER",true)};this.e17192_client=function(){this.executeServerEvent("CANCEL",true,arguments[0])};this.GXValidFnc=[];this.GXCtrlIds=[3,14,19,24,27,30,32,33,36,38,43,44,45,47];this.GXLastCtrlId=47;this.Grid1Container=new gx.grid.grid(this,2,"WbpLvl2",42,"Grid1","Grid1","Grid1Container",this.CmpContext,this.IsMasterPage,"himh080",[],false,1,false,true,0,false,false,false,"",0,"px","Novo registro",false,false,true,null,null,false,"");
this.Grid1Container.addCheckBox("Apagar",43,"vAPAGAR","Apagar","","Apagar","char","S","N",null,true,false,0,"px");this.Grid1Container.addSingleLineEdit("Loccod",44,"vLOCCOD","Local","","LocCod","int",0,"px",3,3,"right",null,[],"Loccod","LocCod",true,0,false,false);this.Grid1Container.addSingleLineEdit("Locnom",45,"vLOCNOM","Nome","","LocNom","char",0,"px",45,45,"left",null,[],"Locnom","LocNom",true,0,false,false);this.setGrid(this.Grid1Container);this.GXValidFnc[3]={fld:"TABLE1",grid:0};this.GXValidFnc[14]={fld:"TEXTBLOCK4",format:0,grid:0};
this.GXValidFnc[19]={fld:"TABLE2",grid:0};this.GXValidFnc[24]={lvl:0,type:"int",len:3,dec:0,sign:false,pic:"ZZ9",ro:0,grid:0,gxgrid:null,fnc:this.Validv_Loccodauxiliar,isvalid:null,rgrid:[],fld:"vLOCCODAUXILIAR",gxz:"ZV18LocCodAuxiliar",gxold:"OV18LocCodAuxiliar",gxvar:"AV18LocCodAuxiliar",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV18LocCodAuxiliar=gx.num.intval(a)},v2z:function(a){gx.O.ZV18LocCodAuxiliar=gx.num.intval(a)},v2c:function(){gx.fn.setControlValue("vLOCCODAUXILIAR",gx.O.AV18LocCodAuxiliar,0)
},c2v:function(){gx.O.AV18LocCodAuxiliar=this.val()},val:function(){return gx.fn.getIntegerValue("vLOCCODAUXILIAR",".")},nac:function(){return false}};this.GXValidFnc[27]={fld:"TABLE3",grid:0};this.GXValidFnc[30]={fld:"TEXTBLOCK2",format:0,grid:0};this.GXValidFnc[32]={lvl:0,type:"char",len:6,dec:0,sign:false,ro:1,grid:0,gxgrid:null,fnc:this.Validv_Usucod,isvalid:null,fld:"vUSUCOD",gxz:"ZV11UsuCod",gxold:"OV11UsuCod",gxvar:"AV11UsuCod",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV11UsuCod=a
},v2z:function(a){gx.O.ZV11UsuCod=a},v2c:function(){gx.fn.setControlValue("vUSUCOD",gx.O.AV11UsuCod,0)},c2v:function(){gx.O.AV11UsuCod=this.val()},val:function(){return gx.fn.getControlValue("vUSUCOD")},nac:function(){return false}};this.GXValidFnc[33]={lvl:0,type:"char",len:50,dec:0,sign:false,ro:1,grid:0,gxgrid:null,fnc:null,isvalid:null,fld:"vUSUNOM",gxz:"ZV12UsuNom",gxold:"OV12UsuNom",gxvar:"AV12UsuNom",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV12UsuNom=a},v2z:function(a){gx.O.ZV12UsuNom=a
},v2c:function(){gx.fn.setControlValue("vUSUNOM",gx.O.AV12UsuNom,0)},c2v:function(){gx.O.AV12UsuNom=this.val()},val:function(){return gx.fn.getControlValue("vUSUNOM")},nac:function(){return false}};this.GXValidFnc[36]={fld:"TEXTBLOCK3",format:0,grid:0};this.GXValidFnc[38]={lvl:0,type:"int",len:3,dec:0,sign:false,pic:"ZZ9",ro:1,grid:0,gxgrid:null,fnc:this.Validv_Undcod,isvalid:null,rgrid:[],fld:"vUNDCOD",gxz:"ZV17UndCod",gxold:"OV17UndCod",gxvar:"AV17UndCod",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV17UndCod=gx.num.intval(a)
},v2z:function(a){gx.O.ZV17UndCod=gx.num.intval(a)},v2c:function(){gx.fn.setControlValue("vUNDCOD",gx.O.AV17UndCod,0)},c2v:function(){gx.O.AV17UndCod=this.val()},val:function(){return gx.fn.getIntegerValue("vUNDCOD",".")},nac:function(){return false}};this.GXValidFnc[43]={lvl:2,type:"char",len:1,dec:0,sign:false,ro:0,grid:42,gxgrid:this.Grid1Container,fnc:null,isvalid:null,fld:"vAPAGAR",gxz:"ZV19Apagar",gxold:"OV19Apagar",gxvar:"AV19Apagar",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"checkbox",v2v:function(a){gx.O.AV19Apagar=a
},v2z:function(a){gx.O.ZV19Apagar=a},v2c:function(){gx.fn.setGridCheckBoxValue("vAPAGAR",gx.fn.currentGridRowImpl(42),gx.O.AV19Apagar,"S")},c2v:function(){gx.O.AV19Apagar=this.val()},val:function(){return gx.fn.getGridCheckBoxValue("vAPAGAR",gx.fn.currentGridRowImpl(42),"S","N")},nac:function(){return false}};this.GXValidFnc[44]={lvl:2,type:"int",len:3,dec:0,sign:false,pic:"ZZ9",ro:0,grid:42,gxgrid:this.Grid1Container,fnc:this.Validv_Loccod,isvalid:null,rgrid:[],fld:"vLOCCOD",gxz:"ZV13LocCod",gxold:"OV13LocCod",gxvar:"AV13LocCod",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV13LocCod=gx.num.intval(a)
},v2z:function(a){gx.O.ZV13LocCod=gx.num.intval(a)},v2c:function(){gx.fn.setGridControlValue("vLOCCOD",gx.fn.currentGridRowImpl(42),gx.O.AV13LocCod,0)},c2v:function(){gx.O.AV13LocCod=this.val()},val:function(){return gx.fn.getGridIntegerValue("vLOCCOD",gx.fn.currentGridRowImpl(42),".")},nac:function(){return false}};this.GXValidFnc[45]={lvl:2,type:"char",len:45,dec:0,sign:false,ro:0,grid:42,gxgrid:this.Grid1Container,fnc:null,isvalid:null,fld:"vLOCNOM",gxz:"ZV14LocNom",gxold:"OV14LocNom",gxvar:"AV14LocNom",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV14LocNom=a
},v2z:function(a){gx.O.ZV14LocNom=a},v2c:function(){gx.fn.setGridControlValue("vLOCNOM",gx.fn.currentGridRowImpl(42),gx.O.AV14LocNom,0)},c2v:function(){gx.O.AV14LocNom=this.val()},val:function(){return gx.fn.getGridControlValue("vLOCNOM",gx.fn.currentGridRowImpl(42))},nac:function(){return false}};this.GXValidFnc[47]={fld:"PROMPT_LOCCODAUXILIAR",grid:0};this.AV18LocCodAuxiliar=0;this.ZV18LocCodAuxiliar=0;this.OV18LocCodAuxiliar=0;this.AV11UsuCod="";this.ZV11UsuCod="";this.OV11UsuCod="";this.AV12UsuNom="";
this.ZV12UsuNom="";this.OV12UsuNom="";this.AV17UndCod=0;this.ZV17UndCod=0;this.OV17UndCod=0;this.ZV19Apagar="";this.OV19Apagar="";this.ZV13LocCod=0;this.OV13LocCod=0;this.ZV14LocNom="";this.OV14LocNom="";this.AV19Apagar="";this.AV13LocCod=0;this.AV14LocNom="";this.A509LocCod=0;this.A922UndCod=0;this.A512LocNom="";this.A968UsuCod="";this.ServerEvents=["e11192_client","e12192_client","e13192_client","e16191_client","e17192_client"];this.setPrompt("PROMPT_LOCCODAUXILIAR",[24]);this.EnterCtrl=["BUTTON1"];
this.VarControlMap.A512LocNom={id:"LOCNOM",grid:0,type:"char"};this.VarControlMap.A509LocCod={id:"LOCCOD",grid:0,type:"int"};this.VarControlMap.A968UsuCod={id:"USUCOD",grid:0,type:"char"};this.Grid1Container.addRefreshingVar({rfrVar:"A512LocNom"});this.Grid1Container.addRefreshingVar({rfrVar:"A509LocCod"});this.Grid1Container.addRefreshingVar({rfrVar:"A968UsuCod"});this.SetStandaloneVars()}himh080.prototype=new gx.GxObject;gx.setParentObj(new himh080());