gx.evt.autoSkip=false;function tmat002(){this.ServerClass="TMat002";this.PackageName="GeneXus.Programs";this.setObjectType("trn");this.hasEnterEvent=true;this.addKeyListener("2",'"LISTA"');this.SetStandaloneVars=function(){this.Gx_mode=gx.fn.getControlValue("vMODE")};this.Valid_Docnro=function(){gx.ajax.validSrvEvt("dyncall","Valid_Docnro",["gx.O.A258DocNro"],[]);return true};this.Valid_Cednroitem=function(){try{var a=gx.util.balloon.getNew("CEDNROITEM");this.AnyError=0}catch(b){}try{if(a==null){return true
}return a.show()}catch(b){}return true};this.Valid_Cednroarti=function(){try{var a=gx.util.balloon.getNew("CEDNROARTI");this.AnyError=0}catch(b){}try{if(a==null){return true}return a.show()}catch(b){}return true};this.Valid_Cednroseqc=function(){try{var a=gx.util.balloon.getNew("CEDNROSEQC");this.AnyError=0}catch(b){}try{if(a==null){return true}return a.show()}catch(b){}return true};this.Valid_Cednrorepc=function(){gx.ajax.validSrvEvt("dyncall","Valid_Cednrorepc",["gx.O.A258DocNro","gx.O.A113CedNroItem","gx.O.A112CedNroArti","gx.O.A115CedNroSeqC","gx.O.A114CedNroRepC","gx.O.A116CedVal1Ind","gx.O.A117CedVal2Ind","gx.O.A111CedCampo1L"],["A116CedVal1Ind","A117CedVal2Ind","A111CedCampo1L","Gx_mode","Z258DocNro","Z113CedNroItem","Z112CedNroArti","Z115CedNroSeqC","Z114CedNroRepC","Z116CedVal1Ind","Z117CedVal2Ind","Z111CedCampo1L","Grid1",["BTN_GET","Enabled"],["BTN_ENTER","Enabled"],["BTN_CHECK","Enabled"]]);
return true};this.Valid_Scdnroagru=function(){try{if(gx.fn.currentGridRowImpl(60)===0){return true}var a=gx.util.balloon.getNew("SCDNROAGRU",gx.fn.currentGridRowImpl(60));this.AnyError=0;this.sMode129=this.Gx_mode;this.Gx_mode=gx.fn.getGridRowMode(129,60);this.standaloneModal4L129();this.standaloneNotModal4L129()}catch(b){}try{this.Gx_mode=this.sMode129;if(a==null){return true}return a.show()}catch(b){}return true};this.Valid_Scdnroseqs=function(){try{if(gx.fn.currentGridRowImpl(60)===0){return true
}var a=gx.util.balloon.getNew("SCDNROSEQS",gx.fn.currentGridRowImpl(60));this.AnyError=0;this.sMode129=this.Gx_mode;this.Gx_mode=gx.fn.getGridRowMode(129,60)}catch(b){}try{this.Gx_mode=this.sMode129;if(a==null){return true}return a.show()}catch(b){}return true};this.Valid_Scdnroreps=function(){try{if(gx.fn.currentGridRowImpl(60)===0){return true}var a=gx.util.balloon.getNew("SCDNROREPS",gx.fn.currentGridRowImpl(60));this.AnyError=0;this.sMode129=this.Gx_mode;this.Gx_mode=gx.fn.getGridRowMode(129,60);
if(gx.fn.gridDuplicateKey(64)){a.setError(gx.text.format(gx.getMessage("GXM_1004"),"Level1"));this.AnyError=1}}catch(b){}try{this.Gx_mode=this.sMode129;if(a==null){return true}return a.show()}catch(b){}return true};this.standaloneModal4L129=function(){try{if(this.Gx_mode!="INS"){gx.fn.setCtrlProperty("SCDNROAGRU","Enabled",0)}else{gx.fn.setCtrlProperty("SCDNROAGRU","Enabled",1)}}catch(a){}try{if(this.Gx_mode!="INS"){gx.fn.setCtrlProperty("SCDNROSEQS","Enabled",0)}else{gx.fn.setCtrlProperty("SCDNROSEQS","Enabled",1)
}}catch(a){}try{if(this.Gx_mode!="INS"){gx.fn.setCtrlProperty("SCDNROREPS","Enabled",0)}else{gx.fn.setCtrlProperty("SCDNROREPS","Enabled",1)}}catch(a){}return true};this.standaloneNotModal4L129=function(){return true};this.e114l128_client=function(){this.clearMessages();this.refreshOutputs([])};this.e124l128_client=function(){this.executeServerEvent("ENTER",true)};this.e134l128_client=function(){this.executeServerEvent("CANCEL",true)};this.GXValidFnc=[];this.GXCtrlIds=[2,15,18,20,23,25,28,30,33,35,38,40,44,46,49,51,54,56,61,62,63,64,65,66,67,75];
this.GXLastCtrlId=75;this.Grid1Container=new gx.grid.grid(this,129,"Level1",60,"Grid1","Grid1","Grid1Container",this.CmpContext,this.IsMasterPage,"tmat002",[765,767,766],false,1,false,true,5,false,false,false,"",0,"px","Novo registro",true,false,false,null,null,false,"");this.Grid1Container.addSingleLineEdit("nRcdDeleted_129",61,"vNRCDDELETED_129","","","nRcdDeleted_129","int",0,"px",4,4,"right",null,[],"nRcdDeleted_129","nRcdDeleted_129",true,0,false,false);this.Grid1Container.addSingleLineEdit(765,62,"SCDNROAGRU","Nr. agrupamento subcampo","","ScdNroAgru","int",0,"px",2,2,"right",null,[],765,"ScdNroAgru",true,0,false,false);
this.Grid1Container.addSingleLineEdit(767,63,"SCDNROSEQS","Nr. seq. subcampo","","ScdNroSeqS","int",0,"px",3,3,"right",null,[],767,"ScdNroSeqS",true,0,false,false);this.Grid1Container.addSingleLineEdit(766,64,"SCDNROREPS","Nr. repetição subcampo","","ScdNroRepS","int",0,"px",4,4,"right",null,[],766,"ScdNroRepS",true,0,false,false);this.Grid1Container.addComboBox(768,65,"SCDTIPENTI","Tipo entidade","ScdTipEnti","char",null,0,true,false,0,"px");this.Grid1Container.addSingleLineEdit(764,66,"SCDCODENTI","Código chave da entidade","","ScdCodEnti","char",0,"px",8,8,"left",null,[],764,"ScdCodEnti",true,0,false,false);
this.Grid1Container.addSingleLineEdit(763,67,"SCDCAMPO1L","Campo livre","","ScdCampo1L","char",0,"px",10,10,"left",null,[],763,"ScdCampo1L",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_Docnro,isvalid:null,rgrid:[this.Grid1Container],fld:"DOCNRO",gxz:"Z258DocNro",gxold:"O258DocNro",gxvar:"A258DocNro",ucs:[],op:[],ip:[20],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A258DocNro=gx.num.intval(a)
},v2z:function(a){gx.O.Z258DocNro=gx.num.intval(a)},v2c:function(){gx.fn.setControlValue("DOCNRO",gx.O.A258DocNro,0)},c2v:function(){gx.O.A258DocNro=this.val()},val:function(){return gx.fn.getIntegerValue("DOCNRO",".")},nac:function(){return false}};this.GXValidFnc[23]={fld:"TEXTBLOCK2",format:0,grid:0};this.GXValidFnc[25]={lvl:0,type:"int",len:6,dec:0,sign:false,pic:"ZZZZZ9",ro:0,grid:0,gxgrid:null,fnc:this.Valid_Cednroitem,isvalid:null,rgrid:[this.Grid1Container],fld:"CEDNROITEM",gxz:"Z113CedNroItem",gxold:"O113CedNroItem",gxvar:"A113CedNroItem",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A113CedNroItem=gx.num.intval(a)
},v2z:function(a){gx.O.Z113CedNroItem=gx.num.intval(a)},v2c:function(){gx.fn.setControlValue("CEDNROITEM",gx.O.A113CedNroItem,0)},c2v:function(){gx.O.A113CedNroItem=this.val()},val:function(){return gx.fn.getIntegerValue("CEDNROITEM",".")},nac:function(){return false}};this.GXValidFnc[28]={fld:"TEXTBLOCK3",format:0,grid:0};this.GXValidFnc[30]={lvl:0,type:"int",len:4,dec:0,sign:false,pic:"ZZZ9",ro:0,grid:0,gxgrid:null,fnc:this.Valid_Cednroarti,isvalid:null,rgrid:[this.Grid1Container],fld:"CEDNROARTI",gxz:"Z112CedNroArti",gxold:"O112CedNroArti",gxvar:"A112CedNroArti",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A112CedNroArti=gx.num.intval(a)
},v2z:function(a){gx.O.Z112CedNroArti=gx.num.intval(a)},v2c:function(){gx.fn.setControlValue("CEDNROARTI",gx.O.A112CedNroArti,0)},c2v:function(){gx.O.A112CedNroArti=this.val()},val:function(){return gx.fn.getIntegerValue("CEDNROARTI",".")},nac:function(){return false}};this.GXValidFnc[33]={fld:"TEXTBLOCK4",format:0,grid:0};this.GXValidFnc[35]={lvl:0,type:"int",len:4,dec:0,sign:false,pic:"ZZZ9",ro:0,grid:0,gxgrid:null,fnc:this.Valid_Cednroseqc,isvalid:null,rgrid:[this.Grid1Container],fld:"CEDNROSEQC",gxz:"Z115CedNroSeqC",gxold:"O115CedNroSeqC",gxvar:"A115CedNroSeqC",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A115CedNroSeqC=gx.num.intval(a)
},v2z:function(a){gx.O.Z115CedNroSeqC=gx.num.intval(a)},v2c:function(){gx.fn.setControlValue("CEDNROSEQC",gx.O.A115CedNroSeqC,0)},c2v:function(){gx.O.A115CedNroSeqC=this.val()},val:function(){return gx.fn.getIntegerValue("CEDNROSEQC",".")},nac:function(){return false}};this.GXValidFnc[38]={fld:"TEXTBLOCK5",format:0,grid:0};this.GXValidFnc[40]={lvl:0,type:"int",len:3,dec:0,sign:false,pic:"ZZ9",ro:0,grid:0,gxgrid:null,fnc:this.Valid_Cednrorepc,isvalid:null,rgrid:[this.Grid1Container],fld:"CEDNROREPC",gxz:"Z114CedNroRepC",gxold:"O114CedNroRepC",gxvar:"A114CedNroRepC",ucs:[],op:[56,51,46],ip:[56,51,46,40,35,30,25,20],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A114CedNroRepC=gx.num.intval(a)
},v2z:function(a){gx.O.Z114CedNroRepC=gx.num.intval(a)},v2c:function(){gx.fn.setControlValue("CEDNROREPC",gx.O.A114CedNroRepC,0)},c2v:function(){gx.O.A114CedNroRepC=this.val()},val:function(){return gx.fn.getIntegerValue("CEDNROREPC",".")},nac:function(){return false}};this.GXValidFnc[44]={fld:"TEXTBLOCK6",format:0,grid:0};this.GXValidFnc[46]={lvl:0,type:"char",len:1,dec:0,sign:false,ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,fld:"CEDVAL1IND",gxz:"Z116CedVal1Ind",gxold:"O116CedVal1Ind",gxvar:"A116CedVal1Ind",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A116CedVal1Ind=a
},v2z:function(a){gx.O.Z116CedVal1Ind=a},v2c:function(){gx.fn.setControlValue("CEDVAL1IND",gx.O.A116CedVal1Ind,0)},c2v:function(){gx.O.A116CedVal1Ind=this.val()},val:function(){return gx.fn.getControlValue("CEDVAL1IND")},nac:function(){return false}};this.GXValidFnc[49]={fld:"TEXTBLOCK7",format:0,grid:0};this.GXValidFnc[51]={lvl:0,type:"char",len:1,dec:0,sign:false,ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,fld:"CEDVAL2IND",gxz:"Z117CedVal2Ind",gxold:"O117CedVal2Ind",gxvar:"A117CedVal2Ind",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A117CedVal2Ind=a
},v2z:function(a){gx.O.Z117CedVal2Ind=a},v2c:function(){gx.fn.setControlValue("CEDVAL2IND",gx.O.A117CedVal2Ind,0)},c2v:function(){gx.O.A117CedVal2Ind=this.val()},val:function(){return gx.fn.getControlValue("CEDVAL2IND")},nac:function(){return false}};this.GXValidFnc[54]={fld:"TEXTBLOCK8",format:0,grid:0};this.GXValidFnc[56]={lvl:0,type:"char",len:10,dec:0,sign:false,ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,fld:"CEDCAMPO1L",gxz:"Z111CedCampo1L",gxold:"O111CedCampo1L",gxvar:"A111CedCampo1L",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A111CedCampo1L=a
},v2z:function(a){gx.O.Z111CedCampo1L=a},v2c:function(){gx.fn.setControlValue("CEDCAMPO1L",gx.O.A111CedCampo1L,0)},c2v:function(){gx.O.A111CedCampo1L=this.val()},val:function(){return gx.fn.getControlValue("CEDCAMPO1L")},nac:function(){return false}};this.GXValidFnc[61]={lvl:129,type:"int",len:4,dec:0,sign:false,pic:"9999",ro:0,grid:60,gxgrid:this.Grid1Container,fnc:null,isvalid:null,rgrid:[],fld:"vNRCDDELETED_129",gxz:"ZnRcdDeleted_129",gxold:"OnRcdDeleted_129",gxvar:"nRcdDeleted_129",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.nRcdDeleted_129=gx.num.intval(a)
},v2z:function(a){gx.O.ZnRcdDeleted_129=gx.num.intval(a)},v2c:function(){gx.fn.setGridControlValue("vNRCDDELETED_129",gx.fn.currentGridRowImpl(60),gx.O.nRcdDeleted_129,0)},c2v:function(){gx.O.nRcdDeleted_129=this.val()},val:function(){return gx.fn.getGridIntegerValue("vNRCDDELETED_129",gx.fn.currentGridRowImpl(60),".")},nac:function(){return false}};this.GXValidFnc[62]={lvl:129,type:"int",len:2,dec:0,sign:false,pic:"Z9",ro:0,grid:60,gxgrid:this.Grid1Container,fnc:this.Valid_Scdnroagru,isvalid:null,rgrid:[],fld:"SCDNROAGRU",gxz:"Z765ScdNroAgru",gxold:"O765ScdNroAgru",gxvar:"A765ScdNroAgru",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A765ScdNroAgru=gx.num.intval(a)
},v2z:function(a){gx.O.Z765ScdNroAgru=gx.num.intval(a)},v2c:function(){gx.fn.setGridControlValue("SCDNROAGRU",gx.fn.currentGridRowImpl(60),gx.O.A765ScdNroAgru,0)},c2v:function(){gx.O.A765ScdNroAgru=this.val()},val:function(){return gx.fn.getGridIntegerValue("SCDNROAGRU",gx.fn.currentGridRowImpl(60),".")},nac:function(){return false}};this.GXValidFnc[63]={lvl:129,type:"int",len:3,dec:0,sign:false,pic:"ZZ9",ro:0,grid:60,gxgrid:this.Grid1Container,fnc:this.Valid_Scdnroseqs,isvalid:null,rgrid:[],fld:"SCDNROSEQS",gxz:"Z767ScdNroSeqS",gxold:"O767ScdNroSeqS",gxvar:"A767ScdNroSeqS",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A767ScdNroSeqS=gx.num.intval(a)
},v2z:function(a){gx.O.Z767ScdNroSeqS=gx.num.intval(a)},v2c:function(){gx.fn.setGridControlValue("SCDNROSEQS",gx.fn.currentGridRowImpl(60),gx.O.A767ScdNroSeqS,0)},c2v:function(){gx.O.A767ScdNroSeqS=this.val()},val:function(){return gx.fn.getGridIntegerValue("SCDNROSEQS",gx.fn.currentGridRowImpl(60),".")},nac:function(){return false}};this.GXValidFnc[64]={lvl:129,type:"int",len:4,dec:0,sign:false,pic:"ZZZ9",ro:0,grid:60,gxgrid:this.Grid1Container,fnc:this.Valid_Scdnroreps,isvalid:null,rgrid:[],fld:"SCDNROREPS",gxz:"Z766ScdNroRepS",gxold:"O766ScdNroRepS",gxvar:"A766ScdNroRepS",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A766ScdNroRepS=gx.num.intval(a)
},v2z:function(a){gx.O.Z766ScdNroRepS=gx.num.intval(a)},v2c:function(){gx.fn.setGridControlValue("SCDNROREPS",gx.fn.currentGridRowImpl(60),gx.O.A766ScdNroRepS,0)},c2v:function(){gx.O.A766ScdNroRepS=this.val()},val:function(){return gx.fn.getGridIntegerValue("SCDNROREPS",gx.fn.currentGridRowImpl(60),".")},nac:function(){return false}};this.GXValidFnc[65]={lvl:129,type:"char",len:2,dec:0,sign:false,ro:0,grid:60,gxgrid:this.Grid1Container,fnc:null,isvalid:null,fld:"SCDTIPENTI",gxz:"Z768ScdTipEnti",gxold:"O768ScdTipEnti",gxvar:"A768ScdTipEnti",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"combo",v2v:function(a){gx.O.A768ScdTipEnti=a
},v2z:function(a){gx.O.Z768ScdTipEnti=a},v2c:function(){gx.fn.setGridComboBoxValue("SCDTIPENTI",gx.fn.currentGridRowImpl(60),gx.O.A768ScdTipEnti)},c2v:function(){gx.O.A768ScdTipEnti=this.val()},val:function(){return gx.fn.getGridControlValue("SCDTIPENTI",gx.fn.currentGridRowImpl(60))},nac:function(){return false}};this.GXValidFnc[66]={lvl:129,type:"char",len:8,dec:0,sign:false,ro:0,grid:60,gxgrid:this.Grid1Container,fnc:null,isvalid:null,fld:"SCDCODENTI",gxz:"Z764ScdCodEnti",gxold:"O764ScdCodEnti",gxvar:"A764ScdCodEnti",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A764ScdCodEnti=a
},v2z:function(a){gx.O.Z764ScdCodEnti=a},v2c:function(){gx.fn.setGridControlValue("SCDCODENTI",gx.fn.currentGridRowImpl(60),gx.O.A764ScdCodEnti,0)},c2v:function(){gx.O.A764ScdCodEnti=this.val()},val:function(){return gx.fn.getGridControlValue("SCDCODENTI",gx.fn.currentGridRowImpl(60))},nac:function(){return false}};this.GXValidFnc[67]={lvl:129,type:"char",len:10,dec:0,sign:false,ro:0,grid:60,gxgrid:this.Grid1Container,fnc:null,isvalid:null,fld:"SCDCAMPO1L",gxz:"Z763ScdCampo1L",gxold:"O763ScdCampo1L",gxvar:"A763ScdCampo1L",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A763ScdCampo1L=a
},v2z:function(a){gx.O.Z763ScdCampo1L=a},v2c:function(){gx.fn.setGridControlValue("SCDCAMPO1L",gx.fn.currentGridRowImpl(60),gx.O.A763ScdCampo1L,0)},c2v:function(){gx.O.A763ScdCampo1L=this.val()},val:function(){return gx.fn.getGridControlValue("SCDCAMPO1L",gx.fn.currentGridRowImpl(60))},nac:function(){return false}};this.GXValidFnc[75]={fld:"PROMPT_258",grid:128};this.A258DocNro=0;this.Z258DocNro=0;this.O258DocNro=0;this.A113CedNroItem=0;this.Z113CedNroItem=0;this.O113CedNroItem=0;this.A112CedNroArti=0;
this.Z112CedNroArti=0;this.O112CedNroArti=0;this.A115CedNroSeqC=0;this.Z115CedNroSeqC=0;this.O115CedNroSeqC=0;this.A114CedNroRepC=0;this.Z114CedNroRepC=0;this.O114CedNroRepC=0;this.A116CedVal1Ind="";this.Z116CedVal1Ind="";this.O116CedVal1Ind="";this.A117CedVal2Ind="";this.Z117CedVal2Ind="";this.O117CedVal2Ind="";this.A111CedCampo1L="";this.Z111CedCampo1L="";this.O111CedCampo1L="";this.ZnRcdDeleted_129=0;this.OnRcdDeleted_129=0;this.Z765ScdNroAgru=0;this.O765ScdNroAgru=0;this.Z767ScdNroSeqS=0;this.O767ScdNroSeqS=0;
this.Z766ScdNroRepS=0;this.O766ScdNroRepS=0;this.Z768ScdTipEnti="";this.O768ScdTipEnti="";this.Z764ScdCodEnti="";this.O764ScdCodEnti="";this.Z763ScdCampo1L="";this.O763ScdCampo1L="";this.A765ScdNroAgru=0;this.A767ScdNroSeqS=0;this.A766ScdNroRepS=0;this.A768ScdTipEnti="";this.A764ScdCodEnti="";this.A763ScdCampo1L="";this.ServerEvents=["e124l128_client","e134l128_client"];this.setPrompt("PROMPT_258",[20]);this.EnterCtrl=["BTN_ENTER"];this.CheckCtrl=["BTN_CHECK"];this.VarControlMap.Gx_mode={id:"vMODE",grid:0,type:"char"};
this.SetStandaloneVars()}tmat002.prototype=new gx.GxObject;gx.setParentObj(new tmat002());