gx.evt.autoSkip=false;function gx0240(){this.ServerClass="Gx0240";this.PackageName="";this.setObjectType("web");this.hasEnterEvent=true;this.autoRefresh=true;this.SetStandaloneVars=function(){this.AV13pSlcNro=gx.fn.getIntegerValue("vPSLCNRO",".");this.AV14pSctNro=gx.fn.getIntegerValue("vPSCTNRO",".")};this.e13db2_client=function(){this.executeServerEvent("ENTER",true,arguments[0])};this.e14db1_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,"gx0240",[],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(819,53,"SLCNRO","Nro da solicitação","","SlcNro","int",0,"px",6,6,"right",null,[],819,"SlcNro",true,0,false,false);
this.Grid1Container.addSingleLineEdit(774,54,"SCTNRO","Número da cotação","","SctNro","int",0,"px",2,2,"right",null,[],774,"SctNro",true,0,false,false);this.Grid1Container.addSingleLineEdit(771,55,"SCTDATCOTA","Data","Selecionar","SctDatCota","date",0,"px",10,10,"right",null,[],771,"SctDatCota",true,0,false,false);this.Grid1Container.addSingleLineEdit(100,56,"CDPCOD","Condição de pagamento","","CdpCod","int",0,"px",3,3,"right",null,[],100,"CdpCod",true,0,false,false);this.Grid1Container.addSingleLineEdit(776,57,"SCTPREBRUT","Preço unitário bruto","","SctPreBrut","decimal",0,"px",13,11,"right",null,[],776,"SctPreBrut",true,2,false,false);
this.Grid1Container.addSingleLineEdit(775,58,"SCTPCTDESC","Pct. Desconto","","SctPctDesc","decimal",0,"px",5,5,"right",null,[],775,"SctPctDesc",true,1,false,false);this.Grid1Container.addSingleLineEdit(778,59,"SCTVALDESC","Valor desconto","","SctValDesc","decimal",0,"px",12,10,"right",null,[],778,"SctValDesc",true,2,false,false);this.Grid1Container.addComboBox(772,60,"SCTINDSELE","Selecionada","SctIndSele","char",null,0,true,false,0,"px");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:"TEXTBLOCKSLCNRO",format:0,grid:0};this.GXValidFnc[14]={lvl:0,type:"int",len:6,dec:0,sign:false,pic:"ZZZZZ9",ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,rgrid:[this.Grid1Container],fld:"vCSLCNRO",gxz:"ZV6cSlcNro",gxold:"OV6cSlcNro",gxvar:"AV6cSlcNro",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV6cSlcNro=gx.num.intval(a)},v2z:function(a){gx.O.ZV6cSlcNro=gx.num.intval(a)
},v2c:function(){gx.fn.setControlValue("vCSLCNRO",gx.O.AV6cSlcNro,0)},c2v:function(){gx.O.AV6cSlcNro=this.val()},val:function(){return gx.fn.getIntegerValue("vCSLCNRO",".")},nac:function(){return false}};this.GXValidFnc[17]={fld:"TEXTBLOCKSCTNRO",format:0,grid:0};this.GXValidFnc[19]={lvl:0,type:"int",len:2,dec:0,sign:false,pic:"Z9",ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,rgrid:[this.Grid1Container],fld:"vCSCTNRO",gxz:"ZV7cSctNro",gxold:"OV7cSctNro",gxvar:"AV7cSctNro",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV7cSctNro=gx.num.intval(a)
},v2z:function(a){gx.O.ZV7cSctNro=gx.num.intval(a)},v2c:function(){gx.fn.setControlValue("vCSCTNRO",gx.O.AV7cSctNro,0)},c2v:function(){gx.O.AV7cSctNro=this.val()},val:function(){return gx.fn.getIntegerValue("vCSCTNRO",".")},nac:function(){return false}};this.GXValidFnc[22]={fld:"TEXTBLOCKSCTDATCOTACAO",format:0,grid:0};this.GXValidFnc[24]={lvl:0,type:"date",len:10,dec:0,sign:false,ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,fld:"vCSCTDATCOTACAO",gxz:"ZV8cSctDatCotacao",gxold:"OV8cSctDatCotacao",gxvar:"AV8cSctDatCotacao",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.AV8cSctDatCotacao=gx.fn.toDatetimeValue(a)
},v2z:function(a){gx.O.ZV8cSctDatCotacao=gx.fn.toDatetimeValue(a)},v2c:function(){gx.fn.setControlValue("vCSCTDATCOTACAO",gx.O.AV8cSctDatCotacao,0)},c2v:function(){gx.O.AV8cSctDatCotacao=this.val()},val:function(){return gx.fn.getControlValue("vCSCTDATCOTACAO")},nac:function(){return false}};this.GXValidFnc[27]={fld:"TEXTBLOCKCDPCOD",format:0,grid:0};this.GXValidFnc[29]={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:"vCCDPCOD",gxz:"ZV9cCdpCod",gxold:"OV9cCdpCod",gxvar:"AV9cCdpCod",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV9cCdpCod=gx.num.intval(a)
},v2z:function(a){gx.O.ZV9cCdpCod=gx.num.intval(a)},v2c:function(){gx.fn.setControlValue("vCCDPCOD",gx.O.AV9cCdpCod,0)},c2v:function(){gx.O.AV9cCdpCod=this.val()},val:function(){return gx.fn.getIntegerValue("vCCDPCOD",".")},nac:function(){return false}};this.GXValidFnc[32]={fld:"TEXTBLOCKSCTPREBRUTOUNITARIO",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:"vCSCTPREBRUTOUNITARIO",gxz:"ZV10cSctPreBrutoUnitario",gxold:"OV10cSctPreBrutoUnitario",gxvar:"AV10cSctPreBrutoUnitario",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV10cSctPreBrutoUnitario=gx.fn.toDecimalValue(a,",",".")
},v2z:function(a){gx.O.ZV10cSctPreBrutoUnitario=gx.fn.toDecimalValue(a,".",",")},v2c:function(){gx.fn.setDecimalValue("vCSCTPREBRUTOUNITARIO",gx.O.AV10cSctPreBrutoUnitario,2,",")},c2v:function(){gx.O.AV10cSctPreBrutoUnitario=this.val()},val:function(){return gx.fn.getDecimalValue("vCSCTPREBRUTOUNITARIO",".",",")},nac:function(){return false}};this.GXValidFnc[37]={fld:"TEXTBLOCKSCTPCTDESCONTO",format:0,grid:0};this.GXValidFnc[39]={lvl:0,type:"decimal",len:5,dec:1,sign:false,pic:"ZZ9.9",ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,fld:"vCSCTPCTDESCONTO",gxz:"ZV11cSctPctDesconto",gxold:"OV11cSctPctDesconto",gxvar:"AV11cSctPctDesconto",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV11cSctPctDesconto=gx.fn.toDecimalValue(a,",",".")
},v2z:function(a){gx.O.ZV11cSctPctDesconto=gx.fn.toDecimalValue(a,".",",")},v2c:function(){gx.fn.setDecimalValue("vCSCTPCTDESCONTO",gx.O.AV11cSctPctDesconto,1,",")},c2v:function(){gx.O.AV11cSctPctDesconto=this.val()},val:function(){return gx.fn.getDecimalValue("vCSCTPCTDESCONTO",".",",")},nac:function(){return false}};this.GXValidFnc[42]={fld:"TEXTBLOCKSCTVALDESCONTO",format:0,grid:0};this.GXValidFnc[44]={lvl:0,type:"decimal",len:10,dec:2,sign:false,pic:"Z,ZZZ,ZZ9.99",ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,fld:"vCSCTVALDESCONTO",gxz:"ZV12cSctValDesconto",gxold:"OV12cSctValDesconto",gxvar:"AV12cSctValDesconto",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV12cSctValDesconto=gx.fn.toDecimalValue(a,",",".")
},v2z:function(a){gx.O.ZV12cSctValDesconto=gx.fn.toDecimalValue(a,".",",")},v2c:function(){gx.fn.setDecimalValue("vCSCTVALDESCONTO",gx.O.AV12cSctValDesconto,2,",")},c2v:function(){gx.O.AV12cSctValDesconto=this.val()},val:function(){return gx.fn.getDecimalValue("vCSCTVALDESCONTO",".",",")},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:6,dec:0,sign:false,pic:"ZZZZZ9",ro:1,grid:51,gxgrid:this.Grid1Container,fnc:null,isvalid:null,rgrid:[],fld:"SLCNRO",gxz:"Z819SlcNro",gxold:"O819SlcNro",gxvar:"A819SlcNro",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A819SlcNro=gx.num.intval(a)
},v2z:function(a){gx.O.Z819SlcNro=gx.num.intval(a)},v2c:function(){gx.fn.setGridControlValue("SLCNRO",gx.fn.currentGridRowImpl(51),gx.O.A819SlcNro,0)},c2v:function(){gx.O.A819SlcNro=this.val()},val:function(){return gx.fn.getGridIntegerValue("SLCNRO",gx.fn.currentGridRowImpl(51),".")},nac:function(){return false}};this.GXValidFnc[54]={lvl:2,type:"int",len:2,dec:0,sign:false,pic:"Z9",ro:1,grid:51,gxgrid:this.Grid1Container,fnc:null,isvalid:null,rgrid:[],fld:"SCTNRO",gxz:"Z774SctNro",gxold:"O774SctNro",gxvar:"A774SctNro",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A774SctNro=gx.num.intval(a)
},v2z:function(a){gx.O.Z774SctNro=gx.num.intval(a)},v2c:function(){gx.fn.setGridControlValue("SCTNRO",gx.fn.currentGridRowImpl(51),gx.O.A774SctNro,0)},c2v:function(){gx.O.A774SctNro=this.val()},val:function(){return gx.fn.getGridIntegerValue("SCTNRO",gx.fn.currentGridRowImpl(51),".")},nac:function(){return false}};this.GXValidFnc[55]={lvl:2,type:"date",len:10,dec:0,sign:false,ro:1,grid:51,gxgrid:this.Grid1Container,fnc:null,isvalid:null,fld:"SCTDATCOTA",gxz:"Z771SctDatCota",gxold:"O771SctDatCota",gxvar:"A771SctDatCota",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.A771SctDatCota=gx.fn.toDatetimeValue(a)
},v2z:function(a){gx.O.Z771SctDatCota=gx.fn.toDatetimeValue(a)},v2c:function(){gx.fn.setGridControlValue("SCTDATCOTA",gx.fn.currentGridRowImpl(51),gx.O.A771SctDatCota,0)},c2v:function(){gx.O.A771SctDatCota=this.val()},val:function(){return gx.fn.getGridControlValue("SCTDATCOTA",gx.fn.currentGridRowImpl(51))},nac:function(){return false}};this.GXValidFnc[56]={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:"CDPCOD",gxz:"Z100CdpCod",gxold:"O100CdpCod",gxvar:"A100CdpCod",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A100CdpCod=gx.num.intval(a)
},v2z:function(a){gx.O.Z100CdpCod=gx.num.intval(a)},v2c:function(){gx.fn.setGridControlValue("CDPCOD",gx.fn.currentGridRowImpl(51),gx.O.A100CdpCod,0)},c2v:function(){gx.O.A100CdpCod=this.val()},val:function(){return gx.fn.getGridIntegerValue("CDPCOD",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:"SCTPREBRUT",gxz:"Z776SctPreBrut",gxold:"O776SctPreBrut",gxvar:"A776SctPreBrut",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A776SctPreBrut=gx.fn.toDecimalValue(a,",",".")
},v2z:function(a){gx.O.Z776SctPreBrut=gx.fn.toDecimalValue(a,".",",")},v2c:function(){gx.fn.setGridDecimalValue("SCTPREBRUT",gx.fn.currentGridRowImpl(51),gx.O.A776SctPreBrut,2,",")},c2v:function(){gx.O.A776SctPreBrut=this.val()},val:function(){return gx.fn.getGridDecimalValue("SCTPREBRUT",gx.fn.currentGridRowImpl(51),".",",")},nac:function(){return false}};this.GXValidFnc[58]={lvl:2,type:"decimal",len:5,dec:1,sign:false,pic:"ZZ9.9",ro:1,grid:51,gxgrid:this.Grid1Container,fnc:null,isvalid:null,fld:"SCTPCTDESC",gxz:"Z775SctPctDesc",gxold:"O775SctPctDesc",gxvar:"A775SctPctDesc",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A775SctPctDesc=gx.fn.toDecimalValue(a,",",".")
},v2z:function(a){gx.O.Z775SctPctDesc=gx.fn.toDecimalValue(a,".",",")},v2c:function(){gx.fn.setGridDecimalValue("SCTPCTDESC",gx.fn.currentGridRowImpl(51),gx.O.A775SctPctDesc,1,",")},c2v:function(){gx.O.A775SctPctDesc=this.val()},val:function(){return gx.fn.getGridDecimalValue("SCTPCTDESC",gx.fn.currentGridRowImpl(51),".",",")},nac:function(){return false}};this.GXValidFnc[59]={lvl:2,type:"decimal",len:10,dec:2,sign:false,pic:"Z,ZZZ,ZZ9.99",ro:1,grid:51,gxgrid:this.Grid1Container,fnc:null,isvalid:null,fld:"SCTVALDESC",gxz:"Z778SctValDesc",gxold:"O778SctValDesc",gxvar:"A778SctValDesc",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A778SctValDesc=gx.fn.toDecimalValue(a,",",".")
},v2z:function(a){gx.O.Z778SctValDesc=gx.fn.toDecimalValue(a,".",",")},v2c:function(){gx.fn.setGridDecimalValue("SCTVALDESC",gx.fn.currentGridRowImpl(51),gx.O.A778SctValDesc,2,",")},c2v:function(){gx.O.A778SctValDesc=this.val()},val:function(){return gx.fn.getGridDecimalValue("SCTVALDESC",gx.fn.currentGridRowImpl(51),".",",")},nac:function(){return false}};this.GXValidFnc[60]={lvl:2,type:"char",len:1,dec:0,sign:false,ro:1,grid:51,gxgrid:this.Grid1Container,fnc:null,isvalid:null,fld:"SCTINDSELE",gxz:"Z772SctIndSele",gxold:"O772SctIndSele",gxvar:"A772SctIndSele",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"combo",v2v:function(a){gx.O.A772SctIndSele=a
},v2z:function(a){gx.O.Z772SctIndSele=a},v2c:function(){gx.fn.setGridComboBoxValue("SCTINDSELE",gx.fn.currentGridRowImpl(51),gx.O.A772SctIndSele)},c2v:function(){gx.O.A772SctIndSele=this.val()},val:function(){return gx.fn.getGridControlValue("SCTINDSELE",gx.fn.currentGridRowImpl(51))},nac:function(){return false}};this.GXValidFnc[63]={fld:"TABLE4",grid:0};this.AV6cSlcNro=0;this.ZV6cSlcNro=0;this.OV6cSlcNro=0;this.AV7cSctNro=0;this.ZV7cSctNro=0;this.OV7cSctNro=0;this.AV8cSctDatCotacao=gx.date.nullDate();
this.ZV8cSctDatCotacao=gx.date.nullDate();this.OV8cSctDatCotacao=gx.date.nullDate();this.AV9cCdpCod=0;this.ZV9cCdpCod=0;this.OV9cCdpCod=0;this.AV10cSctPreBrutoUnitario=0;this.ZV10cSctPreBrutoUnitario=0;this.OV10cSctPreBrutoUnitario=0;this.AV11cSctPctDesconto=0;this.ZV11cSctPctDesconto=0;this.OV11cSctPctDesconto=0;this.AV12cSctValDesconto=0;this.ZV12cSctValDesconto=0;this.OV12cSctValDesconto=0;this.ZV5LinkSelection="";this.OV5LinkSelection="";this.Z819SlcNro=0;this.O819SlcNro=0;this.Z774SctNro=0;this.O774SctNro=0;
this.Z771SctDatCota=gx.date.nullDate();this.O771SctDatCota=gx.date.nullDate();this.Z100CdpCod=0;this.O100CdpCod=0;this.Z776SctPreBrut=0;this.O776SctPreBrut=0;this.Z775SctPctDesc=0;this.O775SctPctDesc=0;this.Z778SctValDesc=0;this.O778SctValDesc=0;this.Z772SctIndSele="";this.O772SctIndSele="";this.AV13pSlcNro=0;this.AV14pSctNro=0;this.AV5LinkSelection="";this.A819SlcNro=0;this.A774SctNro=0;this.A771SctDatCota=gx.date.nullDate();this.A100CdpCod=0;this.A776SctPreBrut=0;this.A775SctPctDesc=0;this.A778SctValDesc=0;
this.A772SctIndSele="";this.ServerEvents=["e13db2_client","e14db1_client"];this.VarControlMap.AV13pSlcNro={id:"vPSLCNRO",grid:0,type:"int"};this.VarControlMap.AV14pSctNro={id:"vPSCTNRO",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()}gx0240.prototype=new gx.GxObject;gx.setParentObj(new gx0240());