gx.evt.autoSkip=false;function himh271(){this.ServerClass="HImh271";this.PackageName="";this.setObjectType("web");this.hasEnterEvent=true;this.autoRefresh=true;this.SetStandaloneVars=function(){};this.e11j92_client=function(){this.executeServerEvent("ENTER",true)};this.e12j92_client=function(){this.executeServerEvent("'VOLTAR'",false)};this.e15j92_client=function(){this.executeServerEvent("CANCEL",true,arguments[0])};this.GXValidFnc=[];this.GXCtrlIds=[2,11,13,16,18,21,23,26,28,31,33,36,38,40,44,45,46,47,48,49,50,52,53];
this.GXLastCtrlId=53;this.Grid1Container=new gx.grid.grid(this,2,"WbpLvl2",43,"Grid1","Grid1","Grid1Container",this.CmpContext,this.IsMasterPage,"himh271",[],false,1,false,true,0,false,false,false,"",0,"px","Novo registro",false,false,false,null,null,false,"");this.Grid1Container.addSingleLineEdit("Grdnrodocumento",44,"vGRDNRODOCUMENTO","Doc.","","GrdNroDocumento","int",0,"px",6,6,"right",null,[],"Grdnrodocumento","GrdNroDocumento",true,0,false,false);this.Grid1Container.addSingleLineEdit("Grdnrotombo",45,"vGRDNROTOMBO","Tombo","","GrdNroTombo","int",0,"px",9,9,"right",null,[],"Grdnrotombo","GrdNroTombo",true,0,false,false);
this.Grid1Container.addSingleLineEdit("Grddsctitulo",46,"vGRDDSCTITULO","Título","","GrdDscTitulo","char",0,"px",250,250,"left",null,[],"Grddsctitulo","GrdDscTitulo",true,0,false,false);this.Grid1Container.addSingleLineEdit("Grdnomautor",47,"vGRDNOMAUTOR","Autor","","GrdNomAutor","char",0,"px",100,100,"left",null,[],"Grdnomautor","GrdNomAutor",true,0,false,false);this.Grid1Container.addSingleLineEdit("Grddscchamada",48,"vGRDDSCCHAMADA","Chamada","","GrdDscChamada","char",0,"px",40,40,"left",null,[],"Grddscchamada","GrdDscChamada",true,0,false,false);
this.Grid1Container.addSingleLineEdit("Grdnroedicao",49,"vGRDNROEDICAO","Edição","","GrdNroEdicao","char",0,"px",4,4,"left",null,[],"Grdnroedicao","GrdNroEdicao",true,0,false,false);this.Grid1Container.addSingleLineEdit("Grdanoedicao",50,"vGRDANOEDICAO","Ano","","GrdAnoEdicao","int",0,"px",4,4,"right",null,[],"Grdanoedicao","GrdAnoEdicao",true,0,false,false);this.setGrid(this.Grid1Container);this.GXValidFnc[2]={fld:"TABLE1",grid:0};this.GXValidFnc[11]={fld:"TEXTBLOCK1",format:0,grid:0};this.GXValidFnc[13]={fld:"TABLE2",grid:0};
this.GXValidFnc[16]={fld:"TEXTBLOCK2",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:"vSCRNROUNIDADEDE",gxz:"ZV5ScrNroUnidadeDE",gxold:"OV5ScrNroUnidadeDE",gxvar:"AV5ScrNroUnidadeDE",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV5ScrNroUnidadeDE=gx.num.intval(a)},v2z:function(a){gx.O.ZV5ScrNroUnidadeDE=gx.num.intval(a)},v2c:function(){gx.fn.setControlValue("vSCRNROUNIDADEDE",gx.O.AV5ScrNroUnidadeDE,0)
},c2v:function(){gx.O.AV5ScrNroUnidadeDE=this.val()},val:function(){return gx.fn.getIntegerValue("vSCRNROUNIDADEDE",".")},nac:function(){return false}};this.GXValidFnc[21]={fld:"TEXTBLOCK3",format:0,grid:0};this.GXValidFnc[23]={lvl:0,type:"int",len:3,dec:0,sign:false,pic:"ZZ9",ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,rgrid:[],fld:"vSCRNROUNIDADEPARA",gxz:"ZV6ScrNroUnidadePARA",gxold:"OV6ScrNroUnidadePARA",gxvar:"AV6ScrNroUnidadePARA",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV6ScrNroUnidadePARA=gx.num.intval(a)
},v2z:function(a){gx.O.ZV6ScrNroUnidadePARA=gx.num.intval(a)},v2c:function(){gx.fn.setControlValue("vSCRNROUNIDADEPARA",gx.O.AV6ScrNroUnidadePARA,0)},c2v:function(){gx.O.AV6ScrNroUnidadePARA=this.val()},val:function(){return gx.fn.getIntegerValue("vSCRNROUNIDADEPARA",".")},nac:function(){return false}};this.GXValidFnc[26]={fld:"TEXTBLOCK4",format:0,grid:0};this.GXValidFnc[28]={lvl:0,type:"char",len:100,dec:0,sign:false,ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,fld:"vSCRVALLISTATOMBOS",gxz:"ZV7ScrValListaTombos",gxold:"OV7ScrValListaTombos",gxvar:"AV7ScrValListaTombos",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV7ScrValListaTombos=a
},v2z:function(a){gx.O.ZV7ScrValListaTombos=a},v2c:function(){gx.fn.setControlValue("vSCRVALLISTATOMBOS",gx.O.AV7ScrValListaTombos,0)},c2v:function(){gx.O.AV7ScrValListaTombos=this.val()},val:function(){return gx.fn.getControlValue("vSCRVALLISTATOMBOS")},nac:function(){return false}};this.GXValidFnc[31]={fld:"TEXTBLOCK5",format:0,grid:0};this.GXValidFnc[33]={fld:"TABLE3",grid:0};this.GXValidFnc[36]={lvl:0,type:"int",len:3,dec:0,sign:false,pic:"ZZ9",ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,rgrid:[],fld:"vSCRCODCATEGORIA",gxz:"ZV8ScrCodCategoria",gxold:"OV8ScrCodCategoria",gxvar:"AV8ScrCodCategoria",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV8ScrCodCategoria=gx.num.intval(a)
},v2z:function(a){gx.O.ZV8ScrCodCategoria=gx.num.intval(a)},v2c:function(){gx.fn.setControlValue("vSCRCODCATEGORIA",gx.O.AV8ScrCodCategoria,0)},c2v:function(){gx.O.AV8ScrCodCategoria=this.val()},val:function(){return gx.fn.getIntegerValue("vSCRCODCATEGORIA",".")},nac:function(){return false}};this.GXValidFnc[38]={fld:"TEXTBLOCK6",format:0,grid:0};this.GXValidFnc[40]={lvl:0,type:"char",len:30,dec:0,sign:false,ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,fld:"vSCRDSCCATEGORIA",gxz:"ZV9ScrDscCategoria",gxold:"OV9ScrDscCategoria",gxvar:"AV9ScrDscCategoria",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV9ScrDscCategoria=a
},v2z:function(a){gx.O.ZV9ScrDscCategoria=a},v2c:function(){gx.fn.setControlValue("vSCRDSCCATEGORIA",gx.O.AV9ScrDscCategoria,0)},c2v:function(){gx.O.AV9ScrDscCategoria=this.val()},val:function(){return gx.fn.getControlValue("vSCRDSCCATEGORIA")},nac:function(){return false}};this.GXValidFnc[44]={lvl:2,type:"int",len:6,dec:0,sign:false,pic:"ZZZZZ9",ro:1,grid:43,gxgrid:this.Grid1Container,fnc:null,isvalid:null,rgrid:[],fld:"vGRDNRODOCUMENTO",gxz:"ZV29GrdNroDocumento",gxold:"OV29GrdNroDocumento",gxvar:"AV29GrdNroDocumento",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV29GrdNroDocumento=gx.num.intval(a)
},v2z:function(a){gx.O.ZV29GrdNroDocumento=gx.num.intval(a)},v2c:function(){gx.fn.setGridControlValue("vGRDNRODOCUMENTO",gx.fn.currentGridRowImpl(43),gx.O.AV29GrdNroDocumento,0)},c2v:function(){gx.O.AV29GrdNroDocumento=this.val()},val:function(){return gx.fn.getGridIntegerValue("vGRDNRODOCUMENTO",gx.fn.currentGridRowImpl(43),".")},nac:function(){return false}};this.GXValidFnc[45]={lvl:2,type:"int",len:9,dec:0,sign:false,pic:"ZZZZZZZZ9",ro:1,grid:43,gxgrid:this.Grid1Container,fnc:null,isvalid:null,rgrid:[],fld:"vGRDNROTOMBO",gxz:"ZV30GrdNroTombo",gxold:"OV30GrdNroTombo",gxvar:"AV30GrdNroTombo",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV30GrdNroTombo=gx.num.intval(a)
},v2z:function(a){gx.O.ZV30GrdNroTombo=gx.num.intval(a)},v2c:function(){gx.fn.setGridControlValue("vGRDNROTOMBO",gx.fn.currentGridRowImpl(43),gx.O.AV30GrdNroTombo,0)},c2v:function(){gx.O.AV30GrdNroTombo=this.val()},val:function(){return gx.fn.getGridIntegerValue("vGRDNROTOMBO",gx.fn.currentGridRowImpl(43),".")},nac:function(){return false}};this.GXValidFnc[46]={lvl:2,type:"char",len:250,dec:0,sign:false,ro:1,grid:43,gxgrid:this.Grid1Container,fnc:null,isvalid:null,fld:"vGRDDSCTITULO",gxz:"ZV31GrdDscTitulo",gxold:"OV31GrdDscTitulo",gxvar:"AV31GrdDscTitulo",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV31GrdDscTitulo=a
},v2z:function(a){gx.O.ZV31GrdDscTitulo=a},v2c:function(){gx.fn.setGridControlValue("vGRDDSCTITULO",gx.fn.currentGridRowImpl(43),gx.O.AV31GrdDscTitulo,0)},c2v:function(){gx.O.AV31GrdDscTitulo=this.val()},val:function(){return gx.fn.getGridControlValue("vGRDDSCTITULO",gx.fn.currentGridRowImpl(43))},nac:function(){return false}};this.GXValidFnc[47]={lvl:2,type:"char",len:100,dec:0,sign:false,ro:1,grid:43,gxgrid:this.Grid1Container,fnc:null,isvalid:null,fld:"vGRDNOMAUTOR",gxz:"ZV34GrdNomAutor",gxold:"OV34GrdNomAutor",gxvar:"AV34GrdNomAutor",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV34GrdNomAutor=a
},v2z:function(a){gx.O.ZV34GrdNomAutor=a},v2c:function(){gx.fn.setGridControlValue("vGRDNOMAUTOR",gx.fn.currentGridRowImpl(43),gx.O.AV34GrdNomAutor,0)},c2v:function(){gx.O.AV34GrdNomAutor=this.val()},val:function(){return gx.fn.getGridControlValue("vGRDNOMAUTOR",gx.fn.currentGridRowImpl(43))},nac:function(){return false}};this.GXValidFnc[48]={lvl:2,type:"char",len:40,dec:0,sign:false,ro:1,grid:43,gxgrid:this.Grid1Container,fnc:null,isvalid:null,fld:"vGRDDSCCHAMADA",gxz:"ZV32GrdDscChamada",gxold:"OV32GrdDscChamada",gxvar:"AV32GrdDscChamada",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV32GrdDscChamada=a
},v2z:function(a){gx.O.ZV32GrdDscChamada=a},v2c:function(){gx.fn.setGridControlValue("vGRDDSCCHAMADA",gx.fn.currentGridRowImpl(43),gx.O.AV32GrdDscChamada,0)},c2v:function(){gx.O.AV32GrdDscChamada=this.val()},val:function(){return gx.fn.getGridControlValue("vGRDDSCCHAMADA",gx.fn.currentGridRowImpl(43))},nac:function(){return false}};this.GXValidFnc[49]={lvl:2,type:"char",len:4,dec:0,sign:false,ro:1,grid:43,gxgrid:this.Grid1Container,fnc:null,isvalid:null,fld:"vGRDNROEDICAO",gxz:"ZV35GrdNroEdicao",gxold:"OV35GrdNroEdicao",gxvar:"AV35GrdNroEdicao",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV35GrdNroEdicao=a
},v2z:function(a){gx.O.ZV35GrdNroEdicao=a},v2c:function(){gx.fn.setGridControlValue("vGRDNROEDICAO",gx.fn.currentGridRowImpl(43),gx.O.AV35GrdNroEdicao,0)},c2v:function(){gx.O.AV35GrdNroEdicao=this.val()},val:function(){return gx.fn.getGridControlValue("vGRDNROEDICAO",gx.fn.currentGridRowImpl(43))},nac:function(){return false}};this.GXValidFnc[50]={lvl:2,type:"int",len:4,dec:0,sign:false,pic:"ZZZ9",ro:1,grid:43,gxgrid:this.Grid1Container,fnc:null,isvalid:null,rgrid:[],fld:"vGRDANOEDICAO",gxz:"ZV33GrdAnoEdicao",gxold:"OV33GrdAnoEdicao",gxvar:"AV33GrdAnoEdicao",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV33GrdAnoEdicao=gx.num.intval(a)
},v2z:function(a){gx.O.ZV33GrdAnoEdicao=gx.num.intval(a)},v2c:function(){gx.fn.setGridControlValue("vGRDANOEDICAO",gx.fn.currentGridRowImpl(43),gx.O.AV33GrdAnoEdicao,0)},c2v:function(){gx.O.AV33GrdAnoEdicao=this.val()},val:function(){return gx.fn.getGridIntegerValue("vGRDANOEDICAO",gx.fn.currentGridRowImpl(43),".")},nac:function(){return false}};this.GXValidFnc[52]={fld:"PROMPT_SCRNROUNIDADEDE",grid:0};this.GXValidFnc[53]={fld:"PROMPT_SCRNROUNIDADEPARA",grid:0};this.AV5ScrNroUnidadeDE=0;this.ZV5ScrNroUnidadeDE=0;
this.OV5ScrNroUnidadeDE=0;this.AV6ScrNroUnidadePARA=0;this.ZV6ScrNroUnidadePARA=0;this.OV6ScrNroUnidadePARA=0;this.AV7ScrValListaTombos="";this.ZV7ScrValListaTombos="";this.OV7ScrValListaTombos="";this.AV8ScrCodCategoria=0;this.ZV8ScrCodCategoria=0;this.OV8ScrCodCategoria=0;this.AV9ScrDscCategoria="";this.ZV9ScrDscCategoria="";this.OV9ScrDscCategoria="";this.ZV29GrdNroDocumento=0;this.OV29GrdNroDocumento=0;this.ZV30GrdNroTombo=0;this.OV30GrdNroTombo=0;this.ZV31GrdDscTitulo="";this.OV31GrdDscTitulo="";
this.ZV34GrdNomAutor="";this.OV34GrdNomAutor="";this.ZV32GrdDscChamada="";this.OV32GrdDscChamada="";this.ZV35GrdNroEdicao="";this.OV35GrdNroEdicao="";this.ZV33GrdAnoEdicao=0;this.OV33GrdAnoEdicao=0;this.AV29GrdNroDocumento=0;this.AV30GrdNroTombo=0;this.AV31GrdDscTitulo="";this.AV34GrdNomAutor="";this.AV32GrdDscChamada="";this.AV35GrdNroEdicao="";this.AV33GrdAnoEdicao=0;this.A1114DvoCodUnid=0;this.A315DvoNroTomb=0;this.A258DocNro=0;this.A232DocAnoEdic=0;this.A922UndCod=0;this.A281DoeNroSequ=0;this.A317DvoNroVolu=0;
this.A316DvoNroTomo=0;this.A1113DvoTipSitu="";this.ServerEvents=["e11j92_client","e12j92_client","e15j92_client"];this.setPrompt("PROMPT_SCRNROUNIDADEDE",[18]);this.setPrompt("PROMPT_SCRNROUNIDADEPARA",[23]);this.EnterCtrl=["BUTTON1"];this.VarControlMap.AV25SdtRolTombos={id:"vSDTROLTOMBOS",grid:0,type:"CollSdtDadosTombo"};this.Grid1Container.addRefreshingVar({rfrVar:"AV25SdtRolTombos"});this.SetStandaloneVars()}himh271.prototype=new gx.GxObject;gx.setParentObj(new himh271());