gx.evt.autoSkip=false;function himh249(){this.ServerClass="HImh249";this.PackageName="";this.setObjectType("web");this.hasEnterEvent=true;this.SetStandaloneVars=function(){this.AV51IndOrigem=gx.fn.getControlValue("vINDORIGEM")};this.Valid_Tidcod=function(){try{if(gx.fn.currentGridRowImpl(35)===0){return true}var a=gx.util.balloon.getNew("TIDCOD",gx.fn.currentGridRowImpl(35));this.AnyError=0;this.StandaloneModal();this.StandaloneNotModal()}catch(b){}try{if(a==null){return true}return a.show()}catch(b){}return true
};this.e12id2_client=function(){this.executeServerEvent("'VOLTAR'",false)};this.e13id2_client=function(){this.executeServerEvent("ENTER",true)};this.e16id2_client=function(){this.executeServerEvent("CANCEL",true,arguments[0])};this.GXValidFnc=[];this.GXCtrlIds=[3,14,17,20,22,25,27,30,32,36,37,38,39,40,41,42,43,44,46];this.GXLastCtrlId=46;this.Subfile1Container=new gx.grid.grid(this,2,"WbpLvl2",35,"Subfile1","Subfile1","Subfile1Container",this.CmpContext,this.IsMasterPage,"himh249",[],false,1,true,true,12,true,false,false,"",0,"px","Novo registro",true,false,true,null,null,false,"");
this.Subfile1Container.addCheckBox("Grdindde",36,"vGRDINDDE","DE","","GrdIndDE","char","S","N",null,true,false,30,"px");this.Subfile1Container.addCheckBox("Grdindpara",37,"vGRDINDPARA","PARA","","GrdIndPARA","char","S","N",null,true,false,30,"px");this.Subfile1Container.addSingleLineEdit("Grddocdestitulo",38,"vGRDDOCDESTITULO","Título","","GrdDocDesTitulo","char",410,"px",80,80,"left",null,[],"Grddocdestitulo","GrdDocDesTitulo",true,0,false,false);this.Subfile1Container.addSingleLineEdit("Grdnomautor",39,"vGRDNOMAUTOR","Autor","","GrdNomAutor","char",410,"px",250,250,"left",null,[],"Grdnomautor","GrdNomAutor",true,0,false,false);
this.Subfile1Container.addSingleLineEdit("Grddocanoedicao",40,"vGRDDOCANOEDICAO","Ano","","GrdDocAnoEdicao","int",34,"px",4,4,"right",null,[],"Grddocanoedicao","GrdDocAnoEdicao",true,0,false,false);this.Subfile1Container.addSingleLineEdit(863,41,"TIDCOD","Tipo","","TidCod","char",43,"px",3,3,"left",null,[],863,"TidCod",true,0,false,false);this.Subfile1Container.addSingleLineEdit("Grdchamada",42,"vGRDCHAMADA","Chamada","","GrdChamada","char",210,"px",40,40,"left",null,[],"Grdchamada","GrdChamada",true,0,false,false);
this.Subfile1Container.addSingleLineEdit(258,43,"DOCNRO","Documento","","DocNro","int",72,"px",6,6,"right",null,[],258,"DocNro",true,0,false,false);this.Subfile1Container.addSingleLineEdit(249,44,"DOCDESTITU","Título sem acento","","DocDesTitu","char",300,"px",58,58,"left",null,[],249,"DocDesTitu",false,0,false,false);this.setGrid(this.Subfile1Container);this.GXValidFnc[3]={fld:"TABLE1",grid:0};this.GXValidFnc[14]={fld:"TEXTBLOCK1",format:0,grid:0};this.GXValidFnc[17]={fld:"TABLE2",grid:0};this.GXValidFnc[20]={fld:"TEXTBLOCK3",format:0,grid:0};
this.GXValidFnc[22]={lvl:0,type:"char",len:30,dec:0,sign:false,ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,fld:"vDSCINICIOTITULO",gxz:"ZV16DscInicioTitulo",gxold:"OV16DscInicioTitulo",gxvar:"AV16DscInicioTitulo",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV16DscInicioTitulo=a},v2z:function(a){gx.O.ZV16DscInicioTitulo=a},v2c:function(){gx.fn.setControlValue("vDSCINICIOTITULO",gx.O.AV16DscInicioTitulo,0)},c2v:function(){gx.O.AV16DscInicioTitulo=this.val()},val:function(){return gx.fn.getControlValue("vDSCINICIOTITULO")
},nac:function(){return false}};this.GXValidFnc[25]={fld:"TEXTBLOCK2",format:0,grid:0};this.GXValidFnc[27]={lvl:0,type:"char",len:3,dec:0,sign:false,ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,fld:"vTIDCOD",gxz:"ZV31TidCod",gxold:"OV31TidCod",gxvar:"AV31TidCod",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV31TidCod=a},v2z:function(a){gx.O.ZV31TidCod=a},v2c:function(){gx.fn.setControlValue("vTIDCOD",gx.O.AV31TidCod,0)},c2v:function(){gx.O.AV31TidCod=this.val()},val:function(){return gx.fn.getControlValue("vTIDCOD")
},nac:function(){return false}};this.GXValidFnc[30]={fld:"TEXTBLOCK4",format:0,grid:0};this.GXValidFnc[32]={lvl:0,type:"char",len:1,dec:0,sign:false,ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,fld:"vSCRINDPUBLICACAO",gxz:"ZV45ScrIndPublicacao",gxold:"OV45ScrIndPublicacao",gxvar:"AV45ScrIndPublicacao",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"radio",v2v:function(a){gx.O.AV45ScrIndPublicacao=a},v2z:function(a){gx.O.ZV45ScrIndPublicacao=a},v2c:function(){gx.fn.setRadioValue("vSCRINDPUBLICACAO",gx.O.AV45ScrIndPublicacao)
},c2v:function(){gx.O.AV45ScrIndPublicacao=this.val()},val:function(){return gx.fn.getControlValue("vSCRINDPUBLICACAO")},nac:function(){return false}};this.GXValidFnc[36]={lvl:2,type:"char",len:1,dec:0,sign:false,ro:0,grid:35,gxgrid:this.Subfile1Container,fnc:null,isvalid:null,fld:"vGRDINDDE",gxz:"ZV43GrdIndDE",gxold:"OV43GrdIndDE",gxvar:"AV43GrdIndDE",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"checkbox",v2v:function(a){gx.O.AV43GrdIndDE=a},v2z:function(a){gx.O.ZV43GrdIndDE=a},v2c:function(){gx.fn.setGridCheckBoxValue("vGRDINDDE",gx.fn.currentGridRowImpl(35),gx.O.AV43GrdIndDE,"S")
},c2v:function(){gx.O.AV43GrdIndDE=this.val()},val:function(){return gx.fn.getGridCheckBoxValue("vGRDINDDE",gx.fn.currentGridRowImpl(35),"S","N")},nac:function(){return false}};this.GXValidFnc[37]={lvl:2,type:"char",len:1,dec:0,sign:false,ro:0,grid:35,gxgrid:this.Subfile1Container,fnc:null,isvalid:null,fld:"vGRDINDPARA",gxz:"ZV44GrdIndPARA",gxold:"OV44GrdIndPARA",gxvar:"AV44GrdIndPARA",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"checkbox",v2v:function(a){gx.O.AV44GrdIndPARA=a},v2z:function(a){gx.O.ZV44GrdIndPARA=a
},v2c:function(){gx.fn.setGridCheckBoxValue("vGRDINDPARA",gx.fn.currentGridRowImpl(35),gx.O.AV44GrdIndPARA,"S")},c2v:function(){gx.O.AV44GrdIndPARA=this.val()},val:function(){return gx.fn.getGridCheckBoxValue("vGRDINDPARA",gx.fn.currentGridRowImpl(35),"S","N")},nac:function(){return false}};this.GXValidFnc[38]={lvl:2,type:"char",len:80,dec:0,sign:false,ro:0,grid:35,gxgrid:this.Subfile1Container,fnc:null,isvalid:null,fld:"vGRDDOCDESTITULO",gxz:"ZV12GrdDocDesTitulo",gxold:"OV12GrdDocDesTitulo",gxvar:"AV12GrdDocDesTitulo",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV12GrdDocDesTitulo=a
},v2z:function(a){gx.O.ZV12GrdDocDesTitulo=a},v2c:function(){gx.fn.setGridControlValue("vGRDDOCDESTITULO",gx.fn.currentGridRowImpl(35),gx.O.AV12GrdDocDesTitulo,0)},c2v:function(){gx.O.AV12GrdDocDesTitulo=this.val()},val:function(){return gx.fn.getGridControlValue("vGRDDOCDESTITULO",gx.fn.currentGridRowImpl(35))},nac:function(){return false}};this.GXValidFnc[39]={lvl:2,type:"char",len:250,dec:0,sign:false,ro:0,grid:35,gxgrid:this.Subfile1Container,fnc:null,isvalid:null,fld:"vGRDNOMAUTOR",gxz:"ZV23GrdNomAutor",gxold:"OV23GrdNomAutor",gxvar:"AV23GrdNomAutor",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV23GrdNomAutor=a
},v2z:function(a){gx.O.ZV23GrdNomAutor=a},v2c:function(){gx.fn.setGridControlValue("vGRDNOMAUTOR",gx.fn.currentGridRowImpl(35),gx.O.AV23GrdNomAutor,0)},c2v:function(){gx.O.AV23GrdNomAutor=this.val()},val:function(){return gx.fn.getGridControlValue("vGRDNOMAUTOR",gx.fn.currentGridRowImpl(35))},nac:function(){return false}};this.GXValidFnc[40]={lvl:2,type:"int",len:4,dec:0,sign:false,pic:"ZZZ9",ro:0,grid:35,gxgrid:this.Subfile1Container,fnc:null,isvalid:null,rgrid:[],fld:"vGRDDOCANOEDICAO",gxz:"ZV40GrdDocAnoEdicao",gxold:"OV40GrdDocAnoEdicao",gxvar:"AV40GrdDocAnoEdicao",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV40GrdDocAnoEdicao=gx.num.intval(a)
},v2z:function(a){gx.O.ZV40GrdDocAnoEdicao=gx.num.intval(a)},v2c:function(){gx.fn.setGridControlValue("vGRDDOCANOEDICAO",gx.fn.currentGridRowImpl(35),gx.O.AV40GrdDocAnoEdicao,0)},c2v:function(){gx.O.AV40GrdDocAnoEdicao=this.val()},val:function(){return gx.fn.getGridIntegerValue("vGRDDOCANOEDICAO",gx.fn.currentGridRowImpl(35),".")},nac:function(){return false}};this.GXValidFnc[41]={lvl:2,type:"char",len:3,dec:0,sign:false,ro:1,grid:35,gxgrid:this.Subfile1Container,fnc:this.Valid_Tidcod,isvalid:null,fld:"TIDCOD",gxz:"Z863TidCod",gxold:"O863TidCod",gxvar:"A863TidCod",ucs:[],op:[],ip:[41],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A863TidCod=a
},v2z:function(a){gx.O.Z863TidCod=a},v2c:function(){gx.fn.setGridControlValue("TIDCOD",gx.fn.currentGridRowImpl(35),gx.O.A863TidCod,0)},c2v:function(){gx.O.A863TidCod=this.val()},val:function(){return gx.fn.getGridControlValue("TIDCOD",gx.fn.currentGridRowImpl(35))},nac:function(){return false}};this.GXValidFnc[42]={lvl:2,type:"char",len:40,dec:0,sign:false,ro:0,grid:35,gxgrid:this.Subfile1Container,fnc:null,isvalid:null,fld:"vGRDCHAMADA",gxz:"ZV7GrdChamada",gxold:"OV7GrdChamada",gxvar:"AV7GrdChamada",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV7GrdChamada=a
},v2z:function(a){gx.O.ZV7GrdChamada=a},v2c:function(){gx.fn.setGridControlValue("vGRDCHAMADA",gx.fn.currentGridRowImpl(35),gx.O.AV7GrdChamada,0)},c2v:function(){gx.O.AV7GrdChamada=this.val()},val:function(){return gx.fn.getGridControlValue("vGRDCHAMADA",gx.fn.currentGridRowImpl(35))},nac:function(){return false}};this.GXValidFnc[43]={lvl:2,type:"int",len:6,dec:0,sign:false,pic:"ZZZZZ9",ro:1,grid:35,gxgrid:this.Subfile1Container,fnc:null,isvalid:null,rgrid:[],fld:"DOCNRO",gxz:"Z258DocNro",gxold:"O258DocNro",gxvar:"A258DocNro",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A258DocNro=gx.num.intval(a)
},v2z:function(a){gx.O.Z258DocNro=gx.num.intval(a)},v2c:function(){gx.fn.setGridControlValue("DOCNRO",gx.fn.currentGridRowImpl(35),gx.O.A258DocNro,0)},c2v:function(){gx.O.A258DocNro=this.val()},val:function(){return gx.fn.getGridIntegerValue("DOCNRO",gx.fn.currentGridRowImpl(35),".")},nac:function(){return false}};this.GXValidFnc[44]={lvl:2,type:"char",len:58,dec:0,sign:false,ro:1,grid:35,gxgrid:this.Subfile1Container,fnc:null,isvalid:null,fld:"DOCDESTITU",gxz:"Z249DocDesTitu",gxold:"O249DocDesTitu",gxvar:"A249DocDesTitu",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A249DocDesTitu=a
},v2z:function(a){gx.O.Z249DocDesTitu=a},v2c:function(){gx.fn.setGridControlValue("DOCDESTITU",gx.fn.currentGridRowImpl(35),gx.O.A249DocDesTitu,0)},c2v:function(){gx.O.A249DocDesTitu=this.val()},val:function(){return gx.fn.getGridControlValue("DOCDESTITU",gx.fn.currentGridRowImpl(35))},nac:function(){return false}};this.GXValidFnc[46]={fld:"PROMPT_TIDCOD",grid:0};this.AV16DscInicioTitulo="";this.ZV16DscInicioTitulo="";this.OV16DscInicioTitulo="";this.AV31TidCod="";this.ZV31TidCod="";this.OV31TidCod="";
this.AV45ScrIndPublicacao="";this.ZV45ScrIndPublicacao="";this.OV45ScrIndPublicacao="";this.ZV43GrdIndDE="";this.OV43GrdIndDE="";this.ZV44GrdIndPARA="";this.OV44GrdIndPARA="";this.ZV12GrdDocDesTitulo="";this.OV12GrdDocDesTitulo="";this.ZV23GrdNomAutor="";this.OV23GrdNomAutor="";this.ZV40GrdDocAnoEdicao=0;this.OV40GrdDocAnoEdicao=0;this.Z863TidCod="";this.O863TidCod="";this.ZV7GrdChamada="";this.OV7GrdChamada="";this.Z258DocNro=0;this.O258DocNro=0;this.Z249DocDesTitu="";this.O249DocDesTitu="";this.A871TidIndModo="";
this.A232DocAnoEdic=0;this.AV43GrdIndDE="";this.AV44GrdIndPARA="";this.AV12GrdDocDesTitulo="";this.AV23GrdNomAutor="";this.AV40GrdDocAnoEdicao=0;this.A863TidCod="";this.AV7GrdChamada="";this.A258DocNro=0;this.A249DocDesTitu="";this.ServerEvents=["e12id2_client","e13id2_client","e16id2_client"];this.setPrompt("PROMPT_TIDCOD",[27]);this.EnterCtrl=["BUTTON5"];this.VarControlMap.AV51IndOrigem={id:"vINDORIGEM",grid:0,type:"char"};this.VarControlMap.AV27ParTipForm={id:"vPARTIPFORM",grid:0,type:"char"};
this.VarControlMap.A232DocAnoEdic={id:"DOCANOEDIC",grid:0,type:"int"};this.Subfile1Container.addRefreshingVar(this.GXValidFnc[22]);this.Subfile1Container.addRefreshingVar(this.GXValidFnc[27]);this.Subfile1Container.addRefreshingVar(this.GXValidFnc[32]);this.Subfile1Container.addRefreshingVar({rfrVar:"AV27ParTipForm"});this.Subfile1Container.addRefreshingVar({rfrVar:"A232DocAnoEdic"});this.SetStandaloneVars()}himh249.prototype=new gx.GxObject;gx.setParentObj(new himh249());