gx.evt.autoSkip=false;function tmat006(){this.ServerClass="TMat006";this.PackageName="GeneXus.Programs";this.setObjectType("trn");this.hasEnterEvent=true;this.SetStandaloneVars=function(){this.Gx_BScreen=gx.fn.getIntegerValue("vGXBSCREEN",".");this.Gx_mode=gx.fn.getControlValue("vMODE")};this.Valid_Fmgtipmate=function(){try{var a=gx.util.balloon.getNew("FMGTIPMATE");this.AnyError=0;if((""==this.A419FmgTipMate)){try{a.setError("Informe o tipo de material");this.AnyError=1}catch(b){}}}catch(b){}try{if(a==null){return true
}return a.show()}catch(b){}return true};this.Valid_Fmgnrogrup=function(){gx.ajax.validSrvEvt("dyncall","Valid_Fmgnrogrup",["gx.O.A419FmgTipMate","gx.O.A417FmgNroGrup","gx.O.A418FmgTipCont","gx.O.A420FmgValCons","gx.O.A422FmgValPref","gx.O.A423FmgValSufi","gx.O.A421FmgValPont"],["A418FmgTipCont","A420FmgValCons","A422FmgValPref","A423FmgValSufi","A421FmgValPont","Gx_mode","Z419FmgTipMate","Z417FmgNroGrup","Z418FmgTipCont","Z420FmgValCons","Z422FmgValPref","Z423FmgValSufi","Z421FmgValPont","Gridtmat006_level1item",["BTN_ENTER","Enabled"]]);
return true};this.Valid_Fminrosequ=function(){try{if(gx.fn.currentGridRowImpl(62)===0){return true}var a=gx.util.balloon.getNew("FMINROSEQU",gx.fn.currentGridRowImpl(62));this.AnyError=0;this.sMode134=this.Gx_mode;this.Gx_mode=gx.fn.getGridRowMode(134,62);this.standaloneModal4N134();this.standaloneNotModal4N134();if(gx.fn.gridDuplicateKey(63)){a.setError(gx.text.format(gx.getMessage("GXM_1004"),"Level1"));this.AnyError=1}}catch(b){}try{this.Gx_mode=this.sMode134;if(a==null){return true}return a.show()
}catch(b){}return true};this.Valid_Fminroetiq=function(){try{if(gx.fn.currentGridRowImpl(62)===0){return true}var a=gx.util.balloon.getNew("FMINROETIQ",gx.fn.currentGridRowImpl(62));this.AnyError=0;this.sMode134=this.Gx_mode;this.Gx_mode=gx.fn.getGridRowMode(134,62);if((""==this.A426FmiNroEtiq)){try{a.setError("Informe o campo ");this.AnyError=1}catch(b){}}}catch(b){}try{this.Gx_mode=this.sMode134;if(a==null){return true}return a.show()}catch(b){}return true};this.Valid_Fmicodsubc=function(){try{if(gx.fn.currentGridRowImpl(62)===0){return true
}var a=gx.util.balloon.getNew("FMICODSUBC",gx.fn.currentGridRowImpl(62));this.AnyError=0;this.sMode134=this.Gx_mode;this.Gx_mode=gx.fn.getGridRowMode(134,62);if((""==this.A424FmiCodSubC)){try{a.setError("Informe o subcampo");this.AnyError=1}catch(b){}}}catch(b){}try{this.Gx_mode=this.sMode134;if(a==null){return true}return a.show()}catch(b){}return true};this.standaloneModal4N134=function(){try{if((this.Gx_mode=="INS")&&(""==this.A425FmiIndNegr)&&this.Gx_BScreen==0){this.A425FmiIndNegr="N"}}catch(a){}try{if((this.Gx_mode=="INS")&&(""==this.A426FmiNroEtiq)&&this.Gx_BScreen==0){this.A426FmiNroEtiq=E426FmiNroEtiq
}}catch(a){}try{if((this.Gx_mode=="INS")&&(""==this.A428FmiTipTrat)&&this.Gx_BScreen==0){this.A428FmiTipTrat="1"}}catch(a){}try{if(this.Gx_mode!="INS"){gx.fn.setCtrlProperty("FMINROSEQU","Enabled",0)}else{gx.fn.setCtrlProperty("FMINROSEQU","Enabled",1)}}catch(a){}return true};this.standaloneNotModal4N134=function(){return true};this.e124n133_client=function(){this.executeServerEvent("ENTER",true)};this.e134n133_client=function(){this.executeServerEvent("CANCEL",true)};this.GXValidFnc=[];this.GXCtrlIds=[3,22,25,28,30,33,35,38,40,43,45,48,50,53,55,58,60,63,64,65,66,67,68,69,70,71,72];
this.GXLastCtrlId=72;this.Gridtmat006_level1itemContainer=new gx.grid.grid(this,134,"Level1",62,"Gridtmat006_level1item","Gridtmat006_level1item","Gridtmat006_level1itemContainer",this.CmpContext,this.IsMasterPage,"tmat006",[427],false,1,false,true,5,false,false,false,"",0,"px","Novo registro",true,false,false,null,null,false,"");this.Gridtmat006_level1itemContainer.addSingleLineEdit(427,63,"FMINROSEQU","Seq","","FmiNroSequ","int",0,"px",3,3,"right",null,[],427,"FmiNroSequ",true,0,false,false);this.Gridtmat006_level1itemContainer.addSingleLineEdit(426,64,"FMINROETIQ","Campo","","FmiNroEtiq","char",0,"px",3,3,"left",null,[],426,"FmiNroEtiq",true,0,false,false);
this.Gridtmat006_level1itemContainer.addSingleLineEdit(424,65,"FMICODSUBC","Subcampo","","FmiCodSubC","char",0,"px",1,1,"left",null,[],424,"FmiCodSubC",true,0,false,false);this.Gridtmat006_level1itemContainer.addComboBox(425,66,"FMIINDNEGR","Negrito ?","FmiIndNegr","char",null,0,true,false,0,"px");this.Gridtmat006_level1itemContainer.addSingleLineEdit(429,67,"FMIVALANTE","Pontuação anterior","","FmiValAnte","char",0,"px",3,3,"left",null,[],429,"FmiValAnte",true,0,false,false);this.Gridtmat006_level1itemContainer.addSingleLineEdit(431,68,"FMIVALPREF","Prefixo","","FmiValPref","char",0,"px",3,3,"left",null,[],431,"FmiValPref",true,0,false,false);
this.Gridtmat006_level1itemContainer.addSingleLineEdit(432,69,"FMIVALSUFI","Sufixo","","FmiValSufi","char",0,"px",3,3,"left",null,[],432,"FmiValSufi",true,0,false,false);this.Gridtmat006_level1itemContainer.addSingleLineEdit(430,70,"FMIVALPOST","Pontuação posterior","","FmiValPost","char",0,"px",3,3,"left",null,[],430,"FmiValPost",true,0,false,false);this.Gridtmat006_level1itemContainer.addComboBox(428,71,"FMITIPTRAT","Tratamento caixa alta","FmiTipTrat","char",null,0,true,false,0,"px");this.setGrid(this.Gridtmat006_level1itemContainer);
this.GXValidFnc[3]={fld:"TABLE1",grid:0};this.GXValidFnc[22]={fld:"TEXTBLOCK1",format:0,grid:0};this.GXValidFnc[25]={fld:"TABLE3",grid:0};this.GXValidFnc[28]={fld:"TEXTBLOCKFMGTIPMATERIAL",format:0,grid:0};this.GXValidFnc[30]={lvl:0,type:"char",len:3,dec:0,sign:false,ro:0,grid:0,gxgrid:null,fnc:this.Valid_Fmgtipmate,isvalid:null,fld:"FMGTIPMATE",gxz:"Z419FmgTipMate",gxold:"O419FmgTipMate",gxvar:"A419FmgTipMate",ucs:[],op:[30],ip:[30],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A419FmgTipMate=a
},v2z:function(a){gx.O.Z419FmgTipMate=a},v2c:function(){gx.fn.setControlValue("FMGTIPMATE",gx.O.A419FmgTipMate,0)},c2v:function(){gx.O.A419FmgTipMate=this.val()},val:function(){return gx.fn.getControlValue("FMGTIPMATE")},nac:function(){return false}};this.GXValidFnc[33]={fld:"TEXTBLOCKFMGNROGRUPO",format:0,grid:0};this.GXValidFnc[35]={lvl:0,type:"int",len:3,dec:0,sign:false,pic:"ZZ9",ro:0,grid:0,gxgrid:null,fnc:this.Valid_Fmgnrogrup,isvalid:null,rgrid:[this.Gridtmat006_level1itemContainer],fld:"FMGNROGRUP",gxz:"Z417FmgNroGrup",gxold:"O417FmgNroGrup",gxvar:"A417FmgNroGrup",ucs:[],op:[60,55,50,45,40],ip:[60,55,50,45,40,35,30],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A417FmgNroGrup=gx.num.intval(a)
},v2z:function(a){gx.O.Z417FmgNroGrup=gx.num.intval(a)},v2c:function(){gx.fn.setControlValue("FMGNROGRUP",gx.O.A417FmgNroGrup,0)},c2v:function(){gx.O.A417FmgNroGrup=this.val()},val:function(){return gx.fn.getIntegerValue("FMGNROGRUP",".")},nac:function(){return false}};this.GXValidFnc[38]={fld:"TEXTBLOCKFMGTIPCONTEUDO",format:0,grid:0};this.GXValidFnc[40]={lvl:0,type:"char",len:1,dec:0,sign:false,ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,fld:"FMGTIPCONT",gxz:"Z418FmgTipCont",gxold:"O418FmgTipCont",gxvar:"A418FmgTipCont",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"combo",v2v:function(a){gx.O.A418FmgTipCont=a
},v2z:function(a){gx.O.Z418FmgTipCont=a},v2c:function(){gx.fn.setComboBoxValue("FMGTIPCONT",gx.O.A418FmgTipCont)},c2v:function(){gx.O.A418FmgTipCont=this.val()},val:function(){return gx.fn.getControlValue("FMGTIPCONT")},nac:function(){return false}};this.GXValidFnc[43]={fld:"TEXTBLOCKFMGVALCONSTANTE",format:0,grid:0};this.GXValidFnc[45]={lvl:0,type:"char",len:25,dec:0,sign:false,ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,fld:"FMGVALCONS",gxz:"Z420FmgValCons",gxold:"O420FmgValCons",gxvar:"A420FmgValCons",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A420FmgValCons=a
},v2z:function(a){gx.O.Z420FmgValCons=a},v2c:function(){gx.fn.setControlValue("FMGVALCONS",gx.O.A420FmgValCons,0)},c2v:function(){gx.O.A420FmgValCons=this.val()},val:function(){return gx.fn.getControlValue("FMGVALCONS")},nac:function(){return false}};this.GXValidFnc[48]={fld:"TEXTBLOCKFMGVALPREFIXO",format:0,grid:0};this.GXValidFnc[50]={lvl:0,type:"char",len:3,dec:0,sign:false,ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,fld:"FMGVALPREF",gxz:"Z422FmgValPref",gxold:"O422FmgValPref",gxvar:"A422FmgValPref",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A422FmgValPref=a
},v2z:function(a){gx.O.Z422FmgValPref=a},v2c:function(){gx.fn.setControlValue("FMGVALPREF",gx.O.A422FmgValPref,0)},c2v:function(){gx.O.A422FmgValPref=this.val()},val:function(){return gx.fn.getControlValue("FMGVALPREF")},nac:function(){return false}};this.GXValidFnc[53]={fld:"TEXTBLOCKFMGVALSUFIXO",format:0,grid:0};this.GXValidFnc[55]={lvl:0,type:"char",len:3,dec:0,sign:false,ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,fld:"FMGVALSUFI",gxz:"Z423FmgValSufi",gxold:"O423FmgValSufi",gxvar:"A423FmgValSufi",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A423FmgValSufi=a
},v2z:function(a){gx.O.Z423FmgValSufi=a},v2c:function(){gx.fn.setControlValue("FMGVALSUFI",gx.O.A423FmgValSufi,0)},c2v:function(){gx.O.A423FmgValSufi=this.val()},val:function(){return gx.fn.getControlValue("FMGVALSUFI")},nac:function(){return false}};this.GXValidFnc[58]={fld:"TEXTBLOCKFMGVALPONTUACAOFINAL",format:0,grid:0};this.GXValidFnc[60]={lvl:0,type:"char",len:3,dec:0,sign:false,ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,fld:"FMGVALPONT",gxz:"Z421FmgValPont",gxold:"O421FmgValPont",gxvar:"A421FmgValPont",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A421FmgValPont=a
},v2z:function(a){gx.O.Z421FmgValPont=a},v2c:function(){gx.fn.setControlValue("FMGVALPONT",gx.O.A421FmgValPont,0)},c2v:function(){gx.O.A421FmgValPont=this.val()},val:function(){return gx.fn.getControlValue("FMGVALPONT")},nac:function(){return false}};this.GXValidFnc[63]={lvl:134,type:"int",len:3,dec:0,sign:false,pic:"ZZ9",ro:0,grid:62,gxgrid:this.Gridtmat006_level1itemContainer,fnc:this.Valid_Fminrosequ,isvalid:null,rgrid:[],fld:"FMINROSEQU",gxz:"Z427FmiNroSequ",gxold:"O427FmiNroSequ",gxvar:"A427FmiNroSequ",ucs:[],op:[71,64,66],ip:[71,64,66],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A427FmiNroSequ=gx.num.intval(a)
},v2z:function(a){gx.O.Z427FmiNroSequ=gx.num.intval(a)},v2c:function(){gx.fn.setGridControlValue("FMINROSEQU",gx.fn.currentGridRowImpl(62),gx.O.A427FmiNroSequ,0)},c2v:function(){gx.O.A427FmiNroSequ=this.val()},val:function(){return gx.fn.getGridIntegerValue("FMINROSEQU",gx.fn.currentGridRowImpl(62),".")},nac:function(){return false}};this.GXValidFnc[64]={lvl:134,type:"char",len:3,dec:0,sign:false,ro:0,grid:62,gxgrid:this.Gridtmat006_level1itemContainer,fnc:this.Valid_Fminroetiq,isvalid:null,fld:"FMINROETIQ",gxz:"Z426FmiNroEtiq",gxold:"O426FmiNroEtiq",gxvar:"A426FmiNroEtiq",ucs:[],op:[64],ip:[64],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A426FmiNroEtiq=a
},v2z:function(a){gx.O.Z426FmiNroEtiq=a},v2c:function(){gx.fn.setGridControlValue("FMINROETIQ",gx.fn.currentGridRowImpl(62),gx.O.A426FmiNroEtiq,0)},c2v:function(){gx.O.A426FmiNroEtiq=this.val()},val:function(){return gx.fn.getGridControlValue("FMINROETIQ",gx.fn.currentGridRowImpl(62))},nac:function(){return false}};this.GXValidFnc[65]={lvl:134,type:"char",len:1,dec:0,sign:false,ro:0,grid:62,gxgrid:this.Gridtmat006_level1itemContainer,fnc:this.Valid_Fmicodsubc,isvalid:null,fld:"FMICODSUBC",gxz:"Z424FmiCodSubC",gxold:"O424FmiCodSubC",gxvar:"A424FmiCodSubC",ucs:[],op:[65],ip:[65],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A424FmiCodSubC=a
},v2z:function(a){gx.O.Z424FmiCodSubC=a},v2c:function(){gx.fn.setGridControlValue("FMICODSUBC",gx.fn.currentGridRowImpl(62),gx.O.A424FmiCodSubC,0)},c2v:function(){gx.O.A424FmiCodSubC=this.val()},val:function(){return gx.fn.getGridControlValue("FMICODSUBC",gx.fn.currentGridRowImpl(62))},nac:function(){return false}};this.GXValidFnc[66]={lvl:134,type:"char",len:1,dec:0,sign:false,ro:0,grid:62,gxgrid:this.Gridtmat006_level1itemContainer,fnc:null,isvalid:null,fld:"FMIINDNEGR",gxz:"Z425FmiIndNegr",gxold:"O425FmiIndNegr",gxvar:"A425FmiIndNegr",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"combo",v2v:function(a){gx.O.A425FmiIndNegr=a
},v2z:function(a){gx.O.Z425FmiIndNegr=a},v2c:function(){gx.fn.setGridComboBoxValue("FMIINDNEGR",gx.fn.currentGridRowImpl(62),gx.O.A425FmiIndNegr)},c2v:function(){gx.O.A425FmiIndNegr=this.val()},val:function(){return gx.fn.getGridControlValue("FMIINDNEGR",gx.fn.currentGridRowImpl(62))},nac:function(){return false}};this.GXValidFnc[67]={lvl:134,type:"char",len:3,dec:0,sign:false,ro:0,grid:62,gxgrid:this.Gridtmat006_level1itemContainer,fnc:null,isvalid:null,fld:"FMIVALANTE",gxz:"Z429FmiValAnte",gxold:"O429FmiValAnte",gxvar:"A429FmiValAnte",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A429FmiValAnte=a
},v2z:function(a){gx.O.Z429FmiValAnte=a},v2c:function(){gx.fn.setGridControlValue("FMIVALANTE",gx.fn.currentGridRowImpl(62),gx.O.A429FmiValAnte,0)},c2v:function(){gx.O.A429FmiValAnte=this.val()},val:function(){return gx.fn.getGridControlValue("FMIVALANTE",gx.fn.currentGridRowImpl(62))},nac:function(){return false}};this.GXValidFnc[68]={lvl:134,type:"char",len:3,dec:0,sign:false,ro:0,grid:62,gxgrid:this.Gridtmat006_level1itemContainer,fnc:null,isvalid:null,fld:"FMIVALPREF",gxz:"Z431FmiValPref",gxold:"O431FmiValPref",gxvar:"A431FmiValPref",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A431FmiValPref=a
},v2z:function(a){gx.O.Z431FmiValPref=a},v2c:function(){gx.fn.setGridControlValue("FMIVALPREF",gx.fn.currentGridRowImpl(62),gx.O.A431FmiValPref,0)},c2v:function(){gx.O.A431FmiValPref=this.val()},val:function(){return gx.fn.getGridControlValue("FMIVALPREF",gx.fn.currentGridRowImpl(62))},nac:function(){return false}};this.GXValidFnc[69]={lvl:134,type:"char",len:3,dec:0,sign:false,ro:0,grid:62,gxgrid:this.Gridtmat006_level1itemContainer,fnc:null,isvalid:null,fld:"FMIVALSUFI",gxz:"Z432FmiValSufi",gxold:"O432FmiValSufi",gxvar:"A432FmiValSufi",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A432FmiValSufi=a
},v2z:function(a){gx.O.Z432FmiValSufi=a},v2c:function(){gx.fn.setGridControlValue("FMIVALSUFI",gx.fn.currentGridRowImpl(62),gx.O.A432FmiValSufi,0)},c2v:function(){gx.O.A432FmiValSufi=this.val()},val:function(){return gx.fn.getGridControlValue("FMIVALSUFI",gx.fn.currentGridRowImpl(62))},nac:function(){return false}};this.GXValidFnc[70]={lvl:134,type:"char",len:3,dec:0,sign:false,ro:0,grid:62,gxgrid:this.Gridtmat006_level1itemContainer,fnc:null,isvalid:null,fld:"FMIVALPOST",gxz:"Z430FmiValPost",gxold:"O430FmiValPost",gxvar:"A430FmiValPost",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A430FmiValPost=a
},v2z:function(a){gx.O.Z430FmiValPost=a},v2c:function(){gx.fn.setGridControlValue("FMIVALPOST",gx.fn.currentGridRowImpl(62),gx.O.A430FmiValPost,0)},c2v:function(){gx.O.A430FmiValPost=this.val()},val:function(){return gx.fn.getGridControlValue("FMIVALPOST",gx.fn.currentGridRowImpl(62))},nac:function(){return false}};this.GXValidFnc[71]={lvl:134,type:"char",len:1,dec:0,sign:false,ro:0,grid:62,gxgrid:this.Gridtmat006_level1itemContainer,fnc:null,isvalid:null,fld:"FMITIPTRAT",gxz:"Z428FmiTipTrat",gxold:"O428FmiTipTrat",gxvar:"A428FmiTipTrat",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"combo",v2v:function(a){gx.O.A428FmiTipTrat=a
},v2z:function(a){gx.O.Z428FmiTipTrat=a},v2c:function(){gx.fn.setGridComboBoxValue("FMITIPTRAT",gx.fn.currentGridRowImpl(62),gx.O.A428FmiTipTrat)},c2v:function(){gx.O.A428FmiTipTrat=this.val()},val:function(){return gx.fn.getGridControlValue("FMITIPTRAT",gx.fn.currentGridRowImpl(62))},nac:function(){return false}};this.GXValidFnc[72]={fld:"PROMPT_419",grid:133};this.A419FmgTipMate="";this.Z419FmgTipMate="";this.O419FmgTipMate="";this.A417FmgNroGrup=0;this.Z417FmgNroGrup=0;this.O417FmgNroGrup=0;this.A418FmgTipCont="";
this.Z418FmgTipCont="";this.O418FmgTipCont="";this.A420FmgValCons="";this.Z420FmgValCons="";this.O420FmgValCons="";this.A422FmgValPref="";this.Z422FmgValPref="";this.O422FmgValPref="";this.A423FmgValSufi="";this.Z423FmgValSufi="";this.O423FmgValSufi="";this.A421FmgValPont="";this.Z421FmgValPont="";this.O421FmgValPont="";this.Z427FmiNroSequ=0;this.O427FmiNroSequ=0;this.Z426FmiNroEtiq="";this.O426FmiNroEtiq="";this.Z424FmiCodSubC="";this.O424FmiCodSubC="";this.Z425FmiIndNegr="";this.O425FmiIndNegr="";
this.Z429FmiValAnte="";this.O429FmiValAnte="";this.Z431FmiValPref="";this.O431FmiValPref="";this.Z432FmiValSufi="";this.O432FmiValSufi="";this.Z430FmiValPost="";this.O430FmiValPost="";this.Z428FmiTipTrat="";this.O428FmiTipTrat="";this.A427FmiNroSequ=0;this.A425FmiIndNegr="";this.A426FmiNroEtiq="";this.A428FmiTipTrat="";this.A424FmiCodSubC="";this.A429FmiValAnte="";this.A431FmiValPref="";this.A432FmiValSufi="";this.A430FmiValPost="";this.AV7UsuCodCorr="";this.AV8IndLiber="";this.Gx_msg="";this.Gx_BScreen=0;
this.ServerEvents=["e124n133_client","e134n133_client"];this.setPrompt("PROMPT_419",[30]);this.EnterCtrl=["BTN_ENTER"];this.VarControlMap.Gx_BScreen={id:"vGXBSCREEN",grid:0,type:"int"};this.VarControlMap.Gx_mode={id:"vMODE",grid:0,type:"char"};this.SetStandaloneVars()}tmat006.prototype=new gx.GxObject;gx.setParentObj(new tmat006());