gx.evt.autoSkip=false;function himh259(){this.ServerClass="HImh259";this.PackageName="";this.setObjectType("web");this.hasEnterEvent=true;this.autoRefresh=true;this.SetStandaloneVars=function(){};this.Validv_Scrcodunidadede=function(){try{var a=gx.util.balloon.getNew("vSCRCODUNIDADEDE");this.AnyError=0}catch(b){}try{if(a==null){return true}return a.show()}catch(b){}return true};this.Validv_Grdnrotombo=function(){try{var a=gx.util.balloon.getNew("vGRDNROTOMBO");this.AnyError=0}catch(b){}try{if(a==null){return true
}return a.show()}catch(b){}return true};this.e11iq2_client=function(){this.executeServerEvent("ENTER",true)};this.e12iq2_client=function(){this.executeServerEvent("'TRANSFERIR'",false)};this.e13iq2_client=function(){this.executeServerEvent("'VOLTAR'",false)};this.e16iq2_client=function(){this.executeServerEvent("CANCEL",true,arguments[0])};this.GXValidFnc=[];this.GXCtrlIds=[2,13,16,19,21,26,28,30,32,35,37,40,42,47,48,49,50,52,53,54];this.GXLastCtrlId=54;this.Grid1Container=new gx.grid.grid(this,2,"WbpLvl2",46,"Grid1","Grid1","Grid1Container",this.CmpContext,this.IsMasterPage,"himh259",[],false,1,false,true,0,false,false,false,"",0,"px","Novo registro",false,false,true,null,null,false,"");
this.Grid1Container.addSingleLineEdit("Grdnrotombo",47,"vGRDNROTOMBO","Tombo","","GrdNroTombo","int",0,"px",9,9,"right",null,[],"Grdnrotombo","GrdNroTombo",true,0,false,false);this.Grid1Container.addSingleLineEdit("Grddscespecificacao",48,"vGRDDSCESPECIFICACAO","Especificação","","GrdDscEspecificacao","char",0,"px",40,40,"left",null,[],"Grddscespecificacao","GrdDscEspecificacao",true,0,false,false);this.Grid1Container.addSingleLineEdit("Grddsctitulo",49,"vGRDDSCTITULO","Título","","GrdDscTitulo","char",0,"px",100,100,"left",null,[],"Grddsctitulo","GrdDscTitulo",true,0,false,false);
this.Grid1Container.addSingleLineEdit("Grddscautor",50,"vGRDDSCAUTOR","Autor","","GrdDscAutor","char",0,"px",100,100,"left",null,[],"Grddscautor","GrdDscAutor",true,0,false,false);this.setGrid(this.Grid1Container);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:"int",len:3,dec:0,sign:false,pic:"ZZ9",ro:0,grid:0,gxgrid:null,fnc:this.Validv_Scrcodunidadede,isvalid:null,rgrid:[],fld:"vSCRCODUNIDADEDE",gxz:"ZV6ScrCodUnidadeDE",gxold:"OV6ScrCodUnidadeDE",gxvar:"AV6ScrCodUnidadeDE",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV6ScrCodUnidadeDE=gx.num.intval(a)
},v2z:function(a){gx.O.ZV6ScrCodUnidadeDE=gx.num.intval(a)},v2c:function(){gx.fn.setControlValue("vSCRCODUNIDADEDE",gx.O.AV6ScrCodUnidadeDE,0)},c2v:function(){gx.O.AV6ScrCodUnidadeDE=this.val()},val:function(){return gx.fn.getIntegerValue("vSCRCODUNIDADEDE",".")},nac:function(){return false}};this.GXValidFnc[26]={fld:"TEXTBLOCK3",format:0,grid:0};this.GXValidFnc[28]={lvl:0,type:"int",len:3,dec:0,sign:false,pic:"ZZ9",ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,rgrid:[],fld:"vSCRCODUNIDADEPARA",gxz:"ZV7ScrCodUnidadePARA",gxold:"OV7ScrCodUnidadePARA",gxvar:"AV7ScrCodUnidadePARA",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV7ScrCodUnidadePARA=gx.num.intval(a)
},v2z:function(a){gx.O.ZV7ScrCodUnidadePARA=gx.num.intval(a)},v2c:function(){gx.fn.setControlValue("vSCRCODUNIDADEPARA",gx.O.AV7ScrCodUnidadePARA,0)},c2v:function(){gx.O.AV7ScrCodUnidadePARA=this.val()},val:function(){return gx.fn.getIntegerValue("vSCRCODUNIDADEPARA",".")},nac:function(){return false}};this.GXValidFnc[30]={fld:"TEXTBLOCK4",format:0,grid:0};this.GXValidFnc[32]={lvl:0,type:"int",len:3,dec:0,sign:false,pic:"ZZ9",ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,rgrid:[],fld:"vSCRNROLOCALPARA",gxz:"ZV8ScrNroLocalPARA",gxold:"OV8ScrNroLocalPARA",gxvar:"AV8ScrNroLocalPARA",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV8ScrNroLocalPARA=gx.num.intval(a)
},v2z:function(a){gx.O.ZV8ScrNroLocalPARA=gx.num.intval(a)},v2c:function(){gx.fn.setControlValue("vSCRNROLOCALPARA",gx.O.AV8ScrNroLocalPARA,0)},c2v:function(){gx.O.AV8ScrNroLocalPARA=this.val()},val:function(){return gx.fn.getIntegerValue("vSCRNROLOCALPARA",".")},nac:function(){return false}};this.GXValidFnc[35]={fld:"TEXTBLOCK5",format:0,grid:0};this.GXValidFnc[37]={lvl:0,type:"char",len:100,dec:0,sign:false,ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,fld:"vSCRROLDOCUMENTOS",gxz:"ZV9ScrRolDocumentos",gxold:"OV9ScrRolDocumentos",gxvar:"AV9ScrRolDocumentos",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV9ScrRolDocumentos=a
},v2z:function(a){gx.O.ZV9ScrRolDocumentos=a},v2c:function(){gx.fn.setControlValue("vSCRROLDOCUMENTOS",gx.O.AV9ScrRolDocumentos,0)},c2v:function(){gx.O.AV9ScrRolDocumentos=this.val()},val:function(){return gx.fn.getControlValue("vSCRROLDOCUMENTOS")},nac:function(){return false}};this.GXValidFnc[40]={fld:"TEXTBLOCK6",format:0,grid:0};this.GXValidFnc[42]={lvl:0,type:"char",len:100,dec:0,sign:false,ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,fld:"vSCRROLTOMBOS",gxz:"ZV10ScrRolTombos",gxold:"OV10ScrRolTombos",gxvar:"AV10ScrRolTombos",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV10ScrRolTombos=a
},v2z:function(a){gx.O.ZV10ScrRolTombos=a},v2c:function(){gx.fn.setControlValue("vSCRROLTOMBOS",gx.O.AV10ScrRolTombos,0)},c2v:function(){gx.O.AV10ScrRolTombos=this.val()},val:function(){return gx.fn.getControlValue("vSCRROLTOMBOS")},nac:function(){return false}};this.GXValidFnc[47]={lvl:2,type:"int",len:9,dec:0,sign:false,pic:"ZZZZZZZZ9",ro:0,grid:46,gxgrid:this.Grid1Container,fnc:this.Validv_Grdnrotombo,isvalid:null,rgrid:[],fld:"vGRDNROTOMBO",gxz:"ZV31GrdNroTombo",gxold:"OV31GrdNroTombo",gxvar:"AV31GrdNroTombo",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV31GrdNroTombo=gx.num.intval(a)
},v2z:function(a){gx.O.ZV31GrdNroTombo=gx.num.intval(a)},v2c:function(){gx.fn.setGridControlValue("vGRDNROTOMBO",gx.fn.currentGridRowImpl(46),gx.O.AV31GrdNroTombo,0)},c2v:function(){gx.O.AV31GrdNroTombo=this.val()},val:function(){return gx.fn.getGridIntegerValue("vGRDNROTOMBO",gx.fn.currentGridRowImpl(46),".")},nac:function(){return false}};this.GXValidFnc[48]={lvl:2,type:"char",len:40,dec:0,sign:false,ro:0,grid:46,gxgrid:this.Grid1Container,fnc:null,isvalid:null,fld:"vGRDDSCESPECIFICACAO",gxz:"ZV32GrdDscEspecificacao",gxold:"OV32GrdDscEspecificacao",gxvar:"AV32GrdDscEspecificacao",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV32GrdDscEspecificacao=a
},v2z:function(a){gx.O.ZV32GrdDscEspecificacao=a},v2c:function(){gx.fn.setGridControlValue("vGRDDSCESPECIFICACAO",gx.fn.currentGridRowImpl(46),gx.O.AV32GrdDscEspecificacao,0)},c2v:function(){gx.O.AV32GrdDscEspecificacao=this.val()},val:function(){return gx.fn.getGridControlValue("vGRDDSCESPECIFICACAO",gx.fn.currentGridRowImpl(46))},nac:function(){return false}};this.GXValidFnc[49]={lvl:2,type:"char",len:100,dec:0,sign:false,ro:0,grid:46,gxgrid:this.Grid1Container,fnc:null,isvalid:null,fld:"vGRDDSCTITULO",gxz:"ZV33GrdDscTitulo",gxold:"OV33GrdDscTitulo",gxvar:"AV33GrdDscTitulo",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV33GrdDscTitulo=a
},v2z:function(a){gx.O.ZV33GrdDscTitulo=a},v2c:function(){gx.fn.setGridControlValue("vGRDDSCTITULO",gx.fn.currentGridRowImpl(46),gx.O.AV33GrdDscTitulo,0)},c2v:function(){gx.O.AV33GrdDscTitulo=this.val()},val:function(){return gx.fn.getGridControlValue("vGRDDSCTITULO",gx.fn.currentGridRowImpl(46))},nac:function(){return false}};this.GXValidFnc[50]={lvl:2,type:"char",len:100,dec:0,sign:false,ro:0,grid:46,gxgrid:this.Grid1Container,fnc:null,isvalid:null,fld:"vGRDDSCAUTOR",gxz:"ZV34GrdDscAutor",gxold:"OV34GrdDscAutor",gxvar:"AV34GrdDscAutor",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV34GrdDscAutor=a
},v2z:function(a){gx.O.ZV34GrdDscAutor=a},v2c:function(){gx.fn.setGridControlValue("vGRDDSCAUTOR",gx.fn.currentGridRowImpl(46),gx.O.AV34GrdDscAutor,0)},c2v:function(){gx.O.AV34GrdDscAutor=this.val()},val:function(){return gx.fn.getGridControlValue("vGRDDSCAUTOR",gx.fn.currentGridRowImpl(46))},nac:function(){return false}};this.GXValidFnc[52]={fld:"PROMPT_SCRCODUNIDADEDE",grid:0};this.GXValidFnc[53]={fld:"PROMPT_SCRCODUNIDADEPARA",grid:0};this.GXValidFnc[54]={fld:"PROMPT_SCRNROLOCALPARA",grid:0};this.AV6ScrCodUnidadeDE=0;
this.ZV6ScrCodUnidadeDE=0;this.OV6ScrCodUnidadeDE=0;this.AV7ScrCodUnidadePARA=0;this.ZV7ScrCodUnidadePARA=0;this.OV7ScrCodUnidadePARA=0;this.AV8ScrNroLocalPARA=0;this.ZV8ScrNroLocalPARA=0;this.OV8ScrNroLocalPARA=0;this.AV9ScrRolDocumentos="";this.ZV9ScrRolDocumentos="";this.OV9ScrRolDocumentos="";this.AV10ScrRolTombos="";this.ZV10ScrRolTombos="";this.OV10ScrRolTombos="";this.ZV31GrdNroTombo=0;this.OV31GrdNroTombo=0;this.ZV32GrdDscEspecificacao="";this.OV32GrdDscEspecificacao="";this.ZV33GrdDscTitulo="";
this.OV33GrdDscTitulo="";this.ZV34GrdDscAutor="";this.OV34GrdDscAutor="";this.AV31GrdNroTombo=0;this.AV32GrdDscEspecificacao="";this.AV33GrdDscTitulo="";this.AV34GrdDscAutor="";this.A306DvoDatbaix=gx.date.nullDate();this.A922UndCod=0;this.A258DocNro=0;this.A315DvoNroTomb=0;this.A281DoeNroSequ=0;this.A871TidIndModo="";this.A223DitNroEdic="";this.A220DitAnoEdic="";this.A227DitValExte="";this.A224DitNroTomo="";this.A225DitNroVolu="";this.A317DvoNroVolu=0;this.A863TidCod="";this.ServerEvents=["e11iq2_client","e12iq2_client","e13iq2_client","e16iq2_client"];
this.setPrompt("PROMPT_SCRCODUNIDADEDE",[21]);this.setPrompt("PROMPT_SCRCODUNIDADEPARA",[28]);this.setPrompt("PROMPT_SCRNROLOCALPARA",[32]);this.EnterCtrl=["BUTTON1"];this.VarControlMap.A871TidIndModo={id:"TIDINDMODO",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.A281DoeNroSequ={id:"DOENROSEQU",grid:0,type:"int"};this.VarControlMap.A317DvoNroVolu={id:"DVONROVOLU",grid:0,type:"int"};this.VarControlMap.A922UndCod={id:"UNDCOD",grid:0,type:"int"};this.VarControlMap.A315DvoNroTomb={id:"DVONROTOMB",grid:0,type:"int"};this.VarControlMap.AV18SdtRolTombos={id:"vSDTROLTOMBOS",grid:0,type:"CollSdtTrabalhoComEntidadesContendo3Chaves"};this.Grid1Container.addRefreshingVar({rfrVar:"A871TidIndModo"});
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:"A281DoeNroSequ"});this.Grid1Container.addRefreshingVar({rfrVar:"A317DvoNroVolu"});this.Grid1Container.addRefreshingVar({rfrVar:"A922UndCod"});
this.Grid1Container.addRefreshingVar({rfrVar:"A315DvoNroTomb"});this.Grid1Container.addRefreshingVar({rfrVar:"AV18SdtRolTombos"});this.SetStandaloneVars()}himh259.prototype=new gx.GxObject;gx.setParentObj(new himh259());