gx.evt.autoSkip=false;function tmat005(){this.ServerClass="TMat005";this.PackageName="";this.setObjectType("trn");this.hasEnterEvent=true;this.SetStandaloneVars=function(){this.Gx_mode=gx.fn.getControlValue("vMODE")};this.Valid_Dictipmate=function(){try{var a=gx.util.balloon.getNew("DICTIPMATE");this.AnyError=0}catch(b){}try{if(a==null){return true}return a.show()}catch(b){}return true};this.Valid_Dicnrosequ=function(){gx.ajax.validSrvEvt("dyncall","valid_Dicnrosequ",["gx.O.A203DicTipMate","gx.O.A202DicNroSequ","gx.O.A196DicIndAtiv","gx.O.A199DicNomRotu","gx.O.A198DicNomCamp","gx.O.A200DicNroEtiq","gx.O.A197DicIndCamp","gx.O.A201DicNroOrde"],["A196DicIndAtiv","A199DicNomRotu","A198DicNomCamp","A200DicNroEtiq","A197DicIndCamp","A201DicNroOrde","Gx_mode","Z203DicTipMate","Z202DicNroSequ","Z196DicIndAtiv","Z199DicNomRotu","Z198DicNomCamp","Z200DicNroEtiq","Z197DicIndCamp","Z201DicNroOrde","Grid1",["BTN_GET","Enabled"],["BTN_ENTER","Enabled"],["BTN_CHECK","Enabled"]]);
return true};this.Valid_Dicindativ=function(){try{var a=gx.util.balloon.getNew("DICINDATIV");this.AnyError=0;if(!(this.A196DicIndAtiv=="S"||this.A196DicIndAtiv=="N"||this.A196DicIndAtiv=="O")){try{a.setError("Campo Ativo S/N/O fora da faixa");this.AnyError=1}catch(b){}}}catch(b){}try{if(a==null){return true}return a.show()}catch(b){}return true};this.Valid_Doinroindi=function(){try{if(gx.fn.currentGridRowImpl(60)===0){return true}var a=gx.util.balloon.getNew("DOINROINDI",gx.fn.currentGridRowImpl(60));
this.AnyError=0;this.sMode132=this.Gx_mode;this.Gx_mode=gx.fn.getGridRowMode(132,60);this.standaloneModal4K132();this.standaloneNotModal4K132();if(!(this.A285DoiNroIndi==1||this.A285DoiNroIndi==2)){try{a.setError("Campo Nr. indicador [1/2] fora da faixa");this.AnyError=1}catch(b){}}}catch(b){}try{this.Gx_mode=this.sMode132;if(a==null){return true}return a.show()}catch(b){}return true};this.Valid_Doivalopca=function(){try{if(gx.fn.currentGridRowImpl(60)===0){return true}var a=gx.util.balloon.getNew("DOIVALOPCA",gx.fn.currentGridRowImpl(60));
this.AnyError=0;this.sMode132=this.Gx_mode;this.Gx_mode=gx.fn.getGridRowMode(132,60);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.sMode132;if(a==null){return true}return a.show()}catch(b){}return true};this.standaloneModal4K132=function(){try{if(this.Gx_mode!="INS"){gx.fn.setCtrlProperty("DOINROINDI","Enabled",0)}else{gx.fn.setCtrlProperty("DOINROINDI","Enabled",1)}}catch(a){}try{if(this.Gx_mode!="INS"){gx.fn.setCtrlProperty("DOIVALOPCA","Enabled",0)
}else{gx.fn.setCtrlProperty("DOIVALOPCA","Enabled",1)}}catch(a){}return true};this.standaloneNotModal4K132=function(){return true};this.e114k109_client=function(){this.clearMessages();this.refreshOutputs([])};this.e124k109_client=function(){this.executeServerEvent("ENTER",true)};this.e134k109_client=function(){this.executeServerEvent("CANCEL",true)};this.GXValidFnc=[];this.GXCtrlIds=[2,15,18,20,23,25,29,31,34,36,39,41,44,46,49,51,54,56,61,62,63,64];this.GXLastCtrlId=64;this.Grid1Container=new gx.grid.grid(this,132,"Level1",60,"Grid1","Grid1","Grid1Container",this.CmpContext,this.IsMasterPage,"tmat005",[285,286],false,1,false,true,5,false,false,false,"",0,"px","Novo registro",true,false,false,null,null,false,"");
this.Grid1Container.addSingleLineEdit("nRcdDeleted_132",61,"vNRCDDELETED_132","","","nRcdDeleted_132","int",0,"px",4,4,"right",null,[],"nRcdDeleted_132","nRcdDeleted_132",true,0,false,false);this.Grid1Container.addSingleLineEdit(285,62,"DOINROINDI","Nr. indicador [1/2]","","DoiNroIndi","int",0,"px",1,1,"right",null,[],285,"DoiNroIndi",true,0,false,false);this.Grid1Container.addSingleLineEdit(286,63,"DOIVALOPCA","Valor","","DoiValOpca","char",0,"px",1,1,"left",null,[],286,"DoiValOpca",true,0,false,false);
this.Grid1Container.addSingleLineEdit(284,64,"DOIDESSIGN","Descrição","","DoiDesSign","char",0,"px",60,60,"left",null,[],284,"DoiDesSign",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:"char",len:3,dec:0,sign:false,ro:1,grid:0,gxgrid:null,fnc:this.Valid_Dictipmate,isvalid:null,fld:"DICTIPMATE",gxz:"Z203DicTipMate",gxold:"O203DicTipMate",gxvar:"A203DicTipMate",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A203DicTipMate=a
},v2z:function(a){gx.O.Z203DicTipMate=a},v2c:function(){gx.fn.setControlValue("DICTIPMATE",gx.O.A203DicTipMate,0)},c2v:function(){gx.O.A203DicTipMate=this.val()},val:function(){return gx.fn.getControlValue("DICTIPMATE")},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:1,grid:0,gxgrid:null,fnc:this.Valid_Dicnrosequ,isvalid:null,rgrid:[this.Grid1Container],fld:"DICNROSEQU",gxz:"Z202DicNroSequ",gxold:"O202DicNroSequ",gxvar:"A202DicNroSequ",ucs:[],op:[56,51,46,41,36,31],ip:[56,51,46,41,36,31,25,20],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A202DicNroSequ=gx.num.intval(a)
},v2z:function(a){gx.O.Z202DicNroSequ=gx.num.intval(a)},v2c:function(){gx.fn.setControlValue("DICNROSEQU",gx.O.A202DicNroSequ,0)},c2v:function(){gx.O.A202DicNroSequ=this.val()},val:function(){return gx.fn.getIntegerValue("DICNROSEQU",".")},nac:function(){return false}};this.GXValidFnc[29]={fld:"TEXTBLOCK3",format:0,grid:0};this.GXValidFnc[31]={lvl:0,type:"char",len:1,dec:0,sign:false,ro:0,grid:0,gxgrid:null,fnc:this.Valid_Dicindativ,isvalid:null,fld:"DICINDATIV",gxz:"Z196DicIndAtiv",gxold:"O196DicIndAtiv",gxvar:"A196DicIndAtiv",ucs:[],op:[31],ip:[31],nacdep:[],ctrltype:"combo",v2v:function(a){gx.O.A196DicIndAtiv=a
},v2z:function(a){gx.O.Z196DicIndAtiv=a},v2c:function(){gx.fn.setComboBoxValue("DICINDATIV",gx.O.A196DicIndAtiv)},c2v:function(){gx.O.A196DicIndAtiv=this.val()},val:function(){return gx.fn.getControlValue("DICINDATIV")},nac:function(){return false}};this.GXValidFnc[34]={fld:"TEXTBLOCK4",format:0,grid:0};this.GXValidFnc[36]={lvl:0,type:"char",len:17,dec:0,sign:false,ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,fld:"DICNOMROTU",gxz:"Z199DicNomRotu",gxold:"O199DicNomRotu",gxvar:"A199DicNomRotu",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A199DicNomRotu=a
},v2z:function(a){gx.O.Z199DicNomRotu=a},v2c:function(){gx.fn.setControlValue("DICNOMROTU",gx.O.A199DicNomRotu,0)},c2v:function(){gx.O.A199DicNomRotu=this.val()},val:function(){return gx.fn.getControlValue("DICNOMROTU")},nac:function(){return false}};this.GXValidFnc[39]={fld:"TEXTBLOCK5",format:0,grid:0};this.GXValidFnc[41]={lvl:0,type:"char",len:70,dec:0,sign:false,ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,fld:"DICNOMCAMP",gxz:"Z198DicNomCamp",gxold:"O198DicNomCamp",gxvar:"A198DicNomCamp",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A198DicNomCamp=a
},v2z:function(a){gx.O.Z198DicNomCamp=a},v2c:function(){gx.fn.setControlValue("DICNOMCAMP",gx.O.A198DicNomCamp,0)},c2v:function(){gx.O.A198DicNomCamp=this.val()},val:function(){return gx.fn.getControlValue("DICNOMCAMP")},nac:function(){return false}};this.GXValidFnc[44]={fld:"TEXTBLOCK6",format:0,grid:0};this.GXValidFnc[46]={lvl:0,type:"char",len:3,dec:0,sign:false,ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,fld:"DICNROETIQ",gxz:"Z200DicNroEtiq",gxold:"O200DicNroEtiq",gxvar:"A200DicNroEtiq",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A200DicNroEtiq=a
},v2z:function(a){gx.O.Z200DicNroEtiq=a},v2c:function(){gx.fn.setControlValue("DICNROETIQ",gx.O.A200DicNroEtiq,0)},c2v:function(){gx.O.A200DicNroEtiq=this.val()},val:function(){return gx.fn.getControlValue("DICNROETIQ")},nac:function(){return false}};this.GXValidFnc[49]={fld:"TEXTBLOCK7",format:0,grid:0};this.GXValidFnc[51]={lvl:0,type:"char",len:2,dec:0,sign:false,ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,fld:"DICINDCAMP",gxz:"Z197DicIndCamp",gxold:"O197DicIndCamp",gxvar:"A197DicIndCamp",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"combo",v2v:function(a){gx.O.A197DicIndCamp=a
},v2z:function(a){gx.O.Z197DicIndCamp=a},v2c:function(){gx.fn.setComboBoxValue("DICINDCAMP",gx.O.A197DicIndCamp)},c2v:function(){gx.O.A197DicIndCamp=this.val()},val:function(){return gx.fn.getControlValue("DICINDCAMP")},nac:function(){return false}};this.GXValidFnc[54]={fld:"TEXTBLOCK8",format:0,grid:0};this.GXValidFnc[56]={lvl:0,type:"int",len:4,dec:0,sign:false,pic:"ZZZ9",ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,rgrid:[],fld:"DICNROORDE",gxz:"Z201DicNroOrde",gxold:"O201DicNroOrde",gxvar:"A201DicNroOrde",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A201DicNroOrde=gx.num.intval(a)
},v2z:function(a){gx.O.Z201DicNroOrde=gx.num.intval(a)},v2c:function(){gx.fn.setControlValue("DICNROORDE",gx.O.A201DicNroOrde,0)},c2v:function(){gx.O.A201DicNroOrde=this.val()},val:function(){return gx.fn.getIntegerValue("DICNROORDE",".")},nac:function(){return false}};this.GXValidFnc[61]={lvl:132,type:"int",len:4,dec:0,sign:false,pic:"9999",ro:0,grid:60,gxgrid:this.Grid1Container,fnc:null,isvalid:null,rgrid:[],fld:"vNRCDDELETED_132",gxz:"ZnRcdDeleted_132",gxold:"OnRcdDeleted_132",gxvar:"nRcdDeleted_132",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.nRcdDeleted_132=gx.num.intval(a)
},v2z:function(a){gx.O.ZnRcdDeleted_132=gx.num.intval(a)},v2c:function(){gx.fn.setGridControlValue("vNRCDDELETED_132",gx.fn.currentGridRowImpl(60),gx.O.nRcdDeleted_132,0)},c2v:function(){gx.O.nRcdDeleted_132=this.val()},val:function(){return gx.fn.getGridIntegerValue("vNRCDDELETED_132",gx.fn.currentGridRowImpl(60),".")},nac:function(){return false}};this.GXValidFnc[62]={lvl:132,type:"int",len:1,dec:0,sign:false,pic:"9",ro:0,grid:60,gxgrid:this.Grid1Container,fnc:this.Valid_Doinroindi,isvalid:null,rgrid:[],fld:"DOINROINDI",gxz:"Z285DoiNroIndi",gxold:"O285DoiNroIndi",gxvar:"A285DoiNroIndi",ucs:[],op:[62],ip:[62],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A285DoiNroIndi=gx.num.intval(a)
},v2z:function(a){gx.O.Z285DoiNroIndi=gx.num.intval(a)},v2c:function(){gx.fn.setGridControlValue("DOINROINDI",gx.fn.currentGridRowImpl(60),gx.O.A285DoiNroIndi,0)},c2v:function(){gx.O.A285DoiNroIndi=this.val()},val:function(){return gx.fn.getGridIntegerValue("DOINROINDI",gx.fn.currentGridRowImpl(60),".")},nac:function(){return false}};this.GXValidFnc[63]={lvl:132,type:"char",len:1,dec:0,sign:false,ro:0,grid:60,gxgrid:this.Grid1Container,fnc:this.Valid_Doivalopca,isvalid:null,fld:"DOIVALOPCA",gxz:"Z286DoiValOpca",gxold:"O286DoiValOpca",gxvar:"A286DoiValOpca",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A286DoiValOpca=a
},v2z:function(a){gx.O.Z286DoiValOpca=a},v2c:function(){gx.fn.setGridControlValue("DOIVALOPCA",gx.fn.currentGridRowImpl(60),gx.O.A286DoiValOpca,0)},c2v:function(){gx.O.A286DoiValOpca=this.val()},val:function(){return gx.fn.getGridControlValue("DOIVALOPCA",gx.fn.currentGridRowImpl(60))},nac:function(){return false}};this.GXValidFnc[64]={lvl:132,type:"char",len:60,dec:0,sign:false,ro:0,grid:60,gxgrid:this.Grid1Container,fnc:null,isvalid:null,fld:"DOIDESSIGN",gxz:"Z284DoiDesSign",gxold:"O284DoiDesSign",gxvar:"A284DoiDesSign",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A284DoiDesSign=a
},v2z:function(a){gx.O.Z284DoiDesSign=a},v2c:function(){gx.fn.setGridControlValue("DOIDESSIGN",gx.fn.currentGridRowImpl(60),gx.O.A284DoiDesSign,0)},c2v:function(){gx.O.A284DoiDesSign=this.val()},val:function(){return gx.fn.getGridControlValue("DOIDESSIGN",gx.fn.currentGridRowImpl(60))},nac:function(){return false}};this.A203DicTipMate="";this.Z203DicTipMate="";this.O203DicTipMate="";this.A202DicNroSequ=0;this.Z202DicNroSequ=0;this.O202DicNroSequ=0;this.A196DicIndAtiv="";this.Z196DicIndAtiv="";this.O196DicIndAtiv="";
this.A199DicNomRotu="";this.Z199DicNomRotu="";this.O199DicNomRotu="";this.A198DicNomCamp="";this.Z198DicNomCamp="";this.O198DicNomCamp="";this.A200DicNroEtiq="";this.Z200DicNroEtiq="";this.O200DicNroEtiq="";this.A197DicIndCamp="";this.Z197DicIndCamp="";this.O197DicIndCamp="";this.A201DicNroOrde=0;this.Z201DicNroOrde=0;this.O201DicNroOrde=0;this.ZnRcdDeleted_132=0;this.OnRcdDeleted_132=0;this.Z285DoiNroIndi=0;this.O285DoiNroIndi=0;this.Z286DoiValOpca="";this.O286DoiValOpca="";this.Z284DoiDesSign="";
this.O284DoiDesSign="";this.A285DoiNroIndi=0;this.A286DoiValOpca="";this.A284DoiDesSign="";this.ServerEvents=["e124k109_client","e134k109_client"];this.EnterCtrl=["BTN_ENTER"];this.CheckCtrl=["BTN_CHECK"];this.VarControlMap.Gx_mode={id:"vMODE",grid:0,type:"char"};this.SetStandaloneVars()}tmat005.prototype=new gx.GxObject;gx.setParentObj(new tmat005());