gx.evt.autoSkip=false;function tabt035(){this.ServerClass="TAbt035";this.PackageName="";this.setObjectType("trn");this.hasEnterEvent=true;this.SetStandaloneVars=function(){this.Gx_mode=gx.fn.getControlValue("vMODE")};this.Valid_Crcnroseq=function(){gx.ajax.validSrvEvt("dyncall","valid_Crcnroseq",["gx.O.A157CrcNroSeq",'gx.date.urlDate(gx.O.A154CrcDatEmis,"DMY")',"gx.O.A162CrcValRece","gx.O.A156CrcDesHist",'gx.date.urlDate(gx.O.A152CrcDatBaix,"DMY")',"gx.O.A160CrcValBaix","gx.O.A155CrcDesBaix","gx.O.A148CrcCampo1L","gx.O.A158CrcNroTomb","gx.O.A161CrcValDiar",'gx.date.urlDate(gx.O.A153CrcDatDevP,"DMY")',"gx.O.A159CrcTipRece","gx.O.A151CrcCodUnid","gx.O.A149CrcCodLoca","gx.O.A150CrcCodOper","gx.O.A787UsbCod"],["A154CrcDatEmis","A787UsbCod","A162CrcValRece","A156CrcDesHist","A152CrcDatBaix","A160CrcValBaix","A155CrcDesBaix","A148CrcCampo1L","A158CrcNroTomb","A161CrcValDiar","A153CrcDatDevP","A159CrcTipRece","A151CrcCodUnid","A149CrcCodLoca","A150CrcCodOper","A786UsbNom","A163CrcValSald","Gx_mode","Z157CrcNroSeq","Z154CrcDatEmis","Z787UsbCod","Z162CrcValRece","Z156CrcDesHist","Z152CrcDatBaix","Z160CrcValBaix","Z155CrcDesBaix","Z148CrcCampo1L","Z158CrcNroTomb","Z161CrcValDiar","Z153CrcDatDevP","Z159CrcTipRece","Z151CrcCodUnid","Z149CrcCodLoca","Z150CrcCodOper","Z786UsbNom","Z163CrcValSald",["BTN_GET","Enabled"],["BTN_ENTER","Enabled"],["BTN_CHECK","Enabled"]]);
return true};this.Valid_Usbcod=function(){gx.ajax.validSrvEvt("dyncall","valid_Usbcod",["gx.O.A787UsbCod","gx.O.A786UsbNom"],["A786UsbNom"]);return true};this.Valid_Crcvalrece=function(){try{var a=gx.util.balloon.getNew("CRCVALRECE");this.AnyError=0}catch(b){}try{if(a==null){return true}return a.show()}catch(b){}return true};this.Valid_Crcvalbaix=function(){try{var a=gx.util.balloon.getNew("CRCVALBAIX");this.AnyError=0;try{if(this.A162CrcValRece>=this.A160CrcValBaix){this.A163CrcValSald=this.A162CrcValRece-this.A160CrcValBaix
}else{this.A163CrcValSald=0}}catch(b){}}catch(b){}try{if(a==null){return true}return a.show()}catch(b){}return true};this.e110w24_client=function(){this.executeServerEvent("ENTER",true)};this.e120w24_client=function(){this.executeServerEvent("CANCEL",true)};this.GXValidFnc=[];this.GXCtrlIds=[2,15,18,20,24,26,29,31,34,36,39,41,44,46,49,51,54,56,59,61,64,66,69,71,74,76,79,81,84,86,89,91,94,96,99,101,104,106,114];this.GXLastCtrlId=114;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:7,dec:0,sign:false,pic:"ZZZZZZ9",ro:0,grid:0,gxgrid:null,fnc:this.Valid_Crcnroseq,isvalid:null,rgrid:[],fld:"CRCNROSEQ",gxz:"Z157CrcNroSeq",gxold:"O157CrcNroSeq",gxvar:"A157CrcNroSeq",ucs:[],op:[31,101,96,91,86,81,76,71,66,61,56,51,46,41,26],ip:[31,101,96,91,86,81,76,71,66,61,56,51,46,41,26,20],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.setControlValue("CRCNROSEQ",gx.O.A157CrcNroSeq,0)},c2v:function(){gx.O.A157CrcNroSeq=this.val()},val:function(){return gx.fn.getIntegerValue("CRCNROSEQ",".")},nac:function(){return false}};this.GXValidFnc[24]={fld:"TEXTBLOCK2",format:0,grid:0};this.GXValidFnc[26]={lvl:0,type:"date",len:10,dec:0,sign:false,ro:0,grid:0,gxgrid:null,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.setControlValue("CRCDATEMIS",gx.O.A154CrcDatEmis,0)},c2v:function(){gx.O.A154CrcDatEmis=this.val()},val:function(){return gx.fn.getControlValue("CRCDATEMIS")},nac:function(){return false}};this.GXValidFnc[29]={fld:"TEXTBLOCK3",format:0,grid:0};this.GXValidFnc[31]={lvl:0,type:"char",len:14,dec:0,sign:false,ro:0,grid:0,gxgrid:null,fnc:this.Valid_Usbcod,isvalid:null,fld:"USBCOD",gxz:"Z787UsbCod",gxold:"O787UsbCod",gxvar:"A787UsbCod",ucs:[],op:[36],ip:[36,31],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A787UsbCod=a
},v2z:function(a){gx.O.Z787UsbCod=a},v2c:function(){gx.fn.setControlValue("USBCOD",gx.O.A787UsbCod,0)},c2v:function(){gx.O.A787UsbCod=this.val()},val:function(){return gx.fn.getControlValue("USBCOD")},nac:function(){return false}};this.GXValidFnc[34]={fld:"TEXTBLOCK4",format:0,grid:0};this.GXValidFnc[36]={lvl:0,type:"char",len:50,dec:0,sign:false,ro:1,grid:0,gxgrid:null,fnc:null,isvalid:null,fld:"USBNOM",gxz:"Z786UsbNom",gxold:"O786UsbNom",gxvar:"A786UsbNom",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A786UsbNom=a
},v2z:function(a){gx.O.Z786UsbNom=a},v2c:function(){gx.fn.setControlValue("USBNOM",gx.O.A786UsbNom,0)},c2v:function(){gx.O.A786UsbNom=this.val()},val:function(){return gx.fn.getControlValue("USBNOM")},nac:function(){return false}};this.GXValidFnc[39]={fld:"TEXTBLOCK5",format:0,grid:0};this.GXValidFnc[41]={lvl:0,type:"decimal",len:10,dec:2,sign:false,pic:"ZZZZ,ZZ9.99",ro:0,grid:0,gxgrid:null,fnc:this.Valid_Crcvalrece,isvalid:null,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.setDecimalValue("CRCVALRECE",gx.O.A162CrcValRece,2,",")},c2v:function(){gx.O.A162CrcValRece=this.val()},val:function(){return gx.fn.getDecimalValue("CRCVALRECE",".",",")},nac:function(){return false}};this.GXValidFnc[44]={fld:"TEXTBLOCK6",format:0,grid:0};this.GXValidFnc[46]={lvl:0,type:"char",len:30,dec:0,sign:false,ro:0,grid:0,gxgrid:null,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.setControlValue("CRCDESHIST",gx.O.A156CrcDesHist,0)},c2v:function(){gx.O.A156CrcDesHist=this.val()},val:function(){return gx.fn.getControlValue("CRCDESHIST")},nac:function(){return false}};this.GXValidFnc[49]={fld:"TEXTBLOCK7",format:0,grid:0};this.GXValidFnc[51]={lvl:0,type:"date",len:10,dec:0,sign:false,ro:0,grid:0,gxgrid:null,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.setControlValue("CRCDATBAIX",gx.O.A152CrcDatBaix,0)},c2v:function(){gx.O.A152CrcDatBaix=this.val()},val:function(){return gx.fn.getControlValue("CRCDATBAIX")},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:"ZZZZ,ZZ9.99",ro:0,grid:0,gxgrid:null,fnc:this.Valid_Crcvalbaix,isvalid:null,fld:"CRCVALBAIX",gxz:"Z160CrcValBaix",gxold:"O160CrcValBaix",gxvar:"A160CrcValBaix",ucs:[],op:[106],ip:[106,56,41],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A160CrcValBaix=gx.fn.toDecimalValue(a,",",".")
},v2z:function(a){gx.O.Z160CrcValBaix=gx.fn.toDecimalValue(a,".",",")},v2c:function(){gx.fn.setDecimalValue("CRCVALBAIX",gx.O.A160CrcValBaix,2,",")},c2v:function(){gx.O.A160CrcValBaix=this.val()},val:function(){return gx.fn.getDecimalValue("CRCVALBAIX",".",",")},nac:function(){return false}};this.GXValidFnc[59]={fld:"TEXTBLOCK9",format:0,grid:0};this.GXValidFnc[61]={lvl:0,type:"char",len:30,dec:0,sign:false,ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,fld:"CRCDESBAIX",gxz:"Z155CrcDesBaix",gxold:"O155CrcDesBaix",gxvar:"A155CrcDesBaix",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A155CrcDesBaix=a
},v2z:function(a){gx.O.Z155CrcDesBaix=a},v2c:function(){gx.fn.setControlValue("CRCDESBAIX",gx.O.A155CrcDesBaix,0)},c2v:function(){gx.O.A155CrcDesBaix=this.val()},val:function(){return gx.fn.getControlValue("CRCDESBAIX")},nac:function(){return false}};this.GXValidFnc[64]={fld:"TEXTBLOCK10",format:0,grid:0};this.GXValidFnc[66]={lvl:0,type:"char",len:20,dec:0,sign:false,ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,fld:"CRCCAMPO1L",gxz:"Z148CrcCampo1L",gxold:"O148CrcCampo1L",gxvar:"A148CrcCampo1L",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A148CrcCampo1L=a
},v2z:function(a){gx.O.Z148CrcCampo1L=a},v2c:function(){gx.fn.setControlValue("CRCCAMPO1L",gx.O.A148CrcCampo1L,0)},c2v:function(){gx.O.A148CrcCampo1L=this.val()},val:function(){return gx.fn.getControlValue("CRCCAMPO1L")},nac:function(){return false}};this.GXValidFnc[69]={fld:"TEXTBLOCK11",format:0,grid:0};this.GXValidFnc[71]={lvl:0,type:"int",len:9,dec:0,sign:false,pic:"ZZZZZ9",ro:0,grid:0,gxgrid:null,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.setControlValue("CRCNROTOMB",gx.O.A158CrcNroTomb,0)},c2v:function(){gx.O.A158CrcNroTomb=this.val()},val:function(){return gx.fn.getIntegerValue("CRCNROTOMB",".")},nac:function(){return false}};this.GXValidFnc[74]={fld:"TEXTBLOCK12",format:0,grid:0};this.GXValidFnc[76]={lvl:0,type:"decimal",len:10,dec:2,sign:false,pic:"ZZZZZZ9.99",ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,fld:"CRCVALDIAR",gxz:"Z161CrcValDiar",gxold:"O161CrcValDiar",gxvar:"A161CrcValDiar",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A161CrcValDiar=gx.fn.toDecimalValue(a,",",".")
},v2z:function(a){gx.O.Z161CrcValDiar=gx.fn.toDecimalValue(a,".",",")},v2c:function(){gx.fn.setDecimalValue("CRCVALDIAR",gx.O.A161CrcValDiar,2,",")},c2v:function(){gx.O.A161CrcValDiar=this.val()},val:function(){return gx.fn.getDecimalValue("CRCVALDIAR",".",",")},nac:function(){return false}};this.GXValidFnc[79]={fld:"TEXTBLOCK13",format:0,grid:0};this.GXValidFnc[81]={lvl:0,type:"date",len:10,dec:0,sign:false,ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,fld:"CRCDATDEVP",gxz:"Z153CrcDatDevP",gxold:"O153CrcDatDevP",gxvar:"A153CrcDatDevP",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.A153CrcDatDevP=gx.fn.toDatetimeValue(a)
},v2z:function(a){gx.O.Z153CrcDatDevP=gx.fn.toDatetimeValue(a)},v2c:function(){gx.fn.setControlValue("CRCDATDEVP",gx.O.A153CrcDatDevP,0)},c2v:function(){gx.O.A153CrcDatDevP=this.val()},val:function(){return gx.fn.getControlValue("CRCDATDEVP")},nac:function(){return false}};this.GXValidFnc[84]={fld:"TEXTBLOCK14",format:0,grid:0};this.GXValidFnc[86]={lvl:0,type:"int",len:1,dec:0,sign:false,pic:"9",ro:0,grid:0,gxgrid:null,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.setComboBoxValue("CRCTIPRECE",gx.O.A159CrcTipRece)},c2v:function(){gx.O.A159CrcTipRece=this.val()},val:function(){return gx.fn.getIntegerValue("CRCTIPRECE",".")},nac:function(){return false}};this.GXValidFnc[89]={fld:"TEXTBLOCK15",format:0,grid:0};this.GXValidFnc[91]={lvl:0,type:"int",len:3,dec:0,sign:false,pic:"ZZ9",ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,rgrid:[],fld:"CRCCODUNID",gxz:"Z151CrcCodUnid",gxold:"O151CrcCodUnid",gxvar:"A151CrcCodUnid",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A151CrcCodUnid=gx.num.intval(a)
},v2z:function(a){gx.O.Z151CrcCodUnid=gx.num.intval(a)},v2c:function(){gx.fn.setControlValue("CRCCODUNID",gx.O.A151CrcCodUnid,0)},c2v:function(){gx.O.A151CrcCodUnid=this.val()},val:function(){return gx.fn.getIntegerValue("CRCCODUNID",".")},nac:function(){return false}};this.GXValidFnc[94]={fld:"TEXTBLOCK16",format:0,grid:0};this.GXValidFnc[96]={lvl:0,type:"int",len:3,dec:0,sign:false,pic:"ZZ9",ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,rgrid:[],fld:"CRCCODLOCA",gxz:"Z149CrcCodLoca",gxold:"O149CrcCodLoca",gxvar:"A149CrcCodLoca",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A149CrcCodLoca=gx.num.intval(a)
},v2z:function(a){gx.O.Z149CrcCodLoca=gx.num.intval(a)},v2c:function(){gx.fn.setControlValue("CRCCODLOCA",gx.O.A149CrcCodLoca,0)},c2v:function(){gx.O.A149CrcCodLoca=this.val()},val:function(){return gx.fn.getIntegerValue("CRCCODLOCA",".")},nac:function(){return false}};this.GXValidFnc[99]={fld:"TEXTBLOCK17",format:0,grid:0};this.GXValidFnc[101]={lvl:0,type:"char",len:6,dec:0,sign:false,ro:0,grid:0,gxgrid:null,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.setControlValue("CRCCODOPER",gx.O.A150CrcCodOper,0)},c2v:function(){gx.O.A150CrcCodOper=this.val()},val:function(){return gx.fn.getControlValue("CRCCODOPER")},nac:function(){return false}};this.GXValidFnc[104]={fld:"TEXTBLOCK18",format:0,grid:0};this.GXValidFnc[106]={lvl:0,type:"decimal",len:10,dec:2,sign:false,pic:"ZZZZZZ9.99",ro:1,grid:0,gxgrid:null,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.setDecimalValue("CRCVALSALD",gx.O.A163CrcValSald,2,",")},c2v:function(){gx.O.A163CrcValSald=this.val()},val:function(){return gx.fn.getDecimalValue("CRCVALSALD",".",",")},nac:function(){return false}};this.GXValidFnc[114]={fld:"PROMPT_787",grid:24};this.A157CrcNroSeq=0;this.Z157CrcNroSeq=0;this.O157CrcNroSeq=0;this.A154CrcDatEmis=gx.date.nullDate();this.Z154CrcDatEmis=gx.date.nullDate();this.O154CrcDatEmis=gx.date.nullDate();
this.A787UsbCod="";this.Z787UsbCod="";this.O787UsbCod="";this.A786UsbNom="";this.Z786UsbNom="";this.O786UsbNom="";this.A162CrcValRece=0;this.Z162CrcValRece=0;this.O162CrcValRece=0;this.A156CrcDesHist="";this.Z156CrcDesHist="";this.O156CrcDesHist="";this.A152CrcDatBaix=gx.date.nullDate();this.Z152CrcDatBaix=gx.date.nullDate();this.O152CrcDatBaix=gx.date.nullDate();this.A160CrcValBaix=0;this.Z160CrcValBaix=0;this.O160CrcValBaix=0;this.A155CrcDesBaix="";this.Z155CrcDesBaix="";this.O155CrcDesBaix="";
this.A148CrcCampo1L="";this.Z148CrcCampo1L="";this.O148CrcCampo1L="";this.A158CrcNroTomb=0;this.Z158CrcNroTomb=0;this.O158CrcNroTomb=0;this.A161CrcValDiar=0;this.Z161CrcValDiar=0;this.O161CrcValDiar=0;this.A153CrcDatDevP=gx.date.nullDate();this.Z153CrcDatDevP=gx.date.nullDate();this.O153CrcDatDevP=gx.date.nullDate();this.A159CrcTipRece=0;this.Z159CrcTipRece=0;this.O159CrcTipRece=0;this.A151CrcCodUnid=0;this.Z151CrcCodUnid=0;this.O151CrcCodUnid=0;this.A149CrcCodLoca=0;this.Z149CrcCodLoca=0;this.O149CrcCodLoca=0;
this.A150CrcCodOper="";this.Z150CrcCodOper="";this.O150CrcCodOper="";this.A163CrcValSald=0;this.Z163CrcValSald=0;this.O163CrcValSald=0;this.ServerEvents=["e110w24_client","e120w24_client"];this.setPrompt("PROMPT_787",[31]);this.EnterCtrl=["BTN_ENTER"];this.CheckCtrl=["BTN_CHECK"];this.VarControlMap.Gx_mode={id:"vMODE",grid:0,type:"char"};this.SetStandaloneVars()}tabt035.prototype=new gx.GxObject;gx.setParentObj(new tabt035());