gx.evt.autoSkip=false;function himh154(){this.ServerClass="HImh154";this.PackageName="GeneXus.Programs";this.setObjectType("web");this.hasEnterEvent=true;this.SetStandaloneVars=function(){};this.e170n1_client=function(){this.clearMessages();gx.popup.openUrl(gx.http.formatLink("habw190.aspx",[]),[]);this.refreshOutputs([])};this.e180n1_client=function(){this.clearMessages();gx.popup.openUrl(gx.http.formatLink("himh126.aspx",[]),[]);this.refreshOutputs([])};this.e190n2_client=function(){this.clearMessages();
gx.popup.openUrl(gx.http.formatLink("himh169.aspx",["FERIADOUND",this.A922UndCod]),[]);this.refreshOutputs([])};this.e200n2_client=function(){this.clearMessages();gx.popup.openUrl(gx.http.formatLink("himh155.aspx",[this.A922UndCod]),["A922UndCod"]);this.refreshOutputs([])};this.e210n2_client=function(){this.clearMessages();gx.popup.openUrl(gx.http.formatLink("timt087.aspx",[this.A922UndCod]),["A922UndCod"]);this.refreshOutputs([])};this.e110n2_client=function(){this.executeServerEvent("ENTER",true)
};this.e120n2_client=function(){this.executeServerEvent("'NOVA'",false)};this.e130n2_client=function(){this.executeServerEvent("'IRPARA'",false)};this.e140n2_client=function(){this.executeServerEvent("'VOLTAR'",false)};this.e220n2_client=function(){this.executeServerEvent("CANCEL",true,arguments[0])};this.GXValidFnc=[];this.GXCtrlIds=[3,18,22,26,27,28,29,30,31,32,33,34,35,36,37];this.GXLastCtrlId=37;this.Grid1Container=new gx.grid.grid(this,2,"WbpLvl2",25,"Grid1","Grid1","Grid1Container",this.CmpContext,this.IsMasterPage,"himh154",[],false,1,true,true,0,false,false,false,"",0,"px","Novo registro",false,false,false,null,null,false,"");
this.Grid1Container.addBitmap("&Imgeditar","vIMGEDITAR",26,0,"px",17,"px",null,"","");this.Grid1Container.addSingleLineEdit(922,27,"UNDCOD","Unid.","","UndCod","int",0,"px",3,3,"right",null,[],922,"UndCod",true,0,false,false);this.Grid1Container.addSingleLineEdit(925,28,"UNDNOMCOMP","Nome","","UndNomComp","char",0,"px",40,40,"left",null,[],925,"UndNomComp",true,0,false,false);this.Grid1Container.addSingleLineEdit(926,29,"UNDNOMSIGL","Sigla","","UndNomSigl","char",0,"px",3,3,"left",null,[],926,"UndNomSigl",true,0,false,false);
this.Grid1Container.addSingleLineEdit(1002,30,"UNDNOMRESP","Responsável","","UndNomResp","char",0,"px",35,35,"left",null,[],1002,"UndNomResp",true,0,false,false);this.Grid1Container.addSingleLineEdit(1003,31,"UNDNROFONE","Fone","","UndNroFone","char",0,"px",15,15,"left",null,[],1003,"UndNroFone",true,0,false,false);this.Grid1Container.addComboBox(1006,32,"UNDINDPEDE","Tipo de validação","UndIndPede","char",null,0,true,false,0,"px");this.Grid1Container.addSingleLineEdit(1001,33,"UNDDATLIMI","Limite devolução","","UndDatLimi","date",0,"px",10,10,"right",null,[],1001,"UndDatLimi",true,0,false,false);
this.Grid1Container.addSingleLineEdit(923,34,"UNDDATFECH","Fechamento","","UndDatFech","date",0,"px",10,10,"right",null,[],923,"UndDatFech",true,0,false,false);this.Grid1Container.addSingleLineEdit("Linkferiados",35,"vLINKFERIADOS","","Feriados locais (válidos somente para esta unidade)","LinkFeriados","char",0,"px",8,8,"left","e190n2_client",[],"Linkferiados","LinkFeriados",true,0,false,false);this.Grid1Container.addSingleLineEdit("Linklocais",36,"vLINKLOCAIS","","","LinkLocais","char",0,"px",6,6,"left","e200n2_client",[],"Linklocais","LinkLocais",true,0,false,false);
this.Grid1Container.addSingleLineEdit("Linkconfiguraremprestimos",37,"vLINKCONFIGURAREMPRESTIMOS","","","LinkConfigurarEmprestimos","char",0,"px",25,25,"left","e210n2_client",[],"Linkconfiguraremprestimos","LinkConfigurarEmprestimos",true,0,false,false);this.setGrid(this.Grid1Container);this.GXValidFnc[3]={fld:"TABLE1",grid:0};this.GXValidFnc[18]={lvl:0,type:"int",len:3,dec:0,sign:false,pic:"ZZ9",ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,rgrid:[],fld:"vUNDCODNAVEGAR",gxz:"ZV24UndCodNavegar",gxold:"OV24UndCodNavegar",gxvar:"AV24UndCodNavegar",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV24UndCodNavegar=gx.num.intval(a)
},v2z:function(a){gx.O.ZV24UndCodNavegar=gx.num.intval(a)},v2c:function(){gx.fn.setControlValue("vUNDCODNAVEGAR",gx.O.AV24UndCodNavegar,0)},c2v:function(){gx.O.AV24UndCodNavegar=this.val()},val:function(){return gx.fn.getIntegerValue("vUNDCODNAVEGAR",".")},nac:function(){return false}};this.GXValidFnc[22]={fld:"TEXTBLOCK2",format:0,grid:0};this.GXValidFnc[26]={lvl:2,type:"bits",len:5,dec:0,sign:false,ro:1,grid:25,gxgrid:this.Grid1Container,fnc:null,isvalid:null,fld:"vIMGEDITAR",gxz:"ZV25ImgEditar",gxold:"OV25ImgEditar",gxvar:"AV25ImgEditar",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV25ImgEditar=a
},v2z:function(a){gx.O.ZV25ImgEditar=a},v2c:function(){},c2v:function(){gx.O.AV25ImgEditar=this.val()},val:function(){return gx.fn.getGridControlValue("vIMGEDITAR",gx.fn.currentGridRowImpl(25))},nac:function(){return false}};this.GXValidFnc[27]={lvl:2,type:"int",len:3,dec:0,sign:false,pic:"ZZ9",ro:1,grid:25,gxgrid:this.Grid1Container,fnc:null,isvalid:null,rgrid:[],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.setGridControlValue("UNDCOD",gx.fn.currentGridRowImpl(25),gx.O.A922UndCod,0)},c2v:function(){gx.O.A922UndCod=this.val()},val:function(){return gx.fn.getGridIntegerValue("UNDCOD",gx.fn.currentGridRowImpl(25),".")},nac:function(){return false}};this.GXValidFnc[28]={lvl:2,type:"char",len:40,dec:0,sign:false,ro:1,grid:25,gxgrid:this.Grid1Container,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.setGridControlValue("UNDNOMCOMP",gx.fn.currentGridRowImpl(25),gx.O.A925UndNomComp,0)},c2v:function(){gx.O.A925UndNomComp=this.val()},val:function(){return gx.fn.getGridControlValue("UNDNOMCOMP",gx.fn.currentGridRowImpl(25))},nac:function(){return false}};this.GXValidFnc[29]={lvl:2,type:"char",len:3,dec:0,sign:false,ro:1,grid:25,gxgrid:this.Grid1Container,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.setGridControlValue("UNDNOMSIGL",gx.fn.currentGridRowImpl(25),gx.O.A926UndNomSigl,0)},c2v:function(){gx.O.A926UndNomSigl=this.val()},val:function(){return gx.fn.getGridControlValue("UNDNOMSIGL",gx.fn.currentGridRowImpl(25))},nac:function(){return false}};this.GXValidFnc[30]={lvl:2,type:"char",len:35,dec:0,sign:false,ro:1,grid:25,gxgrid:this.Grid1Container,fnc:null,isvalid:null,fld:"UNDNOMRESP",gxz:"Z1002UndNomResp",gxold:"O1002UndNomResp",gxvar:"A1002UndNomResp",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A1002UndNomResp=a
},v2z:function(a){gx.O.Z1002UndNomResp=a},v2c:function(){gx.fn.setGridControlValue("UNDNOMRESP",gx.fn.currentGridRowImpl(25),gx.O.A1002UndNomResp,0)},c2v:function(){gx.O.A1002UndNomResp=this.val()},val:function(){return gx.fn.getGridControlValue("UNDNOMRESP",gx.fn.currentGridRowImpl(25))},nac:function(){return false}};this.GXValidFnc[31]={lvl:2,type:"char",len:15,dec:0,sign:false,ro:1,grid:25,gxgrid:this.Grid1Container,fnc:null,isvalid:null,fld:"UNDNROFONE",gxz:"Z1003UndNroFone",gxold:"O1003UndNroFone",gxvar:"A1003UndNroFone",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A1003UndNroFone=a
},v2z:function(a){gx.O.Z1003UndNroFone=a},v2c:function(){gx.fn.setGridControlValue("UNDNROFONE",gx.fn.currentGridRowImpl(25),gx.O.A1003UndNroFone,0)},c2v:function(){gx.O.A1003UndNroFone=this.val()},val:function(){return gx.fn.getGridControlValue("UNDNROFONE",gx.fn.currentGridRowImpl(25))},nac:function(){return false}};this.GXValidFnc[32]={lvl:2,type:"char",len:1,dec:0,sign:false,ro:1,grid:25,gxgrid:this.Grid1Container,fnc:null,isvalid:null,fld:"UNDINDPEDE",gxz:"Z1006UndIndPede",gxold:"O1006UndIndPede",gxvar:"A1006UndIndPede",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"combo",v2v:function(a){gx.O.A1006UndIndPede=a
},v2z:function(a){gx.O.Z1006UndIndPede=a},v2c:function(){gx.fn.setGridComboBoxValue("UNDINDPEDE",gx.fn.currentGridRowImpl(25),gx.O.A1006UndIndPede)},c2v:function(){gx.O.A1006UndIndPede=this.val()},val:function(){return gx.fn.getGridControlValue("UNDINDPEDE",gx.fn.currentGridRowImpl(25))},nac:function(){return false}};this.GXValidFnc[33]={lvl:2,type:"date",len:10,dec:0,sign:false,ro:1,grid:25,gxgrid:this.Grid1Container,fnc:null,isvalid:null,fld:"UNDDATLIMI",gxz:"Z1001UndDatLimi",gxold:"O1001UndDatLimi",gxvar:"A1001UndDatLimi",dp:{f:0,st:false,wn:false,mf:false,pic:"99/99/9999",dec:0},ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A1001UndDatLimi=gx.fn.toDatetimeValue(a)
},v2z:function(a){gx.O.Z1001UndDatLimi=gx.fn.toDatetimeValue(a)},v2c:function(){gx.fn.setGridControlValue("UNDDATLIMI",gx.fn.currentGridRowImpl(25),gx.O.A1001UndDatLimi,0)},c2v:function(){gx.O.A1001UndDatLimi=this.val()},val:function(){return gx.fn.getGridControlValue("UNDDATLIMI",gx.fn.currentGridRowImpl(25))},nac:function(){return false}};this.GXValidFnc[34]={lvl:2,type:"date",len:10,dec:0,sign:false,ro:1,grid:25,gxgrid:this.Grid1Container,fnc:null,isvalid:null,fld:"UNDDATFECH",gxz:"Z923UndDatFech",gxold:"O923UndDatFech",gxvar:"A923UndDatFech",dp:{f:0,st:false,wn:false,mf:false,pic:"99/99/9999",dec:0},ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A923UndDatFech=gx.fn.toDatetimeValue(a)
},v2z:function(a){gx.O.Z923UndDatFech=gx.fn.toDatetimeValue(a)},v2c:function(){gx.fn.setGridControlValue("UNDDATFECH",gx.fn.currentGridRowImpl(25),gx.O.A923UndDatFech,0)},c2v:function(){gx.O.A923UndDatFech=this.val()},val:function(){return gx.fn.getGridControlValue("UNDDATFECH",gx.fn.currentGridRowImpl(25))},nac:function(){return false}};this.GXValidFnc[35]={lvl:2,type:"char",len:8,dec:0,sign:false,ro:0,grid:25,gxgrid:this.Grid1Container,fnc:null,isvalid:null,fld:"vLINKFERIADOS",gxz:"ZV27LinkFeriados",gxold:"OV27LinkFeriados",gxvar:"AV27LinkFeriados",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV27LinkFeriados=a
},v2z:function(a){gx.O.ZV27LinkFeriados=a},v2c:function(){gx.fn.setGridControlValue("vLINKFERIADOS",gx.fn.currentGridRowImpl(25),gx.O.AV27LinkFeriados,0)},c2v:function(){gx.O.AV27LinkFeriados=this.val()},val:function(){return gx.fn.getGridControlValue("vLINKFERIADOS",gx.fn.currentGridRowImpl(25))},nac:function(){return false}};this.GXValidFnc[36]={lvl:2,type:"char",len:6,dec:0,sign:false,ro:0,grid:25,gxgrid:this.Grid1Container,fnc:null,isvalid:null,fld:"vLINKLOCAIS",gxz:"ZV22LinkLocais",gxold:"OV22LinkLocais",gxvar:"AV22LinkLocais",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV22LinkLocais=a
},v2z:function(a){gx.O.ZV22LinkLocais=a},v2c:function(){gx.fn.setGridControlValue("vLINKLOCAIS",gx.fn.currentGridRowImpl(25),gx.O.AV22LinkLocais,0)},c2v:function(){gx.O.AV22LinkLocais=this.val()},val:function(){return gx.fn.getGridControlValue("vLINKLOCAIS",gx.fn.currentGridRowImpl(25))},nac:function(){return false}};this.GXValidFnc[37]={lvl:2,type:"char",len:25,dec:0,sign:false,ro:0,grid:25,gxgrid:this.Grid1Container,fnc:null,isvalid:null,fld:"vLINKCONFIGURAREMPRESTIMOS",gxz:"ZV23LinkConfigurarEmprestimos",gxold:"OV23LinkConfigurarEmprestimos",gxvar:"AV23LinkConfigurarEmprestimos",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV23LinkConfigurarEmprestimos=a
},v2z:function(a){gx.O.ZV23LinkConfigurarEmprestimos=a},v2c:function(){gx.fn.setGridControlValue("vLINKCONFIGURAREMPRESTIMOS",gx.fn.currentGridRowImpl(25),gx.O.AV23LinkConfigurarEmprestimos,0)},c2v:function(){gx.O.AV23LinkConfigurarEmprestimos=this.val()},val:function(){return gx.fn.getGridControlValue("vLINKCONFIGURAREMPRESTIMOS",gx.fn.currentGridRowImpl(25))},nac:function(){return false}};this.AV24UndCodNavegar=0;this.ZV24UndCodNavegar=0;this.OV24UndCodNavegar=0;this.ZV25ImgEditar="";this.OV25ImgEditar="";
this.Z922UndCod=0;this.O922UndCod=0;this.Z925UndNomComp="";this.O925UndNomComp="";this.Z926UndNomSigl="";this.O926UndNomSigl="";this.Z1002UndNomResp="";this.O1002UndNomResp="";this.Z1003UndNroFone="";this.O1003UndNroFone="";this.Z1006UndIndPede="";this.O1006UndIndPede="";this.Z1001UndDatLimi=gx.date.nullDate();this.O1001UndDatLimi=gx.date.nullDate();this.Z923UndDatFech=gx.date.nullDate();this.O923UndDatFech=gx.date.nullDate();this.ZV27LinkFeriados="";this.OV27LinkFeriados="";this.ZV22LinkLocais="";
this.OV22LinkLocais="";this.ZV23LinkConfigurarEmprestimos="";this.OV23LinkConfigurarEmprestimos="";this.AV25ImgEditar="";this.A922UndCod=0;this.A925UndNomComp="";this.A926UndNomSigl="";this.A1002UndNomResp="";this.A1003UndNroFone="";this.A1006UndIndPede="";this.A1001UndDatLimi=gx.date.nullDate();this.A923UndDatFech=gx.date.nullDate();this.AV27LinkFeriados="";this.AV22LinkLocais="";this.AV23LinkConfigurarEmprestimos="";this.ServerEvents=["e110n2_client","e120n2_client","e130n2_client","e140n2_client","e220n2_client"];
this.EnterCtrl=["BUTTON4"];this.Grid1Container.addRefreshingVar({rfrVar:"AV27LinkFeriados",rfrProp:"Value"});this.Grid1Container.addRefreshingVar({rfrVar:"AV22LinkLocais",rfrProp:"Value"});this.Grid1Container.addRefreshingVar({rfrVar:"AV23LinkConfigurarEmprestimos",rfrProp:"Value"});this.SetStandaloneVars()}himh154.prototype=new gx.GxObject;gx.setParentObj(new himh154());