gx.evt.autoSkip=false;function timt007(){this.ServerClass="TImt007";this.PackageName="";this.setObjectType("trn");this.hasEnterEvent=true;this.SetStandaloneVars=function(){this.Gx_BScreen=gx.fn.getIntegerValue("vGXBSCREEN",".");this.A854TcaCampo1L=gx.fn.getControlValue("TCACAMPO1L");this.Gx_mode=gx.fn.getControlValue("vMODE");this.AV13CvdValConteudo=gx.fn.getControlValue("vCVDVALCONTEUDO")};this.Valid_Tcatiptabe=function(){try{var a=gx.util.balloon.getNew("TCATIPTABE");this.AnyError=0;if((""==this.A857TcaTipTabe)){try{a.setError("Informe o tipo de tabela");
this.AnyError=1}catch(b){}}}catch(b){}try{if(a==null){return true}return a.show()}catch(b){}return true};this.Valid_Tcanomabre=function(){gx.ajax.validSrvEvt("dyncall","valid_Tcanomabre",["gx.O.A857TcaTipTabe","gx.O.A856TcaNomAbre","gx.O.A855TcaCodAuto","gx.O.A854TcaCampo1L"],["A855TcaCodAuto","A854TcaCampo1L","Gx_mode","Z857TcaTipTabe","Z856TcaNomAbre","Z855TcaCodAuto","Z854TcaCampo1L",["BTN_GET","Enabled"],["OK","Enabled"]]);return true};this.Valid_Tcacodauto=function(){try{var a=gx.util.balloon.getNew("TCACODAUTO");
this.AnyError=0;if((""==this.A856TcaNomAbre)||(""==this.A855TcaCodAuto)){try{a.setError("Informe os dados");this.AnyError=1}catch(b){}}}catch(b){}try{if(a==null){return true}return a.show()}catch(b){}return true};this.e113364_client=function(){this.clearMessages();gx.popup.openUrl(gx.http.formatLink("hzcodaut",[this.AV13CvdValConteudo]),["AV13CvdValConteudo"]);this.refreshOutputs([])};this.e13332_client=function(){this.executeServerEvent("'CARGA CUTTER-SANBORN'",false)};this.e14332_client=function(){this.executeServerEvent("'VOLTAR'",false)
};this.e153364_client=function(){this.executeServerEvent("ENTER",true)};this.e163364_client=function(){this.executeServerEvent("CANCEL",true)};this.GXValidFnc=[];this.GXCtrlIds=[3,23,26,29,31,34,36,40,42];this.GXLastCtrlId=42;this.GXValidFnc[3]={fld:"TABLE4",grid:0};this.GXValidFnc[23]={fld:"TEXTBLOCK8",format:0,grid:0};this.GXValidFnc[26]={fld:"TABLE1",grid:0};this.GXValidFnc[29]={fld:"TEXTBLOCK4",format:0,grid:0};this.GXValidFnc[31]={lvl:0,type:"char",len:1,dec:0,sign:false,ro:0,grid:0,gxgrid:null,fnc:this.Valid_Tcatiptabe,isvalid:null,fld:"TCATIPTABE",gxz:"Z857TcaTipTabe",gxold:"O857TcaTipTabe",gxvar:"A857TcaTipTabe",ucs:[],op:[31],ip:[31],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A857TcaTipTabe=a
},v2z:function(a){gx.O.Z857TcaTipTabe=a},v2c:function(){gx.fn.setControlValue("TCATIPTABE",gx.O.A857TcaTipTabe,0)},c2v:function(){gx.O.A857TcaTipTabe=this.val()},val:function(){return gx.fn.getControlValue("TCATIPTABE")},nac:function(){return false}};this.GXValidFnc[34]={fld:"TEXTBLOCK3",format:0,grid:0};this.GXValidFnc[36]={lvl:0,type:"char",len:20,dec:0,sign:false,ro:0,grid:0,gxgrid:null,fnc:this.Valid_Tcanomabre,isvalid:null,fld:"TCANOMABRE",gxz:"Z856TcaNomAbre",gxold:"O856TcaNomAbre",gxvar:"A856TcaNomAbre",ucs:[],op:[42],ip:[42,36,31],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A856TcaNomAbre=a
},v2z:function(a){gx.O.Z856TcaNomAbre=a},v2c:function(){gx.fn.setControlValue("TCANOMABRE",gx.O.A856TcaNomAbre,0)},c2v:function(){gx.O.A856TcaNomAbre=this.val()},val:function(){return gx.fn.getControlValue("TCANOMABRE")},nac:function(){return false}};this.GXValidFnc[40]={fld:"TEXTBLOCK2",format:0,grid:0};this.GXValidFnc[42]={lvl:0,type:"char",len:7,dec:0,sign:false,ro:0,grid:0,gxgrid:null,fnc:this.Valid_Tcacodauto,isvalid:null,fld:"TCACODAUTO",gxz:"Z855TcaCodAuto",gxold:"O855TcaCodAuto",gxvar:"A855TcaCodAuto",ucs:[],op:[42,36],ip:[42,36],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A855TcaCodAuto=a
},v2z:function(a){gx.O.Z855TcaCodAuto=a},v2c:function(){gx.fn.setControlValue("TCACODAUTO",gx.O.A855TcaCodAuto,0)},c2v:function(){gx.O.A855TcaCodAuto=this.val()},val:function(){return gx.fn.getControlValue("TCACODAUTO")},nac:function(){return false}};this.A857TcaTipTabe="";this.Z857TcaTipTabe="";this.O857TcaTipTabe="";this.A856TcaNomAbre="";this.Z856TcaNomAbre="";this.O856TcaNomAbre="";this.A855TcaCodAuto="";this.Z855TcaCodAuto="";this.O855TcaCodAuto="";this.AV11UsuCodCorr="";this.Gx_BScreen=0;this.A854TcaCampo1L="";
this.AV13CvdValConteudo="";this.ServerEvents=["e13332_client","e14332_client","e153364_client","e163364_client"];this.EnterCtrl=["OK"];this.VarControlMap.Gx_BScreen={id:"vGXBSCREEN",grid:0,type:"int"};this.VarControlMap.A854TcaCampo1L={id:"TCACAMPO1L",grid:0,type:"char"};this.VarControlMap.Gx_mode={id:"vMODE",grid:0,type:"char"};this.VarControlMap.AV13CvdValConteudo={id:"vCVDVALCONTEUDO",grid:0,type:"vchar"};this.SetStandaloneVars()}timt007.prototype=new gx.GxObject;gx.setParentObj(new timt007());