gx.evt.autoSkip=false;function himh069(){this.ServerClass="HImh069";this.PackageName="";this.setObjectType("web");this.hasEnterEvent=false;this.SetStandaloneVars=function(){this.A162CrcValRece=gx.fn.getDecimalValue("CRCVALRECE",".",",");this.A160CrcValBaix=gx.fn.getDecimalValue("CRCVALBAIX",".",",");this.AV59ParmCodLeitor=gx.fn.getControlValue("vPARMCODLEITOR")};this.Validv_Usbcod=function(){try{var a=gx.util.balloon.getNew("vUSBCOD");this.AnyError=0}catch(b){}try{if(a==null){return true}return a.show()
}catch(b){}return true};this.e11132_client=function(){this.executeServerEvent("'BAIXAR'",false)};this.e12132_client=function(){this.executeServerEvent("'DOCUMENTO COBRANçA'",false)};this.e16131_client=function(){this.executeServerEvent("ENTER",true)};this.e17131_client=function(){this.executeServerEvent("CANCEL",true)};this.GXValidFnc=[];this.GXCtrlIds=[5,8,21,24,27,29,31,34,37,39,41,43,45,47,51,52,53,54,55,56,57,58,59,60,61,62];this.GXLastCtrlId=62;this.Grid1Container=new gx.grid.grid(this,2,"WbpLvl2",50,"Grid1","Grid1","Grid1Container",this.CmpContext,this.IsMasterPage,"himh069",[],false,1,true,true,0,false,false,false,"",0,"px","Novo registro",false,false,true,null,null,false,"");
this.Grid1Container.addCheckBox("Op",51,"vOP","Op","","Op","char","S","N",null,true,false,0,"px");this.Grid1Container.addSingleLineEdit(157,52,"CRCNROSEQ","Seq","","CrcNroSeq","int",0,"px",7,7,"right",null,[],157,"CrcNroSeq",true,0,false,false);this.Grid1Container.addComboBox(159,53,"CRCTIPRECE","Tipo","CrcTipRece","int",null,0,true,false,0,"px");this.Grid1Container.addSingleLineEdit(163,54,"CRCVALSALD","Valor saldo","","CrcValSald","decimal",0,"px",10,10,"right",null,[],163,"CrcValSald",true,2,false,false);
this.Grid1Container.addSingleLineEdit(154,55,"CRCDATEMIS","Emissão","","CrcDatEmis","date",0,"px",10,10,"right",null,[],154,"CrcDatEmis",true,0,false,false);this.Grid1Container.addSingleLineEdit(150,56,"CRCCODOPER","Operador","","CrcCodOper","char",0,"px",6,6,"left",null,[],150,"CrcCodOper",true,0,false,false);this.Grid1Container.addSingleLineEdit("Crbvalbaixa",57,"vCRBVALBAIXA","Valor pago","","CrbValBaixa","decimal",0,"px",13,11,"right",null,[],"Crbvalbaixa","CrbValBaixa",true,2,false,false);this.Grid1Container.addSingleLineEdit("Crbvaldeducao",58,"vCRBVALDEDUCAO","Valor dedução","","CrbValDeducao","decimal",0,"px",13,11,"right",null,[],"Crbvaldeducao","CrbValDeducao",true,2,false,false);
this.Grid1Container.addSingleLineEdit("Crbvalacrescimo",59,"vCRBVALACRESCIMO","Valor acréscimo","","CrbValAcrescimo","decimal",0,"px",13,11,"right",null,[],"Crbvalacrescimo","CrbValAcrescimo",true,2,false,false);this.Grid1Container.addSingleLineEdit("Crcdesbaixa",60,"vCRCDESBAIXA","Histórico da baixa","","CrcDesBaixa","char",0,"px",30,30,"left",null,[],"Crcdesbaixa","CrcDesBaixa",true,0,false,false);this.Grid1Container.addSingleLineEdit(156,61,"CRCDESHIST","Histórico penalidade","","CrcDesHist","char",220,"px",30,30,"left",null,[],156,"CrcDesHist",true,0,false,false);
this.setGrid(this.Grid1Container);this.GXValidFnc[5]={fld:"TABLE3",grid:0};this.GXValidFnc[8]={fld:"TABLE1",grid:0};this.GXValidFnc[21]={fld:"TEXTBLOCK1",format:0,grid:0};this.GXValidFnc[24]={fld:"TABLE4",grid:0};this.GXValidFnc[27]={fld:"TEXTBLOCK4",format:0,grid:0};this.GXValidFnc[29]={lvl:0,type:"char",len:14,dec:0,sign:false,ro:0,grid:0,gxgrid:null,fnc:this.Validv_Usbcod,isvalid:null,fld:"vUSBCOD",gxz:"ZV13UsbCod",gxold:"OV13UsbCod",gxvar:"AV13UsbCod",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV13UsbCod=a
},v2z:function(a){gx.O.ZV13UsbCod=a},v2c:function(){gx.fn.setControlValue("vUSBCOD",gx.O.AV13UsbCod,0)},c2v:function(){gx.O.AV13UsbCod=this.val()},val:function(){return gx.fn.getControlValue("vUSBCOD")},nac:function(){return false}};this.GXValidFnc[31]={lvl:0,type:"char",len:50,dec:0,sign:false,ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,fld:"vUSBNOM",gxz:"ZV17UsbNom",gxold:"OV17UsbNom",gxvar:"AV17UsbNom",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV17UsbNom=a},v2z:function(a){gx.O.ZV17UsbNom=a
},v2c:function(){gx.fn.setControlValue("vUSBNOM",gx.O.AV17UsbNom,0)},c2v:function(){gx.O.AV17UsbNom=this.val()},val:function(){return gx.fn.getControlValue("vUSBNOM")},nac:function(){return false}};this.GXValidFnc[34]={fld:"TABLE2",grid:0};this.GXValidFnc[37]={lvl:0,type:"char",len:1,dec:0,sign:false,ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,fld:"vINDBAIXARTODAS",gxz:"ZV23IndBaixarTodas",gxold:"OV23IndBaixarTodas",gxvar:"AV23IndBaixarTodas",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"checkbox",v2v:function(a){gx.O.AV23IndBaixarTodas=a
},v2z:function(a){gx.O.ZV23IndBaixarTodas=a},v2c:function(){gx.fn.setCheckBoxValue("vINDBAIXARTODAS",gx.O.AV23IndBaixarTodas,"S")},c2v:function(){gx.O.AV23IndBaixarTodas=this.val()},val:function(){return gx.fn.getCheckBoxValue("vINDBAIXARTODAS","S","N")},nac:function(){return false}};this.GXValidFnc[39]={lvl:0,type:"char",len:1,dec:0,sign:false,ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,fld:"vINDIMPRIMIRCOMPROVANTE",gxz:"ZV35IndImprimirComprovante",gxold:"OV35IndImprimirComprovante",gxvar:"AV35IndImprimirComprovante",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"checkbox",v2v:function(a){gx.O.AV35IndImprimirComprovante=a
},v2z:function(a){gx.O.ZV35IndImprimirComprovante=a},v2c:function(){gx.fn.setCheckBoxValue("vINDIMPRIMIRCOMPROVANTE",gx.O.AV35IndImprimirComprovante,"S")},c2v:function(){gx.O.AV35IndImprimirComprovante=this.val()},val:function(){return gx.fn.getCheckBoxValue("vINDIMPRIMIRCOMPROVANTE","S","N")},nac:function(){return false}};this.GXValidFnc[41]={fld:"TEXTBLOCK2",format:0,grid:0};this.GXValidFnc[43]={lvl:0,type:"int",len:3,dec:0,sign:false,pic:"ZZ9",ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,rgrid:[],fld:"vCRBCODUNIDDEPOSITARIA",gxz:"ZV45CrbCodUnidDepositaria",gxold:"OV45CrbCodUnidDepositaria",gxvar:"AV45CrbCodUnidDepositaria",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV45CrbCodUnidDepositaria=gx.num.intval(a)
},v2z:function(a){gx.O.ZV45CrbCodUnidDepositaria=gx.num.intval(a)},v2c:function(){gx.fn.setControlValue("vCRBCODUNIDDEPOSITARIA",gx.O.AV45CrbCodUnidDepositaria,0)},c2v:function(){gx.O.AV45CrbCodUnidDepositaria=this.val()},val:function(){return gx.fn.getIntegerValue("vCRBCODUNIDDEPOSITARIA",".")},nac:function(){return false}};this.GXValidFnc[45]={fld:"TEXTBLOCK3",format:0,grid:0};this.GXValidFnc[47]={lvl:0,type:"dtime",len:10,dec:5,sign:false,ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,fld:"vCRBDATBAIXA",gxz:"ZV40CrbDatBaixa",gxold:"OV40CrbDatBaixa",gxvar:"AV40CrbDatBaixa",dp:{f:0,st:true,wn:false,mf:false,pic:"99/99/9999 99:99",dec:5},ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV40CrbDatBaixa=gx.fn.toDatetimeValue(a)
},v2z:function(a){gx.O.ZV40CrbDatBaixa=gx.fn.toDatetimeValue(a)},v2c:function(){gx.fn.setControlValue("vCRBDATBAIXA",gx.O.AV40CrbDatBaixa,0)},c2v:function(){gx.O.AV40CrbDatBaixa=this.val()},val:function(){return gx.fn.getControlValue("vCRBDATBAIXA")},nac:function(){return false}};this.GXValidFnc[51]={lvl:2,type:"char",len:1,dec:0,sign:true,ro:0,grid:50,gxgrid:this.Grid1Container,fnc:null,isvalid:null,fld:"vOP",gxz:"ZV64Op",gxold:"OV64Op",gxvar:"AV64Op",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"checkbox",v2v:function(a){gx.O.AV64Op=a
},v2z:function(a){gx.O.ZV64Op=a},v2c:function(){gx.fn.setGridCheckBoxValue("vOP",gx.fn.currentGridRowImpl(50),gx.O.AV64Op,"S")},c2v:function(){gx.O.AV64Op=this.val()},val:function(){return gx.fn.getGridCheckBoxValue("vOP",gx.fn.currentGridRowImpl(50),"S","N")},nac:function(){return false}};this.GXValidFnc[52]={lvl:2,type:"int",len:7,dec:0,sign:false,pic:"ZZZZZZ9",ro:1,grid:50,gxgrid:this.Grid1Container,fnc:null,isvalid:null,rgrid:[],fld:"CRCNROSEQ",gxz:"Z157CrcNroSeq",gxold:"O157CrcNroSeq",gxvar:"A157CrcNroSeq",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A157CrcNroSeq=gx.num.intval(a)
},v2z:function(a){gx.O.Z157CrcNroSeq=gx.num.intval(a)},v2c:function(){gx.fn.setGridControlValue("CRCNROSEQ",gx.fn.currentGridRowImpl(50),gx.O.A157CrcNroSeq,0)},c2v:function(){gx.O.A157CrcNroSeq=this.val()},val:function(){return gx.fn.getGridIntegerValue("CRCNROSEQ",gx.fn.currentGridRowImpl(50),".")},nac:function(){return false}};this.GXValidFnc[53]={lvl:2,type:"int",len:1,dec:0,sign:false,pic:"9",ro:1,grid:50,gxgrid:this.Grid1Container,fnc:null,isvalid:null,rgrid:[],fld:"CRCTIPRECE",gxz:"Z159CrcTipRece",gxold:"O159CrcTipRece",gxvar:"A159CrcTipRece",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"combo",v2v:function(a){gx.O.A159CrcTipRece=gx.num.intval(a)
},v2z:function(a){gx.O.Z159CrcTipRece=gx.num.intval(a)},v2c:function(){gx.fn.setGridComboBoxValue("CRCTIPRECE",gx.fn.currentGridRowImpl(50),gx.O.A159CrcTipRece)},c2v:function(){gx.O.A159CrcTipRece=this.val()},val:function(){return gx.fn.getGridIntegerValue("CRCTIPRECE",gx.fn.currentGridRowImpl(50),".")},nac:function(){return false}};this.GXValidFnc[54]={lvl:2,type:"decimal",len:10,dec:2,sign:false,pic:"ZZZZZZ9.99",ro:1,grid:50,gxgrid:this.Grid1Container,fnc:null,isvalid:null,fld:"CRCVALSALD",gxz:"Z163CrcValSald",gxold:"O163CrcValSald",gxvar:"A163CrcValSald",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A163CrcValSald=gx.fn.toDecimalValue(a,",",".")
},v2z:function(a){gx.O.Z163CrcValSald=gx.fn.toDecimalValue(a,".",",")},v2c:function(){gx.fn.setGridDecimalValue("CRCVALSALD",gx.fn.currentGridRowImpl(50),gx.O.A163CrcValSald,2,",")},c2v:function(){gx.O.A163CrcValSald=this.val()},val:function(){return gx.fn.getGridDecimalValue("CRCVALSALD",gx.fn.currentGridRowImpl(50),".",",")},nac:function(){return false}};this.GXValidFnc[55]={lvl:2,type:"date",len:10,dec:0,sign:false,ro:1,grid:50,gxgrid:this.Grid1Container,fnc:null,isvalid:null,fld:"CRCDATEMIS",gxz:"Z154CrcDatEmis",gxold:"O154CrcDatEmis",gxvar:"A154CrcDatEmis",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.A154CrcDatEmis=gx.fn.toDatetimeValue(a)
},v2z:function(a){gx.O.Z154CrcDatEmis=gx.fn.toDatetimeValue(a)},v2c:function(){gx.fn.setGridControlValue("CRCDATEMIS",gx.fn.currentGridRowImpl(50),gx.O.A154CrcDatEmis,0)},c2v:function(){gx.O.A154CrcDatEmis=this.val()},val:function(){return gx.fn.getGridControlValue("CRCDATEMIS",gx.fn.currentGridRowImpl(50))},nac:function(){return false}};this.GXValidFnc[56]={lvl:2,type:"char",len:6,dec:0,sign:false,ro:1,grid:50,gxgrid:this.Grid1Container,fnc:null,isvalid:null,fld:"CRCCODOPER",gxz:"Z150CrcCodOper",gxold:"O150CrcCodOper",gxvar:"A150CrcCodOper",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A150CrcCodOper=a
},v2z:function(a){gx.O.Z150CrcCodOper=a},v2c:function(){gx.fn.setGridControlValue("CRCCODOPER",gx.fn.currentGridRowImpl(50),gx.O.A150CrcCodOper,0)},c2v:function(){gx.O.A150CrcCodOper=this.val()},val:function(){return gx.fn.getGridControlValue("CRCCODOPER",gx.fn.currentGridRowImpl(50))},nac:function(){return false}};this.GXValidFnc[57]={lvl:2,type:"decimal",len:11,dec:2,sign:false,pic:"ZZ,ZZZ,ZZ9.99",ro:0,grid:50,gxgrid:this.Grid1Container,fnc:null,isvalid:null,fld:"vCRBVALBAIXA",gxz:"ZV41CrbValBaixa",gxold:"OV41CrbValBaixa",gxvar:"AV41CrbValBaixa",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV41CrbValBaixa=gx.fn.toDecimalValue(a,",",".")
},v2z:function(a){gx.O.ZV41CrbValBaixa=gx.fn.toDecimalValue(a,".",",")},v2c:function(){gx.fn.setGridDecimalValue("vCRBVALBAIXA",gx.fn.currentGridRowImpl(50),gx.O.AV41CrbValBaixa,2,",")},c2v:function(){gx.O.AV41CrbValBaixa=this.val()},val:function(){return gx.fn.getGridDecimalValue("vCRBVALBAIXA",gx.fn.currentGridRowImpl(50),".",",")},nac:function(){return false}};this.GXValidFnc[58]={lvl:2,type:"decimal",len:11,dec:2,sign:false,pic:"ZZ,ZZZ,ZZ9.99",ro:0,grid:50,gxgrid:this.Grid1Container,fnc:null,isvalid:null,fld:"vCRBVALDEDUCAO",gxz:"ZV39CrbValDeducao",gxold:"OV39CrbValDeducao",gxvar:"AV39CrbValDeducao",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV39CrbValDeducao=gx.fn.toDecimalValue(a,",",".")
},v2z:function(a){gx.O.ZV39CrbValDeducao=gx.fn.toDecimalValue(a,".",",")},v2c:function(){gx.fn.setGridDecimalValue("vCRBVALDEDUCAO",gx.fn.currentGridRowImpl(50),gx.O.AV39CrbValDeducao,2,",")},c2v:function(){gx.O.AV39CrbValDeducao=this.val()},val:function(){return gx.fn.getGridDecimalValue("vCRBVALDEDUCAO",gx.fn.currentGridRowImpl(50),".",",")},nac:function(){return false}};this.GXValidFnc[59]={lvl:2,type:"decimal",len:11,dec:2,sign:false,pic:"ZZ,ZZZ,ZZ9.99",ro:0,grid:50,gxgrid:this.Grid1Container,fnc:null,isvalid:null,fld:"vCRBVALACRESCIMO",gxz:"ZV38CrbValAcrescimo",gxold:"OV38CrbValAcrescimo",gxvar:"AV38CrbValAcrescimo",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV38CrbValAcrescimo=gx.fn.toDecimalValue(a,",",".")
},v2z:function(a){gx.O.ZV38CrbValAcrescimo=gx.fn.toDecimalValue(a,".",",")},v2c:function(){gx.fn.setGridDecimalValue("vCRBVALACRESCIMO",gx.fn.currentGridRowImpl(50),gx.O.AV38CrbValAcrescimo,2,",")},c2v:function(){gx.O.AV38CrbValAcrescimo=this.val()},val:function(){return gx.fn.getGridDecimalValue("vCRBVALACRESCIMO",gx.fn.currentGridRowImpl(50),".",",")},nac:function(){return false}};this.GXValidFnc[60]={lvl:2,type:"char",len:30,dec:0,sign:false,ro:0,grid:50,gxgrid:this.Grid1Container,fnc:null,isvalid:null,fld:"vCRCDESBAIXA",gxz:"ZV20CrcDesBaixa",gxold:"OV20CrcDesBaixa",gxvar:"AV20CrcDesBaixa",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV20CrcDesBaixa=a
},v2z:function(a){gx.O.ZV20CrcDesBaixa=a},v2c:function(){gx.fn.setGridControlValue("vCRCDESBAIXA",gx.fn.currentGridRowImpl(50),gx.O.AV20CrcDesBaixa,0)},c2v:function(){gx.O.AV20CrcDesBaixa=this.val()},val:function(){return gx.fn.getGridControlValue("vCRCDESBAIXA",gx.fn.currentGridRowImpl(50))},nac:function(){return false}};this.GXValidFnc[61]={lvl:2,type:"char",len:30,dec:0,sign:false,ro:1,grid:50,gxgrid:this.Grid1Container,fnc:null,isvalid:null,fld:"CRCDESHIST",gxz:"Z156CrcDesHist",gxold:"O156CrcDesHist",gxvar:"A156CrcDesHist",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A156CrcDesHist=a
},v2z:function(a){gx.O.Z156CrcDesHist=a},v2c:function(){gx.fn.setGridControlValue("CRCDESHIST",gx.fn.currentGridRowImpl(50),gx.O.A156CrcDesHist,0)},c2v:function(){gx.O.A156CrcDesHist=this.val()},val:function(){return gx.fn.getGridControlValue("CRCDESHIST",gx.fn.currentGridRowImpl(50))},nac:function(){return false}};this.GXValidFnc[62]={fld:"PROMPT_CRBCODUNIDDEPOSITARIA",grid:0};this.AV13UsbCod="";this.ZV13UsbCod="";this.OV13UsbCod="";this.AV17UsbNom="";this.ZV17UsbNom="";this.OV17UsbNom="";this.AV23IndBaixarTodas="";
this.ZV23IndBaixarTodas="";this.OV23IndBaixarTodas="";this.AV35IndImprimirComprovante="";this.ZV35IndImprimirComprovante="";this.OV35IndImprimirComprovante="";this.AV45CrbCodUnidDepositaria=0;this.ZV45CrbCodUnidDepositaria=0;this.OV45CrbCodUnidDepositaria=0;this.AV40CrbDatBaixa=gx.date.nullDate();this.ZV40CrbDatBaixa=gx.date.nullDate();this.OV40CrbDatBaixa=gx.date.nullDate();this.ZV64Op="";this.OV64Op="";this.Z157CrcNroSeq=0;this.O157CrcNroSeq=0;this.Z159CrcTipRece=0;this.O159CrcTipRece=0;this.Z163CrcValSald=0;
this.O163CrcValSald=0;this.Z154CrcDatEmis=gx.date.nullDate();this.O154CrcDatEmis=gx.date.nullDate();this.Z150CrcCodOper="";this.O150CrcCodOper="";this.ZV41CrbValBaixa=0;this.OV41CrbValBaixa=0;this.ZV39CrbValDeducao=0;this.OV39CrbValDeducao=0;this.ZV38CrbValAcrescimo=0;this.OV38CrbValAcrescimo=0;this.ZV20CrcDesBaixa="";this.OV20CrcDesBaixa="";this.Z156CrcDesHist="";this.O156CrcDesHist="";this.AV59ParmCodLeitor="";this.A152CrcDatBaix=gx.date.nullDate();this.A787UsbCod="";this.A160CrcValBaix=0;this.A162CrcValRece=0;
this.AV64Op="";this.A157CrcNroSeq=0;this.A159CrcTipRece=0;this.A163CrcValSald=0;this.A154CrcDatEmis=gx.date.nullDate();this.A150CrcCodOper="";this.AV41CrbValBaixa=0;this.AV39CrbValDeducao=0;this.AV38CrbValAcrescimo=0;this.AV20CrcDesBaixa="";this.A156CrcDesHist="";this.A786UsbNom="";this.A883TiuCod="";this.ServerEvents=["e11132_client","e12132_client","e16131_client","e17131_client"];this.setPrompt("PROMPT_CRBCODUNIDDEPOSITARIA",[43]);this.EnterCtrl=["BUTTON1"];this.VarControlMap.A162CrcValRece={id:"CRCVALRECE",grid:0,type:"decimal"};
this.VarControlMap.A160CrcValBaix={id:"CRCVALBAIX",grid:0,type:"decimal"};this.VarControlMap.AV59ParmCodLeitor={id:"vPARMCODLEITOR",grid:0,type:"char"};this.Grid1Container.addRefreshingVar(this.GXValidFnc[29]);this.SetStandaloneVars()}himh069.prototype=new gx.GxObject;gx.setParentObj(new himh069());