gx.evt.autoSkip=false;function hmih097(a){this.ServerClass="HMih097";this.PackageName="";this.setObjectType("web");this.setCmpContext(a);this.ReadonlyForm=true;this.hasEnterEvent=true;this.SetStandaloneVars=function(){this.AV11DocNro=gx.fn.getIntegerValue("vDOCNRO",".");this.AV25NroVolume=gx.fn.getIntegerValue("vNROVOLUME",".");this.AV35TidIndModoPublicacao=gx.fn.getControlValue("vTIDINDMODOPUBLICACAO")};this.Validv_Docnroagrupado=function(){try{var b=gx.util.balloon.getNew("vDOCNROAGRUPADO");this.AnyError=0
}catch(c){}try{if(b==null){return true}return b.show()}catch(c){}return true};this.e13gj2_client=function(){this.executeServerEvent("ENTER",true,arguments[0])};this.e15gj2_client=function(){this.executeServerEvent("CANCEL",true,arguments[0])};this.GXValidFnc=[];this.GXCtrlIds=[3,7,10,13,16,19,22,24,29,30,31,32,33,34,35,36,37,38,39];this.GXLastCtrlId=39;this.Grid1Container=new gx.grid.grid(this,2,"WbpLvl2",28,"Grid1","Grid1","Grid1Container",this.CmpContext,this.IsMasterPage,"hmih097",[],false,1,true,true,0,false,false,false,"",0,"px","Novo registro",false,false,false,null,null,false,"");
this.Grid1Container.addSingleLineEdit("Undnomcompleto",29,"vUNDNOMCOMPLETO","Unidade depositária","","UndNomCompleto","char",210,"px",40,40,"left",null,[],"Undnomcompleto","UndNomCompleto",true,0,false,false);this.Grid1Container.addSingleLineEdit("Nroordem",30,"vNROORDEM","Posição","","NroOrdem","int",0,"px",4,4,"right",null,[],"Nroordem","NroOrdem",true,0,false,false);this.Grid1Container.addSingleLineEdit("Iditem",31,"vIDITEM","Especificação","","Iditem","char",0,"px",40,40,"left",null,[],"Iditem","Iditem",true,0,false,false);
this.Grid1Container.addSingleLineEdit("Resdatvalidade",32,"vRESDATVALIDADE","Validade","","ResDatValidade","date",0,"px",10,10,"right",null,[],"Resdatvalidade","ResDatValidade",true,0,false,false);this.Grid1Container.addComboBox("Resindavisado",33,"vRESINDAVISADO","Avisado","ResIndAvisado","char",null,0,true,false,0,"px");this.Grid1Container.addSingleLineEdit("Docnroagrupado",34,"vDOCNROAGRUPADO","Documento","","DocNroAgrupado","int",0,"px",6,6,"right",null,[],"Docnroagrupado","DocNroAgrupado",true,0,false,false);
this.Grid1Container.addSingleLineEdit("Resnroseq",35,"vRESNROSEQ","Sequência","","ResNroSeq","int",0,"px",6,6,"right",null,[],"Resnroseq","ResNroSeq",true,0,false,false);this.Grid1Container.addSingleLineEdit("Resnrovolume",36,"vRESNROVOLUME","Item","","ResNroVolume","int",0,"px",6,6,"right",null,[],"Resnrovolume","ResNroVolume",true,0,false,false);this.Grid1Container.addSingleLineEdit("Undcod",37,"vUNDCOD","Unidade","","UndCod","int",0,"px",3,3,"right",null,[],"Undcod","UndCod",true,0,false,false);
this.Grid1Container.addSingleLineEdit("Usbcod",38,"vUSBCOD","Código","","UsbCod","char",0,"px",14,14,"left",null,[],"Usbcod","UsbCod",false,0,false,false);this.Grid1Container.addSingleLineEdit("Usbnom",39,"vUSBNOM","Leitor","","UsbNom","char",0,"px",50,50,"left",null,[],"Usbnom","UsbNom",false,0,false,false);this.setGrid(this.Grid1Container);this.GXValidFnc[3]={fld:"TABLE1",grid:0};this.GXValidFnc[7]={fld:"TEXTBLOCK2",format:0,grid:0};this.GXValidFnc[10]={fld:"TABLE3",grid:0};this.GXValidFnc[13]={fld:"TEXTBLOCK4",format:1,grid:0};
this.GXValidFnc[16]={fld:"TEXTBLOCK5",format:1,grid:0};this.GXValidFnc[19]={fld:"TABLE2",grid:0};this.GXValidFnc[22]={fld:"TEXTBLOCK1",format:0,grid:0};this.GXValidFnc[24]={lvl:0,type:"char",len:90,dec:0,sign:false,ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,fld:"vDOCDESL1TITULO",gxz:"ZV10DocDesL1Titulo",gxold:"OV10DocDesL1Titulo",gxvar:"AV10DocDesL1Titulo",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(b){gx.O.AV10DocDesL1Titulo=b},v2z:function(b){gx.O.ZV10DocDesL1Titulo=b},v2c:function(){gx.fn.setControlValue("vDOCDESL1TITULO",gx.O.AV10DocDesL1Titulo,0)
},c2v:function(){gx.O.AV10DocDesL1Titulo=this.val()},val:function(){return gx.fn.getControlValue("vDOCDESL1TITULO")},nac:function(){return false}};this.GXValidFnc[29]={lvl:2,type:"char",len:40,dec:0,sign:false,ro:1,grid:28,gxgrid:this.Grid1Container,fnc:null,isvalid:null,fld:"vUNDNOMCOMPLETO",gxz:"ZV53UndNomCompleto",gxold:"OV53UndNomCompleto",gxvar:"AV53UndNomCompleto",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(b){gx.O.AV53UndNomCompleto=b},v2z:function(b){gx.O.ZV53UndNomCompleto=b
},v2c:function(){gx.fn.setGridControlValue("vUNDNOMCOMPLETO",gx.fn.currentGridRowImpl(28),gx.O.AV53UndNomCompleto,0)},c2v:function(){gx.O.AV53UndNomCompleto=this.val()},val:function(){return gx.fn.getGridControlValue("vUNDNOMCOMPLETO",gx.fn.currentGridRowImpl(28))},nac:function(){return false}};this.GXValidFnc[30]={lvl:2,type:"int",len:4,dec:0,sign:false,pic:"ZZZ9",ro:1,grid:28,gxgrid:this.Grid1Container,fnc:null,isvalid:null,rgrid:[],fld:"vNROORDEM",gxz:"ZV24NroOrdem",gxold:"OV24NroOrdem",gxvar:"AV24NroOrdem",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(b){gx.O.AV24NroOrdem=gx.num.intval(b)
},v2z:function(b){gx.O.ZV24NroOrdem=gx.num.intval(b)},v2c:function(){gx.fn.setGridControlValue("vNROORDEM",gx.fn.currentGridRowImpl(28),gx.O.AV24NroOrdem,0)},c2v:function(){gx.O.AV24NroOrdem=this.val()},val:function(){return gx.fn.getGridIntegerValue("vNROORDEM",gx.fn.currentGridRowImpl(28),".")},nac:function(){return false}};this.GXValidFnc[31]={lvl:2,type:"char",len:40,dec:0,sign:false,ro:1,grid:28,gxgrid:this.Grid1Container,fnc:null,isvalid:null,fld:"vIDITEM",gxz:"ZV13Iditem",gxold:"OV13Iditem",gxvar:"AV13Iditem",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(b){gx.O.AV13Iditem=b
},v2z:function(b){gx.O.ZV13Iditem=b},v2c:function(){gx.fn.setGridControlValue("vIDITEM",gx.fn.currentGridRowImpl(28),gx.O.AV13Iditem,0)},c2v:function(){gx.O.AV13Iditem=this.val()},val:function(){return gx.fn.getGridControlValue("vIDITEM",gx.fn.currentGridRowImpl(28))},nac:function(){return false}};this.GXValidFnc[32]={lvl:2,type:"date",len:10,dec:0,sign:false,ro:1,grid:28,gxgrid:this.Grid1Container,fnc:null,isvalid:null,fld:"vRESDATVALIDADE",gxz:"ZV30ResDatValidade",gxold:"OV30ResDatValidade",gxvar:"AV30ResDatValidade",dp:{f:0,st:false,wn:false,mf:false,pic:"99/99/9999",dec:0},ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(b){gx.O.AV30ResDatValidade=gx.fn.toDatetimeValue(b)
},v2z:function(b){gx.O.ZV30ResDatValidade=gx.fn.toDatetimeValue(b)},v2c:function(){gx.fn.setGridControlValue("vRESDATVALIDADE",gx.fn.currentGridRowImpl(28),gx.O.AV30ResDatValidade,0)},c2v:function(){gx.O.AV30ResDatValidade=this.val()},val:function(){return gx.fn.getGridControlValue("vRESDATVALIDADE",gx.fn.currentGridRowImpl(28))},nac:function(){return false}};this.GXValidFnc[33]={lvl:2,type:"char",len:1,dec:0,sign:false,ro:1,grid:28,gxgrid:this.Grid1Container,fnc:null,isvalid:null,fld:"vRESINDAVISADO",gxz:"ZV31ResIndAvisado",gxold:"OV31ResIndAvisado",gxvar:"AV31ResIndAvisado",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"combo",v2v:function(b){gx.O.AV31ResIndAvisado=b
},v2z:function(b){gx.O.ZV31ResIndAvisado=b},v2c:function(){gx.fn.setGridComboBoxValue("vRESINDAVISADO",gx.fn.currentGridRowImpl(28),gx.O.AV31ResIndAvisado)},c2v:function(){gx.O.AV31ResIndAvisado=this.val()},val:function(){return gx.fn.getGridControlValue("vRESINDAVISADO",gx.fn.currentGridRowImpl(28))},nac:function(){return false}};this.GXValidFnc[34]={lvl:2,type:"int",len:6,dec:0,sign:false,pic:"ZZZZZ9",ro:1,grid:28,gxgrid:this.Grid1Container,fnc:this.Validv_Docnroagrupado,isvalid:null,rgrid:[],fld:"vDOCNROAGRUPADO",gxz:"ZV12DocNroAgrupado",gxold:"OV12DocNroAgrupado",gxvar:"AV12DocNroAgrupado",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(b){gx.O.AV12DocNroAgrupado=gx.num.intval(b)
},v2z:function(b){gx.O.ZV12DocNroAgrupado=gx.num.intval(b)},v2c:function(){gx.fn.setGridControlValue("vDOCNROAGRUPADO",gx.fn.currentGridRowImpl(28),gx.O.AV12DocNroAgrupado,0)},c2v:function(){gx.O.AV12DocNroAgrupado=this.val()},val:function(){return gx.fn.getGridIntegerValue("vDOCNROAGRUPADO",gx.fn.currentGridRowImpl(28),".")},nac:function(){return false}};this.GXValidFnc[35]={lvl:2,type:"int",len:6,dec:0,sign:false,pic:"ZZZZZ9",ro:1,grid:28,gxgrid:this.Grid1Container,fnc:null,isvalid:null,rgrid:[],fld:"vRESNROSEQ",gxz:"ZV32ResNroSeq",gxold:"OV32ResNroSeq",gxvar:"AV32ResNroSeq",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(b){gx.O.AV32ResNroSeq=gx.num.intval(b)
},v2z:function(b){gx.O.ZV32ResNroSeq=gx.num.intval(b)},v2c:function(){gx.fn.setGridControlValue("vRESNROSEQ",gx.fn.currentGridRowImpl(28),gx.O.AV32ResNroSeq,0)},c2v:function(){gx.O.AV32ResNroSeq=this.val()},val:function(){return gx.fn.getGridIntegerValue("vRESNROSEQ",gx.fn.currentGridRowImpl(28),".")},nac:function(){return false}};this.GXValidFnc[36]={lvl:2,type:"int",len:6,dec:0,sign:false,pic:"ZZZZZ9",ro:1,grid:28,gxgrid:this.Grid1Container,fnc:null,isvalid:null,rgrid:[],fld:"vRESNROVOLUME",gxz:"ZV33ResNroVolume",gxold:"OV33ResNroVolume",gxvar:"AV33ResNroVolume",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(b){gx.O.AV33ResNroVolume=gx.num.intval(b)
},v2z:function(b){gx.O.ZV33ResNroVolume=gx.num.intval(b)},v2c:function(){gx.fn.setGridControlValue("vRESNROVOLUME",gx.fn.currentGridRowImpl(28),gx.O.AV33ResNroVolume,0)},c2v:function(){gx.O.AV33ResNroVolume=this.val()},val:function(){return gx.fn.getGridIntegerValue("vRESNROVOLUME",gx.fn.currentGridRowImpl(28),".")},nac:function(){return false}};this.GXValidFnc[37]={lvl:2,type:"int",len:3,dec:0,sign:false,pic:"ZZ9",ro:1,grid:28,gxgrid:this.Grid1Container,fnc:null,isvalid:null,rgrid:[],fld:"vUNDCOD",gxz:"ZV36UndCod",gxold:"OV36UndCod",gxvar:"AV36UndCod",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(b){gx.O.AV36UndCod=gx.num.intval(b)
},v2z:function(b){gx.O.ZV36UndCod=gx.num.intval(b)},v2c:function(){gx.fn.setGridControlValue("vUNDCOD",gx.fn.currentGridRowImpl(28),gx.O.AV36UndCod,0)},c2v:function(){gx.O.AV36UndCod=this.val()},val:function(){return gx.fn.getGridIntegerValue("vUNDCOD",gx.fn.currentGridRowImpl(28),".")},nac:function(){return false}};this.GXValidFnc[38]={lvl:2,type:"char",len:14,dec:0,sign:false,ro:1,grid:28,gxgrid:this.Grid1Container,fnc:null,isvalid:null,fld:"vUSBCOD",gxz:"ZV38UsbCod",gxold:"OV38UsbCod",gxvar:"AV38UsbCod",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(b){gx.O.AV38UsbCod=b
},v2z:function(b){gx.O.ZV38UsbCod=b},v2c:function(){gx.fn.setGridControlValue("vUSBCOD",gx.fn.currentGridRowImpl(28),gx.O.AV38UsbCod,0)},c2v:function(){gx.O.AV38UsbCod=this.val()},val:function(){return gx.fn.getGridControlValue("vUSBCOD",gx.fn.currentGridRowImpl(28))},nac:function(){return false}};this.GXValidFnc[39]={lvl:2,type:"char",len:50,dec:0,sign:false,ro:1,grid:28,gxgrid:this.Grid1Container,fnc:null,isvalid:null,fld:"vUSBNOM",gxz:"ZV39UsbNom",gxold:"OV39UsbNom",gxvar:"AV39UsbNom",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(b){gx.O.AV39UsbNom=b
},v2z:function(b){gx.O.ZV39UsbNom=b},v2c:function(){gx.fn.setGridControlValue("vUSBNOM",gx.fn.currentGridRowImpl(28),gx.O.AV39UsbNom,0)},c2v:function(){gx.O.AV39UsbNom=this.val()},val:function(){return gx.fn.getGridControlValue("vUSBNOM",gx.fn.currentGridRowImpl(28))},nac:function(){return false}};this.AV10DocDesL1Titulo="";this.ZV10DocDesL1Titulo="";this.OV10DocDesL1Titulo="";this.ZV53UndNomCompleto="";this.OV53UndNomCompleto="";this.ZV24NroOrdem=0;this.OV24NroOrdem=0;this.ZV13Iditem="";this.OV13Iditem="";
this.ZV30ResDatValidade=gx.date.nullDate();this.OV30ResDatValidade=gx.date.nullDate();this.ZV31ResIndAvisado="";this.OV31ResIndAvisado="";this.ZV12DocNroAgrupado=0;this.OV12DocNroAgrupado=0;this.ZV32ResNroSeq=0;this.OV32ResNroSeq=0;this.ZV33ResNroVolume=0;this.OV33ResNroVolume=0;this.ZV36UndCod=0;this.OV36UndCod=0;this.ZV38UsbCod="";this.OV38UsbCod="";this.ZV39UsbNom="";this.OV39UsbNom="";this.AV11DocNro=0;this.AV25NroVolume=0;this.AV35TidIndModoPublicacao="";this.AV53UndNomCompleto="";this.AV24NroOrdem=0;
this.AV13Iditem="";this.AV30ResDatValidade=gx.date.nullDate();this.AV31ResIndAvisado="";this.AV12DocNroAgrupado=0;this.AV32ResNroSeq=0;this.AV33ResNroVolume=0;this.AV36UndCod=0;this.AV38UsbCod="";this.AV39UsbNom="";this.A258DocNro=0;this.A729ResNroVolu=0;this.A727ResNroSeq=0;this.A725ResIndAvis="";this.A724ResDatVali=gx.date.nullDate();this.A779SetCod=0;this.A787UsbCod="";this.A317DvoNroVolu=0;this.A222DitDatPubl=gx.date.nullDate();this.A223DitNroEdic="";this.A220DitAnoEdic="";this.A227DitValExte="";
this.A224DitNroTomo="";this.A225DitNroVolu="";this.A726ResIndCanc="";this.ServerEvents=["e13gj2_client","e15gj2_client"];this.VarControlMap.AV11DocNro={id:"vDOCNRO",grid:0,type:"int"};this.VarControlMap.AV25NroVolume={id:"vNROVOLUME",grid:0,type:"int"};this.VarControlMap.AV35TidIndModoPublicacao={id:"vTIDINDMODOPUBLICACAO",grid:0,type:"char"};this.VarControlMap.AV35TidIndModoPublicacao={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.AV29QtdItens={id:"vQTDITENS",grid:0,type:"int"};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.AV41IndAgrupaUnidades={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.AV28QtdDocumentosAgupados={id:"vQTDDOCUMENTOSAGUPADOS",grid:0,type:"int"};this.Grid1Container.addRefreshingVar({rfrVar:"AV35TidIndModoPublicacao"});
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:"AV29QtdItens"});this.Grid1Container.addRefreshingVar({rfrVar:"A725ResIndAvis"});
this.Grid1Container.addRefreshingVar({rfrVar:"A729ResNroVolu"});this.Grid1Container.addRefreshingVar({rfrVar:"A779SetCod"});this.Grid1Container.addRefreshingVar({rfrVar:"AV41IndAgrupaUnidades"});this.Grid1Container.addRefreshingVar({rfrVar:"A724ResDatVali"});this.Grid1Container.addRefreshingVar({rfrVar:"A727ResNroSeq"});this.Grid1Container.addRefreshingVar({rfrVar:"A258DocNro"});this.Grid1Container.addRefreshingVar({rfrVar:"AV28QtdDocumentosAgupados"});this.SetStandaloneVars()}gx.setExecutableComponent("hmih097");