gx.evt.autoSkip=false;function tmat008(){this.ServerClass="TMat008";this.PackageName="";this.setObjectType("trn");this.hasEnterEvent=true;this.addKeyListener("2",'"LISTA"');this.SetStandaloneVars=function(){this.Gx_mode=gx.fn.getControlValue("vMODE")};this.Valid_Atdnro=function(){gx.ajax.validSrvEvt("dyncall","valid_Atdnro",["gx.O.A63AtdNro"],[]);return true};this.Valid_Catnroseqc=function(){try{var a=gx.util.balloon.getNew("CATNROSEQC");this.AnyError=0}catch(b){}try{if(a==null){return true}return a.show()
}catch(b){}return true};this.Valid_Catnrorepc=function(){gx.ajax.validSrvEvt("dyncall","valid_Catnrorepc",["gx.O.A63AtdNro","gx.O.A90CatNroSeqC","gx.O.A89CatNroRepC","gx.O.A91CatVal1Ind","gx.O.A92CatVal2Ind","gx.O.A88CatCampo1L"],["A91CatVal1Ind","A92CatVal2Ind","A88CatCampo1L","Gx_mode","Z63AtdNro","Z90CatNroSeqC","Z89CatNroRepC","Z91CatVal1Ind","Z92CatVal2Ind","Z88CatCampo1L","Grid1",["BTN_GET","Enabled"],["BTN_ENTER","Enabled"],["BTN_CHECK","Enabled"]]);return true};this.Valid_Satnroseqs=function(){try{if(gx.fn.currentGridRowImpl(50)===0){return true
}var a=gx.util.balloon.getNew("SATNROSEQS",gx.fn.currentGridRowImpl(50));this.AnyError=0;this.sMode137=this.Gx_mode;this.Gx_mode=gx.fn.getGridRowMode(137,50);this.standaloneModal4Q137();this.standaloneNotModal4Q137()}catch(b){}try{this.Gx_mode=this.sMode137;if(a==null){return true}return a.show()}catch(b){}return true};this.Valid_Satnroreps=function(){try{if(gx.fn.currentGridRowImpl(50)===0){return true}var a=gx.util.balloon.getNew("SATNROREPS",gx.fn.currentGridRowImpl(50));this.AnyError=0;this.sMode137=this.Gx_mode;
this.Gx_mode=gx.fn.getGridRowMode(137,50);if(gx.fn.gridDuplicateKey(53)){a.setError(gx.text.format(gx.getMessage("GXM_1004"),"Level1"));this.AnyError=1}}catch(b){}try{this.Gx_mode=this.sMode137;if(a==null){return true}return a.show()}catch(b){}return true};this.standaloneModal4Q137=function(){try{if(this.Gx_mode!="INS"){gx.fn.setCtrlProperty("SATNROSEQS","Enabled",0)}else{gx.fn.setCtrlProperty("SATNROSEQS","Enabled",1)}}catch(a){}try{if(this.Gx_mode!="INS"){gx.fn.setCtrlProperty("SATNROREPS","Enabled",0)
}else{gx.fn.setCtrlProperty("SATNROREPS","Enabled",1)}}catch(a){}return true};this.standaloneNotModal4Q137=function(){return true};this.e114q136_client=function(){this.clearMessages();this.refreshOutputs([])};this.e124q136_client=function(){this.executeServerEvent("ENTER",true)};this.e134q136_client=function(){this.executeServerEvent("CANCEL",true)};this.GXValidFnc=[];this.GXCtrlIds=[2,15,18,20,23,25,28,30,34,36,39,41,44,46,51,52,53,54,55,56,57,65];this.GXLastCtrlId=65;this.Grid1Container=new gx.grid.grid(this,137,"Level1",50,"Grid1","Grid1","Grid1Container",this.CmpContext,this.IsMasterPage,"tmat008",[757,756],false,1,false,true,5,false,false,false,"",0,"px","Novo registro",true,false,false,null,null,false,"");
this.Grid1Container.addSingleLineEdit("nRcdDeleted_137",51,"vNRCDDELETED_137","","","nRcdDeleted_137","int",0,"px",4,4,"right",null,[],"nRcdDeleted_137","nRcdDeleted_137",true,0,false,false);this.Grid1Container.addSingleLineEdit(757,52,"SATNROSEQS","Nr. sequência subcampo","","SatNroSeqS","int",0,"px",3,3,"right",null,[],757,"SatNroSeqS",true,0,false,false);this.Grid1Container.addSingleLineEdit(756,53,"SATNROREPS","Nr. repetição subcampo","","SatNroRepS","int",0,"px",3,3,"right",null,[],756,"SatNroRepS",true,0,false,false);
this.Grid1Container.addSingleLineEdit(754,54,"SATCAMPO1L","Campo livre","","SatCampo1L","char",0,"px",10,10,"left",null,[],754,"SatCampo1L",true,0,false,false);this.Grid1Container.addSingleLineEdit(759,55,"SATVALSUBC","Valor subcampo","","SatValSubc","vchar",0,"px",20480,20480,"left",null,[],759,"SatValSubc",true,0,false,false);this.Grid1Container.addSingleLineEdit(755,56,"SATNROORDE","Nr. ordem apresentação","","SatNroOrde","int",0,"px",3,3,"right",null,[],755,"SatNroOrde",true,0,false,false);this.Grid1Container.addSingleLineEdit(758,57,"SATVALRECU","Valor para recuperação","","SatValRecu","char",0,"px",40,40,"left",null,[],758,"SatValRecu",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:6,dec:0,sign:false,pic:"ZZZZZ9",ro:0,grid:0,gxgrid:null,fnc:this.Valid_Atdnro,isvalid:null,rgrid:[this.Grid1Container],fld:"ATDNRO",gxz:"Z63AtdNro",gxold:"O63AtdNro",gxvar:"A63AtdNro",ucs:[],op:[],ip:[20],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A63AtdNro=gx.num.intval(a)},v2z:function(a){gx.O.Z63AtdNro=gx.num.intval(a)
},v2c:function(){gx.fn.setControlValue("ATDNRO",gx.O.A63AtdNro,0)},c2v:function(){gx.O.A63AtdNro=this.val()},val:function(){return gx.fn.getIntegerValue("ATDNRO",".")},nac:function(){return false}};this.GXValidFnc[23]={fld:"TEXTBLOCK2",format:0,grid:0};this.GXValidFnc[25]={lvl:0,type:"int",len:4,dec:0,sign:false,pic:"ZZZ9",ro:0,grid:0,gxgrid:null,fnc:this.Valid_Catnroseqc,isvalid:null,rgrid:[this.Grid1Container],fld:"CATNROSEQC",gxz:"Z90CatNroSeqC",gxold:"O90CatNroSeqC",gxvar:"A90CatNroSeqC",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A90CatNroSeqC=gx.num.intval(a)
},v2z:function(a){gx.O.Z90CatNroSeqC=gx.num.intval(a)},v2c:function(){gx.fn.setControlValue("CATNROSEQC",gx.O.A90CatNroSeqC,0)},c2v:function(){gx.O.A90CatNroSeqC=this.val()},val:function(){return gx.fn.getIntegerValue("CATNROSEQC",".")},nac:function(){return false}};this.GXValidFnc[28]={fld:"TEXTBLOCK3",format:0,grid:0};this.GXValidFnc[30]={lvl:0,type:"int",len:3,dec:0,sign:false,pic:"ZZ9",ro:0,grid:0,gxgrid:null,fnc:this.Valid_Catnrorepc,isvalid:null,rgrid:[this.Grid1Container],fld:"CATNROREPC",gxz:"Z89CatNroRepC",gxold:"O89CatNroRepC",gxvar:"A89CatNroRepC",ucs:[],op:[46,41,36],ip:[46,41,36,30,25,20],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A89CatNroRepC=gx.num.intval(a)
},v2z:function(a){gx.O.Z89CatNroRepC=gx.num.intval(a)},v2c:function(){gx.fn.setControlValue("CATNROREPC",gx.O.A89CatNroRepC,0)},c2v:function(){gx.O.A89CatNroRepC=this.val()},val:function(){return gx.fn.getIntegerValue("CATNROREPC",".")},nac:function(){return false}};this.GXValidFnc[34]={fld:"TEXTBLOCK4",format:0,grid:0};this.GXValidFnc[36]={lvl:0,type:"char",len:1,dec:0,sign:false,ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,fld:"CATVAL1IND",gxz:"Z91CatVal1Ind",gxold:"O91CatVal1Ind",gxvar:"A91CatVal1Ind",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A91CatVal1Ind=a
},v2z:function(a){gx.O.Z91CatVal1Ind=a},v2c:function(){gx.fn.setControlValue("CATVAL1IND",gx.O.A91CatVal1Ind,0)},c2v:function(){gx.O.A91CatVal1Ind=this.val()},val:function(){return gx.fn.getControlValue("CATVAL1IND")},nac:function(){return false}};this.GXValidFnc[39]={fld:"TEXTBLOCK5",format:0,grid:0};this.GXValidFnc[41]={lvl:0,type:"char",len:1,dec:0,sign:false,ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,fld:"CATVAL2IND",gxz:"Z92CatVal2Ind",gxold:"O92CatVal2Ind",gxvar:"A92CatVal2Ind",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A92CatVal2Ind=a
},v2z:function(a){gx.O.Z92CatVal2Ind=a},v2c:function(){gx.fn.setControlValue("CATVAL2IND",gx.O.A92CatVal2Ind,0)},c2v:function(){gx.O.A92CatVal2Ind=this.val()},val:function(){return gx.fn.getControlValue("CATVAL2IND")},nac:function(){return false}};this.GXValidFnc[44]={fld:"TEXTBLOCK6",format:0,grid:0};this.GXValidFnc[46]={lvl:0,type:"char",len:10,dec:0,sign:false,ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,fld:"CATCAMPO1L",gxz:"Z88CatCampo1L",gxold:"O88CatCampo1L",gxvar:"A88CatCampo1L",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A88CatCampo1L=a
},v2z:function(a){gx.O.Z88CatCampo1L=a},v2c:function(){gx.fn.setControlValue("CATCAMPO1L",gx.O.A88CatCampo1L,0)},c2v:function(){gx.O.A88CatCampo1L=this.val()},val:function(){return gx.fn.getControlValue("CATCAMPO1L")},nac:function(){return false}};this.GXValidFnc[51]={lvl:137,type:"int",len:4,dec:0,sign:false,pic:"9999",ro:0,grid:50,gxgrid:this.Grid1Container,fnc:null,isvalid:null,rgrid:[],fld:"vNRCDDELETED_137",gxz:"ZnRcdDeleted_137",gxold:"OnRcdDeleted_137",gxvar:"nRcdDeleted_137",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.nRcdDeleted_137=gx.num.intval(a)
},v2z:function(a){gx.O.ZnRcdDeleted_137=gx.num.intval(a)},v2c:function(){gx.fn.setGridControlValue("vNRCDDELETED_137",gx.fn.currentGridRowImpl(50),gx.O.nRcdDeleted_137,0)},c2v:function(){gx.O.nRcdDeleted_137=this.val()},val:function(){return gx.fn.getGridIntegerValue("vNRCDDELETED_137",gx.fn.currentGridRowImpl(50),".")},nac:function(){return false}};this.GXValidFnc[52]={lvl:137,type:"int",len:3,dec:0,sign:false,pic:"ZZ9",ro:0,grid:50,gxgrid:this.Grid1Container,fnc:this.Valid_Satnroseqs,isvalid:null,rgrid:[],fld:"SATNROSEQS",gxz:"Z757SatNroSeqS",gxold:"O757SatNroSeqS",gxvar:"A757SatNroSeqS",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A757SatNroSeqS=gx.num.intval(a)
},v2z:function(a){gx.O.Z757SatNroSeqS=gx.num.intval(a)},v2c:function(){gx.fn.setGridControlValue("SATNROSEQS",gx.fn.currentGridRowImpl(50),gx.O.A757SatNroSeqS,0)},c2v:function(){gx.O.A757SatNroSeqS=this.val()},val:function(){return gx.fn.getGridIntegerValue("SATNROSEQS",gx.fn.currentGridRowImpl(50),".")},nac:function(){return false}};this.GXValidFnc[53]={lvl:137,type:"int",len:3,dec:0,sign:false,pic:"ZZ9",ro:0,grid:50,gxgrid:this.Grid1Container,fnc:this.Valid_Satnroreps,isvalid:null,rgrid:[],fld:"SATNROREPS",gxz:"Z756SatNroRepS",gxold:"O756SatNroRepS",gxvar:"A756SatNroRepS",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A756SatNroRepS=gx.num.intval(a)
},v2z:function(a){gx.O.Z756SatNroRepS=gx.num.intval(a)},v2c:function(){gx.fn.setGridControlValue("SATNROREPS",gx.fn.currentGridRowImpl(50),gx.O.A756SatNroRepS,0)},c2v:function(){gx.O.A756SatNroRepS=this.val()},val:function(){return gx.fn.getGridIntegerValue("SATNROREPS",gx.fn.currentGridRowImpl(50),".")},nac:function(){return false}};this.GXValidFnc[54]={lvl:137,type:"char",len:10,dec:0,sign:false,ro:0,grid:50,gxgrid:this.Grid1Container,fnc:null,isvalid:null,fld:"SATCAMPO1L",gxz:"Z754SatCampo1L",gxold:"O754SatCampo1L",gxvar:"A754SatCampo1L",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A754SatCampo1L=a
},v2z:function(a){gx.O.Z754SatCampo1L=a},v2c:function(){gx.fn.setGridControlValue("SATCAMPO1L",gx.fn.currentGridRowImpl(50),gx.O.A754SatCampo1L,0)},c2v:function(){gx.O.A754SatCampo1L=this.val()},val:function(){return gx.fn.getGridControlValue("SATCAMPO1L",gx.fn.currentGridRowImpl(50))},nac:function(){return false}};this.GXValidFnc[55]={lvl:137,type:"vchar",len:20480,dec:0,sign:false,ro:0,grid:50,gxgrid:this.Grid1Container,fnc:null,isvalid:null,fld:"SATVALSUBC",gxz:"Z759SatValSubc",gxold:"O759SatValSubc",gxvar:"A759SatValSubc",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A759SatValSubc=a
},v2z:function(a){gx.O.Z759SatValSubc=a},v2c:function(){gx.fn.setGridControlValue("SATVALSUBC",gx.fn.currentGridRowImpl(50),gx.O.A759SatValSubc,0)},c2v:function(){gx.O.A759SatValSubc=this.val()},val:function(){return gx.fn.getGridControlValue("SATVALSUBC",gx.fn.currentGridRowImpl(50))},nac:function(){return false}};this.GXValidFnc[56]={lvl:137,type:"int",len:3,dec:0,sign:false,pic:"ZZ9",ro:0,grid:50,gxgrid:this.Grid1Container,fnc:null,isvalid:null,rgrid:[],fld:"SATNROORDE",gxz:"Z755SatNroOrde",gxold:"O755SatNroOrde",gxvar:"A755SatNroOrde",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A755SatNroOrde=gx.num.intval(a)
},v2z:function(a){gx.O.Z755SatNroOrde=gx.num.intval(a)},v2c:function(){gx.fn.setGridControlValue("SATNROORDE",gx.fn.currentGridRowImpl(50),gx.O.A755SatNroOrde,0)},c2v:function(){gx.O.A755SatNroOrde=this.val()},val:function(){return gx.fn.getGridIntegerValue("SATNROORDE",gx.fn.currentGridRowImpl(50),".")},nac:function(){return false}};this.GXValidFnc[57]={lvl:137,type:"char",len:40,dec:0,sign:false,ro:0,grid:50,gxgrid:this.Grid1Container,fnc:null,isvalid:null,fld:"SATVALRECU",gxz:"Z758SatValRecu",gxold:"O758SatValRecu",gxvar:"A758SatValRecu",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A758SatValRecu=a
},v2z:function(a){gx.O.Z758SatValRecu=a},v2c:function(){gx.fn.setGridControlValue("SATVALRECU",gx.fn.currentGridRowImpl(50),gx.O.A758SatValRecu,0)},c2v:function(){gx.O.A758SatValRecu=this.val()},val:function(){return gx.fn.getGridControlValue("SATVALRECU",gx.fn.currentGridRowImpl(50))},nac:function(){return false}};this.GXValidFnc[65]={fld:"PROMPT_63",grid:136};this.A63AtdNro=0;this.Z63AtdNro=0;this.O63AtdNro=0;this.A90CatNroSeqC=0;this.Z90CatNroSeqC=0;this.O90CatNroSeqC=0;this.A89CatNroRepC=0;this.Z89CatNroRepC=0;
this.O89CatNroRepC=0;this.A91CatVal1Ind="";this.Z91CatVal1Ind="";this.O91CatVal1Ind="";this.A92CatVal2Ind="";this.Z92CatVal2Ind="";this.O92CatVal2Ind="";this.A88CatCampo1L="";this.Z88CatCampo1L="";this.O88CatCampo1L="";this.ZnRcdDeleted_137=0;this.OnRcdDeleted_137=0;this.Z757SatNroSeqS=0;this.O757SatNroSeqS=0;this.Z756SatNroRepS=0;this.O756SatNroRepS=0;this.Z754SatCampo1L="";this.O754SatCampo1L="";this.Z759SatValSubc="";this.O759SatValSubc="";this.Z755SatNroOrde=0;this.O755SatNroOrde=0;this.Z758SatValRecu="";
this.O758SatValRecu="";this.A757SatNroSeqS=0;this.A756SatNroRepS=0;this.A754SatCampo1L="";this.A759SatValSubc="";this.A755SatNroOrde=0;this.A758SatValRecu="";this.ServerEvents=["e124q136_client","e134q136_client"];this.setPrompt("PROMPT_63",[20]);this.EnterCtrl=["BTN_ENTER"];this.CheckCtrl=["BTN_CHECK"];this.VarControlMap.Gx_mode={id:"vMODE",grid:0,type:"char"};this.SetStandaloneVars()}tmat008.prototype=new gx.GxObject;gx.setParentObj(new tmat008());