gx.evt.autoSkip=false;function himh244(){this.ServerClass="HImh244";this.PackageName="";this.setObjectType("web");this.hasEnterEvent=false;this.autoRefresh=true;this.SetStandaloneVars=function(){this.A169CurCod=gx.fn.getIntegerValue("CURCOD",".");this.A186DcpNro=gx.fn.getIntegerValue("DCPNRO",".")};this.e12i72_client=function(){this.executeServerEvent("'APAGAR'",false)};this.e15i72_client=function(){this.executeServerEvent("ENTER",true,arguments[0])};this.e16i71_client=function(){this.executeServerEvent("CANCEL",true)
};this.GXValidFnc=[];this.GXCtrlIds=[2,13,16,19,21,23,25,29,31,33,35,37,42,43,44,45,46,47,48,49];this.GXLastCtrlId=49;this.Grid1Container=new gx.grid.grid(this,2,"WbpLvl2",41,"Grid1","Grid1","Grid1Container",this.CmpContext,this.IsMasterPage,"himh244",[],false,1,true,true,15,true,false,false,"",0,"px","Novo registro",true,false,true,null,null,false,"");this.Grid1Container.addCheckBox("Grdinddeletar",42,"vGRDINDDELETAR","","","GrdIndDeletar","char","S","N",null,true,false,0,"px");this.Grid1Container.addSingleLineEdit("Grdnrodoc",43,"vGRDNRODOC","Doc.","","GrdNroDoc","int",0,"px",6,6,"right",null,[],"Grdnrodoc","GrdNroDoc",true,0,false,false);
this.Grid1Container.addSingleLineEdit("Grdnrounidade",44,"vGRDNROUNIDADE","Un.","","GrdNroUnidade","int",0,"px",3,3,"right",null,[],"Grdnrounidade","GrdNroUnidade",true,0,false,false);this.Grid1Container.addSingleLineEdit("Grdnroexemplar",45,"vGRDNROEXEMPLAR","Ex.","","GrdNroExemplar","int",0,"px",4,4,"right",null,[],"Grdnroexemplar","GrdNroExemplar",true,0,false,false);this.Grid1Container.addSingleLineEdit("Grddsctitulosubtitulo",46,"vGRDDSCTITULOSUBTITULO","Título e subtítulo","","GrdDscTituloSubtitulo","char",410,"px",100,100,"left",null,[],"Grddsctitulosubtitulo","GrdDscTituloSubtitulo",true,0,false,false);
this.Grid1Container.addSingleLineEdit("Grdnomautor",47,"vGRDNOMAUTOR","Autor","","GrdNomAutor","char",410,"px",80,80,"left",null,[],"Grdnomautor","GrdNomAutor",true,0,false,false);this.Grid1Container.addSingleLineEdit("Grdnomeditora",48,"vGRDNOMEDITORA","Editora","","GrdNomEditora","char",310,"px",60,60,"left",null,[],"Grdnomeditora","GrdNomEditora",true,0,false,false);this.Grid1Container.addSingleLineEdit("Grdanodocumento",49,"vGRDANODOCUMENTO","Ano","","GrdAnoDocumento","char",0,"px",5,5,"left",null,[],"Grdanodocumento","GrdAnoDocumento",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:5,dec:0,sign:false,pic:"ZZZZ9",ro:1,grid:0,gxgrid:null,fnc:null,isvalid:null,rgrid:[this.Grid1Container],fld:"vPARMNROCURSO",gxz:"ZV12ParmNroCurso",gxold:"OV12ParmNroCurso",gxvar:"AV12ParmNroCurso",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV12ParmNroCurso=gx.num.intval(a)
},v2z:function(a){gx.O.ZV12ParmNroCurso=gx.num.intval(a)},v2c:function(){gx.fn.setControlValue("vPARMNROCURSO",gx.O.AV12ParmNroCurso,0)},c2v:function(){gx.O.AV12ParmNroCurso=this.val()},val:function(){return gx.fn.getIntegerValue("vPARMNROCURSO",".")},nac:function(){return false}};this.GXValidFnc[23]={fld:"TEXTBLOCK4",format:0,grid:0};this.GXValidFnc[25]={lvl:0,type:"char",len:100,dec:0,sign:false,ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,fld:"vSCRNOMCURSO",gxz:"ZV16ScrNomCurso",gxold:"OV16ScrNomCurso",gxvar:"AV16ScrNomCurso",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV16ScrNomCurso=a
},v2z:function(a){gx.O.ZV16ScrNomCurso=a},v2c:function(){gx.fn.setControlValue("vSCRNOMCURSO",gx.O.AV16ScrNomCurso,0)},c2v:function(){gx.O.AV16ScrNomCurso=this.val()},val:function(){return gx.fn.getControlValue("vSCRNOMCURSO")},nac:function(){return false}};this.GXValidFnc[29]={fld:"TEXTBLOCK3",format:0,grid:0};this.GXValidFnc[31]={lvl:0,type:"int",len:4,dec:0,sign:false,pic:"ZZZ9",ro:1,grid:0,gxgrid:null,fnc:null,isvalid:null,rgrid:[this.Grid1Container],fld:"vPARMNRODISCIPLINA",gxz:"ZV13ParmNroDisciplina",gxold:"OV13ParmNroDisciplina",gxvar:"AV13ParmNroDisciplina",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV13ParmNroDisciplina=gx.num.intval(a)
},v2z:function(a){gx.O.ZV13ParmNroDisciplina=gx.num.intval(a)},v2c:function(){gx.fn.setControlValue("vPARMNRODISCIPLINA",gx.O.AV13ParmNroDisciplina,0)},c2v:function(){gx.O.AV13ParmNroDisciplina=this.val()},val:function(){return gx.fn.getIntegerValue("vPARMNRODISCIPLINA",".")},nac:function(){return false}};this.GXValidFnc[33]={fld:"TEXTBLOCK5",format:0,grid:0};this.GXValidFnc[35]={lvl:0,type:"char",len:80,dec:0,sign:false,ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,fld:"vSCRNOMDISCIPLINA",gxz:"ZV15ScrNomDisciplina",gxold:"OV15ScrNomDisciplina",gxvar:"AV15ScrNomDisciplina",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV15ScrNomDisciplina=a
},v2z:function(a){gx.O.ZV15ScrNomDisciplina=a},v2c:function(){gx.fn.setControlValue("vSCRNOMDISCIPLINA",gx.O.AV15ScrNomDisciplina,0)},c2v:function(){gx.O.AV15ScrNomDisciplina=this.val()},val:function(){return gx.fn.getControlValue("vSCRNOMDISCIPLINA")},nac:function(){return false}};this.GXValidFnc[37]={lvl:0,type:"char",len:1,dec:0,sign:false,ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,fld:"vSCRINDCONFIRMAR",gxz:"ZV17ScrIndConfirmar",gxold:"OV17ScrIndConfirmar",gxvar:"AV17ScrIndConfirmar",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"checkbox",v2v:function(a){gx.O.AV17ScrIndConfirmar=a
},v2z:function(a){gx.O.ZV17ScrIndConfirmar=a},v2c:function(){gx.fn.setCheckBoxValue("vSCRINDCONFIRMAR",gx.O.AV17ScrIndConfirmar,"S")},c2v:function(){gx.O.AV17ScrIndConfirmar=this.val()},val:function(){return gx.fn.getCheckBoxValue("vSCRINDCONFIRMAR","S","N")},nac:function(){return false}};this.GXValidFnc[42]={lvl:2,type:"char",len:1,dec:0,sign:false,ro:0,grid:41,gxgrid:this.Grid1Container,fnc:null,isvalid:null,fld:"vGRDINDDELETAR",gxz:"ZV5GrdIndDeletar",gxold:"OV5GrdIndDeletar",gxvar:"AV5GrdIndDeletar",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"checkbox",v2v:function(a){gx.O.AV5GrdIndDeletar=a
},v2z:function(a){gx.O.ZV5GrdIndDeletar=a},v2c:function(){gx.fn.setGridCheckBoxValue("vGRDINDDELETAR",gx.fn.currentGridRowImpl(41),gx.O.AV5GrdIndDeletar,"S")},c2v:function(){gx.O.AV5GrdIndDeletar=this.val()},val:function(){return gx.fn.getGridCheckBoxValue("vGRDINDDELETAR",gx.fn.currentGridRowImpl(41),"S","N")},nac:function(){return false}};this.GXValidFnc[43]={lvl:2,type:"int",len:6,dec:0,sign:false,pic:"ZZZZZ9",ro:0,grid:41,gxgrid:this.Grid1Container,fnc:null,isvalid:null,rgrid:[],fld:"vGRDNRODOC",gxz:"ZV21GrdNroDoc",gxold:"OV21GrdNroDoc",gxvar:"AV21GrdNroDoc",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV21GrdNroDoc=gx.num.intval(a)
},v2z:function(a){gx.O.ZV21GrdNroDoc=gx.num.intval(a)},v2c:function(){gx.fn.setGridControlValue("vGRDNRODOC",gx.fn.currentGridRowImpl(41),gx.O.AV21GrdNroDoc,0)},c2v:function(){gx.O.AV21GrdNroDoc=this.val()},val:function(){return gx.fn.getGridIntegerValue("vGRDNRODOC",gx.fn.currentGridRowImpl(41),".")},nac:function(){return false}};this.GXValidFnc[44]={lvl:2,type:"int",len:3,dec:0,sign:false,pic:"ZZ9",ro:0,grid:41,gxgrid:this.Grid1Container,fnc:null,isvalid:null,rgrid:[],fld:"vGRDNROUNIDADE",gxz:"ZV9GrdNroUnidade",gxold:"OV9GrdNroUnidade",gxvar:"AV9GrdNroUnidade",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV9GrdNroUnidade=gx.num.intval(a)
},v2z:function(a){gx.O.ZV9GrdNroUnidade=gx.num.intval(a)},v2c:function(){gx.fn.setGridControlValue("vGRDNROUNIDADE",gx.fn.currentGridRowImpl(41),gx.O.AV9GrdNroUnidade,0)},c2v:function(){gx.O.AV9GrdNroUnidade=this.val()},val:function(){return gx.fn.getGridIntegerValue("vGRDNROUNIDADE",gx.fn.currentGridRowImpl(41),".")},nac:function(){return false}};this.GXValidFnc[45]={lvl:2,type:"int",len:4,dec:0,sign:false,pic:"ZZZ9",ro:0,grid:41,gxgrid:this.Grid1Container,fnc:null,isvalid:null,rgrid:[],fld:"vGRDNROEXEMPLAR",gxz:"ZV10GrdNroExemplar",gxold:"OV10GrdNroExemplar",gxvar:"AV10GrdNroExemplar",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV10GrdNroExemplar=gx.num.intval(a)
},v2z:function(a){gx.O.ZV10GrdNroExemplar=gx.num.intval(a)},v2c:function(){gx.fn.setGridControlValue("vGRDNROEXEMPLAR",gx.fn.currentGridRowImpl(41),gx.O.AV10GrdNroExemplar,0)},c2v:function(){gx.O.AV10GrdNroExemplar=this.val()},val:function(){return gx.fn.getGridIntegerValue("vGRDNROEXEMPLAR",gx.fn.currentGridRowImpl(41),".")},nac:function(){return false}};this.GXValidFnc[46]={lvl:2,type:"char",len:100,dec:0,sign:false,ro:0,grid:41,gxgrid:this.Grid1Container,fnc:null,isvalid:null,fld:"vGRDDSCTITULOSUBTITULO",gxz:"ZV6GrdDscTituloSubtitulo",gxold:"OV6GrdDscTituloSubtitulo",gxvar:"AV6GrdDscTituloSubtitulo",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV6GrdDscTituloSubtitulo=a
},v2z:function(a){gx.O.ZV6GrdDscTituloSubtitulo=a},v2c:function(){gx.fn.setGridControlValue("vGRDDSCTITULOSUBTITULO",gx.fn.currentGridRowImpl(41),gx.O.AV6GrdDscTituloSubtitulo,0)},c2v:function(){gx.O.AV6GrdDscTituloSubtitulo=this.val()},val:function(){return gx.fn.getGridControlValue("vGRDDSCTITULOSUBTITULO",gx.fn.currentGridRowImpl(41))},nac:function(){return false}};this.GXValidFnc[47]={lvl:2,type:"char",len:80,dec:0,sign:false,ro:0,grid:41,gxgrid:this.Grid1Container,fnc:null,isvalid:null,fld:"vGRDNOMAUTOR",gxz:"ZV7GrdNomAutor",gxold:"OV7GrdNomAutor",gxvar:"AV7GrdNomAutor",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV7GrdNomAutor=a
},v2z:function(a){gx.O.ZV7GrdNomAutor=a},v2c:function(){gx.fn.setGridControlValue("vGRDNOMAUTOR",gx.fn.currentGridRowImpl(41),gx.O.AV7GrdNomAutor,0)},c2v:function(){gx.O.AV7GrdNomAutor=this.val()},val:function(){return gx.fn.getGridControlValue("vGRDNOMAUTOR",gx.fn.currentGridRowImpl(41))},nac:function(){return false}};this.GXValidFnc[48]={lvl:2,type:"char",len:60,dec:0,sign:false,ro:0,grid:41,gxgrid:this.Grid1Container,fnc:null,isvalid:null,fld:"vGRDNOMEDITORA",gxz:"ZV8GrdNomEditora",gxold:"OV8GrdNomEditora",gxvar:"AV8GrdNomEditora",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV8GrdNomEditora=a
},v2z:function(a){gx.O.ZV8GrdNomEditora=a},v2c:function(){gx.fn.setGridControlValue("vGRDNOMEDITORA",gx.fn.currentGridRowImpl(41),gx.O.AV8GrdNomEditora,0)},c2v:function(){gx.O.AV8GrdNomEditora=this.val()},val:function(){return gx.fn.getGridControlValue("vGRDNOMEDITORA",gx.fn.currentGridRowImpl(41))},nac:function(){return false}};this.GXValidFnc[49]={lvl:2,type:"char",len:5,dec:0,sign:false,ro:0,grid:41,gxgrid:this.Grid1Container,fnc:null,isvalid:null,fld:"vGRDANODOCUMENTO",gxz:"ZV11GrdAnoDocumento",gxold:"OV11GrdAnoDocumento",gxvar:"AV11GrdAnoDocumento",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV11GrdAnoDocumento=a
},v2z:function(a){gx.O.ZV11GrdAnoDocumento=a},v2c:function(){gx.fn.setGridControlValue("vGRDANODOCUMENTO",gx.fn.currentGridRowImpl(41),gx.O.AV11GrdAnoDocumento,0)},c2v:function(){gx.O.AV11GrdAnoDocumento=this.val()},val:function(){return gx.fn.getGridControlValue("vGRDANODOCUMENTO",gx.fn.currentGridRowImpl(41))},nac:function(){return false}};this.AV12ParmNroCurso=0;this.ZV12ParmNroCurso=0;this.OV12ParmNroCurso=0;this.AV16ScrNomCurso="";this.ZV16ScrNomCurso="";this.OV16ScrNomCurso="";this.AV13ParmNroDisciplina=0;
this.ZV13ParmNroDisciplina=0;this.OV13ParmNroDisciplina=0;this.AV15ScrNomDisciplina="";this.ZV15ScrNomDisciplina="";this.OV15ScrNomDisciplina="";this.AV17ScrIndConfirmar="";this.ZV17ScrIndConfirmar="";this.OV17ScrIndConfirmar="";this.ZV5GrdIndDeletar="";this.OV5GrdIndDeletar="";this.ZV21GrdNroDoc=0;this.OV21GrdNroDoc=0;this.ZV9GrdNroUnidade=0;this.OV9GrdNroUnidade=0;this.ZV10GrdNroExemplar=0;this.OV10GrdNroExemplar=0;this.ZV6GrdDscTituloSubtitulo="";this.OV6GrdDscTituloSubtitulo="";this.ZV7GrdNomAutor="";
this.OV7GrdNomAutor="";this.ZV8GrdNomEditora="";this.OV8GrdNomEditora="";this.ZV11GrdAnoDocumento="";this.OV11GrdAnoDocumento="";this.A169CurCod=0;this.A186DcpNro=0;this.A182DceTipBibl="";this.A258DocNro=0;this.A922UndCod=0;this.A281DoeNroSequ=0;this.AV5GrdIndDeletar="";this.AV21GrdNroDoc=0;this.AV9GrdNroUnidade=0;this.AV10GrdNroExemplar=0;this.AV6GrdDscTituloSubtitulo="";this.AV7GrdNomAutor="";this.AV8GrdNomEditora="";this.AV11GrdAnoDocumento="";this.ServerEvents=["e12i72_client","e15i72_client","e16i71_client"];
this.VarControlMap.A169CurCod={id:"CURCOD",grid:0,type:"int"};this.VarControlMap.A186DcpNro={id:"DCPNRO",grid:0,type:"int"};this.VarControlMap.A281DoeNroSequ={id:"DOENROSEQU",grid:0,type:"int"};this.VarControlMap.A922UndCod={id:"UNDCOD",grid:0,type:"int"};this.VarControlMap.A258DocNro={id:"DOCNRO",grid:0,type:"int"};this.VarControlMap.A182DceTipBibl={id:"DCETIPBIBL",grid:0,type:"char"};this.Grid1Container.addRefreshingVar(this.GXValidFnc[21]);this.Grid1Container.addRefreshingVar(this.GXValidFnc[31]);
this.Grid1Container.addRefreshingVar({rfrVar:"A281DoeNroSequ"});this.Grid1Container.addRefreshingVar({rfrVar:"A922UndCod"});this.Grid1Container.addRefreshingVar({rfrVar:"A258DocNro"});this.Grid1Container.addRefreshingVar({rfrVar:"A182DceTipBibl"});this.SetStandaloneVars()}himh244.prototype=new gx.GxObject;gx.setParentObj(new himh244());