gx.evt.autoSkip=false;function hzmotivo(){this.ServerClass="HZMotivo";this.PackageName="GeneXus.Programs";this.setObjectType("web");this.hasEnterEvent=true;this.SetStandaloneVars=function(){this.AV6MtcCod=gx.fn.getIntegerValue("vMTCCOD",".")};this.Valid_Mtcdes=function(){try{if(gx.fn.currentGridRowImpl(24)===0){return true}var a=gx.util.balloon.getNew("MTCDES",gx.fn.currentGridRowImpl(24));this.AnyError=0}catch(b){}try{if(a==null){return true}return a.show()}catch(b){}return true};this.e12622_client=function(){this.executeServerEvent("ENTER",true,arguments[0])
};this.e15621_client=function(){this.executeServerEvent("CANCEL",true)};this.GXValidFnc=[];this.GXCtrlIds=[3,6,16,19,21,25,26];this.GXLastCtrlId=26;this.Grid1Container=new gx.grid.grid(this,2,"WbpLvl2",24,"Grid1","Grid1","Grid1Container",this.CmpContext,this.IsMasterPage,"hzmotivo",[],false,1,false,true,10,true,false,false,"",0,"px","Novo registro",true,false,false,null,null,false,"");this.Grid1Container.addSingleLineEdit(548,25,"MTCCOD","Nro","","MtcCod","int",28,"px",3,3,"right",null,[],548,"MtcCod",true,0,false,false);
this.Grid1Container.addSingleLineEdit(549,26,"MTCDES","Motivo do Cancelamento","","Mtcdes","char",0,"px",50,50,"left",null,[],549,"Mtcdes",true,0,false,false);this.setGrid(this.Grid1Container);this.GXValidFnc[3]={fld:"TEXTBLOCK1",format:0,grid:0};this.GXValidFnc[6]={fld:"TABLE1",grid:0};this.GXValidFnc[16]={fld:"TABLE2",grid:0};this.GXValidFnc[19]={fld:"TEXTBLOCK2",format:0,grid:0};this.GXValidFnc[21]={lvl:0,type:"char",len:50,dec:0,sign:false,ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,fld:"vMTCCONTENDO",gxz:"ZV5MtcContendo",gxold:"OV5MtcContendo",gxvar:"AV5MtcContendo",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV5MtcContendo=a
},v2z:function(a){gx.O.ZV5MtcContendo=a},v2c:function(){gx.fn.setControlValue("vMTCCONTENDO",gx.O.AV5MtcContendo,0)},c2v:function(){gx.O.AV5MtcContendo=this.val()},val:function(){return gx.fn.getControlValue("vMTCCONTENDO")},nac:function(){return false}};this.GXValidFnc[25]={lvl:2,type:"int",len:3,dec:0,sign:false,pic:"ZZ9",ro:1,grid:24,gxgrid:this.Grid1Container,fnc:null,isvalid:null,rgrid:[],fld:"MTCCOD",gxz:"Z548MtcCod",gxold:"O548MtcCod",gxvar:"A548MtcCod",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A548MtcCod=gx.num.intval(a)
},v2z:function(a){gx.O.Z548MtcCod=gx.num.intval(a)},v2c:function(){gx.fn.setGridControlValue("MTCCOD",gx.fn.currentGridRowImpl(24),gx.O.A548MtcCod,0)},c2v:function(){gx.O.A548MtcCod=this.val()},val:function(){return gx.fn.getGridIntegerValue("MTCCOD",gx.fn.currentGridRowImpl(24),".")},nac:function(){return false}};this.GXValidFnc[26]={lvl:2,type:"char",len:50,dec:0,sign:false,ro:1,grid:24,gxgrid:this.Grid1Container,fnc:this.Valid_Mtcdes,isvalid:null,fld:"MTCDES",gxz:"Z549Mtcdes",gxold:"O549Mtcdes",gxvar:"A549Mtcdes",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A549Mtcdes=a
},v2z:function(a){gx.O.Z549Mtcdes=a},v2c:function(){gx.fn.setGridControlValue("MTCDES",gx.fn.currentGridRowImpl(24),gx.O.A549Mtcdes,0)},c2v:function(){gx.O.A549Mtcdes=this.val()},val:function(){return gx.fn.getGridControlValue("MTCDES",gx.fn.currentGridRowImpl(24))},nac:function(){return false}};this.AV5MtcContendo="";this.ZV5MtcContendo="";this.OV5MtcContendo="";this.Z548MtcCod=0;this.O548MtcCod=0;this.Z549Mtcdes="";this.O549Mtcdes="";this.AV6MtcCod=0;this.A548MtcCod=0;this.A549Mtcdes="";this.ServerEvents=["e12622_client","e15621_client"];
this.VarControlMap.AV6MtcCod={id:"vMTCCOD",grid:0,type:"int"};this.Grid1Container.addRefreshingVar(this.GXValidFnc[21]);this.SetStandaloneVars()}hzmotivo.prototype=new gx.GxObject;gx.setParentObj(new hzmotivo());