gx.evt.autoSkip=false;function hmih078(){this.ServerClass="HMih078";this.PackageName="";this.setObjectType("web");this.hasEnterEvent=true;this.autoRefresh=true;this.SetStandaloneVars=function(){this.AV49NroArtigo=gx.fn.getIntegerValue("vNROARTIGO",".");this.AV48NroVolume=gx.fn.getIntegerValue("vNROVOLUME",".");this.AV35IndModeloApresentacao=gx.fn.getControlValue("vINDMODELOAPRESENTACAO");this.AV18UndCodAux=gx.fn.getIntegerValue("vUNDCODAUX",".")};this.Validv_Tidcod=function(){try{var a=gx.util.balloon.getNew("vTIDCOD");
this.AnyError=0}catch(b){}try{if(a==null){return true}return a.show()}catch(b){}return true};this.s112_client=function(){if(this.AV46CodIdiomaLeitor=="ENG"){gx.fn.setCtrlProperty("TITULOPAGINA","Caption","Listing of the colletion by document type");gx.fn.setCtrlProperty("UNIDEPOSITARIA","Caption","Depository unit");gx.fn.setCtrlProperty("TIPDOCUMENTO","Caption","Document type");gx.fn.setCtrlProperty("INITITULO","Caption","Beginning of the title")}else{gx.fn.setCtrlProperty("TITULOPAGINA","Caption","Listagem do acervo por tipo de documento");
gx.fn.setCtrlProperty("UNIDEPOSITARIA","Caption","Unidade depositária");gx.fn.setCtrlProperty("TIPDOCUMENTO","Caption","Tipo de documento");gx.fn.setCtrlProperty("INITITULO","Caption","Início do título")}};this.e17732_client=function(){this.clearMessages();gx.popup.openUrl(gx.http.formatLink("hmih093",[this.AV20DocNro,this.AV47TidIndModoPublicacao,this.AV18UndCodAux,this.AV35IndModeloApresentacao,this.AV48NroVolume,this.AV49NroArtigo,"L"]),["AV20DocNro","AV47TidIndModoPublicacao","AV18UndCodAux","AV35IndModeloApresentacao","AV48NroVolume","AV49NroArtigo"]);
this.refreshOutputs([])};this.e11732_client=function(){this.executeServerEvent("'PROXIMA'",false)};this.e12732_client=function(){this.executeServerEvent("'PRIMEIRA'",false)};this.e16732_client=function(){this.executeServerEvent("ENTER",true,arguments[0])};this.e18732_client=function(){this.executeServerEvent("CANCEL",true,arguments[0])};this.GXValidFnc=[];this.GXCtrlIds=[3,10,13,16,18,21,23,26,28,30,34,35,36,37,38,41,43,45];this.GXLastCtrlId=45;this.Subfile1Container=new gx.grid.grid(this,2,"WbpLvl2",33,"Subfile1","Subfile1","Subfile1Container",this.CmpContext,this.IsMasterPage,"hmih078",[],false,1,true,true,40,true,false,false,"",0,"px","Novo registro",true,false,true,null,null,false,"");
this.Subfile1Container.addSingleLineEdit("Docdestitulo",34,"vDOCDESTITULO","","","DocDesTitulo","char",410,"px",80,80,"left","e17732_client",[],"Docdestitulo","DocDesTitulo",true,0,false,false);this.Subfile1Container.addSingleLineEdit("Nomautor",35,"vNOMAUTOR","","","NomAutor","char",410,"px",250,250,"left",null,[],"Nomautor","NomAutor",true,0,false,false);this.Subfile1Container.addSingleLineEdit("Chamada",36,"vCHAMADA","","","Chamada","char",210,"px",40,40,"left",null,[],"Chamada","Chamada",true,0,false,false);
this.Subfile1Container.addSingleLineEdit("Docnro",37,"vDOCNRO","Doc","","DocNro","int",46,"px",6,6,"right",null,[],"Docnro","DocNro",true,0,false,false);this.Subfile1Container.addComboBox("Tidindmodopublicacao",38,"vTIDINDMODOPUBLICACAO","Tid Ind Modo Publicacao","TidIndModoPublicacao","char",null,0,false,false,0,"px");this.setGrid(this.Subfile1Container);this.GXValidFnc[3]={fld:"TABLE1",grid:0};this.GXValidFnc[10]={fld:"TITULOPAGINA",format:0,grid:0};this.GXValidFnc[13]={fld:"TABLE2",grid:0};this.GXValidFnc[16]={fld:"UNIDEPOSITARIA",format:0,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:"vUNDCOD",gxz:"ZV36UndCod",gxold:"OV36UndCod",gxvar:"AV36UndCod",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"combo",v2v:function(a){gx.O.AV36UndCod=gx.num.intval(a)},v2z:function(a){gx.O.ZV36UndCod=gx.num.intval(a)},v2c:function(){gx.fn.setComboBoxValue("vUNDCOD",gx.O.AV36UndCod)},c2v:function(){gx.O.AV36UndCod=this.val()},val:function(){return gx.fn.getIntegerValue("vUNDCOD",".")
},nac:function(){return false}};this.GXValidFnc[21]={fld:"TIPDOCUMENTO",format:0,grid:0};this.GXValidFnc[23]={lvl:0,type:"char",len:3,dec:0,sign:false,ro:0,grid:0,gxgrid:null,fnc:this.Validv_Tidcod,isvalid:null,fld:"vTIDCOD",gxz:"ZV13TidCod",gxold:"OV13TidCod",gxvar:"AV13TidCod",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"dyncombo",v2v:function(a){gx.O.AV13TidCod=a},v2z:function(a){gx.O.ZV13TidCod=a},v2c:function(){gx.fn.setComboBoxValue("vTIDCOD",gx.O.AV13TidCod)},c2v:function(){gx.O.AV13TidCod=this.val()
},val:function(){return gx.fn.getControlValue("vTIDCOD")},nac:function(){return false}};this.GXValidFnc[26]={fld:"INITITULO",format:0,grid:0};this.GXValidFnc[28]={lvl:0,type:"char",len:45,dec:0,sign:false,ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,fld:"vDSCTITULOINICIAL",gxz:"ZV14DscTituloInicial",gxold:"OV14DscTituloInicial",gxvar:"AV14DscTituloInicial",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV14DscTituloInicial=a},v2z:function(a){gx.O.ZV14DscTituloInicial=a},v2c:function(){gx.fn.setControlValue("vDSCTITULOINICIAL",gx.O.AV14DscTituloInicial,0)
},c2v:function(){gx.O.AV14DscTituloInicial=this.val()},val:function(){return gx.fn.getControlValue("vDSCTITULOINICIAL")},nac:function(){return false}};this.GXValidFnc[30]={fld:"IMAGE1",grid:0};this.GXValidFnc[34]={lvl:2,type:"char",len:80,dec:0,sign:false,ro:0,grid:33,gxgrid:this.Subfile1Container,fnc:null,isvalid:null,fld:"vDOCDESTITULO",gxz:"ZV12DocDesTitulo",gxold:"OV12DocDesTitulo",gxvar:"AV12DocDesTitulo",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV12DocDesTitulo=a},v2z:function(a){gx.O.ZV12DocDesTitulo=a
},v2c:function(){gx.fn.setGridControlValue("vDOCDESTITULO",gx.fn.currentGridRowImpl(33),gx.O.AV12DocDesTitulo,0)},c2v:function(){gx.O.AV12DocDesTitulo=this.val()},val:function(){return gx.fn.getGridControlValue("vDOCDESTITULO",gx.fn.currentGridRowImpl(33))},nac:function(){return false}};this.GXValidFnc[35]={lvl:2,type:"char",len:250,dec:0,sign:false,ro:0,grid:33,gxgrid:this.Subfile1Container,fnc:null,isvalid:null,fld:"vNOMAUTOR",gxz:"ZV29NomAutor",gxold:"OV29NomAutor",gxvar:"AV29NomAutor",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV29NomAutor=a
},v2z:function(a){gx.O.ZV29NomAutor=a},v2c:function(){gx.fn.setGridControlValue("vNOMAUTOR",gx.fn.currentGridRowImpl(33),gx.O.AV29NomAutor,0)},c2v:function(){gx.O.AV29NomAutor=this.val()},val:function(){return gx.fn.getGridControlValue("vNOMAUTOR",gx.fn.currentGridRowImpl(33))},nac:function(){return false}};this.GXValidFnc[36]={lvl:2,type:"char",len:40,dec:0,sign:false,ro:0,grid:33,gxgrid:this.Subfile1Container,fnc:null,isvalid:null,fld:"vCHAMADA",gxz:"ZV28Chamada",gxold:"OV28Chamada",gxvar:"AV28Chamada",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV28Chamada=a
},v2z:function(a){gx.O.ZV28Chamada=a},v2c:function(){gx.fn.setGridControlValue("vCHAMADA",gx.fn.currentGridRowImpl(33),gx.O.AV28Chamada,0)},c2v:function(){gx.O.AV28Chamada=this.val()},val:function(){return gx.fn.getGridControlValue("vCHAMADA",gx.fn.currentGridRowImpl(33))},nac:function(){return false}};this.GXValidFnc[37]={lvl:2,type:"int",len:6,dec:0,sign:false,pic:"ZZZZZ9",ro:0,grid:33,gxgrid:this.Subfile1Container,fnc:null,isvalid:null,rgrid:[],fld:"vDOCNRO",gxz:"ZV20DocNro",gxold:"OV20DocNro",gxvar:"AV20DocNro",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV20DocNro=gx.num.intval(a)
},v2z:function(a){gx.O.ZV20DocNro=gx.num.intval(a)},v2c:function(){gx.fn.setGridControlValue("vDOCNRO",gx.fn.currentGridRowImpl(33),gx.O.AV20DocNro,0)},c2v:function(){gx.O.AV20DocNro=this.val()},val:function(){return gx.fn.getGridIntegerValue("vDOCNRO",gx.fn.currentGridRowImpl(33),".")},nac:function(){return false}};this.GXValidFnc[38]={lvl:2,type:"char",len:1,dec:0,sign:false,ro:0,grid:33,gxgrid:this.Subfile1Container,fnc:null,isvalid:null,fld:"vTIDINDMODOPUBLICACAO",gxz:"ZV47TidIndModoPublicacao",gxold:"OV47TidIndModoPublicacao",gxvar:"AV47TidIndModoPublicacao",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"combo",v2v:function(a){gx.O.AV47TidIndModoPublicacao=a
},v2z:function(a){gx.O.ZV47TidIndModoPublicacao=a},v2c:function(){gx.fn.setGridComboBoxValue("vTIDINDMODOPUBLICACAO",gx.fn.currentGridRowImpl(33),gx.O.AV47TidIndModoPublicacao)},c2v:function(){gx.O.AV47TidIndModoPublicacao=this.val()},val:function(){return gx.fn.getGridControlValue("vTIDINDMODOPUBLICACAO",gx.fn.currentGridRowImpl(33))},nac:function(){return false}};this.GXValidFnc[41]={fld:"MENSAGEM1",format:0,grid:0};this.GXValidFnc[43]={fld:"MENSAGEM2",format:0,grid:0};this.GXValidFnc[45]={fld:"MENSAGEM3",format:0,grid:0};
this.AV36UndCod=0;this.ZV36UndCod=0;this.OV36UndCod=0;this.AV13TidCod="";this.ZV13TidCod="";this.OV13TidCod="";this.AV14DscTituloInicial="";this.ZV14DscTituloInicial="";this.OV14DscTituloInicial="";this.ZV12DocDesTitulo="";this.OV12DocDesTitulo="";this.ZV29NomAutor="";this.OV29NomAutor="";this.ZV28Chamada="";this.OV28Chamada="";this.ZV20DocNro=0;this.OV20DocNro=0;this.ZV47TidIndModoPublicacao="";this.OV47TidIndModoPublicacao="";this.AV12DocDesTitulo="";this.AV29NomAutor="";this.AV28Chamada="";this.AV20DocNro=0;
this.AV47TidIndModoPublicacao="";this.A258DocNro=0;this.A249DocDesTitu="";this.A863TidCod="";this.A242DocDesL1Ti="";this.A871TidIndModo="";this.A922UndCod=0;this.A925UndNomComp="";this.AV49NroArtigo=0;this.AV48NroVolume=0;this.AV35IndModeloApresentacao="";this.AV18UndCodAux=0;this.AV46CodIdiomaLeitor="";this.ServerEvents=["e11732_client","e12732_client","e16732_client","e18732_client"];this.VarControlMap.AV49NroArtigo={id:"vNROARTIGO",grid:0,type:"int"};this.VarControlMap.AV48NroVolume={id:"vNROVOLUME",grid:0,type:"int"};
this.VarControlMap.AV35IndModeloApresentacao={id:"vINDMODELOAPRESENTACAO",grid:0,type:"char"};this.VarControlMap.AV18UndCodAux={id:"vUNDCODAUX",grid:0,type:"int"};this.VarControlMap.A871TidIndModo={id:"TIDINDMODO",grid:0,type:"char"};this.VarControlMap.A242DocDesL1Ti={id:"DOCDESL1TI",grid:0,type:"char"};this.VarControlMap.AV15ParTipForm={id:"vPARTIPFORM",grid:0,type:"char"};this.VarControlMap.A258DocNro={id:"DOCNRO",grid:0,type:"int"};this.VarControlMap.A249DocDesTitu={id:"DOCDESTITU",grid:0,type:"char"};
this.VarControlMap.A863TidCod={id:"TIDCOD",grid:0,type:"char"};this.VarControlMap.AV46CodIdiomaLeitor={id:"vCODIDIOMALEITOR",grid:0,type:"char"};this.Subfile1Container.addRefreshingVar({rfrVar:"A871TidIndModo"});this.Subfile1Container.addRefreshingVar({rfrVar:"A242DocDesL1Ti"});this.Subfile1Container.addRefreshingVar({rfrVar:"AV15ParTipForm"});this.Subfile1Container.addRefreshingVar(this.GXValidFnc[18]);this.Subfile1Container.addRefreshingVar({rfrVar:"A258DocNro"});this.Subfile1Container.addRefreshingVar({rfrVar:"A249DocDesTitu"});
this.Subfile1Container.addRefreshingVar({rfrVar:"A863TidCod"});this.Subfile1Container.addRefreshingVar({rfrVar:"AV46CodIdiomaLeitor"});this.SetStandaloneVars()}hmih078.prototype=new gx.GxObject;gx.setParentObj(new hmih078());