gx.evt.autoSkip=false;function timt009(){this.ServerClass="TImt009";this.PackageName="";this.setObjectType("trn");this.hasEnterEvent=true;this.SetStandaloneVars=function(){this.Gx_BScreen=gx.fn.getIntegerValue("vGXBSCREEN",".");this.A78CaeCampo1L=gx.fn.getControlValue("CAECAMPO1L");this.A82CaeIndDevo=gx.fn.getControlValue("CAEINDDEVO");this.A1015CaeValFato=gx.fn.getDecimalValue("CAEVALFATO",".",",");this.Gx_mode=gx.fn.getControlValue("vMODE")};this.Valid_Caecod=function(){gx.ajax.validSrvEvt("dyncall","valid_Caecod",["gx.O.AV9ValFatMult","gx.O.AV14CaeIndPedeConfirmacaoNoEmprestimo","gx.O.AV15CaeIndArredondar","gx.O.AV16ScrIndPodeReservar","gx.O.AV17CaeIndDispensaAutenticacao","gx.O.A79CaeCod","gx.O.A78CaeCampo1L","gx.O.A84CaeNom","gx.O.A83CaeIndVesp","gx.O.A81CaeDesText","gx.O.A82CaeIndDevo",'gx.date.urlDate(gx.O.A80CaeDatdevo,"DMY")',"gx.O.A1015CaeValFato","gx.O.A1016CaeIndAcum","gx.O.A1123CaeQtdReno"],["A78CaeCampo1L","A84CaeNom","A83CaeIndVesp","A81CaeDesText","A82CaeIndDevo","A80CaeDatdevo","A1015CaeValFato","A1016CaeIndAcum","A1123CaeQtdReno","AV17CaeIndDispensaAutenticacao","Gx_mode","Z79CaeCod","Z78CaeCampo1L","Z84CaeNom","Z83CaeIndVesp","Z81CaeDesText","Z82CaeIndDevo","Z80CaeDatdevo","Z1015CaeValFato","Z1016CaeIndAcum","Z1123CaeQtdReno","ZV17CaeIndDispensaAutenticacao",["OK","Enabled"]]);
return true};this.Valid_Caenom=function(){try{var a=gx.util.balloon.getNew("CAENOM");this.AnyError=0}catch(b){}try{if(a==null){return true}return a.show()}catch(b){}return true};this.Validv_Caeindpedeconfirmacaonoemprestimo=function(){try{var a=gx.util.balloon.getNew("vCAEINDPEDECONFIRMACAONOEMPRESTIMO");this.AnyError=0}catch(b){}try{if(a==null){return true}return a.show()}catch(b){}return true};this.Validv_Scrindpodereservar=function(){try{var a=gx.util.balloon.getNew("vSCRINDPODERESERVAR");this.AnyError=0
}catch(b){}try{if(a==null){return true}return a.show()}catch(b){}return true};this.Validv_Caeinddispensaautenticacao=function(){try{var a=gx.util.balloon.getNew("vCAEINDDISPENSAAUTENTICACAO");this.AnyError=0}catch(b){}try{if(a==null){return true}return a.show()}catch(b){}return true};this.Validv_Valfatmult=function(){try{var a=gx.util.balloon.getNew("vVALFATMULT");this.AnyError=0}catch(b){}try{if(a==null){return true}return a.show()}catch(b){}return true};this.Validv_Caeindarredondar=function(){try{var a=gx.util.balloon.getNew("vCAEINDARREDONDAR");
this.AnyError=0}catch(b){}try{if(a==null){return true}return a.show()}catch(b){}return true};this.Valid_Caeindvesp=function(){try{var a=gx.util.balloon.getNew("CAEINDVESP");this.AnyError=0}catch(b){}try{if(a==null){return true}return a.show()}catch(b){}return true};this.e113517_client=function(){this.clearMessages();gx.popup.openUrl(gx.http.formatLink("himh030",[this.A79CaeCod]),["A79CaeCod"]);this.refreshOutputs([])};this.e13352_client=function(){this.executeServerEvent("'GET PENSA-B'",false)};this.e14352_client=function(){this.executeServerEvent("'NOVO'",false)
};this.e15352_client=function(){this.executeServerEvent("'LISTAR CATEGORIAS'",true)};this.e16352_client=function(){this.executeServerEvent("'VOLTAR'",false)};this.e17352_client=function(){this.executeServerEvent("'LIMPAR'",false)};this.e183517_client=function(){this.executeServerEvent("ENTER",true)};this.e193517_client=function(){this.executeServerEvent("CANCEL",true)};this.GXValidFnc=[];this.GXCtrlIds=[3,20,23,26,28,31,36,38,41,43,46,48,51,53,56,58,61,63,66,68,71,73,76,78,81,83,87];this.GXLastCtrlId=87;
this.GXValidFnc[3]={fld:"TABLE4",grid:0};this.GXValidFnc[20]={fld:"TEXTBLOCK8",format:0,grid:0};this.GXValidFnc[23]={fld:"TABLE1",grid:0};this.GXValidFnc[26]={fld:"TEXTBLOCK2",format:0,grid:0};this.GXValidFnc[28]={fld:"TABLE2",grid:0};this.GXValidFnc[31]={lvl:0,type:"int",len:3,dec:0,sign:false,pic:"ZZ9",ro:1,grid:0,gxgrid:null,fnc:this.Valid_Caecod,isvalid:null,rgrid:[],fld:"CAECOD",gxz:"Z79CaeCod",gxold:"O79CaeCod",gxvar:"A79CaeCod",ucs:[],op:[68,43,87,48,83,38],ip:[68,43,87,48,83,38,31],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.setControlValue("CAECOD",gx.O.A79CaeCod,0)},c2v:function(){gx.O.A79CaeCod=this.val()},val:function(){return gx.fn.getIntegerValue("CAECOD",".")},nac:function(){return false}};this.GXValidFnc[36]={fld:"TEXTBLOCK7",format:0,grid:0};this.GXValidFnc[38]={lvl:0,type:"char",len:30,dec:0,sign:false,ro:0,grid:0,gxgrid:null,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.setControlValue("CAENOM",gx.O.A84CaeNom,0)},c2v:function(){gx.O.A84CaeNom=this.val()},val:function(){return gx.fn.getControlValue("CAENOM")},nac:function(){return false}};this.GXValidFnc[41]={fld:"TEXTBLOCK3",format:0,grid:0};this.GXValidFnc[43]={lvl:0,type:"char",len:1,dec:0,sign:false,ro:0,grid:0,gxgrid:null,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.setComboBoxValue("CAEINDACUM",gx.O.A1016CaeIndAcum)},c2v:function(){gx.O.A1016CaeIndAcum=this.val()},val:function(){return gx.fn.getControlValue("CAEINDACUM")},nac:function(){return false}};this.GXValidFnc[46]={fld:"TEXTBLOCK4",format:0,grid:0};this.GXValidFnc[48]={lvl:0,type:"char",len:10,dec:0,sign:false,ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,fld:"CAEDESTEXT",gxz:"Z81CaeDesText",gxold:"O81CaeDesText",gxvar:"A81CaeDesText",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A81CaeDesText=a
},v2z:function(a){gx.O.Z81CaeDesText=a},v2c:function(){gx.fn.setControlValue("CAEDESTEXT",gx.O.A81CaeDesText,0)},c2v:function(){gx.O.A81CaeDesText=this.val()},val:function(){return gx.fn.getControlValue("CAEDESTEXT")},nac:function(){return false}};this.GXValidFnc[51]={fld:"TEXTBLOCK1",format:0,grid:0};this.GXValidFnc[53]={lvl:0,type:"char",len:1,dec:0,sign:false,ro:0,grid:0,gxgrid:null,fnc:this.Validv_Caeindpedeconfirmacaonoemprestimo,isvalid:null,fld:"vCAEINDPEDECONFIRMACAONOEMPRESTIMO",gxz:"ZV14CaeIndPedeConfirmacaoNoEmprestimo",gxold:"OV14CaeIndPedeConfirmacaoNoEmprestimo",gxvar:"AV14CaeIndPedeConfirmacaoNoEmprestimo",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"combo",v2v:function(a){gx.O.AV14CaeIndPedeConfirmacaoNoEmprestimo=a
},v2z:function(a){gx.O.ZV14CaeIndPedeConfirmacaoNoEmprestimo=a},v2c:function(){gx.fn.setComboBoxValue("vCAEINDPEDECONFIRMACAONOEMPRESTIMO",gx.O.AV14CaeIndPedeConfirmacaoNoEmprestimo)},c2v:function(){gx.O.AV14CaeIndPedeConfirmacaoNoEmprestimo=this.val()},val:function(){return gx.fn.getControlValue("vCAEINDPEDECONFIRMACAONOEMPRESTIMO")},nac:function(){return false}};this.GXValidFnc[56]={fld:"TEXTBLOCK10",format:0,grid:0};this.GXValidFnc[58]={lvl:0,type:"char",len:1,dec:0,sign:false,ro:0,grid:0,gxgrid:null,fnc:this.Validv_Scrindpodereservar,isvalid:null,fld:"vSCRINDPODERESERVAR",gxz:"ZV16ScrIndPodeReservar",gxold:"OV16ScrIndPodeReservar",gxvar:"AV16ScrIndPodeReservar",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"combo",v2v:function(a){gx.O.AV16ScrIndPodeReservar=a
},v2z:function(a){gx.O.ZV16ScrIndPodeReservar=a},v2c:function(){gx.fn.setComboBoxValue("vSCRINDPODERESERVAR",gx.O.AV16ScrIndPodeReservar)},c2v:function(){gx.O.AV16ScrIndPodeReservar=this.val()},val:function(){return gx.fn.getControlValue("vSCRINDPODERESERVAR")},nac:function(){return false}};this.GXValidFnc[61]={fld:"TEXTBLOCK9",format:0,grid:0};this.GXValidFnc[63]={lvl:0,type:"char",len:1,dec:0,sign:false,ro:0,grid:0,gxgrid:null,fnc:this.Validv_Caeinddispensaautenticacao,isvalid:null,fld:"vCAEINDDISPENSAAUTENTICACAO",gxz:"ZV17CaeIndDispensaAutenticacao",gxold:"OV17CaeIndDispensaAutenticacao",gxvar:"AV17CaeIndDispensaAutenticacao",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"combo",v2v:function(a){gx.O.AV17CaeIndDispensaAutenticacao=a
},v2z:function(a){gx.O.ZV17CaeIndDispensaAutenticacao=a},v2c:function(){gx.fn.setComboBoxValue("vCAEINDDISPENSAAUTENTICACAO",gx.O.AV17CaeIndDispensaAutenticacao)},c2v:function(){gx.O.AV17CaeIndDispensaAutenticacao=this.val()},val:function(){return gx.fn.getControlValue("vCAEINDDISPENSAAUTENTICACAO")},nac:function(){return false}};this.GXValidFnc[66]={fld:"TEXTBLOCK11",format:0,grid:0};this.GXValidFnc[68]={lvl:0,type:"int",len:3,dec:0,sign:false,pic:"ZZ9",ro:0,grid:0,gxgrid:null,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.setControlValue("CAEQTDRENO",gx.O.A1123CaeQtdReno,0)},c2v:function(){gx.O.A1123CaeQtdReno=this.val()},val:function(){return gx.fn.getIntegerValue("CAEQTDRENO",".")},nac:function(){return false}};this.GXValidFnc[71]={fld:"TEXTBLOCK5",format:0,grid:0};this.GXValidFnc[73]={fld:"TABLE3",grid:0};this.GXValidFnc[76]={lvl:0,type:"decimal",len:3,dec:1,sign:false,pic:"9.9",ro:0,grid:0,gxgrid:null,fnc:this.Validv_Valfatmult,isvalid:null,fld:"vVALFATMULT",gxz:"ZV9ValFatMult",gxold:"OV9ValFatMult",gxvar:"AV9ValFatMult",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV9ValFatMult=gx.fn.toDecimalValue(a,",",".")
},v2z:function(a){gx.O.ZV9ValFatMult=gx.fn.toDecimalValue(a,".",",")},v2c:function(){gx.fn.setDecimalValue("vVALFATMULT",gx.O.AV9ValFatMult,1,",")},c2v:function(){gx.O.AV9ValFatMult=this.val()},val:function(){return gx.fn.getDecimalValue("vVALFATMULT",".",",")},nac:function(){return false}};this.GXValidFnc[78]={lvl:0,type:"char",len:1,dec:0,sign:false,ro:0,grid:0,gxgrid:null,fnc:this.Validv_Caeindarredondar,isvalid:null,fld:"vCAEINDARREDONDAR",gxz:"ZV15CaeIndArredondar",gxold:"OV15CaeIndArredondar",gxvar:"AV15CaeIndArredondar",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"checkbox",v2v:function(a){gx.O.AV15CaeIndArredondar=a
},v2z:function(a){gx.O.ZV15CaeIndArredondar=a},v2c:function(){gx.fn.setCheckBoxValue("vCAEINDARREDONDAR",gx.O.AV15CaeIndArredondar,"S")},c2v:function(){gx.O.AV15CaeIndArredondar=this.val()},val:function(){return gx.fn.getCheckBoxValue("vCAEINDARREDONDAR","S","N")},nac:function(){return false}};this.GXValidFnc[81]={fld:"TEXTBLOCK6",format:0,grid:0};this.GXValidFnc[83]={lvl:0,type:"char",len:1,dec:0,sign:false,ro:0,grid:0,gxgrid:null,fnc:this.Valid_Caeindvesp,isvalid:null,fld:"CAEINDVESP",gxz:"Z83CaeIndVesp",gxold:"O83CaeIndVesp",gxvar:"A83CaeIndVesp",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"combo",v2v:function(a){gx.O.A83CaeIndVesp=a
},v2z:function(a){gx.O.Z83CaeIndVesp=a},v2c:function(){gx.fn.setComboBoxValue("CAEINDVESP",gx.O.A83CaeIndVesp)},c2v:function(){gx.O.A83CaeIndVesp=this.val()},val:function(){return gx.fn.getControlValue("CAEINDVESP")},nac:function(){return false}};this.GXValidFnc[87]={lvl:0,type:"date",len:10,dec:0,sign:false,ro:1,grid:0,gxgrid:null,fnc:null,isvalid:null,fld:"CAEDATDEVO",gxz:"Z80CaeDatdevo",gxold:"O80CaeDatdevo",gxvar:"A80CaeDatdevo",dp:{f:0,st:false,wn:false,mf:false,pic:"99/99/9999",dec:0},ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A80CaeDatdevo=gx.fn.toDatetimeValue(a)
},v2z:function(a){gx.O.Z80CaeDatdevo=gx.fn.toDatetimeValue(a)},v2c:function(){gx.fn.setControlValue("CAEDATDEVO",gx.O.A80CaeDatdevo,0)},c2v:function(){gx.O.A80CaeDatdevo=this.val()},val:function(){return gx.fn.getControlValue("CAEDATDEVO")},nac:function(){return false}};this.A79CaeCod=0;this.Z79CaeCod=0;this.O79CaeCod=0;this.A84CaeNom="";this.Z84CaeNom="";this.O84CaeNom="";this.A1016CaeIndAcum="";this.Z1016CaeIndAcum="";this.O1016CaeIndAcum="";this.A81CaeDesText="";this.Z81CaeDesText="";this.O81CaeDesText="";
this.AV14CaeIndPedeConfirmacaoNoEmprestimo="";this.ZV14CaeIndPedeConfirmacaoNoEmprestimo="";this.OV14CaeIndPedeConfirmacaoNoEmprestimo="";this.AV16ScrIndPodeReservar="";this.ZV16ScrIndPodeReservar="";this.OV16ScrIndPodeReservar="";this.AV17CaeIndDispensaAutenticacao="";this.ZV17CaeIndDispensaAutenticacao="";this.OV17CaeIndDispensaAutenticacao="";this.A1123CaeQtdReno=0;this.Z1123CaeQtdReno=0;this.O1123CaeQtdReno=0;this.AV9ValFatMult=0;this.ZV9ValFatMult=0;this.OV9ValFatMult=0;this.AV15CaeIndArredondar="";
this.ZV15CaeIndArredondar="";this.OV15CaeIndArredondar="";this.A83CaeIndVesp="";this.Z83CaeIndVesp="";this.O83CaeIndVesp="";this.A80CaeDatdevo=gx.date.nullDate();this.Z80CaeDatdevo=gx.date.nullDate();this.O80CaeDatdevo=gx.date.nullDate();this.AV7UsuCodCorr="";this.AV13CaeCampo1Livre="";this.A78CaeCampo1L="";this.Gx_BScreen=0;this.A82CaeIndDevo="";this.A1015CaeValFato=0;this.ServerEvents=["e13352_client","e14352_client","e15352_client","e16352_client","e17352_client","e183517_client","e193517_client"];
this.EnterCtrl=["OK"];this.VarControlMap.Gx_BScreen={id:"vGXBSCREEN",grid:0,type:"int"};this.VarControlMap.A78CaeCampo1L={id:"CAECAMPO1L",grid:0,type:"char"};this.VarControlMap.A82CaeIndDevo={id:"CAEINDDEVO",grid:0,type:"char"};this.VarControlMap.A1015CaeValFato={id:"CAEVALFATO",grid:0,type:"decimal"};this.VarControlMap.Gx_mode={id:"vMODE",grid:0,type:"char"};this.SetStandaloneVars()}timt009.prototype=new gx.GxObject;gx.setParentObj(new timt009());