gx.evt.autoSkip=false;function taqt004(){this.ServerClass="TAqt004";this.PackageName="";this.setObjectType("trn");this.hasEnterEvent=true;this.SetStandaloneVars=function(){this.Gx_mode=gx.fn.getControlValue("vMODE")};this.Valid_Slcnro=function(){gx.ajax.validSrvEvt("dyncall","valid_Slcnro",["gx.O.A819SlcNro"],[]);return true};this.Valid_Sctnro=function(){gx.ajax.validSrvEvt("dyncall","valid_Sctnro",["gx.O.A819SlcNro","gx.O.A774SctNro",'gx.date.urlDate(gx.O.A771SctDatCota,"DMY")',"gx.O.A776SctPreBrut","gx.O.A775SctPctDesc","gx.O.A778SctValDesc","gx.O.A772SctIndSele","gx.O.A770SctCodForn","gx.O.A769SctCampo1L","gx.O.A100CdpCod"],["A771SctDatCota","A100CdpCod","A776SctPreBrut","A775SctPctDesc","A778SctValDesc","A772SctIndSele","A770SctCodForn","A769SctCampo1L","A101CdpDes","A777SctPreLiqu","A773SctNomForn","Gx_mode","Z819SlcNro","Z774SctNro","Z771SctDatCota","Z100CdpCod","Z776SctPreBrut","Z775SctPctDesc","Z778SctValDesc","Z772SctIndSele","Z770SctCodForn","Z769SctCampo1L","Z101CdpDes","Z777SctPreLiqu","Z773SctNomForn",["BTN_GET","Enabled"],["BTN_ENTER","Enabled"],["BTN_CHECK","Enabled"]]);
return true};this.Valid_Cdpcod=function(){gx.ajax.validSrvEvt("dyncall","valid_Cdpcod",["gx.O.A100CdpCod","gx.O.A101CdpDes"],["A101CdpDes"]);return true};this.Valid_Sctprebrut=function(){try{var a=gx.util.balloon.getNew("SCTPREBRUT");this.AnyError=0}catch(b){}try{if(a==null){return true}return a.show()}catch(b){}return true};this.Valid_Sctpctdesc=function(){try{var a=gx.util.balloon.getNew("SCTPCTDESC");this.AnyError=0}catch(b){}try{if(a==null){return true}return a.show()}catch(b){}return true};this.Valid_Sctvaldesc=function(){try{var a=gx.util.balloon.getNew("SCTVALDESC");
this.AnyError=0;try{if(this.A778SctValDesc>0){this.A777SctPreLiqu=this.A776SctPreBrut-this.A778SctValDesc}else{this.A777SctPreLiqu=gx.num.round(this.A776SctPreBrut*((100-this.A775SctPctDesc)/100),2)}}catch(b){}}catch(b){}try{if(a==null){return true}return a.show()}catch(b){}return true};this.Valid_Sctcodforn=function(){gx.ajax.validSrvEvt("dyncall","valid_Sctcodforn",["gx.O.A770SctCodForn","gx.O.A773SctNomForn"],["A773SctNomForn"]);return true};this.e112476_client=function(){this.executeServerEvent("ENTER",true)
};this.e122476_client=function(){this.executeServerEvent("CANCEL",true)};this.GXValidFnc=[];this.GXCtrlIds=[2,15,18,20,23,25,29,31,34,36,39,41,44,46,49,51,54,56,59,61,64,66,69,71,74,76,79,81,89,90];this.GXLastCtrlId=90;this.GXValidFnc[2]={fld:"TABLE1",grid:0};this.GXValidFnc[15]={fld:"TABLE2",grid:0};this.GXValidFnc[18]={fld:"TEXTBLOCK1",format:0,grid:0};this.GXValidFnc[20]={lvl:0,type:"int",len:6,dec:0,sign:false,pic:"ZZZZZ9",ro:0,grid:0,gxgrid:null,fnc:this.Valid_Slcnro,isvalid:null,rgrid:[],fld:"SLCNRO",gxz:"Z819SlcNro",gxold:"O819SlcNro",gxvar:"A819SlcNro",ucs:[],op:[],ip:[20],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.setControlValue("SLCNRO",gx.O.A819SlcNro,0)},c2v:function(){gx.O.A819SlcNro=this.val()},val:function(){return gx.fn.getIntegerValue("SLCNRO",".")},nac:function(){return false}};this.GXValidFnc[23]={fld:"TEXTBLOCK2",format:0,grid:0};this.GXValidFnc[25]={lvl:0,type:"int",len:2,dec:0,sign:false,pic:"Z9",ro:0,grid:0,gxgrid:null,fnc:this.Valid_Sctnro,isvalid:null,rgrid:[],fld:"SCTNRO",gxz:"Z774SctNro",gxold:"O774SctNro",gxvar:"A774SctNro",ucs:[],op:[36,76,71,66,56,51,46,31],ip:[36,76,71,66,56,51,46,31,25,20],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.setControlValue("SCTNRO",gx.O.A774SctNro,0)},c2v:function(){gx.O.A774SctNro=this.val()},val:function(){return gx.fn.getIntegerValue("SCTNRO",".")},nac:function(){return false}};this.GXValidFnc[29]={fld:"TEXTBLOCK3",format:0,grid:0};this.GXValidFnc[31]={lvl:0,type:"date",len:10,dec:0,sign:false,ro:0,grid:0,gxgrid:null,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.setControlValue("SCTDATCOTA",gx.O.A771SctDatCota,0)},c2v:function(){gx.O.A771SctDatCota=this.val()},val:function(){return gx.fn.getControlValue("SCTDATCOTA")},nac:function(){return false}};this.GXValidFnc[34]={fld:"TEXTBLOCK4",format:0,grid:0};this.GXValidFnc[36]={lvl:0,type:"int",len:3,dec:0,sign:false,pic:"ZZ9",ro:0,grid:0,gxgrid:null,fnc:this.Valid_Cdpcod,isvalid:null,rgrid:[],fld:"CDPCOD",gxz:"Z100CdpCod",gxold:"O100CdpCod",gxvar:"A100CdpCod",ucs:[],op:[41],ip:[41,36],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.setControlValue("CDPCOD",gx.O.A100CdpCod,0)},c2v:function(){gx.O.A100CdpCod=this.val()},val:function(){return gx.fn.getIntegerValue("CDPCOD",".")},nac:function(){return false}};this.GXValidFnc[39]={fld:"TEXTBLOCK5",format:0,grid:0};this.GXValidFnc[41]={lvl:0,type:"char",len:40,dec:0,sign:false,ro:1,grid:0,gxgrid:null,fnc:null,isvalid:null,fld:"CDPDES",gxz:"Z101CdpDes",gxold:"O101CdpDes",gxvar:"A101CdpDes",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A101CdpDes=a
},v2z:function(a){gx.O.Z101CdpDes=a},v2c:function(){gx.fn.setControlValue("CDPDES",gx.O.A101CdpDes,0)},c2v:function(){gx.O.A101CdpDes=this.val()},val:function(){return gx.fn.getControlValue("CDPDES")},nac:function(){return false}};this.GXValidFnc[44]={fld:"TEXTBLOCK6",format:0,grid:0};this.GXValidFnc[46]={lvl:0,type:"decimal",len:11,dec:2,sign:false,pic:"ZZ,ZZZ,ZZ9.99",ro:0,grid:0,gxgrid:null,fnc:this.Valid_Sctprebrut,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.setDecimalValue("SCTPREBRUT",gx.O.A776SctPreBrut,2,",")},c2v:function(){gx.O.A776SctPreBrut=this.val()},val:function(){return gx.fn.getDecimalValue("SCTPREBRUT",".",",")},nac:function(){return false}};this.GXValidFnc[49]={fld:"TEXTBLOCK7",format:0,grid:0};this.GXValidFnc[51]={lvl:0,type:"decimal",len:5,dec:1,sign:false,pic:"ZZ9.9",ro:0,grid:0,gxgrid:null,fnc:this.Valid_Sctpctdesc,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.setDecimalValue("SCTPCTDESC",gx.O.A775SctPctDesc,1,",")},c2v:function(){gx.O.A775SctPctDesc=this.val()},val:function(){return gx.fn.getDecimalValue("SCTPCTDESC",".",",")},nac:function(){return false}};this.GXValidFnc[54]={fld:"TEXTBLOCK8",format:0,grid:0};this.GXValidFnc[56]={lvl:0,type:"decimal",len:10,dec:2,sign:false,pic:"Z,ZZZ,ZZ9.99",ro:0,grid:0,gxgrid:null,fnc:this.Valid_Sctvaldesc,isvalid:null,fld:"SCTVALDESC",gxz:"Z778SctValDesc",gxold:"O778SctValDesc",gxvar:"A778SctValDesc",ucs:[],op:[61],ip:[61,51,56,46],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.setDecimalValue("SCTVALDESC",gx.O.A778SctValDesc,2,",")},c2v:function(){gx.O.A778SctValDesc=this.val()},val:function(){return gx.fn.getDecimalValue("SCTVALDESC",".",",")},nac:function(){return false}};this.GXValidFnc[59]={fld:"TEXTBLOCK9",format:0,grid:0};this.GXValidFnc[61]={lvl:0,type:"decimal",len:11,dec:2,sign:false,pic:"ZZ,ZZZ,ZZ9.99",ro:1,grid:0,gxgrid:null,fnc:null,isvalid:null,fld:"SCTPRELIQU",gxz:"Z777SctPreLiqu",gxold:"O777SctPreLiqu",gxvar:"A777SctPreLiqu",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A777SctPreLiqu=gx.fn.toDecimalValue(a,",",".")
},v2z:function(a){gx.O.Z777SctPreLiqu=gx.fn.toDecimalValue(a,".",",")},v2c:function(){gx.fn.setDecimalValue("SCTPRELIQU",gx.O.A777SctPreLiqu,2,",")},c2v:function(){gx.O.A777SctPreLiqu=this.val()},val:function(){return gx.fn.getDecimalValue("SCTPRELIQU",".",",")},nac:function(){return false}};this.GXValidFnc[64]={fld:"TEXTBLOCK10",format:0,grid:0};this.GXValidFnc[66]={lvl:0,type:"char",len:1,dec:0,sign:false,ro:0,grid:0,gxgrid:null,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.setComboBoxValue("SCTINDSELE",gx.O.A772SctIndSele)},c2v:function(){gx.O.A772SctIndSele=this.val()},val:function(){return gx.fn.getControlValue("SCTINDSELE")},nac:function(){return false}};this.GXValidFnc[69]={fld:"TEXTBLOCK11",format:0,grid:0};this.GXValidFnc[71]={lvl:0,type:"int",len:6,dec:0,sign:false,pic:"ZZZZZ9",ro:0,grid:0,gxgrid:null,fnc:this.Valid_Sctcodforn,isvalid:null,rgrid:[],fld:"SCTCODFORN",gxz:"Z770SctCodForn",gxold:"O770SctCodForn",gxvar:"A770SctCodForn",ucs:[],op:[81],ip:[81,71],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A770SctCodForn=gx.num.intval(a)
},v2z:function(a){gx.O.Z770SctCodForn=gx.num.intval(a)},v2c:function(){gx.fn.setControlValue("SCTCODFORN",gx.O.A770SctCodForn,0)},c2v:function(){gx.O.A770SctCodForn=this.val()},val:function(){return gx.fn.getIntegerValue("SCTCODFORN",".")},nac:function(){return false}};this.GXValidFnc[74]={fld:"TEXTBLOCK12",format:0,grid:0};this.GXValidFnc[76]={lvl:0,type:"char",len:20,dec:0,sign:false,ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,fld:"SCTCAMPO1L",gxz:"Z769SctCampo1L",gxold:"O769SctCampo1L",gxvar:"A769SctCampo1L",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A769SctCampo1L=a
},v2z:function(a){gx.O.Z769SctCampo1L=a},v2c:function(){gx.fn.setControlValue("SCTCAMPO1L",gx.O.A769SctCampo1L,0)},c2v:function(){gx.O.A769SctCampo1L=this.val()},val:function(){return gx.fn.getControlValue("SCTCAMPO1L")},nac:function(){return false}};this.GXValidFnc[79]={fld:"TEXTBLOCK13",format:0,grid:0};this.GXValidFnc[81]={lvl:0,type:"char",len:40,dec:0,sign:false,ro:1,grid:0,gxgrid:null,fnc:null,isvalid:null,fld:"SCTNOMFORN",gxz:"Z773SctNomForn",gxold:"O773SctNomForn",gxvar:"A773SctNomForn",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A773SctNomForn=a
},v2z:function(a){gx.O.Z773SctNomForn=a},v2c:function(){gx.fn.setControlValue("SCTNOMFORN",gx.O.A773SctNomForn,0)},c2v:function(){gx.O.A773SctNomForn=this.val()},val:function(){return gx.fn.getControlValue("SCTNOMFORN")},nac:function(){return false}};this.GXValidFnc[89]={fld:"PROMPT_819",grid:76};this.GXValidFnc[90]={fld:"PROMPT_100",grid:76};this.A819SlcNro=0;this.Z819SlcNro=0;this.O819SlcNro=0;this.A774SctNro=0;this.Z774SctNro=0;this.O774SctNro=0;this.A771SctDatCota=gx.date.nullDate();this.Z771SctDatCota=gx.date.nullDate();
this.O771SctDatCota=gx.date.nullDate();this.A100CdpCod=0;this.Z100CdpCod=0;this.O100CdpCod=0;this.A101CdpDes="";this.Z101CdpDes="";this.O101CdpDes="";this.A776SctPreBrut=0;this.Z776SctPreBrut=0;this.O776SctPreBrut=0;this.A775SctPctDesc=0;this.Z775SctPctDesc=0;this.O775SctPctDesc=0;this.A778SctValDesc=0;this.Z778SctValDesc=0;this.O778SctValDesc=0;this.A777SctPreLiqu=0;this.Z777SctPreLiqu=0;this.O777SctPreLiqu=0;this.A772SctIndSele="";this.Z772SctIndSele="";this.O772SctIndSele="";this.A770SctCodForn=0;
this.Z770SctCodForn=0;this.O770SctCodForn=0;this.A769SctCampo1L="";this.Z769SctCampo1L="";this.O769SctCampo1L="";this.A773SctNomForn="";this.Z773SctNomForn="";this.O773SctNomForn="";this.ServerEvents=["e112476_client","e122476_client"];this.setPrompt("PROMPT_819",[20]);this.setPrompt("PROMPT_100",[36]);this.EnterCtrl=["BTN_ENTER"];this.CheckCtrl=["BTN_CHECK"];this.VarControlMap.Gx_mode={id:"vMODE",grid:0,type:"char"};this.SetStandaloneVars()}taqt004.prototype=new gx.GxObject;gx.setParentObj(new taqt004());