gx.evt.autoSkip=false;function hzcatemp(){this.ServerClass="HZCatEmp";this.PackageName="GeneXus.Programs";this.setObjectType("web");this.hasEnterEvent=true;this.SetStandaloneVars=function(){this.AV5CaeCod=gx.fn.getIntegerValue("vCAECOD",".")};this.Valid_Caenom=function(){try{if(gx.fn.currentGridRowImpl(24)===0){return true}var a=gx.util.balloon.getNew("CAENOM",gx.fn.currentGridRowImpl(24));this.AnyError=0}catch(b){}try{if(a==null){return true}return a.show()}catch(b){}return true};this.e131e2_client=function(){this.executeServerEvent("ENTER",true,arguments[0])
};this.e151e1_client=function(){this.executeServerEvent("CANCEL",true)};this.GXValidFnc=[];this.GXCtrlIds=[3,6,13,16,19,21,25,26,27,28,29,30];this.GXLastCtrlId=30;this.Subfile1Container=new gx.grid.grid(this,2,"WbpLvl2",24,"Subfile1","Subfile1","Subfile1Container",this.CmpContext,this.IsMasterPage,"hzcatemp",[],false,1,false,true,12,true,false,false,"",0,"px","Novo registro",true,false,false,null,null,false,"");this.Subfile1Container.addSingleLineEdit(79,25,"CAECOD","Código","","CaeCod","int",0,"px",3,3,"right",null,[],79,"CaeCod",true,0,false,false);
this.Subfile1Container.addSingleLineEdit(84,26,"CAENOM","Descrição","","CaeNom","char",200,"px",30,30,"left",null,[],84,"CaeNom",true,0,false,false);this.Subfile1Container.addSingleLineEdit("Caeindpodereservar",27,"vCAEINDPODERESERVAR","Pode reservar","","CaeIndPodeReservar","char",0,"px",1,1,"left",null,[],"Caeindpodereservar","CaeIndPodeReservar",true,0,false,false);this.Subfile1Container.addSingleLineEdit(1123,28,"CAEQTDRENO","Qtd.renovações","","CaeQtdReno","int",0,"px",3,3,"right",null,[],1123,"CaeQtdReno",true,0,false,false);
this.Subfile1Container.addComboBox(1016,29,"CAEINDACUM","Acumular quantidade","CaeIndAcum","char",null,0,true,false,0,"px");this.Subfile1Container.addSingleLineEdit("Caeindpedeconfirmacaonoemprestimo",30,"vCAEINDPEDECONFIRMACAONOEMPRESTIMO","Confirmar empréstimo","","CaeIndPedeConfirmacaoNoEmprestimo","char",0,"px",1,1,"left",null,[],"Caeindpedeconfirmacaonoemprestimo","CaeIndPedeConfirmacaoNoEmprestimo",true,0,false,false);this.setGrid(this.Subfile1Container);this.GXValidFnc[3]={fld:"TABLE3",grid:0};
this.GXValidFnc[6]={fld:"TABLE1",grid:0};this.GXValidFnc[13]={fld:"TEXTBLOCK3",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:"char",len:40,dec:0,sign:false,ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,fld:"vNOMECONTENDO",gxz:"ZV8NomeContendo",gxold:"OV8NomeContendo",gxvar:"AV8NomeContendo",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV8NomeContendo=a},v2z:function(a){gx.O.ZV8NomeContendo=a
},v2c:function(){gx.fn.setControlValue("vNOMECONTENDO",gx.O.AV8NomeContendo,0)},c2v:function(){gx.O.AV8NomeContendo=this.val()},val:function(){return gx.fn.getControlValue("vNOMECONTENDO")},nac:function(){return false}};this.GXValidFnc[25]={lvl:2,type:"int",len:3,dec:0,sign:false,pic:"ZZ9",ro:1,grid:24,gxgrid:this.Subfile1Container,fnc:null,isvalid:null,rgrid:[],fld:"CAECOD",gxz:"Z79CaeCod",gxold:"O79CaeCod",gxvar:"A79CaeCod",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A79CaeCod=gx.num.intval(a)
},v2z:function(a){gx.O.Z79CaeCod=gx.num.intval(a)},v2c:function(){gx.fn.setGridControlValue("CAECOD",gx.fn.currentGridRowImpl(24),gx.O.A79CaeCod,0)},c2v:function(){gx.O.A79CaeCod=this.val()},val:function(){return gx.fn.getGridIntegerValue("CAECOD",gx.fn.currentGridRowImpl(24),".")},nac:function(){return false}};this.GXValidFnc[26]={lvl:2,type:"char",len:30,dec:0,sign:false,ro:1,grid:24,gxgrid:this.Subfile1Container,fnc:this.Valid_Caenom,isvalid:null,fld:"CAENOM",gxz:"Z84CaeNom",gxold:"O84CaeNom",gxvar:"A84CaeNom",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A84CaeNom=a
},v2z:function(a){gx.O.Z84CaeNom=a},v2c:function(){gx.fn.setGridControlValue("CAENOM",gx.fn.currentGridRowImpl(24),gx.O.A84CaeNom,0)},c2v:function(){gx.O.A84CaeNom=this.val()},val:function(){return gx.fn.getGridControlValue("CAENOM",gx.fn.currentGridRowImpl(24))},nac:function(){return false}};this.GXValidFnc[27]={lvl:2,type:"char",len:1,dec:0,sign:false,ro:1,grid:24,gxgrid:this.Subfile1Container,fnc:null,isvalid:null,fld:"vCAEINDPODERESERVAR",gxz:"ZV14CaeIndPodeReservar",gxold:"OV14CaeIndPodeReservar",gxvar:"AV14CaeIndPodeReservar",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV14CaeIndPodeReservar=a
},v2z:function(a){gx.O.ZV14CaeIndPodeReservar=a},v2c:function(){gx.fn.setGridControlValue("vCAEINDPODERESERVAR",gx.fn.currentGridRowImpl(24),gx.O.AV14CaeIndPodeReservar,0)},c2v:function(){gx.O.AV14CaeIndPodeReservar=this.val()},val:function(){return gx.fn.getGridControlValue("vCAEINDPODERESERVAR",gx.fn.currentGridRowImpl(24))},nac:function(){return false}};this.GXValidFnc[28]={lvl:2,type:"int",len:3,dec:0,sign:false,pic:"ZZ9",ro:1,grid:24,gxgrid:this.Subfile1Container,fnc:null,isvalid:null,rgrid:[],fld:"CAEQTDRENO",gxz:"Z1123CaeQtdReno",gxold:"O1123CaeQtdReno",gxvar:"A1123CaeQtdReno",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A1123CaeQtdReno=gx.num.intval(a)
},v2z:function(a){gx.O.Z1123CaeQtdReno=gx.num.intval(a)},v2c:function(){gx.fn.setGridControlValue("CAEQTDRENO",gx.fn.currentGridRowImpl(24),gx.O.A1123CaeQtdReno,0)},c2v:function(){gx.O.A1123CaeQtdReno=this.val()},val:function(){return gx.fn.getGridIntegerValue("CAEQTDRENO",gx.fn.currentGridRowImpl(24),".")},nac:function(){return false}};this.GXValidFnc[29]={lvl:2,type:"char",len:1,dec:0,sign:false,ro:1,grid:24,gxgrid:this.Subfile1Container,fnc:null,isvalid:null,fld:"CAEINDACUM",gxz:"Z1016CaeIndAcum",gxold:"O1016CaeIndAcum",gxvar:"A1016CaeIndAcum",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"combo",v2v:function(a){gx.O.A1016CaeIndAcum=a
},v2z:function(a){gx.O.Z1016CaeIndAcum=a},v2c:function(){gx.fn.setGridComboBoxValue("CAEINDACUM",gx.fn.currentGridRowImpl(24),gx.O.A1016CaeIndAcum)},c2v:function(){gx.O.A1016CaeIndAcum=this.val()},val:function(){return gx.fn.getGridControlValue("CAEINDACUM",gx.fn.currentGridRowImpl(24))},nac:function(){return false}};this.GXValidFnc[30]={lvl:2,type:"char",len:1,dec:0,sign:false,ro:1,grid:24,gxgrid:this.Subfile1Container,fnc:null,isvalid:null,fld:"vCAEINDPEDECONFIRMACAONOEMPRESTIMO",gxz:"ZV12CaeIndPedeConfirmacaoNoEmprestimo",gxold:"OV12CaeIndPedeConfirmacaoNoEmprestimo",gxvar:"AV12CaeIndPedeConfirmacaoNoEmprestimo",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV12CaeIndPedeConfirmacaoNoEmprestimo=a
},v2z:function(a){gx.O.ZV12CaeIndPedeConfirmacaoNoEmprestimo=a},v2c:function(){gx.fn.setGridControlValue("vCAEINDPEDECONFIRMACAONOEMPRESTIMO",gx.fn.currentGridRowImpl(24),gx.O.AV12CaeIndPedeConfirmacaoNoEmprestimo,0)},c2v:function(){gx.O.AV12CaeIndPedeConfirmacaoNoEmprestimo=this.val()},val:function(){return gx.fn.getGridControlValue("vCAEINDPEDECONFIRMACAONOEMPRESTIMO",gx.fn.currentGridRowImpl(24))},nac:function(){return false}};this.AV8NomeContendo="";this.ZV8NomeContendo="";this.OV8NomeContendo="";
this.Z79CaeCod=0;this.O79CaeCod=0;this.Z84CaeNom="";this.O84CaeNom="";this.ZV14CaeIndPodeReservar="";this.OV14CaeIndPodeReservar="";this.Z1123CaeQtdReno=0;this.O1123CaeQtdReno=0;this.Z1016CaeIndAcum="";this.O1016CaeIndAcum="";this.ZV12CaeIndPedeConfirmacaoNoEmprestimo="";this.OV12CaeIndPedeConfirmacaoNoEmprestimo="";this.AV5CaeCod=0;this.A78CaeCampo1L="";this.A79CaeCod=0;this.A84CaeNom="";this.AV14CaeIndPodeReservar="";this.A1123CaeQtdReno=0;this.A1016CaeIndAcum="";this.AV12CaeIndPedeConfirmacaoNoEmprestimo="";
this.ServerEvents=["e131e2_client","e151e1_client"];this.VarControlMap.AV5CaeCod={id:"vCAECOD",grid:0,type:"int"};this.VarControlMap.AV9CharDB={id:"vCHARDB",grid:0,type:"char"};this.VarControlMap.A78CaeCampo1L={id:"CAECAMPO1L",grid:0,type:"char"};this.Subfile1Container.addRefreshingVar(this.GXValidFnc[21]);this.Subfile1Container.addRefreshingVar({rfrVar:"AV9CharDB"});this.Subfile1Container.addRefreshingVar({rfrVar:"A78CaeCampo1L"});this.SetStandaloneVars()}hzcatemp.prototype=new gx.GxObject;gx.setParentObj(new hzcatemp());