gx.evt.autoSkip=false;function gx0260(){this.ServerClass="Gx0260";this.PackageName="";this.setObjectType("web");this.hasEnterEvent=true;this.autoRefresh=true;this.SetStandaloneVars=function(){this.AV8pMtcCod=gx.fn.getIntegerValue("vPMTCCOD",".")};this.e13ad2_client=function(){this.executeServerEvent("ENTER",true,arguments[0])};this.e14ad1_client=function(){this.executeServerEvent("CANCEL",true)};this.GXValidFnc=[];this.GXCtrlIds=[2,8,9,12,14,17,19,22,23,27,28,29,32];this.GXLastCtrlId=32;this.Grid1Container=new gx.grid.grid(this,2,"WbpLvl2",26,"Grid1","Grid1","Grid1Container",this.CmpContext,this.IsMasterPage,"gx0260",[],false,1,false,true,10,true,false,false,"",0,"px","Novo registro",true,false,false,null,null,false,"");
this.Grid1Container.addBitmap("&Linkselection","vLINKSELECTION",27,0,"px",17,"px",null,"","");this.Grid1Container.addSingleLineEdit(548,28,"MTCCOD","Motivo de cancelamento","","MtcCod","int",0,"px",3,3,"right",null,[],548,"MtcCod",true,0,false,false);this.Grid1Container.addSingleLineEdit(549,29,"MTCDES","Descrição","Selecionar","Mtcdes","char",0,"px",50,50,"left",null,[],549,"Mtcdes",true,0,false,false);this.setGrid(this.Grid1Container);this.GXValidFnc[2]={fld:"TABLE1",grid:0};this.GXValidFnc[8]={fld:"GROUP1",grid:0};
this.GXValidFnc[9]={fld:"TABLE2",grid:0};this.GXValidFnc[12]={fld:"TEXTBLOCKMTCCOD",format:0,grid:0};this.GXValidFnc[14]={lvl:0,type:"int",len:3,dec:0,sign:false,pic:"ZZ9",ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,rgrid:[this.Grid1Container],fld:"vCMTCCOD",gxz:"ZV6cMtcCod",gxold:"OV6cMtcCod",gxvar:"AV6cMtcCod",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV6cMtcCod=gx.num.intval(a)},v2z:function(a){gx.O.ZV6cMtcCod=gx.num.intval(a)},v2c:function(){gx.fn.setControlValue("vCMTCCOD",gx.O.AV6cMtcCod,0)
},c2v:function(){gx.O.AV6cMtcCod=this.val()},val:function(){return gx.fn.getIntegerValue("vCMTCCOD",".")},nac:function(){return false}};this.GXValidFnc[17]={fld:"TEXTBLOCKMTCDES",format:0,grid:0};this.GXValidFnc[19]={lvl:0,type:"char",len:50,dec:0,sign:false,ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,fld:"vCMTCDES",gxz:"ZV7cMtcdes",gxold:"OV7cMtcdes",gxvar:"AV7cMtcdes",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV7cMtcdes=a},v2z:function(a){gx.O.ZV7cMtcdes=a},v2c:function(){gx.fn.setControlValue("vCMTCDES",gx.O.AV7cMtcdes,0)
},c2v:function(){gx.O.AV7cMtcdes=this.val()},val:function(){return gx.fn.getControlValue("vCMTCDES")},nac:function(){return false}};this.GXValidFnc[22]={fld:"GROUP2",grid:0};this.GXValidFnc[23]={fld:"TABLE3",grid:0};this.GXValidFnc[27]={lvl:2,type:"bits",len:4,dec:0,sign:false,ro:1,grid:26,gxgrid:this.Grid1Container,fnc:null,isvalid:null,fld:"vLINKSELECTION",gxz:"ZV5LinkSelection",gxold:"OV5LinkSelection",gxvar:"AV5LinkSelection",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV5LinkSelection=a
},v2z:function(a){gx.O.ZV5LinkSelection=a},v2c:function(){},c2v:function(){gx.O.AV5LinkSelection=this.val()},val:function(){return gx.fn.getGridControlValue("vLINKSELECTION",gx.fn.currentGridRowImpl(26))},nac:function(){return false}};this.GXValidFnc[28]={lvl:2,type:"int",len:3,dec:0,sign:false,pic:"ZZ9",ro:1,grid:26,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(26),gx.O.A548MtcCod,0)},c2v:function(){gx.O.A548MtcCod=this.val()},val:function(){return gx.fn.getGridIntegerValue("MTCCOD",gx.fn.currentGridRowImpl(26),".")},nac:function(){return false}};this.GXValidFnc[29]={lvl:2,type:"char",len:50,dec:0,sign:false,ro:1,grid:26,gxgrid:this.Grid1Container,fnc:null,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(26),gx.O.A549Mtcdes,0)},c2v:function(){gx.O.A549Mtcdes=this.val()},val:function(){return gx.fn.getGridControlValue("MTCDES",gx.fn.currentGridRowImpl(26))},nac:function(){return false}};this.GXValidFnc[32]={fld:"TABLE4",grid:0};this.AV6cMtcCod=0;this.ZV6cMtcCod=0;this.OV6cMtcCod=0;this.AV7cMtcdes="";this.ZV7cMtcdes="";this.OV7cMtcdes="";this.ZV5LinkSelection="";this.OV5LinkSelection="";this.Z548MtcCod=0;
this.O548MtcCod=0;this.Z549Mtcdes="";this.O549Mtcdes="";this.AV8pMtcCod=0;this.AV5LinkSelection="";this.A548MtcCod=0;this.A549Mtcdes="";this.ServerEvents=["e13ad2_client","e14ad1_client"];this.VarControlMap.AV8pMtcCod={id:"vPMTCCOD",grid:0,type:"int"};this.Grid1Container.addRefreshingVar(this.GXValidFnc[14]);this.Grid1Container.addRefreshingVar(this.GXValidFnc[19]);this.SetStandaloneVars()}gx0260.prototype=new gx.GxObject;gx.setParentObj(new gx0260());