gx.evt.autoSkip=false;function hmih016(){this.ServerClass="HMih016";this.PackageName="GeneXus.Programs";this.setObjectType("web");this.hasEnterEvent=true;this.SetStandaloneVars=function(){this.AV7DocNro=gx.fn.getIntegerValue("vDOCNRO",".");this.AV20NroVolume=gx.fn.getIntegerValue("vNROVOLUME",".");this.AV28NroArtigo=gx.fn.getIntegerValue("vNROARTIGO",".");this.AV15ParTipForm=gx.fn.getControlValue("vPARTIPFORM");this.AV14IndOrigem=gx.fn.getControlValue("vINDORIGEM");this.AV18TidIndModoPublicacao=gx.fn.getControlValue("vTIDINDMODOPUBLICACAO");
this.AV19PrgChamador=gx.fn.getControlValue("vPRGCHAMADOR");this.AV26UndCodSele=gx.fn.getIntegerValue("vUNDCODSELE",".");this.AV40IndModeloApresentacao=gx.fn.getControlValue("vINDMODELOAPRESENTACAO")};this.Validv_Docnroagrupado=function(){try{var a=gx.util.balloon.getNew("vDOCNROAGRUPADO");this.AnyError=0}catch(b){}try{if(a==null){return true}return a.show()}catch(b){}return true};this.e144w2_client=function(){this.executeServerEvent("ENTER",true,arguments[0])};this.e114w2_client=function(){this.executeServerEvent("'VOLTAR'",false)
};this.e164w2_client=function(){this.executeServerEvent("CANCEL",true,arguments[0])};this.GXValidFnc=[];this.GXCtrlIds=[3,8,11,14,16,21,22,23,24,25,26,27,28,29,30,31];this.GXLastCtrlId=31;this.Grid1Container=new gx.grid.grid(this,2,"WbpLvl2",20,"Grid1","Grid1","Grid1Container",this.CmpContext,this.IsMasterPage,"hmih016",[],false,1,false,true,0,false,false,false,"",0,"px","Novo registro",false,false,false,null,null,false,"");this.Grid1Container.addSingleLineEdit("Undnomcompleto",21,"vUNDNOMCOMPLETO","Unidade depositária","","UndNomCompleto","char",210,"px",40,40,"left",null,[],"Undnomcompleto","UndNomCompleto",true,0,false,false);
this.Grid1Container.addSingleLineEdit("Nroordem",22,"vNROORDEM","Posição","","NroOrdem","int",0,"px",4,4,"right",null,[],"Nroordem","NroOrdem",true,0,false,false);this.Grid1Container.addSingleLineEdit("Usbcod",23,"vUSBCOD","Leitor","","UsbCod","char",0,"px",14,14,"left",null,[],"Usbcod","UsbCod",true,0,false,false);this.Grid1Container.addSingleLineEdit("Usbnom",24,"vUSBNOM","Nome","","UsbNom","char",0,"px",50,50,"left",null,[],"Usbnom","UsbNom",true,0,false,false);this.Grid1Container.addSingleLineEdit("Iditem",25,"vIDITEM","Especificação","","Iditem","char",0,"px",40,40,"left",null,[],"Iditem","Iditem",true,0,false,false);
this.Grid1Container.addSingleLineEdit("Resdatvalidade",26,"vRESDATVALIDADE","Validade","","ResDatValidade","date",0,"px",10,10,"right",null,[],"Resdatvalidade","ResDatValidade",true,0,false,false);this.Grid1Container.addComboBox("Resindavisado",27,"vRESINDAVISADO","Avisado","ResIndAvisado","char",null,0,true,false,0,"px");this.Grid1Container.addSingleLineEdit("Docnroagrupado",28,"vDOCNROAGRUPADO","Documento","","DocNroAgrupado","int",0,"px",6,6,"right",null,[],"Docnroagrupado","DocNroAgrupado",true,0,false,false);
this.Grid1Container.addSingleLineEdit("Resnroseq",29,"vRESNROSEQ","Sequência","","ResNroSeq","int",0,"px",6,6,"right",null,[],"Resnroseq","ResNroSeq",true,0,false,false);this.Grid1Container.addSingleLineEdit("Resnrovolume",30,"vRESNROVOLUME","Item","","ResNroVolume","int",0,"px",6,6,"right",null,[],"Resnrovolume","ResNroVolume",true,0,false,false);this.Grid1Container.addSingleLineEdit("Undcod",31,"vUNDCOD","Unidade","","UndCod","int",0,"px",3,3,"right",null,[],"Undcod","UndCod",true,0,false,false);
this.setGrid(this.Grid1Container);this.GXValidFnc[3]={fld:"TABLE1",grid:0};this.GXValidFnc[8]={fld:"TEXTBLOCK2",format:0,grid:0};this.GXValidFnc[11]={fld:"TABLE2",grid:0};this.GXValidFnc[14]={fld:"TEXTBLOCK1",format:0,grid:0};this.GXValidFnc[16]={lvl:0,type:"char",len:90,dec:0,sign:false,ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,fld:"vDOCDESL1TITULO",gxz:"ZV27DocDesL1Titulo",gxold:"OV27DocDesL1Titulo",gxvar:"AV27DocDesL1Titulo",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV27DocDesL1Titulo=a
},v2z:function(a){gx.O.ZV27DocDesL1Titulo=a},v2c:function(){gx.fn.setControlValue("vDOCDESL1TITULO",gx.O.AV27DocDesL1Titulo,0)},c2v:function(){gx.O.AV27DocDesL1Titulo=this.val()},val:function(){return gx.fn.getControlValue("vDOCDESL1TITULO")},nac:function(){return false}};this.GXValidFnc[21]={lvl:2,type:"char",len:40,dec:0,sign:false,ro:1,grid:20,gxgrid:this.Grid1Container,fnc:null,isvalid:null,fld:"vUNDNOMCOMPLETO",gxz:"ZV58UndNomCompleto",gxold:"OV58UndNomCompleto",gxvar:"AV58UndNomCompleto",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV58UndNomCompleto=a
},v2z:function(a){gx.O.ZV58UndNomCompleto=a},v2c:function(){gx.fn.setGridControlValue("vUNDNOMCOMPLETO",gx.fn.currentGridRowImpl(20),gx.O.AV58UndNomCompleto,0)},c2v:function(){gx.O.AV58UndNomCompleto=this.val()},val:function(){return gx.fn.getGridControlValue("vUNDNOMCOMPLETO",gx.fn.currentGridRowImpl(20))},nac:function(){return false}};this.GXValidFnc[22]={lvl:2,type:"int",len:4,dec:0,sign:false,pic:"ZZZ9",ro:1,grid:20,gxgrid:this.Grid1Container,fnc:null,isvalid:null,rgrid:[],fld:"vNROORDEM",gxz:"ZV39NroOrdem",gxold:"OV39NroOrdem",gxvar:"AV39NroOrdem",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV39NroOrdem=gx.num.intval(a)
},v2z:function(a){gx.O.ZV39NroOrdem=gx.num.intval(a)},v2c:function(){gx.fn.setGridControlValue("vNROORDEM",gx.fn.currentGridRowImpl(20),gx.O.AV39NroOrdem,0)},c2v:function(){gx.O.AV39NroOrdem=this.val()},val:function(){return gx.fn.getGridIntegerValue("vNROORDEM",gx.fn.currentGridRowImpl(20),".")},nac:function(){return false}};this.GXValidFnc[23]={lvl:2,type:"char",len:14,dec:0,sign:false,ro:1,grid:20,gxgrid:this.Grid1Container,fnc:null,isvalid:null,fld:"vUSBCOD",gxz:"ZV36UsbCod",gxold:"OV36UsbCod",gxvar:"AV36UsbCod",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV36UsbCod=a
},v2z:function(a){gx.O.ZV36UsbCod=a},v2c:function(){gx.fn.setGridControlValue("vUSBCOD",gx.fn.currentGridRowImpl(20),gx.O.AV36UsbCod,0)},c2v:function(){gx.O.AV36UsbCod=this.val()},val:function(){return gx.fn.getGridControlValue("vUSBCOD",gx.fn.currentGridRowImpl(20))},nac:function(){return false}};this.GXValidFnc[24]={lvl:2,type:"char",len:50,dec:0,sign:false,ro:1,grid:20,gxgrid:this.Grid1Container,fnc:null,isvalid:null,fld:"vUSBNOM",gxz:"ZV16UsbNom",gxold:"OV16UsbNom",gxvar:"AV16UsbNom",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV16UsbNom=a
},v2z:function(a){gx.O.ZV16UsbNom=a},v2c:function(){gx.fn.setGridControlValue("vUSBNOM",gx.fn.currentGridRowImpl(20),gx.O.AV16UsbNom,0)},c2v:function(){gx.O.AV16UsbNom=this.val()},val:function(){return gx.fn.getGridControlValue("vUSBNOM",gx.fn.currentGridRowImpl(20))},nac:function(){return false}};this.GXValidFnc[25]={lvl:2,type:"char",len:40,dec:0,sign:false,ro:1,grid:20,gxgrid:this.Grid1Container,fnc:null,isvalid:null,fld:"vIDITEM",gxz:"ZV23Iditem",gxold:"OV23Iditem",gxvar:"AV23Iditem",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV23Iditem=a
},v2z:function(a){gx.O.ZV23Iditem=a},v2c:function(){gx.fn.setGridControlValue("vIDITEM",gx.fn.currentGridRowImpl(20),gx.O.AV23Iditem,0)},c2v:function(){gx.O.AV23Iditem=this.val()},val:function(){return gx.fn.getGridControlValue("vIDITEM",gx.fn.currentGridRowImpl(20))},nac:function(){return false}};this.GXValidFnc[26]={lvl:2,type:"date",len:10,dec:0,sign:false,ro:1,grid:20,gxgrid:this.Grid1Container,fnc:null,isvalid:null,fld:"vRESDATVALIDADE",gxz:"ZV34ResDatValidade",gxold:"OV34ResDatValidade",gxvar:"AV34ResDatValidade",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.AV34ResDatValidade=gx.fn.toDatetimeValue(a)
},v2z:function(a){gx.O.ZV34ResDatValidade=gx.fn.toDatetimeValue(a)},v2c:function(){gx.fn.setGridControlValue("vRESDATVALIDADE",gx.fn.currentGridRowImpl(20),gx.O.AV34ResDatValidade,0)},c2v:function(){gx.O.AV34ResDatValidade=this.val()},val:function(){return gx.fn.getGridControlValue("vRESDATVALIDADE",gx.fn.currentGridRowImpl(20))},nac:function(){return false}};this.GXValidFnc[27]={lvl:2,type:"char",len:1,dec:0,sign:false,ro:1,grid:20,gxgrid:this.Grid1Container,fnc:null,isvalid:null,fld:"vRESINDAVISADO",gxz:"ZV35ResIndAvisado",gxold:"OV35ResIndAvisado",gxvar:"AV35ResIndAvisado",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"combo",v2v:function(a){gx.O.AV35ResIndAvisado=a
},v2z:function(a){gx.O.ZV35ResIndAvisado=a},v2c:function(){gx.fn.setGridComboBoxValue("vRESINDAVISADO",gx.fn.currentGridRowImpl(20),gx.O.AV35ResIndAvisado)},c2v:function(){gx.O.AV35ResIndAvisado=this.val()},val:function(){return gx.fn.getGridControlValue("vRESINDAVISADO",gx.fn.currentGridRowImpl(20))},nac:function(){return false}};this.GXValidFnc[28]={lvl:2,type:"int",len:6,dec:0,sign:false,pic:"ZZZZZ9",ro:1,grid:20,gxgrid:this.Grid1Container,fnc:this.Validv_Docnroagrupado,isvalid:null,rgrid:[],fld:"vDOCNROAGRUPADO",gxz:"ZV32DocNroAgrupado",gxold:"OV32DocNroAgrupado",gxvar:"AV32DocNroAgrupado",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV32DocNroAgrupado=gx.num.intval(a)
},v2z:function(a){gx.O.ZV32DocNroAgrupado=gx.num.intval(a)},v2c:function(){gx.fn.setGridControlValue("vDOCNROAGRUPADO",gx.fn.currentGridRowImpl(20),gx.O.AV32DocNroAgrupado,0)},c2v:function(){gx.O.AV32DocNroAgrupado=this.val()},val:function(){return gx.fn.getGridIntegerValue("vDOCNROAGRUPADO",gx.fn.currentGridRowImpl(20),".")},nac:function(){return false}};this.GXValidFnc[29]={lvl:2,type:"int",len:6,dec:0,sign:false,pic:"ZZZZZ9",ro:1,grid:20,gxgrid:this.Grid1Container,fnc:null,isvalid:null,rgrid:[],fld:"vRESNROSEQ",gxz:"ZV33ResNroSeq",gxold:"OV33ResNroSeq",gxvar:"AV33ResNroSeq",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV33ResNroSeq=gx.num.intval(a)
},v2z:function(a){gx.O.ZV33ResNroSeq=gx.num.intval(a)},v2c:function(){gx.fn.setGridControlValue("vRESNROSEQ",gx.fn.currentGridRowImpl(20),gx.O.AV33ResNroSeq,0)},c2v:function(){gx.O.AV33ResNroSeq=this.val()},val:function(){return gx.fn.getGridIntegerValue("vRESNROSEQ",gx.fn.currentGridRowImpl(20),".")},nac:function(){return false}};this.GXValidFnc[30]={lvl:2,type:"int",len:6,dec:0,sign:false,pic:"ZZZZZ9",ro:1,grid:20,gxgrid:this.Grid1Container,fnc:null,isvalid:null,rgrid:[],fld:"vRESNROVOLUME",gxz:"ZV38ResNroVolume",gxold:"OV38ResNroVolume",gxvar:"AV38ResNroVolume",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV38ResNroVolume=gx.num.intval(a)
},v2z:function(a){gx.O.ZV38ResNroVolume=gx.num.intval(a)},v2c:function(){gx.fn.setGridControlValue("vRESNROVOLUME",gx.fn.currentGridRowImpl(20),gx.O.AV38ResNroVolume,0)},c2v:function(){gx.O.AV38ResNroVolume=this.val()},val:function(){return gx.fn.getGridIntegerValue("vRESNROVOLUME",gx.fn.currentGridRowImpl(20),".")},nac:function(){return false}};this.GXValidFnc[31]={lvl:2,type:"int",len:3,dec:0,sign:false,pic:"ZZ9",ro:1,grid:20,gxgrid:this.Grid1Container,fnc:null,isvalid:null,rgrid:[],fld:"vUNDCOD",gxz:"ZV37UndCod",gxold:"OV37UndCod",gxvar:"AV37UndCod",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV37UndCod=gx.num.intval(a)
},v2z:function(a){gx.O.ZV37UndCod=gx.num.intval(a)},v2c:function(){gx.fn.setGridControlValue("vUNDCOD",gx.fn.currentGridRowImpl(20),gx.O.AV37UndCod,0)},c2v:function(){gx.O.AV37UndCod=this.val()},val:function(){return gx.fn.getGridIntegerValue("vUNDCOD",gx.fn.currentGridRowImpl(20),".")},nac:function(){return false}};this.AV27DocDesL1Titulo="";this.ZV27DocDesL1Titulo="";this.OV27DocDesL1Titulo="";this.ZV58UndNomCompleto="";this.OV58UndNomCompleto="";this.ZV39NroOrdem=0;this.OV39NroOrdem=0;this.ZV36UsbCod="";
this.OV36UsbCod="";this.ZV16UsbNom="";this.OV16UsbNom="";this.ZV23Iditem="";this.OV23Iditem="";this.ZV34ResDatValidade=gx.date.nullDate();this.OV34ResDatValidade=gx.date.nullDate();this.ZV35ResIndAvisado="";this.OV35ResIndAvisado="";this.ZV32DocNroAgrupado=0;this.OV32DocNroAgrupado=0;this.ZV33ResNroSeq=0;this.OV33ResNroSeq=0;this.ZV38ResNroVolume=0;this.OV38ResNroVolume=0;this.ZV37UndCod=0;this.OV37UndCod=0;this.AV7DocNro=0;this.AV20NroVolume=0;this.AV28NroArtigo=0;this.AV15ParTipForm="";this.AV14IndOrigem="";
this.AV18TidIndModoPublicacao="";this.AV19PrgChamador="";this.AV26UndCodSele=0;this.AV40IndModeloApresentacao="";this.AV58UndNomCompleto="";this.AV39NroOrdem=0;this.AV36UsbCod="";this.AV16UsbNom="";this.AV23Iditem="";this.AV34ResDatValidade=gx.date.nullDate();this.AV35ResIndAvisado="";this.AV32DocNroAgrupado=0;this.AV33ResNroSeq=0;this.AV38ResNroVolume=0;this.AV37UndCod=0;this.A258DocNro=0;this.A242DocDesL1Ti="";this.A122CfgCod="";this.A127CfgValCont="";this.A729ResNroVolu=0;this.A727ResNroSeq=0;
this.A725ResIndAvis="";this.A724ResDatVali=gx.date.nullDate();this.A787UsbCod="";this.A786UsbNom="";this.A779SetCod=0;this.A317DvoNroVolu=0;this.A222DitDatPubl=gx.date.nullDate();this.A223DitNroEdic="";this.A220DitAnoEdic="";this.A227DitValExte="";this.A224DitNroTomo="";this.A225DitNroVolu="";this.A726ResIndCanc="";this.ServerEvents=["e144w2_client","e114w2_client","e164w2_client"];this.VarControlMap.AV7DocNro={id:"vDOCNRO",grid:0,type:"int"};this.VarControlMap.AV20NroVolume={id:"vNROVOLUME",grid:0,type:"int"};
this.VarControlMap.AV28NroArtigo={id:"vNROARTIGO",grid:0,type:"int"};this.VarControlMap.AV15ParTipForm={id:"vPARTIPFORM",grid:0,type:"char"};this.VarControlMap.AV14IndOrigem={id:"vINDORIGEM",grid:0,type:"char"};this.VarControlMap.AV18TidIndModoPublicacao={id:"vTIDINDMODOPUBLICACAO",grid:0,type:"char"};this.VarControlMap.AV19PrgChamador={id:"vPRGCHAMADOR",grid:0,type:"char"};this.VarControlMap.AV26UndCodSele={id:"vUNDCODSELE",grid:0,type:"int"};this.VarControlMap.AV40IndModeloApresentacao={id:"vINDMODELOAPRESENTACAO",grid:0,type:"char"};
this.VarControlMap.AV18TidIndModoPublicacao={id:"vTIDINDMODOPUBLICACAO",grid:0,type:"char"};this.VarControlMap.A223DitNroEdic={id:"DITNROEDIC",grid:0,type:"char"};this.VarControlMap.A220DitAnoEdic={id:"DITANOEDIC",grid:0,type:"char"};this.VarControlMap.A227DitValExte={id:"DITVALEXTE",grid:0,type:"char"};this.VarControlMap.A224DitNroTomo={id:"DITNROTOMO",grid:0,type:"char"};this.VarControlMap.A225DitNroVolu={id:"DITNROVOLU",grid:0,type:"char"};this.VarControlMap.A222DitDatPubl={id:"DITDATPUBL",grid:0,type:"date"};
this.VarControlMap.AV22QtdItens={id:"vQTDITENS",grid:0,type:"int"};this.VarControlMap.A786UsbNom={id:"USBNOM",grid:0,type:"char"};this.VarControlMap.AV17IndNomeCod={id:"vINDNOMECOD",grid:0,type:"char"};this.VarControlMap.A787UsbCod={id:"USBCOD",grid:0,type:"char"};this.VarControlMap.A725ResIndAvis={id:"RESINDAVIS",grid:0,type:"char"};this.VarControlMap.A729ResNroVolu={id:"RESNROVOLU",grid:0,type:"int"};this.VarControlMap.A779SetCod={id:"SETCOD",grid:0,type:"int"};this.VarControlMap.AV42IndAgrupaUnidades={id:"vINDAGRUPAUNIDADES",grid:0,type:"char"};
this.VarControlMap.A724ResDatVali={id:"RESDATVALI",grid:0,type:"date"};this.VarControlMap.A727ResNroSeq={id:"RESNROSEQ",grid:0,type:"int"};this.VarControlMap.A258DocNro={id:"DOCNRO",grid:0,type:"int"};this.VarControlMap.AV29QtdDocumentosAgupados={id:"vQTDDOCUMENTOSAGUPADOS",grid:0,type:"int"};this.Grid1Container.addRefreshingVar({rfrVar:"AV18TidIndModoPublicacao"});this.Grid1Container.addRefreshingVar({rfrVar:"A223DitNroEdic"});this.Grid1Container.addRefreshingVar({rfrVar:"A220DitAnoEdic"});this.Grid1Container.addRefreshingVar({rfrVar:"A227DitValExte"});
this.Grid1Container.addRefreshingVar({rfrVar:"A224DitNroTomo"});this.Grid1Container.addRefreshingVar({rfrVar:"A225DitNroVolu"});this.Grid1Container.addRefreshingVar({rfrVar:"A222DitDatPubl"});this.Grid1Container.addRefreshingVar({rfrVar:"AV22QtdItens"});this.Grid1Container.addRefreshingVar({rfrVar:"A786UsbNom"});this.Grid1Container.addRefreshingVar({rfrVar:"AV17IndNomeCod"});this.Grid1Container.addRefreshingVar({rfrVar:"A787UsbCod"});this.Grid1Container.addRefreshingVar({rfrVar:"A725ResIndAvis"});
this.Grid1Container.addRefreshingVar({rfrVar:"A729ResNroVolu"});this.Grid1Container.addRefreshingVar({rfrVar:"A779SetCod"});this.Grid1Container.addRefreshingVar({rfrVar:"AV42IndAgrupaUnidades"});this.Grid1Container.addRefreshingVar({rfrVar:"A724ResDatVali"});this.Grid1Container.addRefreshingVar({rfrVar:"A727ResNroSeq"});this.Grid1Container.addRefreshingVar({rfrVar:"A258DocNro"});this.Grid1Container.addRefreshingVar({rfrVar:"AV29QtdDocumentosAgupados"});this.SetStandaloneVars()}hmih016.prototype=new gx.GxObject;
gx.setParentObj(new hmih016());