gx.evt.autoSkip=false;function tpet015(){this.ServerClass="Tpet015";this.PackageName="GeneXus.Programs";this.setObjectType("trn");this.hasEnterEvent=true;this.SetStandaloneVars=function(){this.Gx_mode=gx.fn.getControlValue("vMODE")};this.Valid_Msgnroseq=function(){gx.ajax.validSrvEvt("dyncall","Valid_Msgnroseq",["gx.O.A547MsgNroSeq","gx.O.A546MsgDesAssu"],["A546MsgDesAssu","Gx_mode","Z547MsgNroSeq","Z546MsgDesAssu","Grid1",["BTN_GET","Enabled"],["BTN_ENTER","Enabled"],["BTN_CHECK","Enabled"]]);return true
};this.Valid_Mlinroseq=function(){try{if(gx.fn.currentGridRowImpl(30)===0){return true}var a=gx.util.balloon.getNew("MLINROSEQ",gx.fn.currentGridRowImpl(30));this.AnyError=0;this.sMode147=this.Gx_mode;this.Gx_mode=gx.fn.getGridRowMode(147,30);this.standaloneModal5D147();this.standaloneNotModal5D147();if(gx.fn.gridDuplicateKey(32)){a.setError(gx.text.format(gx.getMessage("GXM_1004"),"Level1"));this.AnyError=1}}catch(b){}try{this.Gx_mode=this.sMode147;if(a==null){return true}return a.show()}catch(b){}return true
};this.standaloneModal5D147=function(){try{if(this.Gx_mode!="INS"){gx.fn.setCtrlProperty("MLINROSEQ","Enabled",0)}else{gx.fn.setCtrlProperty("MLINROSEQ","Enabled",1)}}catch(a){}return true};this.standaloneNotModal5D147=function(){return true};this.e115d146_client=function(){this.executeServerEvent("ENTER",true)};this.e125d146_client=function(){this.executeServerEvent("CANCEL",true)};this.GXValidFnc=[];this.GXCtrlIds=[2,15,18,20,24,26,31,32,33];this.GXLastCtrlId=33;this.Grid1Container=new gx.grid.grid(this,147,"Level1",30,"Grid1","Grid1","Grid1Container",this.CmpContext,this.IsMasterPage,"tpet015",[540],false,1,false,true,5,false,false,false,"",0,"px","Novo registro",true,false,false,null,null,false,"");
this.Grid1Container.addSingleLineEdit("nRcdDeleted_147",31,"vNRCDDELETED_147","","","nRcdDeleted_147","int",0,"px",4,4,"right",null,[],"nRcdDeleted_147","nRcdDeleted_147",true,0,false,false);this.Grid1Container.addSingleLineEdit(540,32,"MLINROSEQ","Seq.","","MliNroSeq","int",0,"px",3,3,"right",null,[],540,"MliNroSeq",true,0,false,false);this.Grid1Container.addSingleLineEdit(539,33,"MLIDESMENS","Mensagem","","MliDesMens","char",0,"px",100,100,"left",null,[],539,"MliDesMens",true,0,false,false);this.setGrid(this.Grid1Container);
this.GXValidFnc[2]={fld:"TABLE1",grid:0};this.GXValidFnc[15]={fld:"TABLE2",grid:0};this.GXValidFnc[18]={fld:"TEXTBLOCK1",format:0,grid:0};this.GXValidFnc[20]={lvl:0,type:"int",len:3,dec:0,sign:false,pic:"ZZ9",ro:0,grid:0,gxgrid:null,fnc:this.Valid_Msgnroseq,isvalid:null,rgrid:[this.Grid1Container],fld:"MSGNROSEQ",gxz:"Z547MsgNroSeq",gxold:"O547MsgNroSeq",gxvar:"A547MsgNroSeq",ucs:[],op:[26],ip:[26,20],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A547MsgNroSeq=gx.num.intval(a)},v2z:function(a){gx.O.Z547MsgNroSeq=gx.num.intval(a)
},v2c:function(){gx.fn.setControlValue("MSGNROSEQ",gx.O.A547MsgNroSeq,0)},c2v:function(){gx.O.A547MsgNroSeq=this.val()},val:function(){return gx.fn.getIntegerValue("MSGNROSEQ",".")},nac:function(){return false}};this.GXValidFnc[24]={fld:"TEXTBLOCK2",format:0,grid:0};this.GXValidFnc[26]={lvl:0,type:"char",len:40,dec:0,sign:false,ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,fld:"MSGDESASSU",gxz:"Z546MsgDesAssu",gxold:"O546MsgDesAssu",gxvar:"A546MsgDesAssu",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A546MsgDesAssu=a
},v2z:function(a){gx.O.Z546MsgDesAssu=a},v2c:function(){gx.fn.setControlValue("MSGDESASSU",gx.O.A546MsgDesAssu,0)},c2v:function(){gx.O.A546MsgDesAssu=this.val()},val:function(){return gx.fn.getControlValue("MSGDESASSU")},nac:function(){return false}};this.GXValidFnc[31]={lvl:147,type:"int",len:4,dec:0,sign:false,pic:"9999",ro:0,grid:30,gxgrid:this.Grid1Container,fnc:null,isvalid:null,rgrid:[],fld:"vNRCDDELETED_147",gxz:"ZnRcdDeleted_147",gxold:"OnRcdDeleted_147",gxvar:"nRcdDeleted_147",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.nRcdDeleted_147=gx.num.intval(a)
},v2z:function(a){gx.O.ZnRcdDeleted_147=gx.num.intval(a)},v2c:function(){gx.fn.setGridControlValue("vNRCDDELETED_147",gx.fn.currentGridRowImpl(30),gx.O.nRcdDeleted_147,0)},c2v:function(){gx.O.nRcdDeleted_147=this.val()},val:function(){return gx.fn.getGridIntegerValue("vNRCDDELETED_147",gx.fn.currentGridRowImpl(30),".")},nac:function(){return false}};this.GXValidFnc[32]={lvl:147,type:"int",len:3,dec:0,sign:false,pic:"ZZ9",ro:0,grid:30,gxgrid:this.Grid1Container,fnc:this.Valid_Mlinroseq,isvalid:null,rgrid:[],fld:"MLINROSEQ",gxz:"Z540MliNroSeq",gxold:"O540MliNroSeq",gxvar:"A540MliNroSeq",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A540MliNroSeq=gx.num.intval(a)
},v2z:function(a){gx.O.Z540MliNroSeq=gx.num.intval(a)},v2c:function(){gx.fn.setGridControlValue("MLINROSEQ",gx.fn.currentGridRowImpl(30),gx.O.A540MliNroSeq,0)},c2v:function(){gx.O.A540MliNroSeq=this.val()},val:function(){return gx.fn.getGridIntegerValue("MLINROSEQ",gx.fn.currentGridRowImpl(30),".")},nac:function(){return false}};this.GXValidFnc[33]={lvl:147,type:"char",len:100,dec:0,sign:false,ro:0,grid:30,gxgrid:this.Grid1Container,fnc:null,isvalid:null,fld:"MLIDESMENS",gxz:"Z539MliDesMens",gxold:"O539MliDesMens",gxvar:"A539MliDesMens",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A539MliDesMens=a
},v2z:function(a){gx.O.Z539MliDesMens=a},v2c:function(){gx.fn.setGridControlValue("MLIDESMENS",gx.fn.currentGridRowImpl(30),gx.O.A539MliDesMens,0)},c2v:function(){gx.O.A539MliDesMens=this.val()},val:function(){return gx.fn.getGridControlValue("MLIDESMENS",gx.fn.currentGridRowImpl(30))},nac:function(){return false}};this.A547MsgNroSeq=0;this.Z547MsgNroSeq=0;this.O547MsgNroSeq=0;this.A546MsgDesAssu="";this.Z546MsgDesAssu="";this.O546MsgDesAssu="";this.ZnRcdDeleted_147=0;this.OnRcdDeleted_147=0;this.Z540MliNroSeq=0;
this.O540MliNroSeq=0;this.Z539MliDesMens="";this.O539MliDesMens="";this.A540MliNroSeq=0;this.A539MliDesMens="";this.ServerEvents=["e115d146_client","e125d146_client"];this.EnterCtrl=["BTN_ENTER"];this.CheckCtrl=["BTN_CHECK"];this.VarControlMap.Gx_mode={id:"vMODE",grid:0,type:"char"};this.SetStandaloneVars()}tpet015.prototype=new gx.GxObject;gx.setParentObj(new tpet015());