gx.evt.autoSkip=false;function gx01y0(){this.ServerClass="Gx01Y0";this.PackageName="";this.setObjectType("web");this.hasEnterEvent=true;this.autoRefresh=true;this.SetStandaloneVars=function(){this.AV13pCrcNroSeq=gx.fn.getIntegerValue("vPCRCNROSEQ",".");this.AV14pCrbNroSeq=gx.fn.getIntegerValue("vPCRBNROSEQ",".")};this.e13bl2_client=function(){this.executeServerEvent("ENTER",true,arguments[0])};this.e14bl1_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,60,63];
this.GXLastCtrlId=63;this.Grid1Container=new gx.grid.grid(this,2,"WbpLvl2",51,"Grid1","Grid1","Grid1Container",this.CmpContext,this.IsMasterPage,"gx01y0",[],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(144,54,"CRBNROSEQ","Seq baixa","","CrbNroSeq","int",0,"px",3,3,"right",null,[],144,"CrbNroSeq",true,0,false,false);this.Grid1Container.addSingleLineEdit(141,55,"CRBDATBAIX","Data baixa","Selecionar","CrbDatBaix","dtime",0,"px",16,10,"right",null,[],141,"CrbDatBaix",true,5,false,false);this.Grid1Container.addSingleLineEdit(146,56,"CRBVALBAIX","Valor baixa","","CrbValBaix","decimal",0,"px",13,11,"right",null,[],146,"CrbValBaix",true,2,false,false);this.Grid1Container.addSingleLineEdit(147,57,"CRBVALDEDU","Valor dedução","","CrbValDedu","decimal",0,"px",13,11,"right",null,[],147,"CrbValDedu",true,2,false,false);
this.Grid1Container.addSingleLineEdit(145,58,"CRBVALACRE","Valor acréscimo","","CrbValAcre","decimal",0,"px",13,11,"right",null,[],145,"CrbValAcre",true,2,false,false);this.Grid1Container.addComboBox(143,59,"CRBINDCANC","Cancelado (S/N)","CrbIndCanc","char",null,0,true,false,0,"px");this.Grid1Container.addSingleLineEdit(528,60,"MBACOD","Motivo de baixa","","MbaCod","int",0,"px",3,3,"right",null,[],528,"MbaCod",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:"TEXTBLOCKCRBNROSEQ",format:0,grid:0};this.GXValidFnc[19]={lvl:0,type:"int",len:3,dec:0,sign:false,pic:"ZZ9",ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,rgrid:[this.Grid1Container],fld:"vCCRBNROSEQ",gxz:"ZV7cCrbNroSeq",gxold:"OV7cCrbNroSeq",gxvar:"AV7cCrbNroSeq",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV7cCrbNroSeq=gx.num.intval(a)
},v2z:function(a){gx.O.ZV7cCrbNroSeq=gx.num.intval(a)},v2c:function(){gx.fn.setControlValue("vCCRBNROSEQ",gx.O.AV7cCrbNroSeq,0)},c2v:function(){gx.O.AV7cCrbNroSeq=this.val()},val:function(){return gx.fn.getIntegerValue("vCCRBNROSEQ",".")},nac:function(){return false}};this.GXValidFnc[22]={fld:"TEXTBLOCKCRBDATBAIXA",format:0,grid:0};this.GXValidFnc[24]={lvl:0,type:"dtime",len:10,dec:5,sign:false,ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,fld:"vCCRBDATBAIXA",gxz:"ZV8cCrbDatBaixa",gxold:"OV8cCrbDatBaixa",gxvar:"AV8cCrbDatBaixa",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.AV8cCrbDatBaixa=gx.fn.toDatetimeValue(a)
},v2z:function(a){gx.O.ZV8cCrbDatBaixa=gx.fn.toDatetimeValue(a)},v2c:function(){gx.fn.setControlValue("vCCRBDATBAIXA",gx.O.AV8cCrbDatBaixa,0)},c2v:function(){gx.O.AV8cCrbDatBaixa=this.val()},val:function(){return gx.fn.getControlValue("vCCRBDATBAIXA")},nac:function(){return false}};this.GXValidFnc[27]={fld:"TEXTBLOCKCRBVALBAIXA",format:0,grid:0};this.GXValidFnc[29]={lvl:0,type:"decimal",len:11,dec:2,sign:false,pic:"ZZ,ZZZ,ZZ9.99",ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,fld:"vCCRBVALBAIXA",gxz:"ZV9cCrbValBaixa",gxold:"OV9cCrbValBaixa",gxvar:"AV9cCrbValBaixa",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV9cCrbValBaixa=gx.fn.toDecimalValue(a,",",".")
},v2z:function(a){gx.O.ZV9cCrbValBaixa=gx.fn.toDecimalValue(a,".",",")},v2c:function(){gx.fn.setDecimalValue("vCCRBVALBAIXA",gx.O.AV9cCrbValBaixa,2,",")},c2v:function(){gx.O.AV9cCrbValBaixa=this.val()},val:function(){return gx.fn.getDecimalValue("vCCRBVALBAIXA",".",",")},nac:function(){return false}};this.GXValidFnc[32]={fld:"TEXTBLOCKCRBVALDEDUCAO",format:0,grid:0};this.GXValidFnc[34]={lvl:0,type:"decimal",len:11,dec:2,sign:false,pic:"ZZ,ZZZ,ZZ9.99",ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,fld:"vCCRBVALDEDUCAO",gxz:"ZV10cCrbValDeducao",gxold:"OV10cCrbValDeducao",gxvar:"AV10cCrbValDeducao",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV10cCrbValDeducao=gx.fn.toDecimalValue(a,",",".")
},v2z:function(a){gx.O.ZV10cCrbValDeducao=gx.fn.toDecimalValue(a,".",",")},v2c:function(){gx.fn.setDecimalValue("vCCRBVALDEDUCAO",gx.O.AV10cCrbValDeducao,2,",")},c2v:function(){gx.O.AV10cCrbValDeducao=this.val()},val:function(){return gx.fn.getDecimalValue("vCCRBVALDEDUCAO",".",",")},nac:function(){return false}};this.GXValidFnc[37]={fld:"TEXTBLOCKCRBVALACRESCIMO",format:0,grid:0};this.GXValidFnc[39]={lvl:0,type:"decimal",len:11,dec:2,sign:false,pic:"ZZ,ZZZ,ZZ9.99",ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,fld:"vCCRBVALACRESCIMO",gxz:"ZV11cCrbValAcrescimo",gxold:"OV11cCrbValAcrescimo",gxvar:"AV11cCrbValAcrescimo",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV11cCrbValAcrescimo=gx.fn.toDecimalValue(a,",",".")
},v2z:function(a){gx.O.ZV11cCrbValAcrescimo=gx.fn.toDecimalValue(a,".",",")},v2c:function(){gx.fn.setDecimalValue("vCCRBVALACRESCIMO",gx.O.AV11cCrbValAcrescimo,2,",")},c2v:function(){gx.O.AV11cCrbValAcrescimo=this.val()},val:function(){return gx.fn.getDecimalValue("vCCRBVALACRESCIMO",".",",")},nac:function(){return false}};this.GXValidFnc[42]={fld:"TEXTBLOCKCRBINDCANCELADO",format:0,grid:0};this.GXValidFnc[44]={lvl:0,type:"char",len:1,dec:0,sign:false,ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,fld:"vCCRBINDCANCELADO",gxz:"ZV12cCrbIndCancelado",gxold:"OV12cCrbIndCancelado",gxvar:"AV12cCrbIndCancelado",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"combo",v2v:function(a){gx.O.AV12cCrbIndCancelado=a
},v2z:function(a){gx.O.ZV12cCrbIndCancelado=a},v2c:function(){gx.fn.setComboBoxValue("vCCRBINDCANCELADO",gx.O.AV12cCrbIndCancelado)},c2v:function(){gx.O.AV12cCrbIndCancelado=this.val()},val:function(){return gx.fn.getControlValue("vCCRBINDCANCELADO")},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:"int",len:3,dec:0,sign:false,pic:"ZZ9",ro:1,grid:51,gxgrid:this.Grid1Container,fnc:null,isvalid:null,rgrid:[],fld:"CRBNROSEQ",gxz:"Z144CrbNroSeq",gxold:"O144CrbNroSeq",gxvar:"A144CrbNroSeq",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A144CrbNroSeq=gx.num.intval(a)
},v2z:function(a){gx.O.Z144CrbNroSeq=gx.num.intval(a)},v2c:function(){gx.fn.setGridControlValue("CRBNROSEQ",gx.fn.currentGridRowImpl(51),gx.O.A144CrbNroSeq,0)},c2v:function(){gx.O.A144CrbNroSeq=this.val()},val:function(){return gx.fn.getGridIntegerValue("CRBNROSEQ",gx.fn.currentGridRowImpl(51),".")},nac:function(){return false}};this.GXValidFnc[55]={lvl:2,type:"dtime",len:10,dec:5,sign:false,ro:1,grid:51,gxgrid:this.Grid1Container,fnc:null,isvalid:null,fld:"CRBDATBAIX",gxz:"Z141CrbDatBaix",gxold:"O141CrbDatBaix",gxvar:"A141CrbDatBaix",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.A141CrbDatBaix=gx.fn.toDatetimeValue(a)
},v2z:function(a){gx.O.Z141CrbDatBaix=gx.fn.toDatetimeValue(a)},v2c:function(){gx.fn.setGridControlValue("CRBDATBAIX",gx.fn.currentGridRowImpl(51),gx.O.A141CrbDatBaix,0)},c2v:function(){gx.O.A141CrbDatBaix=this.val()},val:function(){return gx.fn.getGridControlValue("CRBDATBAIX",gx.fn.currentGridRowImpl(51))},nac:function(){return false}};this.GXValidFnc[56]={lvl:2,type:"decimal",len:11,dec:2,sign:false,pic:"ZZ,ZZZ,ZZ9.99",ro:1,grid:51,gxgrid:this.Grid1Container,fnc:null,isvalid:null,fld:"CRBVALBAIX",gxz:"Z146CrbValBaix",gxold:"O146CrbValBaix",gxvar:"A146CrbValBaix",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A146CrbValBaix=gx.fn.toDecimalValue(a,",",".")
},v2z:function(a){gx.O.Z146CrbValBaix=gx.fn.toDecimalValue(a,".",",")},v2c:function(){gx.fn.setGridDecimalValue("CRBVALBAIX",gx.fn.currentGridRowImpl(51),gx.O.A146CrbValBaix,2,",")},c2v:function(){gx.O.A146CrbValBaix=this.val()},val:function(){return gx.fn.getGridDecimalValue("CRBVALBAIX",gx.fn.currentGridRowImpl(51),".",",")},nac:function(){return false}};this.GXValidFnc[57]={lvl:2,type:"decimal",len:11,dec:2,sign:false,pic:"ZZ,ZZZ,ZZ9.99",ro:1,grid:51,gxgrid:this.Grid1Container,fnc:null,isvalid:null,fld:"CRBVALDEDU",gxz:"Z147CrbValDedu",gxold:"O147CrbValDedu",gxvar:"A147CrbValDedu",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A147CrbValDedu=gx.fn.toDecimalValue(a,",",".")
},v2z:function(a){gx.O.Z147CrbValDedu=gx.fn.toDecimalValue(a,".",",")},v2c:function(){gx.fn.setGridDecimalValue("CRBVALDEDU",gx.fn.currentGridRowImpl(51),gx.O.A147CrbValDedu,2,",")},c2v:function(){gx.O.A147CrbValDedu=this.val()},val:function(){return gx.fn.getGridDecimalValue("CRBVALDEDU",gx.fn.currentGridRowImpl(51),".",",")},nac:function(){return false}};this.GXValidFnc[58]={lvl:2,type:"decimal",len:11,dec:2,sign:false,pic:"ZZ,ZZZ,ZZ9.99",ro:1,grid:51,gxgrid:this.Grid1Container,fnc:null,isvalid:null,fld:"CRBVALACRE",gxz:"Z145CrbValAcre",gxold:"O145CrbValAcre",gxvar:"A145CrbValAcre",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A145CrbValAcre=gx.fn.toDecimalValue(a,",",".")
},v2z:function(a){gx.O.Z145CrbValAcre=gx.fn.toDecimalValue(a,".",",")},v2c:function(){gx.fn.setGridDecimalValue("CRBVALACRE",gx.fn.currentGridRowImpl(51),gx.O.A145CrbValAcre,2,",")},c2v:function(){gx.O.A145CrbValAcre=this.val()},val:function(){return gx.fn.getGridDecimalValue("CRBVALACRE",gx.fn.currentGridRowImpl(51),".",",")},nac:function(){return false}};this.GXValidFnc[59]={lvl:2,type:"char",len:1,dec:0,sign:false,ro:1,grid:51,gxgrid:this.Grid1Container,fnc:null,isvalid:null,fld:"CRBINDCANC",gxz:"Z143CrbIndCanc",gxold:"O143CrbIndCanc",gxvar:"A143CrbIndCanc",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"combo",v2v:function(a){gx.O.A143CrbIndCanc=a
},v2z:function(a){gx.O.Z143CrbIndCanc=a},v2c:function(){gx.fn.setGridComboBoxValue("CRBINDCANC",gx.fn.currentGridRowImpl(51),gx.O.A143CrbIndCanc)},c2v:function(){gx.O.A143CrbIndCanc=this.val()},val:function(){return gx.fn.getGridControlValue("CRBINDCANC",gx.fn.currentGridRowImpl(51))},nac:function(){return false}};this.GXValidFnc[60]={lvl:2,type:"int",len:3,dec:0,sign:false,pic:"ZZ9",ro:1,grid:51,gxgrid:this.Grid1Container,fnc:null,isvalid:null,rgrid:[],fld:"MBACOD",gxz:"Z528MbaCod",gxold:"O528MbaCod",gxvar:"A528MbaCod",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A528MbaCod=gx.num.intval(a)
},v2z:function(a){gx.O.Z528MbaCod=gx.num.intval(a)},v2c:function(){gx.fn.setGridControlValue("MBACOD",gx.fn.currentGridRowImpl(51),gx.O.A528MbaCod,0)},c2v:function(){gx.O.A528MbaCod=this.val()},val:function(){return gx.fn.getGridIntegerValue("MBACOD",gx.fn.currentGridRowImpl(51),".")},nac:function(){return false}};this.GXValidFnc[63]={fld:"TABLE4",grid:0};this.AV6cCrcNroSeq=0;this.ZV6cCrcNroSeq=0;this.OV6cCrcNroSeq=0;this.AV7cCrbNroSeq=0;this.ZV7cCrbNroSeq=0;this.OV7cCrbNroSeq=0;this.AV8cCrbDatBaixa=gx.date.nullDate();
this.ZV8cCrbDatBaixa=gx.date.nullDate();this.OV8cCrbDatBaixa=gx.date.nullDate();this.AV9cCrbValBaixa=0;this.ZV9cCrbValBaixa=0;this.OV9cCrbValBaixa=0;this.AV10cCrbValDeducao=0;this.ZV10cCrbValDeducao=0;this.OV10cCrbValDeducao=0;this.AV11cCrbValAcrescimo=0;this.ZV11cCrbValAcrescimo=0;this.OV11cCrbValAcrescimo=0;this.AV12cCrbIndCancelado="";this.ZV12cCrbIndCancelado="";this.OV12cCrbIndCancelado="";this.ZV5LinkSelection="";this.OV5LinkSelection="";this.Z157CrcNroSeq=0;this.O157CrcNroSeq=0;this.Z144CrbNroSeq=0;
this.O144CrbNroSeq=0;this.Z141CrbDatBaix=gx.date.nullDate();this.O141CrbDatBaix=gx.date.nullDate();this.Z146CrbValBaix=0;this.O146CrbValBaix=0;this.Z147CrbValDedu=0;this.O147CrbValDedu=0;this.Z145CrbValAcre=0;this.O145CrbValAcre=0;this.Z143CrbIndCanc="";this.O143CrbIndCanc="";this.Z528MbaCod=0;this.O528MbaCod=0;this.AV13pCrcNroSeq=0;this.AV14pCrbNroSeq=0;this.AV5LinkSelection="";this.A157CrcNroSeq=0;this.A144CrbNroSeq=0;this.A141CrbDatBaix=gx.date.nullDate();this.A146CrbValBaix=0;this.A147CrbValDedu=0;
this.A145CrbValAcre=0;this.A143CrbIndCanc="";this.A528MbaCod=0;this.ServerEvents=["e13bl2_client","e14bl1_client"];this.VarControlMap.AV13pCrcNroSeq={id:"vPCRCNROSEQ",grid:0,type:"int"};this.VarControlMap.AV14pCrbNroSeq={id:"vPCRBNROSEQ",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()}gx01y0.prototype=new gx.GxObject;gx.setParentObj(new gx01y0());