gx.evt.autoSkip=false;function tgst001(){this.ServerClass="Tgst001";this.PackageName="";this.setObjectType("trn");this.hasEnterEvent=true;this.SetStandaloneVars=function(){this.AV17Logotipo=gx.fn.getBlobValue("vLOGOTIPO");this.Gx_mode=gx.fn.getControlValue("vMODE")};this.Valid_Empcod=function(){gx.ajax.validSrvEvt("dyncall","valid_Empcod",["gx.O.A339EmpCod","gx.O.A352EmpRazSoci","gx.O.A348EmpNomFant","gx.O.A342EmpDesEnde","gx.O.A341EmpDesComp","gx.O.A346EmpNomBair","gx.O.A347EmpNomCid","gx.O.A338EmpCep","gx.O.A343EmpEstCod","gx.O.A345EmpFone","gx.O.A344EmpFax","gx.O.A349EmpNumCgc","gx.O.A350EmpNumIE","gx.O.A351EmpObs","gx.O.A340EmpCodLogo"],["A352EmpRazSoci","A348EmpNomFant","A342EmpDesEnde","A341EmpDesComp","A346EmpNomBair","A347EmpNomCid","A338EmpCep","A343EmpEstCod","A345EmpFone","A344EmpFax","A349EmpNumCgc","A350EmpNumIE","A351EmpObs","A340EmpCodLogo","AV17Logotipo","Gx_mode","Z339EmpCod","Z352EmpRazSoci","Z348EmpNomFant","Z342EmpDesEnde","Z341EmpDesComp","Z346EmpNomBair","Z347EmpNomCid","Z338EmpCep","Z343EmpEstCod","Z345EmpFone","Z344EmpFax","Z349EmpNumCgc","Z350EmpNumIE","Z351EmpObs","Z340EmpCodLogo","ZV17Logotipo",["BTN_GET","Enabled"],["BTN_ENTER","Enabled"],["BTN_CHECK","Enabled"]]);
return true};this.Valid_Empcodlogo=function(){gx.ajax.validSrvEvt("dyncall","valid_Empcodlogo",["gx.O.A340EmpCodLogo","gx.O.AV17Logotipo"],["AV17Logotipo"]);return true};this.e112f85_client=function(){this.executeServerEvent("ENTER",true)};this.e122f85_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];this.GXLastCtrlId=91;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:2,dec:0,sign:false,pic:"Z9",ro:1,grid:0,gxgrid:null,fnc:this.Valid_Empcod,isvalid:null,rgrid:[],fld:"EMPCOD",gxz:"Z339EmpCod",gxold:"O339EmpCod",gxvar:"A339EmpCod",ucs:[],op:[91,86,81,76,71,66,61,56,51,46,41,36,31,26],ip:[91,86,81,76,71,66,61,56,51,46,41,36,31,26,20],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A339EmpCod=gx.num.intval(a)},v2z:function(a){gx.O.Z339EmpCod=gx.num.intval(a)
},v2c:function(){gx.fn.setControlValue("EMPCOD",gx.O.A339EmpCod,0)},c2v:function(){gx.O.A339EmpCod=this.val()},val:function(){return gx.fn.getIntegerValue("EMPCOD",".")},nac:function(){return false}};this.GXValidFnc[24]={fld:"TEXTBLOCK2",format:0,grid:0};this.GXValidFnc[26]={lvl:0,type:"char",len:35,dec:0,sign:false,ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,fld:"EMPRAZSOCI",gxz:"Z352EmpRazSoci",gxold:"O352EmpRazSoci",gxvar:"A352EmpRazSoci",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A352EmpRazSoci=a
},v2z:function(a){gx.O.Z352EmpRazSoci=a},v2c:function(){gx.fn.setControlValue("EMPRAZSOCI",gx.O.A352EmpRazSoci,0)},c2v:function(){gx.O.A352EmpRazSoci=this.val()},val:function(){return gx.fn.getControlValue("EMPRAZSOCI")},nac:function(){return false}};this.GXValidFnc[29]={fld:"TEXTBLOCK3",format:0,grid:0};this.GXValidFnc[31]={lvl:0,type:"char",len:15,dec:0,sign:false,ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,fld:"EMPNOMFANT",gxz:"Z348EmpNomFant",gxold:"O348EmpNomFant",gxvar:"A348EmpNomFant",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A348EmpNomFant=a
},v2z:function(a){gx.O.Z348EmpNomFant=a},v2c:function(){gx.fn.setControlValue("EMPNOMFANT",gx.O.A348EmpNomFant,0)},c2v:function(){gx.O.A348EmpNomFant=this.val()},val:function(){return gx.fn.getControlValue("EMPNOMFANT")},nac:function(){return false}};this.GXValidFnc[34]={fld:"TEXTBLOCK4",format:0,grid:0};this.GXValidFnc[36]={lvl:0,type:"char",len:30,dec:0,sign:false,ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,fld:"EMPDESENDE",gxz:"Z342EmpDesEnde",gxold:"O342EmpDesEnde",gxvar:"A342EmpDesEnde",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A342EmpDesEnde=a
},v2z:function(a){gx.O.Z342EmpDesEnde=a},v2c:function(){gx.fn.setControlValue("EMPDESENDE",gx.O.A342EmpDesEnde,0)},c2v:function(){gx.O.A342EmpDesEnde=this.val()},val:function(){return gx.fn.getControlValue("EMPDESENDE")},nac:function(){return false}};this.GXValidFnc[39]={fld:"TEXTBLOCK5",format:0,grid:0};this.GXValidFnc[41]={lvl:0,type:"char",len:15,dec:0,sign:false,ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,fld:"EMPDESCOMP",gxz:"Z341EmpDesComp",gxold:"O341EmpDesComp",gxvar:"A341EmpDesComp",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A341EmpDesComp=a
},v2z:function(a){gx.O.Z341EmpDesComp=a},v2c:function(){gx.fn.setControlValue("EMPDESCOMP",gx.O.A341EmpDesComp,0)},c2v:function(){gx.O.A341EmpDesComp=this.val()},val:function(){return gx.fn.getControlValue("EMPDESCOMP")},nac:function(){return false}};this.GXValidFnc[44]={fld:"TEXTBLOCK6",format:0,grid:0};this.GXValidFnc[46]={lvl:0,type:"char",len:15,dec:0,sign:false,ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,fld:"EMPNOMBAIR",gxz:"Z346EmpNomBair",gxold:"O346EmpNomBair",gxvar:"A346EmpNomBair",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A346EmpNomBair=a
},v2z:function(a){gx.O.Z346EmpNomBair=a},v2c:function(){gx.fn.setControlValue("EMPNOMBAIR",gx.O.A346EmpNomBair,0)},c2v:function(){gx.O.A346EmpNomBair=this.val()},val:function(){return gx.fn.getControlValue("EMPNOMBAIR")},nac:function(){return false}};this.GXValidFnc[49]={fld:"TEXTBLOCK7",format:0,grid:0};this.GXValidFnc[51]={lvl:0,type:"char",len:25,dec:0,sign:false,ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,fld:"EMPNOMCID",gxz:"Z347EmpNomCid",gxold:"O347EmpNomCid",gxvar:"A347EmpNomCid",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A347EmpNomCid=a
},v2z:function(a){gx.O.Z347EmpNomCid=a},v2c:function(){gx.fn.setControlValue("EMPNOMCID",gx.O.A347EmpNomCid,0)},c2v:function(){gx.O.A347EmpNomCid=this.val()},val:function(){return gx.fn.getControlValue("EMPNOMCID")},nac:function(){return false}};this.GXValidFnc[54]={fld:"TEXTBLOCK8",format:0,grid:0};this.GXValidFnc[56]={lvl:0,type:"char",len:10,dec:0,sign:false,ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,fld:"EMPCEP",gxz:"Z338EmpCep",gxold:"O338EmpCep",gxvar:"A338EmpCep",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A338EmpCep=a
},v2z:function(a){gx.O.Z338EmpCep=a},v2c:function(){gx.fn.setControlValue("EMPCEP",gx.O.A338EmpCep,0)},c2v:function(){gx.O.A338EmpCep=this.val()},val:function(){return gx.fn.getControlValue("EMPCEP")},nac:function(){return false}};this.GXValidFnc[59]={fld:"TEXTBLOCK9",format:0,grid:0};this.GXValidFnc[61]={lvl:0,type:"char",len:2,dec:0,sign:false,ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,fld:"EMPESTCOD",gxz:"Z343EmpEstCod",gxold:"O343EmpEstCod",gxvar:"A343EmpEstCod",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A343EmpEstCod=a
},v2z:function(a){gx.O.Z343EmpEstCod=a},v2c:function(){gx.fn.setControlValue("EMPESTCOD",gx.O.A343EmpEstCod,0)},c2v:function(){gx.O.A343EmpEstCod=this.val()},val:function(){return gx.fn.getControlValue("EMPESTCOD")},nac:function(){return false}};this.GXValidFnc[64]={fld:"TEXTBLOCK10",format:0,grid:0};this.GXValidFnc[66]={lvl:0,type:"char",len:12,dec:0,sign:false,ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,fld:"EMPFONE",gxz:"Z345EmpFone",gxold:"O345EmpFone",gxvar:"A345EmpFone",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A345EmpFone=a
},v2z:function(a){gx.O.Z345EmpFone=a},v2c:function(){gx.fn.setControlValue("EMPFONE",gx.O.A345EmpFone,0)},c2v:function(){gx.O.A345EmpFone=this.val()},val:function(){return gx.fn.getControlValue("EMPFONE")},nac:function(){return false}};this.GXValidFnc[69]={fld:"TEXTBLOCK11",format:0,grid:0};this.GXValidFnc[71]={lvl:0,type:"char",len:12,dec:0,sign:false,ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,fld:"EMPFAX",gxz:"Z344EmpFax",gxold:"O344EmpFax",gxvar:"A344EmpFax",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A344EmpFax=a
},v2z:function(a){gx.O.Z344EmpFax=a},v2c:function(){gx.fn.setControlValue("EMPFAX",gx.O.A344EmpFax,0)},c2v:function(){gx.O.A344EmpFax=this.val()},val:function(){return gx.fn.getControlValue("EMPFAX")},nac:function(){return false}};this.GXValidFnc[74]={fld:"TEXTBLOCK12",format:0,grid:0};this.GXValidFnc[76]={lvl:0,type:"int",len:15,dec:0,sign:false,pic:"ZZZZZZZZZZZZZZ9",ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,rgrid:[],fld:"EMPNUMCGC",gxz:"Z349EmpNumCgc",gxold:"O349EmpNumCgc",gxvar:"A349EmpNumCgc",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A349EmpNumCgc=gx.num.intval(a)
},v2z:function(a){gx.O.Z349EmpNumCgc=gx.num.intval(a)},v2c:function(){gx.fn.setControlValue("EMPNUMCGC",gx.O.A349EmpNumCgc,0)},c2v:function(){gx.O.A349EmpNumCgc=this.val()},val:function(){return gx.fn.getIntegerValue("EMPNUMCGC",".")},nac:function(){return false}};this.GXValidFnc[79]={fld:"TEXTBLOCK13",format:0,grid:0};this.GXValidFnc[81]={lvl:0,type:"int",len:13,dec:0,sign:false,pic:"ZZZZZZZZZZZZ9",ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,rgrid:[],fld:"EMPNUMIE",gxz:"Z350EmpNumIE",gxold:"O350EmpNumIE",gxvar:"A350EmpNumIE",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A350EmpNumIE=gx.num.intval(a)
},v2z:function(a){gx.O.Z350EmpNumIE=gx.num.intval(a)},v2c:function(){gx.fn.setControlValue("EMPNUMIE",gx.O.A350EmpNumIE,0)},c2v:function(){gx.O.A350EmpNumIE=this.val()},val:function(){return gx.fn.getIntegerValue("EMPNUMIE",".")},nac:function(){return false}};this.GXValidFnc[84]={fld:"TEXTBLOCK14",format:0,grid:0};this.GXValidFnc[86]={lvl:0,type:"char",len:55,dec:0,sign:false,ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,fld:"EMPOBS",gxz:"Z351EmpObs",gxold:"O351EmpObs",gxvar:"A351EmpObs",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A351EmpObs=a
},v2z:function(a){gx.O.Z351EmpObs=a},v2c:function(){gx.fn.setControlValue("EMPOBS",gx.O.A351EmpObs,0)},c2v:function(){gx.O.A351EmpObs=this.val()},val:function(){return gx.fn.getControlValue("EMPOBS")},nac:function(){return false}};this.GXValidFnc[89]={fld:"TEXTBLOCK15",format:0,grid:0};this.GXValidFnc[91]={lvl:0,type:"char",len:100,dec:0,sign:false,ro:0,grid:0,gxgrid:null,fnc:this.Valid_Empcodlogo,isvalid:null,fld:"EMPCODLOGO",gxz:"Z340EmpCodLogo",gxold:"O340EmpCodLogo",gxvar:"A340EmpCodLogo",ucs:[],op:[],ip:[91],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A340EmpCodLogo=a
},v2z:function(a){gx.O.Z340EmpCodLogo=a},v2c:function(){gx.fn.setControlValue("EMPCODLOGO",gx.O.A340EmpCodLogo,0)},c2v:function(){gx.O.A340EmpCodLogo=this.val()},val:function(){return gx.fn.getControlValue("EMPCODLOGO")},nac:function(){return false}};this.A339EmpCod=0;this.Z339EmpCod=0;this.O339EmpCod=0;this.A352EmpRazSoci="";this.Z352EmpRazSoci="";this.O352EmpRazSoci="";this.A348EmpNomFant="";this.Z348EmpNomFant="";this.O348EmpNomFant="";this.A342EmpDesEnde="";this.Z342EmpDesEnde="";this.O342EmpDesEnde="";
this.A341EmpDesComp="";this.Z341EmpDesComp="";this.O341EmpDesComp="";this.A346EmpNomBair="";this.Z346EmpNomBair="";this.O346EmpNomBair="";this.A347EmpNomCid="";this.Z347EmpNomCid="";this.O347EmpNomCid="";this.A338EmpCep="";this.Z338EmpCep="";this.O338EmpCep="";this.A343EmpEstCod="";this.Z343EmpEstCod="";this.O343EmpEstCod="";this.A345EmpFone="";this.Z345EmpFone="";this.O345EmpFone="";this.A344EmpFax="";this.Z344EmpFax="";this.O344EmpFax="";this.A349EmpNumCgc=0;this.Z349EmpNumCgc=0;this.O349EmpNumCgc=0;
this.A350EmpNumIE=0;this.Z350EmpNumIE=0;this.O350EmpNumIE=0;this.A351EmpObs="";this.Z351EmpObs="";this.O351EmpObs="";this.A340EmpCodLogo="";this.Z340EmpCodLogo="";this.O340EmpCodLogo="";this.AV17Logotipo="";this.ServerEvents=["e112f85_client","e122f85_client"];this.EnterCtrl=["BTN_ENTER"];this.CheckCtrl=["BTN_CHECK"];this.VarControlMap.AV17Logotipo={id:"vLOGOTIPO",grid:0,type:"bits"};this.VarControlMap.Gx_mode={id:"vMODE",grid:0,type:"char"};this.SetStandaloneVars()}tgst001.prototype=new gx.GxObject;
gx.setParentObj(new tgst001());