gx.evt.autoSkip=false;function himh203(){this.ServerClass="HImh203";this.PackageName="";this.setObjectType("web");this.hasEnterEvent=false;this.autoRefresh=true;this.SetStandaloneVars=function(){this.A162CrcValRece=gx.fn.getDecimalValue("CRCVALRECE",".",",");this.A160CrcValBaix=gx.fn.getDecimalValue("CRCVALBAIX",".",",");this.A163CrcValSald=gx.fn.getDecimalValue("CRCVALSALD",".",",")};this.Validv_Grdnropenalidade=function(){try{var a=gx.util.balloon.getNew("vGRDNROPENALIDADE");this.AnyError=0}catch(b){}try{if(a==null){return true
}return a.show()}catch(b){}return true};this.e13g22_client=function(){this.executeServerEvent("ENTER",true,arguments[0])};this.e14g21_client=function(){this.executeServerEvent("CANCEL",true)};this.GXValidFnc=[];this.GXCtrlIds=[2,5,10,14,15,16,17,18,19,20,21,22,23];this.GXLastCtrlId=23;this.Grid1Container=new gx.grid.grid(this,2,"WbpLvl2",13,"Grid1","Grid1","Grid1Container",this.CmpContext,this.IsMasterPage,"himh203",[],false,1,false,true,0,false,false,false,"",0,"px","Novo registro",false,false,false,null,null,false,"");
this.Grid1Container.addSingleLineEdit("Grdnropenalidade",14,"vGRDNROPENALIDADE","Nro","","GrdNroPenalidade","int",0,"px",7,7,"right",null,[],"Grdnropenalidade","GrdNroPenalidade",true,0,false,false);this.Grid1Container.addSingleLineEdit("Grddatemissao",15,"vGRDDATEMISSAO","Emissão","","GrdDatEmissao","date",0,"px",8,8,"right",null,[],"Grddatemissao","GrdDatEmissao",true,0,false,false);this.Grid1Container.addSingleLineEdit("Grddschistorico",16,"vGRDDSCHISTORICO","Histórico","","GrdDscHistorico","char",0,"px",30,30,"left",null,[],"Grddschistorico","GrdDscHistorico",true,0,false,false);
this.Grid1Container.addSingleLineEdit("Grdvalsaldo",17,"vGRDVALSALDO","Vl. a pagar","","GrdValSaldo","decimal",0,"px",10,10,"right",null,[],"Grdvalsaldo","GrdValSaldo",true,2,false,false);this.Grid1Container.addSingleLineEdit("Grdcodleitor",18,"vGRDCODLEITOR","Cod.leitor","","GrdCodLeitor","char",0,"px",14,14,"left",null,[],"Grdcodleitor","GrdCodLeitor",true,0,false,false);this.Grid1Container.addSingleLineEdit("Grdnomleitor",19,"vGRDNOMLEITOR","Nome","","GrdNomLeitor","char",0,"px",50,50,"left",null,[],"Grdnomleitor","GrdNomLeitor",true,0,false,false);
this.Grid1Container.addSingleLineEdit("Grdcodunidadedepositaria",20,"vGRDCODUNIDADEDEPOSITARIA","Un.dep","","GrdCodUnidadeDepositaria","int",0,"px",3,3,"right",null,[],"Grdcodunidadedepositaria","GrdCodUnidadeDepositaria",true,0,false,false);this.Grid1Container.addComboBox("Grdtipreceita",21,"vGRDTIPRECEITA","Tipo","GrdTipReceita","int",null,0,true,false,0,"px");this.Grid1Container.addSingleLineEdit("Grdvalbruto",22,"vGRDVALBRUTO","Vl.bruto","","GrdValBruto","decimal",0,"px",11,10,"right",null,[],"Grdvalbruto","GrdValBruto",true,2,false,false);
this.Grid1Container.addSingleLineEdit("Grddatquitacao",23,"vGRDDATQUITACAO","Quitação","","GrdDatQuitacao","date",0,"px",10,10,"right",null,[],"Grddatquitacao","GrdDatQuitacao",true,0,false,false);this.setGrid(this.Grid1Container);this.GXValidFnc[2]={fld:"TABLE1",grid:0};this.GXValidFnc[5]={fld:"TABLE2",grid:0};this.GXValidFnc[10]={fld:"TEXTBLOCK1",format:0,grid:0};this.GXValidFnc[14]={lvl:2,type:"int",len:7,dec:0,sign:false,pic:"ZZZZZZ9",ro:1,grid:13,gxgrid:this.Grid1Container,fnc:this.Validv_Grdnropenalidade,isvalid:null,rgrid:[],fld:"vGRDNROPENALIDADE",gxz:"ZV8GrdNroPenalidade",gxold:"OV8GrdNroPenalidade",gxvar:"AV8GrdNroPenalidade",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV8GrdNroPenalidade=gx.num.intval(a)
},v2z:function(a){gx.O.ZV8GrdNroPenalidade=gx.num.intval(a)},v2c:function(){gx.fn.setGridControlValue("vGRDNROPENALIDADE",gx.fn.currentGridRowImpl(13),gx.O.AV8GrdNroPenalidade,0)},c2v:function(){gx.O.AV8GrdNroPenalidade=this.val()},val:function(){return gx.fn.getGridIntegerValue("vGRDNROPENALIDADE",gx.fn.currentGridRowImpl(13),".")},nac:function(){return false}};this.GXValidFnc[15]={lvl:2,type:"date",len:8,dec:0,sign:false,ro:1,grid:13,gxgrid:this.Grid1Container,fnc:null,isvalid:null,fld:"vGRDDATEMISSAO",gxz:"ZV9GrdDatEmissao",gxold:"OV9GrdDatEmissao",gxvar:"AV9GrdDatEmissao",dp:{f:0,st:false,wn:false,mf:false,pic:"99/99/99",dec:0},ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV9GrdDatEmissao=gx.fn.toDatetimeValue(a)
},v2z:function(a){gx.O.ZV9GrdDatEmissao=gx.fn.toDatetimeValue(a)},v2c:function(){gx.fn.setGridControlValue("vGRDDATEMISSAO",gx.fn.currentGridRowImpl(13),gx.O.AV9GrdDatEmissao,0)},c2v:function(){gx.O.AV9GrdDatEmissao=this.val()},val:function(){return gx.fn.getGridControlValue("vGRDDATEMISSAO",gx.fn.currentGridRowImpl(13))},nac:function(){return false}};this.GXValidFnc[16]={lvl:2,type:"char",len:30,dec:0,sign:false,ro:1,grid:13,gxgrid:this.Grid1Container,fnc:null,isvalid:null,fld:"vGRDDSCHISTORICO",gxz:"ZV10GrdDscHistorico",gxold:"OV10GrdDscHistorico",gxvar:"AV10GrdDscHistorico",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV10GrdDscHistorico=a
},v2z:function(a){gx.O.ZV10GrdDscHistorico=a},v2c:function(){gx.fn.setGridControlValue("vGRDDSCHISTORICO",gx.fn.currentGridRowImpl(13),gx.O.AV10GrdDscHistorico,0)},c2v:function(){gx.O.AV10GrdDscHistorico=this.val()},val:function(){return gx.fn.getGridControlValue("vGRDDSCHISTORICO",gx.fn.currentGridRowImpl(13))},nac:function(){return false}};this.GXValidFnc[17]={lvl:2,type:"decimal",len:10,dec:2,sign:false,pic:"ZZZZZZ9.99",ro:1,grid:13,gxgrid:this.Grid1Container,fnc:null,isvalid:null,fld:"vGRDVALSALDO",gxz:"ZV11GrdValSaldo",gxold:"OV11GrdValSaldo",gxvar:"AV11GrdValSaldo",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV11GrdValSaldo=gx.fn.toDecimalValue(a,",",".")
},v2z:function(a){gx.O.ZV11GrdValSaldo=gx.fn.toDecimalValue(a,".",",")},v2c:function(){gx.fn.setGridDecimalValue("vGRDVALSALDO",gx.fn.currentGridRowImpl(13),gx.O.AV11GrdValSaldo,2,",")},c2v:function(){gx.O.AV11GrdValSaldo=this.val()},val:function(){return gx.fn.getGridDecimalValue("vGRDVALSALDO",gx.fn.currentGridRowImpl(13),".",",")},nac:function(){return false}};this.GXValidFnc[18]={lvl:2,type:"char",len:14,dec:0,sign:false,ro:1,grid:13,gxgrid:this.Grid1Container,fnc:null,isvalid:null,fld:"vGRDCODLEITOR",gxz:"ZV12GrdCodLeitor",gxold:"OV12GrdCodLeitor",gxvar:"AV12GrdCodLeitor",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV12GrdCodLeitor=a
},v2z:function(a){gx.O.ZV12GrdCodLeitor=a},v2c:function(){gx.fn.setGridControlValue("vGRDCODLEITOR",gx.fn.currentGridRowImpl(13),gx.O.AV12GrdCodLeitor,0)},c2v:function(){gx.O.AV12GrdCodLeitor=this.val()},val:function(){return gx.fn.getGridControlValue("vGRDCODLEITOR",gx.fn.currentGridRowImpl(13))},nac:function(){return false}};this.GXValidFnc[19]={lvl:2,type:"char",len:50,dec:0,sign:false,ro:1,grid:13,gxgrid:this.Grid1Container,fnc:null,isvalid:null,fld:"vGRDNOMLEITOR",gxz:"ZV13GrdNomLeitor",gxold:"OV13GrdNomLeitor",gxvar:"AV13GrdNomLeitor",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV13GrdNomLeitor=a
},v2z:function(a){gx.O.ZV13GrdNomLeitor=a},v2c:function(){gx.fn.setGridControlValue("vGRDNOMLEITOR",gx.fn.currentGridRowImpl(13),gx.O.AV13GrdNomLeitor,0)},c2v:function(){gx.O.AV13GrdNomLeitor=this.val()},val:function(){return gx.fn.getGridControlValue("vGRDNOMLEITOR",gx.fn.currentGridRowImpl(13))},nac:function(){return false}};this.GXValidFnc[20]={lvl:2,type:"int",len:3,dec:0,sign:false,pic:"ZZ9",ro:1,grid:13,gxgrid:this.Grid1Container,fnc:null,isvalid:null,rgrid:[],fld:"vGRDCODUNIDADEDEPOSITARIA",gxz:"ZV14GrdCodUnidadeDepositaria",gxold:"OV14GrdCodUnidadeDepositaria",gxvar:"AV14GrdCodUnidadeDepositaria",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV14GrdCodUnidadeDepositaria=gx.num.intval(a)
},v2z:function(a){gx.O.ZV14GrdCodUnidadeDepositaria=gx.num.intval(a)},v2c:function(){gx.fn.setGridControlValue("vGRDCODUNIDADEDEPOSITARIA",gx.fn.currentGridRowImpl(13),gx.O.AV14GrdCodUnidadeDepositaria,0)},c2v:function(){gx.O.AV14GrdCodUnidadeDepositaria=this.val()},val:function(){return gx.fn.getGridIntegerValue("vGRDCODUNIDADEDEPOSITARIA",gx.fn.currentGridRowImpl(13),".")},nac:function(){return false}};this.GXValidFnc[21]={lvl:2,type:"int",len:1,dec:0,sign:false,pic:"9",ro:1,grid:13,gxgrid:this.Grid1Container,fnc:null,isvalid:null,rgrid:[],fld:"vGRDTIPRECEITA",gxz:"ZV15GrdTipReceita",gxold:"OV15GrdTipReceita",gxvar:"AV15GrdTipReceita",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"combo",v2v:function(a){gx.O.AV15GrdTipReceita=gx.num.intval(a)
},v2z:function(a){gx.O.ZV15GrdTipReceita=gx.num.intval(a)},v2c:function(){gx.fn.setGridComboBoxValue("vGRDTIPRECEITA",gx.fn.currentGridRowImpl(13),gx.O.AV15GrdTipReceita)},c2v:function(){gx.O.AV15GrdTipReceita=this.val()},val:function(){return gx.fn.getGridIntegerValue("vGRDTIPRECEITA",gx.fn.currentGridRowImpl(13),".")},nac:function(){return false}};this.GXValidFnc[22]={lvl:2,type:"decimal",len:10,dec:2,sign:false,pic:"ZZZZ,ZZ9.99",ro:1,grid:13,gxgrid:this.Grid1Container,fnc:null,isvalid:null,fld:"vGRDVALBRUTO",gxz:"ZV16GrdValBruto",gxold:"OV16GrdValBruto",gxvar:"AV16GrdValBruto",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV16GrdValBruto=gx.fn.toDecimalValue(a,",",".")
},v2z:function(a){gx.O.ZV16GrdValBruto=gx.fn.toDecimalValue(a,".",",")},v2c:function(){gx.fn.setGridDecimalValue("vGRDVALBRUTO",gx.fn.currentGridRowImpl(13),gx.O.AV16GrdValBruto,2,",")},c2v:function(){gx.O.AV16GrdValBruto=this.val()},val:function(){return gx.fn.getGridDecimalValue("vGRDVALBRUTO",gx.fn.currentGridRowImpl(13),".",",")},nac:function(){return false}};this.GXValidFnc[23]={lvl:2,type:"date",len:10,dec:0,sign:false,ro:1,grid:13,gxgrid:this.Grid1Container,fnc:null,isvalid:null,fld:"vGRDDATQUITACAO",gxz:"ZV17GrdDatQuitacao",gxold:"OV17GrdDatQuitacao",gxvar:"AV17GrdDatQuitacao",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.AV17GrdDatQuitacao=gx.fn.toDatetimeValue(a)
},v2z:function(a){gx.O.ZV17GrdDatQuitacao=gx.fn.toDatetimeValue(a)},v2c:function(){gx.fn.setGridControlValue("vGRDDATQUITACAO",gx.fn.currentGridRowImpl(13),gx.O.AV17GrdDatQuitacao,0)},c2v:function(){gx.O.AV17GrdDatQuitacao=this.val()},val:function(){return gx.fn.getGridControlValue("vGRDDATQUITACAO",gx.fn.currentGridRowImpl(13))},nac:function(){return false}};this.ZV8GrdNroPenalidade=0;this.OV8GrdNroPenalidade=0;this.ZV9GrdDatEmissao=gx.date.nullDate();this.OV9GrdDatEmissao=gx.date.nullDate();this.ZV10GrdDscHistorico="";
this.OV10GrdDscHistorico="";this.ZV11GrdValSaldo=0;this.OV11GrdValSaldo=0;this.ZV12GrdCodLeitor="";this.OV12GrdCodLeitor="";this.ZV13GrdNomLeitor="";this.OV13GrdNomLeitor="";this.ZV14GrdCodUnidadeDepositaria=0;this.OV14GrdCodUnidadeDepositaria=0;this.ZV15GrdTipReceita=0;this.OV15GrdTipReceita=0;this.ZV16GrdValBruto=0;this.OV16GrdValBruto=0;this.ZV17GrdDatQuitacao=gx.date.nullDate();this.OV17GrdDatQuitacao=gx.date.nullDate();this.AV8GrdNroPenalidade=0;this.AV9GrdDatEmissao=gx.date.nullDate();this.AV10GrdDscHistorico="";
this.AV11GrdValSaldo=0;this.AV12GrdCodLeitor="";this.AV13GrdNomLeitor="";this.AV14GrdCodUnidadeDepositaria=0;this.AV15GrdTipReceita=0;this.AV16GrdValBruto=0;this.AV17GrdDatQuitacao=gx.date.nullDate();this.A157CrcNroSeq=0;this.A156CrcDesHist="";this.A154CrcDatEmis=gx.date.nullDate();this.A787UsbCod="";this.A786UsbNom="";this.A151CrcCodUnid=0;this.A159CrcTipRece=0;this.A152CrcDatBaix=gx.date.nullDate();this.A160CrcValBaix=0;this.A162CrcValRece=0;this.A163CrcValSald=0;this.ServerEvents=["e13g22_client","e14g21_client"];
this.VarControlMap.A162CrcValRece={id:"CRCVALRECE",grid:0,type:"decimal"};this.VarControlMap.A160CrcValBaix={id:"CRCVALBAIX",grid:0,type:"decimal"};this.VarControlMap.A163CrcValSald={id:"CRCVALSALD",grid:0,type:"decimal"};this.VarControlMap.A152CrcDatBaix={id:"CRCDATBAIX",grid:0,type:"date"};this.VarControlMap.A159CrcTipRece={id:"CRCTIPRECE",grid:0,type:"int"};this.VarControlMap.A151CrcCodUnid={id:"CRCCODUNID",grid:0,type:"int"};this.VarControlMap.A786UsbNom={id:"USBNOM",grid:0,type:"char"};this.VarControlMap.A787UsbCod={id:"USBCOD",grid:0,type:"char"};
this.VarControlMap.A154CrcDatEmis={id:"CRCDATEMIS",grid:0,type:"date"};this.VarControlMap.A156CrcDesHist={id:"CRCDESHIST",grid:0,type:"char"};this.VarControlMap.AV6SdtRolPenalidades={id:"vSDTROLPENALIDADES",grid:0,type:"CollSdtNumeroDocumento"};this.Grid1Container.addRefreshingVar({rfrVar:"A152CrcDatBaix"});this.Grid1Container.addRefreshingVar({rfrVar:"A162CrcValRece"});this.Grid1Container.addRefreshingVar({rfrVar:"A159CrcTipRece"});this.Grid1Container.addRefreshingVar({rfrVar:"A151CrcCodUnid"});
this.Grid1Container.addRefreshingVar({rfrVar:"A786UsbNom"});this.Grid1Container.addRefreshingVar({rfrVar:"A787UsbCod"});this.Grid1Container.addRefreshingVar({rfrVar:"A163CrcValSald"});this.Grid1Container.addRefreshingVar({rfrVar:"A154CrcDatEmis"});this.Grid1Container.addRefreshingVar({rfrVar:"A156CrcDesHist"});this.Grid1Container.addRefreshingVar({rfrVar:"AV6SdtRolPenalidades"});this.SetStandaloneVars()}himh203.prototype=new gx.GxObject;gx.setParentObj(new himh203());