gx.evt.autoSkip=false;function himh274(){this.ServerClass="HImh274";this.PackageName="";this.setObjectType("web");this.hasEnterEvent=true;this.SetStandaloneVars=function(){};this.e11jc2_client=function(){this.executeServerEvent("ENTER",true)};this.e12jc2_client=function(){this.executeServerEvent("'VOLTAR'",false)};this.e16jc2_client=function(){this.executeServerEvent("CANCEL",true,arguments[0])};this.GXValidFnc=[];this.GXCtrlIds=[2,11,13,16,18,20,22,26,27,28,29,30,31,32,33,34,35,37];this.GXLastCtrlId=37;
this.Grid1Container=new gx.grid.grid(this,2,"WbpLvl2",25,"Grid1","Grid1","Grid1Container",this.CmpContext,this.IsMasterPage,"himh274",[],false,1,false,true,0,true,false,false,"",0,"px","Novo registro",true,false,false,null,null,false,"");this.Grid1Container.addSingleLineEdit("Grdcodunidadeatual",26,"vGRDCODUNIDADEATUAL","Atual","","GrdCodUnidadeAtual","int",0,"px",3,3,"right",null,[],"Grdcodunidadeatual","GrdCodUnidadeAtual",true,0,false,false);this.Grid1Container.addComboBox("Grdtipsituacao",27,"vGRDTIPSITUACAO","Situação","GrdTipSituacao","char",null,0,true,false,0,"px");
this.Grid1Container.addSingleLineEdit("Grdnrotombo",28,"vGRDNROTOMBO","Tombo","","GrdNroTombo","int",0,"px",9,9,"right",null,[],"Grdnrotombo","GrdNroTombo",true,0,false,false);this.Grid1Container.addSingleLineEdit("Grddsctitulo",29,"vGRDDSCTITULO","Título","","GrdDscTitulo","char",0,"px",250,250,"left",null,[],"Grddsctitulo","GrdDscTitulo",true,0,false,false);this.Grid1Container.addSingleLineEdit("Grdnomautor",30,"vGRDNOMAUTOR","Autor","","GrdNomAutor","char",0,"px",100,100,"left",null,[],"Grdnomautor","GrdNomAutor",true,0,false,false);
this.Grid1Container.addSingleLineEdit("Grddscchamada",31,"vGRDDSCCHAMADA","Chamada","","GrdDscChamada","char",0,"px",40,40,"left",null,[],"Grddscchamada","GrdDscChamada",true,0,false,false);this.Grid1Container.addSingleLineEdit("Grdnroedicao",32,"vGRDNROEDICAO","Edição","","GrdNroEdicao","char",0,"px",4,4,"left",null,[],"Grdnroedicao","GrdNroEdicao",true,0,false,false);this.Grid1Container.addSingleLineEdit("Grdanoedicao",33,"vGRDANOEDICAO","Ano","","GrdAnoEdicao","int",0,"px",4,4,"right",null,[],"Grdanoedicao","GrdAnoEdicao",true,0,false,false);
this.Grid1Container.addSingleLineEdit("Grdcodunidadeorigem",34,"vGRDCODUNIDADEORIGEM","Origem","","GrdCodUnidadeOrigem","int",0,"px",3,3,"right",null,[],"Grdcodunidadeorigem","GrdCodUnidadeOrigem",true,0,false,false);this.Grid1Container.addSingleLineEdit("Grdnrodocumento",35,"vGRDNRODOCUMENTO","Doc.","","GrdNroDocumento","int",0,"px",6,6,"right",null,[],"Grdnrodocumento","GrdNroDocumento",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:"TEXTBLOCK5",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:"vSCRCODUNIDADEDEPOSITARIA",gxz:"ZV24ScrCodUnidadeDepositaria",gxold:"OV24ScrCodUnidadeDepositaria",gxvar:"AV24ScrCodUnidadeDepositaria",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV24ScrCodUnidadeDepositaria=gx.num.intval(a)},v2z:function(a){gx.O.ZV24ScrCodUnidadeDepositaria=gx.num.intval(a)
},v2c:function(){gx.fn.setControlValue("vSCRCODUNIDADEDEPOSITARIA",gx.O.AV24ScrCodUnidadeDepositaria,0)},c2v:function(){gx.O.AV24ScrCodUnidadeDepositaria=this.val()},val:function(){return gx.fn.getIntegerValue("vSCRCODUNIDADEDEPOSITARIA",".")},nac:function(){return false}};this.GXValidFnc[20]={fld:"TEXTBLOCK2",format:0,grid:0};this.GXValidFnc[22]={lvl:0,type:"int",len:3,dec:0,sign:false,pic:"ZZ9",ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,rgrid:[],fld:"vSCRQTDLINHAS",gxz:"ZV43ScrQtdLinhas",gxold:"OV43ScrQtdLinhas",gxvar:"AV43ScrQtdLinhas",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV43ScrQtdLinhas=gx.num.intval(a)
},v2z:function(a){gx.O.ZV43ScrQtdLinhas=gx.num.intval(a)},v2c:function(){gx.fn.setControlValue("vSCRQTDLINHAS",gx.O.AV43ScrQtdLinhas,0)},c2v:function(){gx.O.AV43ScrQtdLinhas=this.val()},val:function(){return gx.fn.getIntegerValue("vSCRQTDLINHAS",".")},nac:function(){return false}};this.GXValidFnc[26]={lvl:2,type:"int",len:3,dec:0,sign:false,pic:"ZZ9",ro:1,grid:25,gxgrid:this.Grid1Container,fnc:null,isvalid:null,rgrid:[],fld:"vGRDCODUNIDADEATUAL",gxz:"ZV41GrdCodUnidadeAtual",gxold:"OV41GrdCodUnidadeAtual",gxvar:"AV41GrdCodUnidadeAtual",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV41GrdCodUnidadeAtual=gx.num.intval(a)
},v2z:function(a){gx.O.ZV41GrdCodUnidadeAtual=gx.num.intval(a)},v2c:function(){gx.fn.setGridControlValue("vGRDCODUNIDADEATUAL",gx.fn.currentGridRowImpl(25),gx.O.AV41GrdCodUnidadeAtual,0)},c2v:function(){gx.O.AV41GrdCodUnidadeAtual=this.val()},val:function(){return gx.fn.getGridIntegerValue("vGRDCODUNIDADEATUAL",gx.fn.currentGridRowImpl(25),".")},nac:function(){return false}};this.GXValidFnc[27]={lvl:2,type:"char",len:1,dec:0,sign:false,ro:1,grid:25,gxgrid:this.Grid1Container,fnc:null,isvalid:null,fld:"vGRDTIPSITUACAO",gxz:"ZV40GrdTipSituacao",gxold:"OV40GrdTipSituacao",gxvar:"AV40GrdTipSituacao",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"combo",v2v:function(a){gx.O.AV40GrdTipSituacao=a
},v2z:function(a){gx.O.ZV40GrdTipSituacao=a},v2c:function(){gx.fn.setGridComboBoxValue("vGRDTIPSITUACAO",gx.fn.currentGridRowImpl(25),gx.O.AV40GrdTipSituacao)},c2v:function(){gx.O.AV40GrdTipSituacao=this.val()},val:function(){return gx.fn.getGridControlValue("vGRDTIPSITUACAO",gx.fn.currentGridRowImpl(25))},nac:function(){return false}};this.GXValidFnc[28]={lvl:2,type:"int",len:9,dec:0,sign:false,pic:"ZZZZZZZZ9",ro:1,grid:25,gxgrid:this.Grid1Container,fnc:null,isvalid:null,rgrid:[],fld:"vGRDNROTOMBO",gxz:"ZV20GrdNroTombo",gxold:"OV20GrdNroTombo",gxvar:"AV20GrdNroTombo",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV20GrdNroTombo=gx.num.intval(a)
},v2z:function(a){gx.O.ZV20GrdNroTombo=gx.num.intval(a)},v2c:function(){gx.fn.setGridControlValue("vGRDNROTOMBO",gx.fn.currentGridRowImpl(25),gx.O.AV20GrdNroTombo,0)},c2v:function(){gx.O.AV20GrdNroTombo=this.val()},val:function(){return gx.fn.getGridIntegerValue("vGRDNROTOMBO",gx.fn.currentGridRowImpl(25),".")},nac:function(){return false}};this.GXValidFnc[29]={lvl:2,type:"char",len:250,dec:0,sign:false,ro:1,grid:25,gxgrid:this.Grid1Container,fnc:null,isvalid:null,fld:"vGRDDSCTITULO",gxz:"ZV14GrdDscTitulo",gxold:"OV14GrdDscTitulo",gxvar:"AV14GrdDscTitulo",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV14GrdDscTitulo=a
},v2z:function(a){gx.O.ZV14GrdDscTitulo=a},v2c:function(){gx.fn.setGridControlValue("vGRDDSCTITULO",gx.fn.currentGridRowImpl(25),gx.O.AV14GrdDscTitulo,0)},c2v:function(){gx.O.AV14GrdDscTitulo=this.val()},val:function(){return gx.fn.getGridControlValue("vGRDDSCTITULO",gx.fn.currentGridRowImpl(25))},nac:function(){return false}};this.GXValidFnc[30]={lvl:2,type:"char",len:100,dec:0,sign:false,ro:1,grid:25,gxgrid:this.Grid1Container,fnc:null,isvalid:null,fld:"vGRDNOMAUTOR",gxz:"ZV16GrdNomAutor",gxold:"OV16GrdNomAutor",gxvar:"AV16GrdNomAutor",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV16GrdNomAutor=a
},v2z:function(a){gx.O.ZV16GrdNomAutor=a},v2c:function(){gx.fn.setGridControlValue("vGRDNOMAUTOR",gx.fn.currentGridRowImpl(25),gx.O.AV16GrdNomAutor,0)},c2v:function(){gx.O.AV16GrdNomAutor=this.val()},val:function(){return gx.fn.getGridControlValue("vGRDNOMAUTOR",gx.fn.currentGridRowImpl(25))},nac:function(){return false}};this.GXValidFnc[31]={lvl:2,type:"char",len:40,dec:0,sign:false,ro:1,grid:25,gxgrid:this.Grid1Container,fnc:null,isvalid:null,fld:"vGRDDSCCHAMADA",gxz:"ZV13GrdDscChamada",gxold:"OV13GrdDscChamada",gxvar:"AV13GrdDscChamada",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV13GrdDscChamada=a
},v2z:function(a){gx.O.ZV13GrdDscChamada=a},v2c:function(){gx.fn.setGridControlValue("vGRDDSCCHAMADA",gx.fn.currentGridRowImpl(25),gx.O.AV13GrdDscChamada,0)},c2v:function(){gx.O.AV13GrdDscChamada=this.val()},val:function(){return gx.fn.getGridControlValue("vGRDDSCCHAMADA",gx.fn.currentGridRowImpl(25))},nac:function(){return false}};this.GXValidFnc[32]={lvl:2,type:"char",len:4,dec:0,sign:false,ro:1,grid:25,gxgrid:this.Grid1Container,fnc:null,isvalid:null,fld:"vGRDNROEDICAO",gxz:"ZV18GrdNroEdicao",gxold:"OV18GrdNroEdicao",gxvar:"AV18GrdNroEdicao",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV18GrdNroEdicao=a
},v2z:function(a){gx.O.ZV18GrdNroEdicao=a},v2c:function(){gx.fn.setGridControlValue("vGRDNROEDICAO",gx.fn.currentGridRowImpl(25),gx.O.AV18GrdNroEdicao,0)},c2v:function(){gx.O.AV18GrdNroEdicao=this.val()},val:function(){return gx.fn.getGridControlValue("vGRDNROEDICAO",gx.fn.currentGridRowImpl(25))},nac:function(){return false}};this.GXValidFnc[33]={lvl:2,type:"int",len:4,dec:0,sign:false,pic:"ZZZ9",ro:1,grid:25,gxgrid:this.Grid1Container,fnc:null,isvalid:null,rgrid:[],fld:"vGRDANOEDICAO",gxz:"ZV8GrdAnoEdicao",gxold:"OV8GrdAnoEdicao",gxvar:"AV8GrdAnoEdicao",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV8GrdAnoEdicao=gx.num.intval(a)
},v2z:function(a){gx.O.ZV8GrdAnoEdicao=gx.num.intval(a)},v2c:function(){gx.fn.setGridControlValue("vGRDANOEDICAO",gx.fn.currentGridRowImpl(25),gx.O.AV8GrdAnoEdicao,0)},c2v:function(){gx.O.AV8GrdAnoEdicao=this.val()},val:function(){return gx.fn.getGridIntegerValue("vGRDANOEDICAO",gx.fn.currentGridRowImpl(25),".")},nac:function(){return false}};this.GXValidFnc[34]={lvl:2,type:"int",len:3,dec:0,sign:false,pic:"ZZ9",ro:1,grid:25,gxgrid:this.Grid1Container,fnc:null,isvalid:null,rgrid:[],fld:"vGRDCODUNIDADEORIGEM",gxz:"ZV10GrdCodUnidadeOrigem",gxold:"OV10GrdCodUnidadeOrigem",gxvar:"AV10GrdCodUnidadeOrigem",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV10GrdCodUnidadeOrigem=gx.num.intval(a)
},v2z:function(a){gx.O.ZV10GrdCodUnidadeOrigem=gx.num.intval(a)},v2c:function(){gx.fn.setGridControlValue("vGRDCODUNIDADEORIGEM",gx.fn.currentGridRowImpl(25),gx.O.AV10GrdCodUnidadeOrigem,0)},c2v:function(){gx.O.AV10GrdCodUnidadeOrigem=this.val()},val:function(){return gx.fn.getGridIntegerValue("vGRDCODUNIDADEORIGEM",gx.fn.currentGridRowImpl(25),".")},nac:function(){return false}};this.GXValidFnc[35]={lvl:2,type:"int",len:6,dec:0,sign:false,pic:"ZZZZZ9",ro:1,grid:25,gxgrid:this.Grid1Container,fnc:null,isvalid:null,rgrid:[],fld:"vGRDNRODOCUMENTO",gxz:"ZV17GrdNroDocumento",gxold:"OV17GrdNroDocumento",gxvar:"AV17GrdNroDocumento",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV17GrdNroDocumento=gx.num.intval(a)
},v2z:function(a){gx.O.ZV17GrdNroDocumento=gx.num.intval(a)},v2c:function(){gx.fn.setGridControlValue("vGRDNRODOCUMENTO",gx.fn.currentGridRowImpl(25),gx.O.AV17GrdNroDocumento,0)},c2v:function(){gx.O.AV17GrdNroDocumento=this.val()},val:function(){return gx.fn.getGridIntegerValue("vGRDNRODOCUMENTO",gx.fn.currentGridRowImpl(25),".")},nac:function(){return false}};this.GXValidFnc[37]={fld:"PROMPT_SCRCODUNIDADEDEPOSITARIA",grid:0};this.AV24ScrCodUnidadeDepositaria=0;this.ZV24ScrCodUnidadeDepositaria=0;
this.OV24ScrCodUnidadeDepositaria=0;this.AV43ScrQtdLinhas=0;this.ZV43ScrQtdLinhas=0;this.OV43ScrQtdLinhas=0;this.ZV41GrdCodUnidadeAtual=0;this.OV41GrdCodUnidadeAtual=0;this.ZV40GrdTipSituacao="";this.OV40GrdTipSituacao="";this.ZV20GrdNroTombo=0;this.OV20GrdNroTombo=0;this.ZV14GrdDscTitulo="";this.OV14GrdDscTitulo="";this.ZV16GrdNomAutor="";this.OV16GrdNomAutor="";this.ZV13GrdDscChamada="";this.OV13GrdDscChamada="";this.ZV18GrdNroEdicao="";this.OV18GrdNroEdicao="";this.ZV8GrdAnoEdicao=0;this.OV8GrdAnoEdicao=0;
this.ZV10GrdCodUnidadeOrigem=0;this.OV10GrdCodUnidadeOrigem=0;this.ZV17GrdNroDocumento=0;this.OV17GrdNroDocumento=0;this.AV41GrdCodUnidadeAtual=0;this.AV40GrdTipSituacao="";this.AV20GrdNroTombo=0;this.AV14GrdDscTitulo="";this.AV16GrdNomAutor="";this.AV13GrdDscChamada="";this.AV18GrdNroEdicao="";this.AV8GrdAnoEdicao=0;this.AV10GrdCodUnidadeOrigem=0;this.AV17GrdNroDocumento=0;this.A1113DvoTipSitu="";this.A1114DvoCodUnid=0;this.A315DvoNroTomb=0;this.A258DocNro=0;this.A232DocAnoEdic=0;this.A922UndCod=0;
this.A926UndNomSigl="";this.ServerEvents=["e11jc2_client","e12jc2_client","e16jc2_client"];this.setPrompt("PROMPT_SCRCODUNIDADEDEPOSITARIA",[18]);this.EnterCtrl=["BUTTON2"];this.VarControlMap.A232DocAnoEdic={id:"DOCANOEDIC",grid:0,type:"int"};this.VarControlMap.A258DocNro={id:"DOCNRO",grid:0,type:"int"};this.VarControlMap.A315DvoNroTomb={id:"DVONROTOMB",grid:0,type:"int"};this.VarControlMap.A1113DvoTipSitu={id:"DVOTIPSITU",grid:0,type:"char"};this.VarControlMap.A1114DvoCodUnid={id:"DVOCODUNID",grid:0,type:"int"};
this.VarControlMap.A926UndNomSigl={id:"UNDNOMSIGL",grid:0,type:"char"};this.VarControlMap.A922UndCod={id:"UNDCOD",grid:0,type:"int"};this.VarControlMap.AV31UsuCodCorr={id:"vUSUCODCORR",grid:0,type:"char"};this.Grid1Container.addRefreshingVar({rfrVar:"A232DocAnoEdic"});this.Grid1Container.addRefreshingVar({rfrVar:"A258DocNro"});this.Grid1Container.addRefreshingVar({rfrVar:"A315DvoNroTomb"});this.Grid1Container.addRefreshingVar({rfrVar:"A1113DvoTipSitu"});this.Grid1Container.addRefreshingVar({rfrVar:"A1114DvoCodUnid"});
this.Grid1Container.addRefreshingVar({rfrVar:"A926UndNomSigl"});this.Grid1Container.addRefreshingVar({rfrVar:"A922UndCod"});this.Grid1Container.addRefreshingVar(this.GXValidFnc[18]);this.Grid1Container.addRefreshingVar({rfrVar:"AV31UsuCodCorr"});this.SetStandaloneVars()}himh274.prototype=new gx.GxObject;gx.setParentObj(new himh274());