/*!   GeneXus Java 16_0_9-140712 on August 21, 2021 11:31:10.25
*/
gx.evt.autoSkip=!1;gx.define("himh102",!1,function(){var n,t;this.ServerClass="himh102";this.PackageName="";this.setObjectType("web");this.anyGridBaseTable=!0;this.hasEnterEvent=!0;this.skipOnEnter=!1;this.ajaxSecurityToken=!0;this.SetStandaloneVars=function(){this.AV7MtcCod=gx.fn.getIntegerValue("vMTCCOD",".")};this.e11352_client=function(){return this.executeServerEvent("ENTER",!0,arguments[0],!1,!1)};this.e14351_client=function(){return this.executeServerEvent("CANCEL",!0,null,!1,!1)};this.GXValidFnc=[];n=this.GXValidFnc;this.GXCtrlIds=[2,3,4,5,6,9,12,14,16,18,21,22,23,24,25,27,28];this.GXLastCtrlId=28;this.Grid2Container=new gx.grid.grid(this,2,"WbpLvl2",26,"Grid2","Grid2","Grid2Container",this.CmpContext,this.IsMasterPage,"himh102",[],!1,1,!1,!0,0,!1,!1,!1,"",0,"px",0,"px","Novo registro",!1,!1,!1,null,null,!1,"",!1,[1,1,1,1],!1,0,!0,!1);t=this.Grid2Container;t.addSingleLineEdit(154,27,"MTCCOD","Motivo de cancelamento","","MtcCod","int",0,"px",3,3,"right",null,[],154,"MtcCod",!0,0,!1,!1,"Attribute",1,"");t.addSingleLineEdit(709,28,"MTCDES","Descrição","","Mtcdes","char",0,"px",50,50,"left",null,[],709,"Mtcdes",!0,0,!1,!1,"Attribute",1,"");this.Grid2Container.emptyText="";this.setGrid(t);n[2]={id:2,fld:"",grid:0};n[3]={id:3,fld:"MAINTABLE",grid:0};n[4]={id:4,fld:"",grid:0};n[5]={id:5,fld:"",grid:0};n[6]={id:6,fld:"CABECALHOAPLICACAO",grid:0};n[9]={id:9,fld:"CABECALHOAPLICACAO_TABLE1",grid:0};n[12]={id:12,fld:"CABECALHOAPLICACAO_VOLTAR",grid:0,evt:"e14351_client"};n[14]={id:14,fld:"CABECALHOAPLICACAO_HELP",grid:0};n[16]={id:16,fld:"CABECALHOAPLICACAO_REFRESH",grid:0,evt:"e15351_client"};n[18]={id:18,fld:"CABECALHOAPLICACAO_TEXTBLOCK1",format:0,grid:0};n[21]={id:21,fld:"",grid:0};n[22]={id:22,fld:"",grid:0};n[23]={id:23,fld:"TABLE1",grid:0};n[24]={id:24,fld:"",grid:0};n[25]={id:25,fld:"",grid:0};n[27]={id:27,lvl:2,type:"int",len:3,dec:0,sign:!1,pic:"ZZ9",ro:1,isacc:0,grid:26,gxgrid:this.Grid2Container,fnc:null,isvalid:null,evt_cvc:null,evt_cvcing:null,rgrid:[],fld:"MTCCOD",gxz:"Z154MtcCod",gxold:"O154MtcCod",gxvar:"A154MtcCod",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",inputType:"number",v2v:function(n){n!==undefined&&(gx.O.A154MtcCod=gx.num.intval(n))},v2z:function(n){n!==undefined&&(gx.O.Z154MtcCod=gx.num.intval(n))},v2c:function(n){gx.fn.setGridControlValue("MTCCOD",n||gx.fn.currentGridRowImpl(26),gx.O.A154MtcCod,0)},c2v:function(n){this.val(n)!==undefined&&(gx.O.A154MtcCod=gx.num.intval(this.val(n)))},val:function(n){return gx.fn.getGridIntegerValue("MTCCOD",n||gx.fn.currentGridRowImpl(26),".")},nac:gx.falseFn};n[28]={id:28,lvl:2,type:"char",len:50,dec:0,sign:!1,ro:1,isacc:0,grid:26,gxgrid:this.Grid2Container,fnc:null,isvalid:null,evt_cvc:null,evt_cvcing:null,rgrid:[],fld:"MTCDES",gxz:"Z709Mtcdes",gxold:"O709Mtcdes",gxvar:"A709Mtcdes",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",inputType:"text",autoCorrect:"1",v2v:function(n){n!==undefined&&(gx.O.A709Mtcdes=n)},v2z:function(n){n!==undefined&&(gx.O.Z709Mtcdes=n)},v2c:function(n){gx.fn.setGridControlValue("MTCDES",n||gx.fn.currentGridRowImpl(26),gx.O.A709Mtcdes,0)},c2v:function(n){this.val(n)!==undefined&&(gx.O.A709Mtcdes=this.val(n))},val:function(n){return gx.fn.getGridControlValue("MTCDES",n||gx.fn.currentGridRowImpl(26))},nac:gx.falseFn};this.Z154MtcCod=0;this.O154MtcCod=0;this.Z709Mtcdes="";this.O709Mtcdes="";this.AV7MtcCod=0;this.A154MtcCod=0;this.A709Mtcdes="";this.Events={e11352_client:["ENTER",!0],e14351_client:["CANCEL",!0]};this.EvtParms.REFRESH=[[{av:"GRID2_nFirstRecordOnPage"},{av:"GRID2_nEOF"}],[]];this.EvtParms.ENTER=[[{av:"A154MtcCod",fld:"MTCCOD",pic:"ZZ9"}],[{av:"AV7MtcCod",fld:"vMTCCOD",pic:"ZZ9"}]];this.EvtParms.START=[[],[]];this.setVCMap("AV7MtcCod","vMTCCOD",0,"int",3,0);this.Initialize()});gx.setParentObj(new himh102)