gx.evt.autoSkip=false;function himh251(){this.ServerClass="HImh251";this.PackageName="";this.setObjectType("web");this.hasEnterEvent=true;this.autoRefresh=true;this.SetStandaloneVars=function(){};this.e16if2_client=function(){this.executeServerEvent("ENTER",true,arguments[0])};this.e12if2_client=function(){this.executeServerEvent("'VOLTAR'",false)};this.e13if2_client=function(){this.executeServerEvent("'REMOVER'",false)};this.e17if2_client=function(){this.executeServerEvent("CANCEL",true,arguments[0])
};this.GXValidFnc=[];this.GXCtrlIds=[2,13,16,19,21,23,25,27,32,33,34,35,36,37,38,39,40,42];this.GXLastCtrlId=42;this.GridtombosContainer=new gx.grid.grid(this,2,"WbpLvl2",31,"Gridtombos","Gridtombos","GridtombosContainer",this.CmpContext,this.IsMasterPage,"himh251",[],false,1,true,true,15,true,false,false,"",0,"px","Novo registro",true,false,true,null,null,false,"");this.GridtombosContainer.addSingleLineEdit("Grdcodchave",32,"vGRDCODCHAVE","Grd Cod Chave","","GrdCodChave","char",0,"px",30,30,"left",null,[],"Grdcodchave","GrdCodChave",false,0,false,false);
this.GridtombosContainer.addCheckBox("Grdindselecionado",33,"vGRDINDSELECIONADO","","","GrdIndSelecionado","char","S","N",null,true,false,0,"px");this.GridtombosContainer.addSingleLineEdit("Grdnrodocumento",34,"vGRDNRODOCUMENTO","Doc.","","GrdNroDocumento","int",0,"px",6,6,"right",null,[],"Grdnrodocumento","GrdNroDocumento",true,0,false,false);this.GridtombosContainer.addSingleLineEdit("Grdnrounidade",35,"vGRDNROUNIDADE","Und.","","GrdNroUnidade","int",0,"px",3,3,"right",null,[],"Grdnrounidade","GrdNroUnidade",true,0,false,false);
this.GridtombosContainer.addSingleLineEdit("Grdnrotombo",36,"vGRDNROTOMBO","Tombo","","GrdNroTombo","int",0,"px",9,9,"right",null,[],"Grdnrotombo","GrdNroTombo",true,0,false,false);this.GridtombosContainer.addSingleLineEdit("Grddestitulosubtitulo",37,"vGRDDESTITULOSUBTITULO","Título","","GrdDesTituloSubtitulo","char",0,"px",150,150,"left",null,[],"Grddestitulosubtitulo","GrdDesTituloSubtitulo",true,0,false,false);this.GridtombosContainer.addSingleLineEdit("Grdnomautor",38,"vGRDNOMAUTOR","Autor","","GrdNomAutor","char",0,"px",250,250,"left",null,[],"Grdnomautor","GrdNomAutor",true,0,false,false);
this.GridtombosContainer.addSingleLineEdit("Grddscanoedicao",39,"vGRDDSCANOEDICAO","Edição","","GrdDscAnoEdicao","char",0,"px",5,5,"left",null,[],"Grddscanoedicao","GrdDscAnoEdicao",true,0,false,false);this.GridtombosContainer.addSingleLineEdit("Grdnomeditora",40,"vGRDNOMEDITORA","Editora","","GrdNomEditora","char",0,"px",100,100,"left",null,[],"Grdnomeditora","GrdNomEditora",true,0,false,false);this.setGrid(this.GridtombosContainer);this.GXValidFnc[2]={fld:"TABLE1",grid:0};this.GXValidFnc[13]={fld:"TEXTBLOCK1",format:0,grid:0};
this.GXValidFnc[16]={fld:"TABLE2",grid:0};this.GXValidFnc[19]={fld:"TEXTBLOCK2",format:0,grid:0};this.GXValidFnc[21]={lvl:0,type:"date",len:10,dec:0,sign:false,ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,fld:"vSCRDATINVENTARIO",gxz:"ZV6ScrDatInventario",gxold:"OV6ScrDatInventario",gxvar:"AV6ScrDatInventario",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.AV6ScrDatInventario=gx.fn.toDatetimeValue(a)},v2z:function(a){gx.O.ZV6ScrDatInventario=gx.fn.toDatetimeValue(a)
},v2c:function(){gx.fn.setControlValue("vSCRDATINVENTARIO",gx.O.AV6ScrDatInventario,0)},c2v:function(){gx.O.AV6ScrDatInventario=this.val()},val:function(){return gx.fn.getControlValue("vSCRDATINVENTARIO")},nac:function(){return false}};this.GXValidFnc[23]={fld:"TEXTBLOCK3",format:0,grid:0};this.GXValidFnc[25]={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:"ZV21ScrCodUnidadeDepositaria",gxold:"OV21ScrCodUnidadeDepositaria",gxvar:"AV21ScrCodUnidadeDepositaria",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV21ScrCodUnidadeDepositaria=gx.num.intval(a)
},v2z:function(a){gx.O.ZV21ScrCodUnidadeDepositaria=gx.num.intval(a)},v2c:function(){gx.fn.setControlValue("vSCRCODUNIDADEDEPOSITARIA",gx.O.AV21ScrCodUnidadeDepositaria,0)},c2v:function(){gx.O.AV21ScrCodUnidadeDepositaria=this.val()},val:function(){return gx.fn.getIntegerValue("vSCRCODUNIDADEDEPOSITARIA",".")},nac:function(){return false}};this.GXValidFnc[27]={lvl:0,type:"char",len:1,dec:0,sign:false,ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,fld:"vSCRINDCONFIRMAR",gxz:"ZV19ScrIndConfirmar",gxold:"OV19ScrIndConfirmar",gxvar:"AV19ScrIndConfirmar",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"checkbox",v2v:function(a){gx.O.AV19ScrIndConfirmar=a
},v2z:function(a){gx.O.ZV19ScrIndConfirmar=a},v2c:function(){gx.fn.setCheckBoxValue("vSCRINDCONFIRMAR",gx.O.AV19ScrIndConfirmar,"S")},c2v:function(){gx.O.AV19ScrIndConfirmar=this.val()},val:function(){return gx.fn.getCheckBoxValue("vSCRINDCONFIRMAR","S","N")},nac:function(){return false}};this.GXValidFnc[32]={lvl:2,type:"char",len:30,dec:0,sign:false,ro:0,grid:31,gxgrid:this.GridtombosContainer,fnc:null,isvalid:null,fld:"vGRDCODCHAVE",gxz:"ZV17GrdCodChave",gxold:"OV17GrdCodChave",gxvar:"AV17GrdCodChave",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV17GrdCodChave=a
},v2z:function(a){gx.O.ZV17GrdCodChave=a},v2c:function(){gx.fn.setGridControlValue("vGRDCODCHAVE",gx.fn.currentGridRowImpl(31),gx.O.AV17GrdCodChave,0)},c2v:function(){gx.O.AV17GrdCodChave=this.val()},val:function(){return gx.fn.getGridControlValue("vGRDCODCHAVE",gx.fn.currentGridRowImpl(31))},nac:function(){return false}};this.GXValidFnc[33]={lvl:2,type:"char",len:1,dec:0,sign:false,ro:0,grid:31,gxgrid:this.GridtombosContainer,fnc:null,isvalid:null,fld:"vGRDINDSELECIONADO",gxz:"ZV18GrdIndSelecionado",gxold:"OV18GrdIndSelecionado",gxvar:"AV18GrdIndSelecionado",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"checkbox",v2v:function(a){gx.O.AV18GrdIndSelecionado=a
},v2z:function(a){gx.O.ZV18GrdIndSelecionado=a},v2c:function(){gx.fn.setGridCheckBoxValue("vGRDINDSELECIONADO",gx.fn.currentGridRowImpl(31),gx.O.AV18GrdIndSelecionado,"S")},c2v:function(){gx.O.AV18GrdIndSelecionado=this.val()},val:function(){return gx.fn.getGridCheckBoxValue("vGRDINDSELECIONADO",gx.fn.currentGridRowImpl(31),"S","N")},nac:function(){return false}};this.GXValidFnc[34]={lvl:2,type:"int",len:6,dec:0,sign:false,pic:"ZZZZZ9",ro:0,grid:31,gxgrid:this.GridtombosContainer,fnc:null,isvalid:null,rgrid:[],fld:"vGRDNRODOCUMENTO",gxz:"ZV16GrdNroDocumento",gxold:"OV16GrdNroDocumento",gxvar:"AV16GrdNroDocumento",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV16GrdNroDocumento=gx.num.intval(a)
},v2z:function(a){gx.O.ZV16GrdNroDocumento=gx.num.intval(a)},v2c:function(){gx.fn.setGridControlValue("vGRDNRODOCUMENTO",gx.fn.currentGridRowImpl(31),gx.O.AV16GrdNroDocumento,0)},c2v:function(){gx.O.AV16GrdNroDocumento=this.val()},val:function(){return gx.fn.getGridIntegerValue("vGRDNRODOCUMENTO",gx.fn.currentGridRowImpl(31),".")},nac:function(){return false}};this.GXValidFnc[35]={lvl:2,type:"int",len:3,dec:0,sign:false,pic:"ZZ9",ro:0,grid:31,gxgrid:this.GridtombosContainer,fnc:null,isvalid:null,rgrid:[],fld:"vGRDNROUNIDADE",gxz:"ZV20GrdNroUnidade",gxold:"OV20GrdNroUnidade",gxvar:"AV20GrdNroUnidade",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV20GrdNroUnidade=gx.num.intval(a)
},v2z:function(a){gx.O.ZV20GrdNroUnidade=gx.num.intval(a)},v2c:function(){gx.fn.setGridControlValue("vGRDNROUNIDADE",gx.fn.currentGridRowImpl(31),gx.O.AV20GrdNroUnidade,0)},c2v:function(){gx.O.AV20GrdNroUnidade=this.val()},val:function(){return gx.fn.getGridIntegerValue("vGRDNROUNIDADE",gx.fn.currentGridRowImpl(31),".")},nac:function(){return false}};this.GXValidFnc[36]={lvl:2,type:"int",len:9,dec:0,sign:false,pic:"ZZZZZZZZ9",ro:0,grid:31,gxgrid:this.GridtombosContainer,fnc:null,isvalid:null,rgrid:[],fld:"vGRDNROTOMBO",gxz:"ZV13GrdNroTombo",gxold:"OV13GrdNroTombo",gxvar:"AV13GrdNroTombo",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV13GrdNroTombo=gx.num.intval(a)
},v2z:function(a){gx.O.ZV13GrdNroTombo=gx.num.intval(a)},v2c:function(){gx.fn.setGridControlValue("vGRDNROTOMBO",gx.fn.currentGridRowImpl(31),gx.O.AV13GrdNroTombo,0)},c2v:function(){gx.O.AV13GrdNroTombo=this.val()},val:function(){return gx.fn.getGridIntegerValue("vGRDNROTOMBO",gx.fn.currentGridRowImpl(31),".")},nac:function(){return false}};this.GXValidFnc[37]={lvl:2,type:"char",len:150,dec:0,sign:false,ro:0,grid:31,gxgrid:this.GridtombosContainer,fnc:null,isvalid:null,fld:"vGRDDESTITULOSUBTITULO",gxz:"ZV15GrdDesTituloSubtitulo",gxold:"OV15GrdDesTituloSubtitulo",gxvar:"AV15GrdDesTituloSubtitulo",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV15GrdDesTituloSubtitulo=a
},v2z:function(a){gx.O.ZV15GrdDesTituloSubtitulo=a},v2c:function(){gx.fn.setGridControlValue("vGRDDESTITULOSUBTITULO",gx.fn.currentGridRowImpl(31),gx.O.AV15GrdDesTituloSubtitulo,0)},c2v:function(){gx.O.AV15GrdDesTituloSubtitulo=this.val()},val:function(){return gx.fn.getGridControlValue("vGRDDESTITULOSUBTITULO",gx.fn.currentGridRowImpl(31))},nac:function(){return false}};this.GXValidFnc[38]={lvl:2,type:"char",len:250,dec:0,sign:false,ro:0,grid:31,gxgrid:this.GridtombosContainer,fnc:null,isvalid:null,fld:"vGRDNOMAUTOR",gxz:"ZV11GrdNomAutor",gxold:"OV11GrdNomAutor",gxvar:"AV11GrdNomAutor",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV11GrdNomAutor=a
},v2z:function(a){gx.O.ZV11GrdNomAutor=a},v2c:function(){gx.fn.setGridControlValue("vGRDNOMAUTOR",gx.fn.currentGridRowImpl(31),gx.O.AV11GrdNomAutor,0)},c2v:function(){gx.O.AV11GrdNomAutor=this.val()},val:function(){return gx.fn.getGridControlValue("vGRDNOMAUTOR",gx.fn.currentGridRowImpl(31))},nac:function(){return false}};this.GXValidFnc[39]={lvl:2,type:"char",len:5,dec:0,sign:false,ro:0,grid:31,gxgrid:this.GridtombosContainer,fnc:null,isvalid:null,fld:"vGRDDSCANOEDICAO",gxz:"ZV14GrdDscAnoEdicao",gxold:"OV14GrdDscAnoEdicao",gxvar:"AV14GrdDscAnoEdicao",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV14GrdDscAnoEdicao=a
},v2z:function(a){gx.O.ZV14GrdDscAnoEdicao=a},v2c:function(){gx.fn.setGridControlValue("vGRDDSCANOEDICAO",gx.fn.currentGridRowImpl(31),gx.O.AV14GrdDscAnoEdicao,0)},c2v:function(){gx.O.AV14GrdDscAnoEdicao=this.val()},val:function(){return gx.fn.getGridControlValue("vGRDDSCANOEDICAO",gx.fn.currentGridRowImpl(31))},nac:function(){return false}};this.GXValidFnc[40]={lvl:2,type:"char",len:100,dec:0,sign:false,ro:0,grid:31,gxgrid:this.GridtombosContainer,fnc:null,isvalid:null,fld:"vGRDNOMEDITORA",gxz:"ZV12GrdNomEditora",gxold:"OV12GrdNomEditora",gxvar:"AV12GrdNomEditora",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV12GrdNomEditora=a
},v2z:function(a){gx.O.ZV12GrdNomEditora=a},v2c:function(){gx.fn.setGridControlValue("vGRDNOMEDITORA",gx.fn.currentGridRowImpl(31),gx.O.AV12GrdNomEditora,0)},c2v:function(){gx.O.AV12GrdNomEditora=this.val()},val:function(){return gx.fn.getGridControlValue("vGRDNOMEDITORA",gx.fn.currentGridRowImpl(31))},nac:function(){return false}};this.GXValidFnc[42]={fld:"PROMPT_SCRCODUNIDADEDEPOSITARIA",grid:0};this.AV6ScrDatInventario=gx.date.nullDate();this.ZV6ScrDatInventario=gx.date.nullDate();this.OV6ScrDatInventario=gx.date.nullDate();
this.AV21ScrCodUnidadeDepositaria=0;this.ZV21ScrCodUnidadeDepositaria=0;this.OV21ScrCodUnidadeDepositaria=0;this.AV19ScrIndConfirmar="";this.ZV19ScrIndConfirmar="";this.OV19ScrIndConfirmar="";this.ZV17GrdCodChave="";this.OV17GrdCodChave="";this.ZV18GrdIndSelecionado="";this.OV18GrdIndSelecionado="";this.ZV16GrdNroDocumento=0;this.OV16GrdNroDocumento=0;this.ZV20GrdNroUnidade=0;this.OV20GrdNroUnidade=0;this.ZV13GrdNroTombo=0;this.OV13GrdNroTombo=0;this.ZV15GrdDesTituloSubtitulo="";this.OV15GrdDesTituloSubtitulo="";
this.ZV11GrdNomAutor="";this.OV11GrdNomAutor="";this.ZV14GrdDscAnoEdicao="";this.OV14GrdDscAnoEdicao="";this.ZV12GrdNomEditora="";this.OV12GrdNomEditora="";this.AV17GrdCodChave="";this.AV18GrdIndSelecionado="";this.AV16GrdNroDocumento=0;this.AV20GrdNroUnidade=0;this.AV13GrdNroTombo=0;this.AV15GrdDesTituloSubtitulo="";this.AV11GrdNomAutor="";this.AV14GrdDscAnoEdicao="";this.AV12GrdNomEditora="";this.A315DvoNroTomb=0;this.A258DocNro=0;this.A922UndCod=0;this.ServerEvents=["e16if2_client","e12if2_client","e13if2_client","e17if2_client"];
this.setPrompt("PROMPT_SCRCODUNIDADEDEPOSITARIA",[25]);this.VarControlMap.A258DocNro={id:"DOCNRO",grid:0,type:"int"};this.VarControlMap.A922UndCod={id:"UNDCOD",grid:0,type:"int"};this.VarControlMap.A315DvoNroTomb={id:"DVONROTOMB",grid:0,type:"int"};this.VarControlMap.AV7SdtRolTabelaGenerica={id:"vSDTROLTABELAGENERICA",grid:0,type:"CollSdtTabelaGenerica"};this.GridtombosContainer.addRefreshingVar({rfrVar:"A258DocNro"});this.GridtombosContainer.addRefreshingVar({rfrVar:"A922UndCod"});this.GridtombosContainer.addRefreshingVar({rfrVar:"A315DvoNroTomb"});
this.GridtombosContainer.addRefreshingVar({rfrVar:"AV7SdtRolTabelaGenerica"});this.SetStandaloneVars()}himh251.prototype=new gx.GxObject;gx.setParentObj(new himh251());