gx.evt.autoSkip=false;function hzdocumento(){this.ServerClass="HZDocumento";this.PackageName="";this.setObjectType("web");this.hasEnterEvent=true;this.SetStandaloneVars=function(){this.A249DocDesTitu=gx.fn.getControlValue("DOCDESTITU");this.AV34ParmCodLeitor=gx.fn.getControlValue("vPARMCODLEITOR");this.AV28DocNro=gx.fn.getIntegerValue("vDOCNRO",".")};this.e12e42_client=function(){this.executeServerEvent("ENTER",true,arguments[0])};this.e15e42_client=function(){this.executeServerEvent("'REDIRECIONA'",true,arguments[0])
};this.e16e41_client=function(){this.executeServerEvent("CANCEL",true)};this.GXValidFnc=[];this.GXCtrlIds=[3,10,13,19,22,24,28,29,30,31,32,33,34];this.GXLastCtrlId=34;this.Subfile1Container=new gx.grid.grid(this,2,"WbpLvl2",27,"Subfile1","Subfile1","Subfile1Container",this.CmpContext,this.IsMasterPage,"hzdocumento",[],false,1,true,true,10,true,false,false,"",0,"px","Novo registro",true,false,false,null,null,false,"");this.Subfile1Container.addSingleLineEdit("Grddsctitulo",28,"vGRDDSCTITULO","Título","","GrdDscTitulo","char",0,"px",200,200,"left","e15e42_client",[],"Grddsctitulo","GrdDscTitulo",true,0,false,false);
this.Subfile1Container.addSingleLineEdit("Grdnomautor",29,"vGRDNOMAUTOR","Autor","","GrdNomAutor","char",0,"px",200,200,"left","e15e42_client",[],"Grdnomautor","GrdNomAutor",true,0,false,false);this.Subfile1Container.addSingleLineEdit("Grdnroano",30,"vGRDNROANO","Ano","","GrdNroAno","int",0,"px",4,4,"right",null,[],"Grdnroano","GrdNroAno",true,0,false,false);this.Subfile1Container.addSingleLineEdit("Grdvaledicao",31,"vGRDVALEDICAO","Edição","","GrdValEdicao","char",0,"px",20,20,"left",null,[],"Grdvaledicao","GrdValEdicao",true,0,false,false);
this.Subfile1Container.addSingleLineEdit(863,32,"TIDCOD","Tipo","","TidCod","char",0,"px",3,3,"left",null,[],863,"TidCod",true,0,false,false);this.Subfile1Container.addSingleLineEdit("Grddscchamada",33,"vGRDDSCCHAMADA","Chamada","","GrdDscChamada","char",0,"px",50,50,"left",null,[],"Grddscchamada","GrdDscChamada",true,0,false,false);this.Subfile1Container.addSingleLineEdit(258,34,"DOCNRO","Documento","","DocNro","int",0,"px",6,6,"right","e15e42_client",[],258,"DocNro",true,0,false,false);this.setGrid(this.Subfile1Container);
this.GXValidFnc[3]={fld:"TABLE1",grid:0};this.GXValidFnc[10]={fld:"TEXTBLOCK4",format:0,grid:0};this.GXValidFnc[13]={fld:"TABLE3",grid:0};this.GXValidFnc[19]={fld:"TABLE2",grid:0};this.GXValidFnc[22]={fld:"TEXTBLOCK2",format:0,grid:0};this.GXValidFnc[24]={lvl:0,type:"char",len:50,dec:0,sign:false,ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,fld:"vDSCTITULOINICIAL",gxz:"ZV27DscTituloInicial",gxold:"OV27DscTituloInicial",gxvar:"AV27DscTituloInicial",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV27DscTituloInicial=a
},v2z:function(a){gx.O.ZV27DscTituloInicial=a},v2c:function(){gx.fn.setControlValue("vDSCTITULOINICIAL",gx.O.AV27DscTituloInicial,0)},c2v:function(){gx.O.AV27DscTituloInicial=this.val()},val:function(){return gx.fn.getControlValue("vDSCTITULOINICIAL")},nac:function(){return false}};this.GXValidFnc[28]={lvl:2,type:"char",len:200,dec:0,sign:false,ro:0,grid:27,gxgrid:this.Subfile1Container,fnc:null,isvalid:null,fld:"vGRDDSCTITULO",gxz:"ZV29GrdDscTitulo",gxold:"OV29GrdDscTitulo",gxvar:"AV29GrdDscTitulo",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV29GrdDscTitulo=a
},v2z:function(a){gx.O.ZV29GrdDscTitulo=a},v2c:function(){gx.fn.setGridControlValue("vGRDDSCTITULO",gx.fn.currentGridRowImpl(27),gx.O.AV29GrdDscTitulo,0)},c2v:function(){gx.O.AV29GrdDscTitulo=this.val()},val:function(){return gx.fn.getGridControlValue("vGRDDSCTITULO",gx.fn.currentGridRowImpl(27))},nac:function(){return false}};this.GXValidFnc[29]={lvl:2,type:"char",len:200,dec:0,sign:false,ro:0,grid:27,gxgrid:this.Subfile1Container,fnc:null,isvalid:null,fld:"vGRDNOMAUTOR",gxz:"ZV30GrdNomAutor",gxold:"OV30GrdNomAutor",gxvar:"AV30GrdNomAutor",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV30GrdNomAutor=a
},v2z:function(a){gx.O.ZV30GrdNomAutor=a},v2c:function(){gx.fn.setGridControlValue("vGRDNOMAUTOR",gx.fn.currentGridRowImpl(27),gx.O.AV30GrdNomAutor,0)},c2v:function(){gx.O.AV30GrdNomAutor=this.val()},val:function(){return gx.fn.getGridControlValue("vGRDNOMAUTOR",gx.fn.currentGridRowImpl(27))},nac:function(){return false}};this.GXValidFnc[30]={lvl:2,type:"int",len:4,dec:0,sign:false,pic:"ZZZ9",ro:0,grid:27,gxgrid:this.Subfile1Container,fnc:null,isvalid:null,rgrid:[],fld:"vGRDNROANO",gxz:"ZV31GrdNroAno",gxold:"OV31GrdNroAno",gxvar:"AV31GrdNroAno",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV31GrdNroAno=gx.num.intval(a)
},v2z:function(a){gx.O.ZV31GrdNroAno=gx.num.intval(a)},v2c:function(){gx.fn.setGridControlValue("vGRDNROANO",gx.fn.currentGridRowImpl(27),gx.O.AV31GrdNroAno,0)},c2v:function(){gx.O.AV31GrdNroAno=this.val()},val:function(){return gx.fn.getGridIntegerValue("vGRDNROANO",gx.fn.currentGridRowImpl(27),".")},nac:function(){return false}};this.GXValidFnc[31]={lvl:2,type:"char",len:20,dec:0,sign:false,ro:0,grid:27,gxgrid:this.Subfile1Container,fnc:null,isvalid:null,fld:"vGRDVALEDICAO",gxz:"ZV40GrdValEdicao",gxold:"OV40GrdValEdicao",gxvar:"AV40GrdValEdicao",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV40GrdValEdicao=a
},v2z:function(a){gx.O.ZV40GrdValEdicao=a},v2c:function(){gx.fn.setGridControlValue("vGRDVALEDICAO",gx.fn.currentGridRowImpl(27),gx.O.AV40GrdValEdicao,0)},c2v:function(){gx.O.AV40GrdValEdicao=this.val()},val:function(){return gx.fn.getGridControlValue("vGRDVALEDICAO",gx.fn.currentGridRowImpl(27))},nac:function(){return false}};this.GXValidFnc[32]={lvl:2,type:"char",len:3,dec:0,sign:false,ro:1,grid:27,gxgrid:this.Subfile1Container,fnc:null,isvalid:null,fld:"TIDCOD",gxz:"Z863TidCod",gxold:"O863TidCod",gxvar:"A863TidCod",ucs:[],op:[],ip:[],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(27),gx.O.A863TidCod,0)},c2v:function(){gx.O.A863TidCod=this.val()},val:function(){return gx.fn.getGridControlValue("TIDCOD",gx.fn.currentGridRowImpl(27))},nac:function(){return false}};this.GXValidFnc[33]={lvl:2,type:"char",len:50,dec:0,sign:false,ro:0,grid:27,gxgrid:this.Subfile1Container,fnc:null,isvalid:null,fld:"vGRDDSCCHAMADA",gxz:"ZV32GrdDscChamada",gxold:"OV32GrdDscChamada",gxvar:"AV32GrdDscChamada",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV32GrdDscChamada=a
},v2z:function(a){gx.O.ZV32GrdDscChamada=a},v2c:function(){gx.fn.setGridControlValue("vGRDDSCCHAMADA",gx.fn.currentGridRowImpl(27),gx.O.AV32GrdDscChamada,0)},c2v:function(){gx.O.AV32GrdDscChamada=this.val()},val:function(){return gx.fn.getGridControlValue("vGRDDSCCHAMADA",gx.fn.currentGridRowImpl(27))},nac:function(){return false}};this.GXValidFnc[34]={lvl:2,type:"int",len:6,dec:0,sign:false,pic:"ZZZZZ9",ro:1,grid:27,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(27),gx.O.A258DocNro,0)},c2v:function(){gx.O.A258DocNro=this.val()},val:function(){return gx.fn.getGridIntegerValue("DOCNRO",gx.fn.currentGridRowImpl(27),".")},nac:function(){return false}};this.AV27DscTituloInicial="";this.ZV27DscTituloInicial="";this.OV27DscTituloInicial="";this.ZV29GrdDscTitulo="";this.OV29GrdDscTitulo="";this.ZV30GrdNomAutor="";this.OV30GrdNomAutor="";
this.ZV31GrdNroAno=0;this.OV31GrdNroAno=0;this.ZV40GrdValEdicao="";this.OV40GrdValEdicao="";this.Z863TidCod="";this.O863TidCod="";this.ZV32GrdDscChamada="";this.OV32GrdDscChamada="";this.Z258DocNro=0;this.O258DocNro=0;this.AV34ParmCodLeitor="";this.AV28DocNro=0;this.A232DocAnoEdic=0;this.A249DocDesTitu="";this.AV29GrdDscTitulo="";this.AV30GrdNomAutor="";this.AV31GrdNroAno=0;this.AV40GrdValEdicao="";this.A863TidCod="";this.AV32GrdDscChamada="";this.A258DocNro=0;this.ServerEvents=["e12e42_client","e15e42_client","e16e41_client"];
this.VarControlMap.A249DocDesTitu={id:"DOCDESTITU",grid:0,type:"char"};this.VarControlMap.AV34ParmCodLeitor={id:"vPARMCODLEITOR",grid:0,type:"char"};this.VarControlMap.AV28DocNro={id:"vDOCNRO",grid:0,type:"int"};this.VarControlMap.A232DocAnoEdic={id:"DOCANOEDIC",grid:0,type:"int"};this.Subfile1Container.addRefreshingVar(this.GXValidFnc[24]);this.Subfile1Container.addRefreshingVar({rfrVar:"A232DocAnoEdic"});this.SetStandaloneVars()}hzdocumento.prototype=new gx.GxObject;gx.setParentObj(new hzdocumento());