gx.evt.autoSkip=false;function tmit011(){this.ServerClass="TMit011";this.PackageName="";this.setObjectType("trn");this.hasEnterEvent=true;this.SetStandaloneVars=function(){this.A479IdiCampo1L=gx.fn.getControlValue("IDICAMPO1L");this.Gx_mode=gx.fn.getControlValue("vMODE")};this.Valid_Idicod=function(){gx.ajax.validSrvEvt("dyncall","valid_Idicod",["gx.O.A480IdiCod","gx.O.A482IdiDes","gx.O.A481IdiCodMarc","gx.O.A479IdiCampo1L"],["A482IdiDes","A481IdiCodMarc","A479IdiCampo1L","Gx_mode","Z480IdiCod","Z482IdiDes","Z481IdiCodMarc","Z479IdiCampo1L",["BTN_ENTER2","Enabled"]]);
return true};this.Valid_Idides=function(){try{var a=gx.util.balloon.getNew("IDIDES");this.AnyError=0;if((""==this.A482IdiDes)){try{a.setError("Informe a descrição");this.AnyError=1}catch(b){}}}catch(b){}try{if(a==null){return true}return a.show()}catch(b){}return true};this.Valid_Idicodmarc=function(){try{var a=gx.util.balloon.getNew("IDICODMARC");this.AnyError=0;if((""==this.A481IdiCodMarc)){try{a.setError("Informe o idioma MARC");this.AnyError=1}catch(b){}}}catch(b){}try{if(a==null){return true
}return a.show()}catch(b){}return true};this.e114y2_client=function(){this.clearMessages();if(!(""==this.A480IdiCod)){gx.popup.openUrl(gx.http.formatLink("himh024",["ID",this.A480IdiCod]),["","A480IdiCod"])}this.refreshOutputs([])};this.e124y2_client=function(){this.clearMessages();if(!(""==this.A480IdiCod)){gx.popup.openUrl(gx.http.formatLink("himh227",[this.A480IdiCod]),[])}this.refreshOutputs([])};this.e144y2_client=function(){this.executeServerEvent("'VOLTAR'",false)};this.e154y2_client=function(){this.executeServerEvent("'GET PENSA-B'",false)
};this.e164y2_client=function(){this.executeServerEvent("ENTER",true)};this.e174y2_client=function(){this.executeServerEvent("CANCEL",true)};this.GXValidFnc=[];this.GXCtrlIds=[3,14,17,20,22,25,29,31,34,36,41,43];this.GXLastCtrlId=43;this.GXValidFnc[3]={fld:"TABLE4",grid:0};this.GXValidFnc[14]={fld:"TEXTBLOCK8",format:0,grid:0};this.GXValidFnc[17]={fld:"TABLE2",grid:0};this.GXValidFnc[20]={fld:"TEXTBLOCK2",format:0,grid:0};this.GXValidFnc[22]={fld:"TABLE1",grid:0};this.GXValidFnc[25]={lvl:0,type:"char",len:3,dec:0,sign:false,ro:1,grid:0,gxgrid:null,fnc:this.Valid_Idicod,isvalid:null,fld:"IDICOD",gxz:"Z480IdiCod",gxold:"O480IdiCod",gxvar:"A480IdiCod",ucs:[],op:[43,36],ip:[43,36,25],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A480IdiCod=a
},v2z:function(a){gx.O.Z480IdiCod=a},v2c:function(){gx.fn.setControlValue("IDICOD",gx.O.A480IdiCod,0)},c2v:function(){gx.O.A480IdiCod=this.val()},val:function(){return gx.fn.getControlValue("IDICOD")},nac:function(){return false}};this.GXValidFnc[29]={fld:"TEXTBLOCK1",format:0,grid:0};this.GXValidFnc[31]={fld:"TEXTBLOCK5",format:0,grid:0};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:this.Valid_Idides,isvalid:null,fld:"IDIDES",gxz:"Z482IdiDes",gxold:"O482IdiDes",gxvar:"A482IdiDes",ucs:[],op:[36],ip:[36],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A482IdiDes=a
},v2z:function(a){gx.O.Z482IdiDes=a},v2c:function(){gx.fn.setControlValue("IDIDES",gx.O.A482IdiDes,0)},c2v:function(){gx.O.A482IdiDes=this.val()},val:function(){return gx.fn.getControlValue("IDIDES")},nac:function(){return false}};this.GXValidFnc[41]={fld:"TEXTBLOCK3",format:0,grid:0};this.GXValidFnc[43]={lvl:0,type:"char",len:3,dec:0,sign:false,ro:0,grid:0,gxgrid:null,fnc:this.Valid_Idicodmarc,isvalid:null,fld:"IDICODMARC",gxz:"Z481IdiCodMarc",gxold:"O481IdiCodMarc",gxvar:"A481IdiCodMarc",ucs:[],op:[43],ip:[43],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A481IdiCodMarc=a
},v2z:function(a){gx.O.Z481IdiCodMarc=a},v2c:function(){gx.fn.setControlValue("IDICODMARC",gx.O.A481IdiCodMarc,0)},c2v:function(){gx.O.A481IdiCodMarc=this.val()},val:function(){return gx.fn.getControlValue("IDICODMARC")},nac:function(){return false}};this.A480IdiCod="";this.Z480IdiCod="";this.O480IdiCod="";this.A482IdiDes="";this.Z482IdiDes="";this.O482IdiDes="";this.A481IdiCodMarc="";this.Z481IdiCodMarc="";this.O481IdiCodMarc="";this.AV16UsuCodCorr="";this.A479IdiCampo1L="";this.ServerEvents=["e144y2_client","e154y2_client","e164y2_client","e174y2_client"];
this.EnterCtrl=["BTN_ENTER2"];this.VarControlMap.A479IdiCampo1L={id:"IDICAMPO1L",grid:0,type:"char"};this.VarControlMap.Gx_mode={id:"vMODE",grid:0,type:"char"};this.SetStandaloneVars()}tmit011.prototype=new gx.GxObject;gx.setParentObj(new tmit011());