gx.evt.autoSkip=false;function hmih004(){this.ServerClass="HMih004";this.PackageName="GeneXus.Programs";this.setObjectType("web");this.hasEnterEvent=false;this.SetStandaloneVars=function(){this.AV6DocNro=gx.fn.getIntegerValue("vDOCNRO",".");this.AV19NroVolSele=gx.fn.getIntegerValue("vNROVOLSELE",".");this.AV28NroTomoSel=gx.fn.getIntegerValue("vNROTOMOSEL",".")};this.e11762_client=function(){this.executeServerEvent("'VOLTAR'",false)};this.e14762_client=function(){this.executeServerEvent("ENTER",true,arguments[0])
};this.e15762_client=function(){this.executeServerEvent("CANCEL",true,arguments[0])};this.GXValidFnc=[];this.GXCtrlIds=[3,9,16,19,22,25,32,33,34,35,36,37,38,39,40,48];this.GXLastCtrlId=48;this.Grid1Container=new gx.grid.grid(this,2,"WbpLvl2",31,"Grid1","Grid1","Grid1Container",this.CmpContext,this.IsMasterPage,"hmih004",[],false,1,false,true,0,false,false,false,"",0,"px","Novo registro",false,false,false,null,null,false,"");this.Grid1Container.addSingleLineEdit("Docnroagrupado",32,"vDOCNROAGRUPADO","Documento","","DocNroAgrupado","int",0,"px",6,6,"right",null,[],"Docnroagrupado","DocNroAgrupado",true,0,false,false);
this.Grid1Container.addSingleLineEdit("Undcodagrupada",33,"vUNDCODAGRUPADA","Unidade","","UndCodAgrupada","int",0,"px",3,3,"right",null,[],"Undcodagrupada","UndCodAgrupada",true,0,false,false);this.Grid1Container.addSingleLineEdit("Doenro",34,"vDOENRO","Exemplar","","DoeNro","int",0,"px",4,4,"right",null,[],"Doenro","DoeNro",true,0,false,false);this.Grid1Container.addSingleLineEdit("Devnro",35,"vDEVNRO","Item","","DevNro","int",0,"px",6,6,"right",null,[],"Devnro","DevNro",true,0,false,false);this.Grid1Container.addSingleLineEdit("Localiz",36,"vLOCALIZ","Localização","","Localiz","char",0,"px",45,45,"left",null,[],"Localiz","Localiz",true,0,false,false);
this.Grid1Container.addSingleLineEdit("Categoria",37,"vCATEGORIA","Categoria","","Categoria","char",0,"px",30,30,"left",null,[],"Categoria","Categoria",true,0,false,false);this.Grid1Container.addSingleLineEdit("Podeempre",38,"vPODEEMPRE","Permissão ?","","PodeEmpre","char",0,"px",3,3,"left",null,[],"Podeempre","PodeEmpre",true,0,false,false);this.Grid1Container.addSingleLineEdit("Disponiv",39,"vDISPONIV","Disponível ?","","Disponiv","char",0,"px",3,3,"left",null,[],"Disponiv","Disponiv",true,0,false,false);
this.Grid1Container.addSingleLineEdit("Devprev",40,"vDEVPREV","Devolução prevista","","DevPrev","date",0,"px",10,10,"right",null,[],"Devprev","DevPrev",true,0,false,false);this.setGrid(this.Grid1Container);this.GXValidFnc[3]={fld:"TABLE3",grid:0};this.GXValidFnc[9]={fld:"TEXTBLOCK2",format:0,grid:0};this.GXValidFnc[16]={fld:"TABLE1",grid:0};this.GXValidFnc[19]={lvl:0,type:"char",len:90,dec:0,sign:false,ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,fld:"vMENSAGEM1",gxz:"ZV66Mensagem1",gxold:"OV66Mensagem1",gxvar:"AV66Mensagem1",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV66Mensagem1=a
},v2z:function(a){gx.O.ZV66Mensagem1=a},v2c:function(){gx.fn.setControlValue("vMENSAGEM1",gx.O.AV66Mensagem1,0)},c2v:function(){gx.O.AV66Mensagem1=this.val()},val:function(){return gx.fn.getControlValue("vMENSAGEM1")},nac:function(){return false}};this.GXValidFnc[22]={lvl:0,type:"char",len:90,dec:0,sign:false,ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,fld:"vMENSAGEM2",gxz:"ZV67Mensagem2",gxold:"OV67Mensagem2",gxvar:"AV67Mensagem2",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV67Mensagem2=a
},v2z:function(a){gx.O.ZV67Mensagem2=a},v2c:function(){gx.fn.setControlValue("vMENSAGEM2",gx.O.AV67Mensagem2,0)},c2v:function(){gx.O.AV67Mensagem2=this.val()},val:function(){return gx.fn.getControlValue("vMENSAGEM2")},nac:function(){return false}};this.GXValidFnc[25]={lvl:0,type:"char",len:90,dec:0,sign:false,ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,fld:"vMENSAGEM3",gxz:"ZV68Mensagem3",gxold:"OV68Mensagem3",gxvar:"AV68Mensagem3",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV68Mensagem3=a
},v2z:function(a){gx.O.ZV68Mensagem3=a},v2c:function(){gx.fn.setControlValue("vMENSAGEM3",gx.O.AV68Mensagem3,0)},c2v:function(){gx.O.AV68Mensagem3=this.val()},val:function(){return gx.fn.getControlValue("vMENSAGEM3")},nac:function(){return false}};this.GXValidFnc[32]={lvl:2,type:"int",len:6,dec:0,sign:false,pic:"ZZZZZ9",ro:1,grid:31,gxgrid:this.Grid1Container,fnc:null,isvalid:null,rgrid:[],fld:"vDOCNROAGRUPADO",gxz:"ZV108DocNroAgrupado",gxold:"OV108DocNroAgrupado",gxvar:"AV108DocNroAgrupado",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV108DocNroAgrupado=gx.num.intval(a)
},v2z:function(a){gx.O.ZV108DocNroAgrupado=gx.num.intval(a)},v2c:function(){gx.fn.setGridControlValue("vDOCNROAGRUPADO",gx.fn.currentGridRowImpl(31),gx.O.AV108DocNroAgrupado,0)},c2v:function(){gx.O.AV108DocNroAgrupado=this.val()},val:function(){return gx.fn.getGridIntegerValue("vDOCNROAGRUPADO",gx.fn.currentGridRowImpl(31),".")},nac:function(){return false}};this.GXValidFnc[33]={lvl:2,type:"int",len:3,dec:0,sign:false,pic:"ZZ9",ro:1,grid:31,gxgrid:this.Grid1Container,fnc:null,isvalid:null,rgrid:[],fld:"vUNDCODAGRUPADA",gxz:"ZV109UndCodAgrupada",gxold:"OV109UndCodAgrupada",gxvar:"AV109UndCodAgrupada",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV109UndCodAgrupada=gx.num.intval(a)
},v2z:function(a){gx.O.ZV109UndCodAgrupada=gx.num.intval(a)},v2c:function(){gx.fn.setGridControlValue("vUNDCODAGRUPADA",gx.fn.currentGridRowImpl(31),gx.O.AV109UndCodAgrupada,0)},c2v:function(){gx.O.AV109UndCodAgrupada=this.val()},val:function(){return gx.fn.getGridIntegerValue("vUNDCODAGRUPADA",gx.fn.currentGridRowImpl(31),".")},nac:function(){return false}};this.GXValidFnc[34]={lvl:2,type:"int",len:4,dec:0,sign:false,pic:"ZZZ9",ro:1,grid:31,gxgrid:this.Grid1Container,fnc:null,isvalid:null,rgrid:[],fld:"vDOENRO",gxz:"ZV12DoeNro",gxold:"OV12DoeNro",gxvar:"AV12DoeNro",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV12DoeNro=gx.num.intval(a)
},v2z:function(a){gx.O.ZV12DoeNro=gx.num.intval(a)},v2c:function(){gx.fn.setGridControlValue("vDOENRO",gx.fn.currentGridRowImpl(31),gx.O.AV12DoeNro,0)},c2v:function(){gx.O.AV12DoeNro=this.val()},val:function(){return gx.fn.getGridIntegerValue("vDOENRO",gx.fn.currentGridRowImpl(31),".")},nac:function(){return false}};this.GXValidFnc[35]={lvl:2,type:"int",len:6,dec:0,sign:false,pic:"ZZZZZ9",ro:1,grid:31,gxgrid:this.Grid1Container,fnc:null,isvalid:null,rgrid:[],fld:"vDEVNRO",gxz:"ZV9DevNro",gxold:"OV9DevNro",gxvar:"AV9DevNro",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV9DevNro=gx.num.intval(a)
},v2z:function(a){gx.O.ZV9DevNro=gx.num.intval(a)},v2c:function(){gx.fn.setGridControlValue("vDEVNRO",gx.fn.currentGridRowImpl(31),gx.O.AV9DevNro,0)},c2v:function(){gx.O.AV9DevNro=this.val()},val:function(){return gx.fn.getGridIntegerValue("vDEVNRO",gx.fn.currentGridRowImpl(31),".")},nac:function(){return false}};this.GXValidFnc[36]={lvl:2,type:"char",len:45,dec:0,sign:false,ro:1,grid:31,gxgrid:this.Grid1Container,fnc:null,isvalid:null,fld:"vLOCALIZ",gxz:"ZV17Localiz",gxold:"OV17Localiz",gxvar:"AV17Localiz",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV17Localiz=a
},v2z:function(a){gx.O.ZV17Localiz=a},v2c:function(){gx.fn.setGridControlValue("vLOCALIZ",gx.fn.currentGridRowImpl(31),gx.O.AV17Localiz,0)},c2v:function(){gx.O.AV17Localiz=this.val()},val:function(){return gx.fn.getGridControlValue("vLOCALIZ",gx.fn.currentGridRowImpl(31))},nac:function(){return false}};this.GXValidFnc[37]={lvl:2,type:"char",len:30,dec:0,sign:false,ro:1,grid:31,gxgrid:this.Grid1Container,fnc:null,isvalid:null,fld:"vCATEGORIA",gxz:"ZV7Categoria",gxold:"OV7Categoria",gxvar:"AV7Categoria",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV7Categoria=a
},v2z:function(a){gx.O.ZV7Categoria=a},v2c:function(){gx.fn.setGridControlValue("vCATEGORIA",gx.fn.currentGridRowImpl(31),gx.O.AV7Categoria,0)},c2v:function(){gx.O.AV7Categoria=this.val()},val:function(){return gx.fn.getGridControlValue("vCATEGORIA",gx.fn.currentGridRowImpl(31))},nac:function(){return false}};this.GXValidFnc[38]={lvl:2,type:"char",len:3,dec:0,sign:false,ro:1,grid:31,gxgrid:this.Grid1Container,fnc:null,isvalid:null,fld:"vPODEEMPRE",gxz:"ZV20PodeEmpre",gxold:"OV20PodeEmpre",gxvar:"AV20PodeEmpre",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV20PodeEmpre=a
},v2z:function(a){gx.O.ZV20PodeEmpre=a},v2c:function(){gx.fn.setGridControlValue("vPODEEMPRE",gx.fn.currentGridRowImpl(31),gx.O.AV20PodeEmpre,0)},c2v:function(){gx.O.AV20PodeEmpre=this.val()},val:function(){return gx.fn.getGridControlValue("vPODEEMPRE",gx.fn.currentGridRowImpl(31))},nac:function(){return false}};this.GXValidFnc[39]={lvl:2,type:"char",len:3,dec:0,sign:false,ro:1,grid:31,gxgrid:this.Grid1Container,fnc:null,isvalid:null,fld:"vDISPONIV",gxz:"ZV11Disponiv",gxold:"OV11Disponiv",gxvar:"AV11Disponiv",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV11Disponiv=a
},v2z:function(a){gx.O.ZV11Disponiv=a},v2c:function(){gx.fn.setGridControlValue("vDISPONIV",gx.fn.currentGridRowImpl(31),gx.O.AV11Disponiv,0)},c2v:function(){gx.O.AV11Disponiv=this.val()},val:function(){return gx.fn.getGridControlValue("vDISPONIV",gx.fn.currentGridRowImpl(31))},nac:function(){return false}};this.GXValidFnc[40]={lvl:2,type:"date",len:10,dec:0,sign:false,ro:1,grid:31,gxgrid:this.Grid1Container,fnc:null,isvalid:null,fld:"vDEVPREV",gxz:"ZV10DevPrev",gxold:"OV10DevPrev",gxvar:"AV10DevPrev",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.AV10DevPrev=gx.fn.toDatetimeValue(a)
},v2z:function(a){gx.O.ZV10DevPrev=gx.fn.toDatetimeValue(a)},v2c:function(){gx.fn.setGridControlValue("vDEVPREV",gx.fn.currentGridRowImpl(31),gx.O.AV10DevPrev,0)},c2v:function(){gx.O.AV10DevPrev=this.val()},val:function(){return gx.fn.getGridControlValue("vDEVPREV",gx.fn.currentGridRowImpl(31))},nac:function(){return false}};this.GXValidFnc[48]={fld:"FILATXT",format:0,grid:0};this.AV66Mensagem1="";this.ZV66Mensagem1="";this.OV66Mensagem1="";this.AV67Mensagem2="";this.ZV67Mensagem2="";this.OV67Mensagem2="";
this.AV68Mensagem3="";this.ZV68Mensagem3="";this.OV68Mensagem3="";this.ZV108DocNroAgrupado=0;this.OV108DocNroAgrupado=0;this.ZV109UndCodAgrupada=0;this.OV109UndCodAgrupada=0;this.ZV12DoeNro=0;this.OV12DoeNro=0;this.ZV9DevNro=0;this.OV9DevNro=0;this.ZV17Localiz="";this.OV17Localiz="";this.ZV7Categoria="";this.OV7Categoria="";this.ZV20PodeEmpre="";this.OV20PodeEmpre="";this.ZV11Disponiv="";this.OV11Disponiv="";this.ZV10DevPrev=gx.date.nullDate();this.OV10DevPrev=gx.date.nullDate();this.AV6DocNro=0;
this.AV19NroVolSele=0;this.AV28NroTomoSel=0;this.AV108DocNroAgrupado=0;this.AV109UndCodAgrupada=0;this.AV12DoeNro=0;this.AV9DevNro=0;this.AV17Localiz="";this.AV7Categoria="";this.AV20PodeEmpre="";this.AV11Disponiv="";this.AV10DevPrev=gx.date.nullDate();this.A922UndCod=0;this.A925UndNomComp="";this.A1002UndNomResp="";this.A1004UndEndEmai="";this.A559ParCod=0;this.A587ParNomCida="";this.A787UsbCod="";this.A939UsbDesUF="";this.A779SetCod=0;this.A786UsbNom="";this.A941UsbEndElet="";this.A953UsbNroFone="";
this.A954UsbNroFonT="";this.A957UsbNroRama="";this.A949UsbNroCelu="";this.A258DocNro=0;this.A242DocDesL1Ti="";this.A871TidIndModo="";this.A863TidCod="";this.A122CfgCod="";this.A127CfgValCont="";this.ServerEvents=["e11762_client","e14762_client","e15762_client"];this.VarControlMap.AV6DocNro={id:"vDOCNRO",grid:0,type:"int"};this.VarControlMap.AV19NroVolSele={id:"vNROVOLSELE",grid:0,type:"int"};this.VarControlMap.AV28NroTomoSel={id:"vNROTOMOSEL",grid:0,type:"int"};this.VarControlMap.AV19NroVolSele={id:"vNROVOLSELE",grid:0,type:"int"};
this.VarControlMap.AV60QtdRegistros={id:"vQTDREGISTROS",grid:0,type:"int"};this.Grid1Container.addRefreshingVar({rfrVar:"AV19NroVolSele"});this.Grid1Container.addRefreshingVar({rfrVar:"AV60QtdRegistros"});this.SetStandaloneVars()}hmih004.prototype=new gx.GxObject;gx.setParentObj(new hmih004());