gx.evt.autoSkip=false;function gx00o0(){this.ServerClass="Gx00O0";this.PackageName="GeneXus.Programs";this.setObjectType("web");this.hasEnterEvent=true;this.autoRefresh=true;this.SetStandaloneVars=function(){this.AV13pCrcNroSeq=gx.fn.getIntegerValue("vPCRCNROSEQ",".")};this.e139n2_client=function(){this.executeServerEvent("ENTER",true,arguments[0])};this.e149n1_client=function(){this.executeServerEvent("CANCEL",true)};this.GXValidFnc=[];this.GXCtrlIds=[2,8,9,12,14,17,19,22,24,27,29,32,34,37,39,42,44,47,48,52,53,54,55,56,57,58,59,62];
this.GXLastCtrlId=62;this.Grid1Container=new gx.grid.grid(this,2,"WbpLvl2",51,"Grid1","Grid1","Grid1Container",this.CmpContext,this.IsMasterPage,"gx00o0",[],false,1,false,true,10,true,false,false,"",0,"px","Novo registro",true,false,false,null,null,false,"");this.Grid1Container.addBitmap("&Linkselection","vLINKSELECTION",52,0,"px",17,"px",null,"","");this.Grid1Container.addSingleLineEdit(157,53,"CRCNROSEQ","Seq conta a receber","","CrcNroSeq","int",0,"px",7,7,"right",null,[],157,"CrcNroSeq",true,0,false,false);
this.Grid1Container.addSingleLineEdit(154,54,"CRCDATEMIS","Data emissão","Selecionar","CrcDatEmis","date",0,"px",10,10,"right",null,[],154,"CrcDatEmis",true,0,false,false);this.Grid1Container.addSingleLineEdit(787,55,"USBCOD","Código do leitor","","UsbCod","char",0,"px",14,14,"left",null,[],787,"UsbCod",true,0,false,false);this.Grid1Container.addSingleLineEdit(162,56,"CRCVALRECE","Valor a receber","","CrcValRece","decimal",0,"px",11,10,"right",null,[],162,"CrcValRece",true,2,false,false);this.Grid1Container.addSingleLineEdit(156,57,"CRCDESHIST","Histórico","","CrcDesHist","char",0,"px",30,30,"left",null,[],156,"CrcDesHist",true,0,false,false);
this.Grid1Container.addSingleLineEdit(152,58,"CRCDATBAIX","Data liquidação final","","CrcDatBaix","date",0,"px",10,10,"right",null,[],152,"CrcDatBaix",true,0,false,false);this.Grid1Container.addSingleLineEdit(158,59,"CRCNROTOMB","Nr. tombo","","CrcNroTomb","int",0,"px",9,9,"right",null,[],158,"CrcNroTomb",true,0,false,false);this.setGrid(this.Grid1Container);this.GXValidFnc[2]={fld:"TABLE1",grid:0};this.GXValidFnc[8]={fld:"GROUP1",grid:0};this.GXValidFnc[9]={fld:"TABLE2",grid:0};this.GXValidFnc[12]={fld:"TEXTBLOCKCRCNROSEQ",format:0,grid:0};
this.GXValidFnc[14]={lvl:0,type:"int",len:7,dec:0,sign:false,pic:"ZZZZZZ9",ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,rgrid:[this.Grid1Container],fld:"vCCRCNROSEQ",gxz:"ZV6cCrcNroSeq",gxold:"OV6cCrcNroSeq",gxvar:"AV6cCrcNroSeq",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV6cCrcNroSeq=gx.num.intval(a)},v2z:function(a){gx.O.ZV6cCrcNroSeq=gx.num.intval(a)},v2c:function(){gx.fn.setControlValue("vCCRCNROSEQ",gx.O.AV6cCrcNroSeq,0)},c2v:function(){gx.O.AV6cCrcNroSeq=this.val()},val:function(){return gx.fn.getIntegerValue("vCCRCNROSEQ",".")
},nac:function(){return false}};this.GXValidFnc[17]={fld:"TEXTBLOCKCRCDATEMISSAO",format:0,grid:0};this.GXValidFnc[19]={lvl:0,type:"date",len:10,dec:0,sign:false,ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,fld:"vCCRCDATEMISSAO",gxz:"ZV7cCrcDatEmissao",gxold:"OV7cCrcDatEmissao",gxvar:"AV7cCrcDatEmissao",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.AV7cCrcDatEmissao=gx.fn.toDatetimeValue(a)},v2z:function(a){gx.O.ZV7cCrcDatEmissao=gx.fn.toDatetimeValue(a)
},v2c:function(){gx.fn.setControlValue("vCCRCDATEMISSAO",gx.O.AV7cCrcDatEmissao,0)},c2v:function(){gx.O.AV7cCrcDatEmissao=this.val()},val:function(){return gx.fn.getControlValue("vCCRCDATEMISSAO")},nac:function(){return false}};this.GXValidFnc[22]={fld:"TEXTBLOCKUSBCOD",format:0,grid:0};this.GXValidFnc[24]={lvl:0,type:"char",len:14,dec:0,sign:false,ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,fld:"vCUSBCOD",gxz:"ZV8cUsbCod",gxold:"OV8cUsbCod",gxvar:"AV8cUsbCod",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV8cUsbCod=a
},v2z:function(a){gx.O.ZV8cUsbCod=a},v2c:function(){gx.fn.setControlValue("vCUSBCOD",gx.O.AV8cUsbCod,0)},c2v:function(){gx.O.AV8cUsbCod=this.val()},val:function(){return gx.fn.getControlValue("vCUSBCOD")},nac:function(){return false}};this.GXValidFnc[27]={fld:"TEXTBLOCKCRCVALRECEBER",format:0,grid:0};this.GXValidFnc[29]={lvl:0,type:"decimal",len:10,dec:2,sign:false,pic:"ZZZZ,ZZ9.99",ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,rgrid:[this.Grid1Container],fld:"vCCRCVALRECEBER",gxz:"ZV9cCrcValReceber",gxold:"OV9cCrcValReceber",gxvar:"AV9cCrcValReceber",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV9cCrcValReceber=gx.fn.toDecimalValue(a,",",".")
},v2z:function(a){gx.O.ZV9cCrcValReceber=gx.fn.toDecimalValue(a,".",",")},v2c:function(){gx.fn.setDecimalValue("vCCRCVALRECEBER",gx.O.AV9cCrcValReceber,2,",")},c2v:function(){gx.O.AV9cCrcValReceber=this.val()},val:function(){return gx.fn.getDecimalValue("vCCRCVALRECEBER",".",",")},nac:function(){return false}};this.GXValidFnc[32]={fld:"TEXTBLOCKCRCDESHISTORICO",format:0,grid:0};this.GXValidFnc[34]={lvl:0,type:"char",len:30,dec:0,sign:false,ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,fld:"vCCRCDESHISTORICO",gxz:"ZV10cCrcDesHistorico",gxold:"OV10cCrcDesHistorico",gxvar:"AV10cCrcDesHistorico",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV10cCrcDesHistorico=a
},v2z:function(a){gx.O.ZV10cCrcDesHistorico=a},v2c:function(){gx.fn.setControlValue("vCCRCDESHISTORICO",gx.O.AV10cCrcDesHistorico,0)},c2v:function(){gx.O.AV10cCrcDesHistorico=this.val()},val:function(){return gx.fn.getControlValue("vCCRCDESHISTORICO")},nac:function(){return false}};this.GXValidFnc[37]={fld:"TEXTBLOCKCRCDATBAIXA",format:0,grid:0};this.GXValidFnc[39]={lvl:0,type:"date",len:10,dec:0,sign:false,ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,fld:"vCCRCDATBAIXA",gxz:"ZV11cCrcDatBaixa",gxold:"OV11cCrcDatBaixa",gxvar:"AV11cCrcDatBaixa",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.AV11cCrcDatBaixa=gx.fn.toDatetimeValue(a)
},v2z:function(a){gx.O.ZV11cCrcDatBaixa=gx.fn.toDatetimeValue(a)},v2c:function(){gx.fn.setControlValue("vCCRCDATBAIXA",gx.O.AV11cCrcDatBaixa,0)},c2v:function(){gx.O.AV11cCrcDatBaixa=this.val()},val:function(){return gx.fn.getControlValue("vCCRCDATBAIXA")},nac:function(){return false}};this.GXValidFnc[42]={fld:"TEXTBLOCKCRCVALBAIXA",format:0,grid:0};this.GXValidFnc[44]={lvl:0,type:"decimal",len:10,dec:2,sign:false,pic:"ZZZZ,ZZ9.99",ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,rgrid:[this.Grid1Container],fld:"vCCRCVALBAIXA",gxz:"ZV12cCrcValBaixa",gxold:"OV12cCrcValBaixa",gxvar:"AV12cCrcValBaixa",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV12cCrcValBaixa=gx.fn.toDecimalValue(a,",",".")
},v2z:function(a){gx.O.ZV12cCrcValBaixa=gx.fn.toDecimalValue(a,".",",")},v2c:function(){gx.fn.setDecimalValue("vCCRCVALBAIXA",gx.O.AV12cCrcValBaixa,2,",")},c2v:function(){gx.O.AV12cCrcValBaixa=this.val()},val:function(){return gx.fn.getDecimalValue("vCCRCVALBAIXA",".",",")},nac:function(){return false}};this.GXValidFnc[47]={fld:"GROUP2",grid:0};this.GXValidFnc[48]={fld:"TABLE3",grid:0};this.GXValidFnc[52]={lvl:2,type:"bits",len:4,dec:0,sign:false,ro:1,grid:51,gxgrid:this.Grid1Container,fnc:null,isvalid:null,fld:"vLINKSELECTION",gxz:"ZV5LinkSelection",gxold:"OV5LinkSelection",gxvar:"AV5LinkSelection",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV5LinkSelection=a
},v2z:function(a){gx.O.ZV5LinkSelection=a},v2c:function(){},c2v:function(){gx.O.AV5LinkSelection=this.val()},val:function(){return gx.fn.getGridControlValue("vLINKSELECTION",gx.fn.currentGridRowImpl(51))},nac:function(){return false}};this.GXValidFnc[53]={lvl:2,type:"int",len:7,dec:0,sign:false,pic:"ZZZZZZ9",ro:1,grid:51,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(51),gx.O.A157CrcNroSeq,0)},c2v:function(){gx.O.A157CrcNroSeq=this.val()},val:function(){return gx.fn.getGridIntegerValue("CRCNROSEQ",gx.fn.currentGridRowImpl(51),".")},nac:function(){return false}};this.GXValidFnc[54]={lvl:2,type:"date",len:10,dec:0,sign:false,ro:1,grid:51,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(51),gx.O.A154CrcDatEmis,0)},c2v:function(){gx.O.A154CrcDatEmis=this.val()},val:function(){return gx.fn.getGridControlValue("CRCDATEMIS",gx.fn.currentGridRowImpl(51))},nac:function(){return false}};this.GXValidFnc[55]={lvl:2,type:"char",len:14,dec:0,sign:false,ro:1,grid:51,gxgrid:this.Grid1Container,fnc:null,isvalid:null,fld:"USBCOD",gxz:"Z787UsbCod",gxold:"O787UsbCod",gxvar:"A787UsbCod",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A787UsbCod=a
},v2z:function(a){gx.O.Z787UsbCod=a},v2c:function(){gx.fn.setGridControlValue("USBCOD",gx.fn.currentGridRowImpl(51),gx.O.A787UsbCod,0)},c2v:function(){gx.O.A787UsbCod=this.val()},val:function(){return gx.fn.getGridControlValue("USBCOD",gx.fn.currentGridRowImpl(51))},nac:function(){return false}};this.GXValidFnc[56]={lvl:2,type:"decimal",len:10,dec:2,sign:false,pic:"ZZZZ,ZZ9.99",ro:1,grid:51,gxgrid:this.Grid1Container,fnc:null,isvalid:null,rgrid:[],fld:"CRCVALRECE",gxz:"Z162CrcValRece",gxold:"O162CrcValRece",gxvar:"A162CrcValRece",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A162CrcValRece=gx.fn.toDecimalValue(a,",",".")
},v2z:function(a){gx.O.Z162CrcValRece=gx.fn.toDecimalValue(a,".",",")},v2c:function(){gx.fn.setGridDecimalValue("CRCVALRECE",gx.fn.currentGridRowImpl(51),gx.O.A162CrcValRece,2,",")},c2v:function(){gx.O.A162CrcValRece=this.val()},val:function(){return gx.fn.getGridDecimalValue("CRCVALRECE",gx.fn.currentGridRowImpl(51),".",",")},nac:function(){return false}};this.GXValidFnc[57]={lvl:2,type:"char",len:30,dec:0,sign:false,ro:1,grid:51,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(51),gx.O.A156CrcDesHist,0)},c2v:function(){gx.O.A156CrcDesHist=this.val()},val:function(){return gx.fn.getGridControlValue("CRCDESHIST",gx.fn.currentGridRowImpl(51))},nac:function(){return false}};this.GXValidFnc[58]={lvl:2,type:"date",len:10,dec:0,sign:false,ro:1,grid:51,gxgrid:this.Grid1Container,fnc:null,isvalid:null,fld:"CRCDATBAIX",gxz:"Z152CrcDatBaix",gxold:"O152CrcDatBaix",gxvar:"A152CrcDatBaix",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.A152CrcDatBaix=gx.fn.toDatetimeValue(a)
},v2z:function(a){gx.O.Z152CrcDatBaix=gx.fn.toDatetimeValue(a)},v2c:function(){gx.fn.setGridControlValue("CRCDATBAIX",gx.fn.currentGridRowImpl(51),gx.O.A152CrcDatBaix,0)},c2v:function(){gx.O.A152CrcDatBaix=this.val()},val:function(){return gx.fn.getGridControlValue("CRCDATBAIX",gx.fn.currentGridRowImpl(51))},nac:function(){return false}};this.GXValidFnc[59]={lvl:2,type:"int",len:9,dec:0,sign:false,pic:"ZZZZZ9",ro:1,grid:51,gxgrid:this.Grid1Container,fnc:null,isvalid:null,rgrid:[],fld:"CRCNROTOMB",gxz:"Z158CrcNroTomb",gxold:"O158CrcNroTomb",gxvar:"A158CrcNroTomb",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A158CrcNroTomb=gx.num.intval(a)
},v2z:function(a){gx.O.Z158CrcNroTomb=gx.num.intval(a)},v2c:function(){gx.fn.setGridControlValue("CRCNROTOMB",gx.fn.currentGridRowImpl(51),gx.O.A158CrcNroTomb,0)},c2v:function(){gx.O.A158CrcNroTomb=this.val()},val:function(){return gx.fn.getGridIntegerValue("CRCNROTOMB",gx.fn.currentGridRowImpl(51),".")},nac:function(){return false}};this.GXValidFnc[62]={fld:"TABLE4",grid:0};this.AV6cCrcNroSeq=0;this.ZV6cCrcNroSeq=0;this.OV6cCrcNroSeq=0;this.AV7cCrcDatEmissao=gx.date.nullDate();this.ZV7cCrcDatEmissao=gx.date.nullDate();
this.OV7cCrcDatEmissao=gx.date.nullDate();this.AV8cUsbCod="";this.ZV8cUsbCod="";this.OV8cUsbCod="";this.AV9cCrcValReceber=0;this.ZV9cCrcValReceber=0;this.OV9cCrcValReceber=0;this.AV10cCrcDesHistorico="";this.ZV10cCrcDesHistorico="";this.OV10cCrcDesHistorico="";this.AV11cCrcDatBaixa=gx.date.nullDate();this.ZV11cCrcDatBaixa=gx.date.nullDate();this.OV11cCrcDatBaixa=gx.date.nullDate();this.AV12cCrcValBaixa=0;this.ZV12cCrcValBaixa=0;this.OV12cCrcValBaixa=0;this.ZV5LinkSelection="";this.OV5LinkSelection="";
this.Z157CrcNroSeq=0;this.O157CrcNroSeq=0;this.Z154CrcDatEmis=gx.date.nullDate();this.O154CrcDatEmis=gx.date.nullDate();this.Z787UsbCod="";this.O787UsbCod="";this.Z162CrcValRece=0;this.O162CrcValRece=0;this.Z156CrcDesHist="";this.O156CrcDesHist="";this.Z152CrcDatBaix=gx.date.nullDate();this.O152CrcDatBaix=gx.date.nullDate();this.Z158CrcNroTomb=0;this.O158CrcNroTomb=0;this.AV13pCrcNroSeq=0;this.A160CrcValBaix=0;this.AV5LinkSelection="";this.A157CrcNroSeq=0;this.A154CrcDatEmis=gx.date.nullDate();this.A787UsbCod="";
this.A162CrcValRece=0;this.A156CrcDesHist="";this.A152CrcDatBaix=gx.date.nullDate();this.A158CrcNroTomb=0;this.ServerEvents=["e139n2_client","e149n1_client"];this.VarControlMap.AV13pCrcNroSeq={id:"vPCRCNROSEQ",grid:0,type:"int"};this.Grid1Container.addRefreshingVar(this.GXValidFnc[14]);this.Grid1Container.addRefreshingVar(this.GXValidFnc[19]);this.Grid1Container.addRefreshingVar(this.GXValidFnc[24]);this.Grid1Container.addRefreshingVar(this.GXValidFnc[29]);this.Grid1Container.addRefreshingVar(this.GXValidFnc[34]);
this.Grid1Container.addRefreshingVar(this.GXValidFnc[39]);this.Grid1Container.addRefreshingVar(this.GXValidFnc[44]);this.SetStandaloneVars()}gx00o0.prototype=new gx.GxObject;gx.setParentObj(new gx00o0());