gx.evt.autoSkip=false;function timt097(){this.ServerClass="TImt097";this.PackageName="";this.setObjectType("trn");this.hasEnterEvent=true;this.SetStandaloneVars=function(){this.Gx_mode=gx.fn.getControlValue("vMODE")};this.Valid_Ttdnrosequ=function(){gx.ajax.validSrvEvt("dyncall","valid_Ttdnrosequ",["gx.O.A1068TtdNroSequ","gx.O.A1069TtdInd1","gx.O.A1070StrCod"],["A1069TtdInd1","A1070StrCod","A1071StrNom","Gx_mode","Z1068TtdNroSequ","Z1069TtdInd1","Z1070StrCod","Z1071StrNom","Gridtimt097_ttccod",["BTN_ENTER2","Enabled"]]);
return true};this.Valid_Strcod=function(){gx.ajax.validSrvEvt("dyncall","valid_Strcod",["gx.O.A1070StrCod","gx.O.A1071StrNom"],["A1071StrNom"]);return true};this.Valid_Ttccodcamp=function(){try{if(gx.fn.currentGridRowImpl(60)===0){return true}var a=gx.util.balloon.getNew("TTCCODCAMP",gx.fn.currentGridRowImpl(60));this.AnyError=0;this.sMode163=this.Gx_mode;this.Gx_mode=gx.fn.getGridRowMode(163,60);this.standaloneModal5T163();this.standaloneNotModal5T163();if(gx.fn.gridDuplicateKey(61)){a.setError(gx.text.format(gx.getMessage("GXM_1004"),"Ttc Cod"));
this.AnyError=1}}catch(b){}try{this.Gx_mode=this.sMode163;if(a==null){return true}return a.show()}catch(b){}return true};this.standaloneModal5T163=function(){try{if(this.Gx_mode!="INS"){gx.fn.setCtrlProperty("TTCCODCAMP","Enabled",0)}else{gx.fn.setCtrlProperty("TTCCODCAMP","Enabled",1)}}catch(a){}return true};this.standaloneNotModal5T163=function(){return true};this.e115t162_client=function(){this.executeServerEvent("ENTER",true)};this.e125t162_client=function(){this.executeServerEvent("CANCEL",true)
};this.GXValidFnc=[];this.GXCtrlIds=[2,5,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,26,27,33,36,38,41,43,46,48,51,53,56,59,61,62,68];this.GXLastCtrlId=68;this.Gridtimt097_ttccodContainer=new gx.grid.grid(this,163,"TtcCod",60,"Gridtimt097_ttccod","Gridtimt097_ttccod","Gridtimt097_ttccodContainer",this.CmpContext,this.IsMasterPage,"timt097",[1072],false,1,false,true,5,false,false,false,"",0,"px","Novo registro",true,false,false,null,null,false,"");this.Gridtimt097_ttccodContainer.addSingleLineEdit(1072,61,"TTCCODCAMP","Campo","","TtcCodCamp","char",0,"px",10,10,"left",null,[],1072,"TtcCodCamp",true,0,false,false);
this.Gridtimt097_ttccodContainer.addSingleLineEdit(1073,62,"TTCVALCAMP","Conteúdo","","TtcValCamp","svchar",0,"px",1024,1024,"left",null,[],1073,"TtcValCamp",true,0,false,false);this.setGrid(this.Gridtimt097_ttccodContainer);this.GXValidFnc[2]={fld:"TABLEMAIN",grid:0};this.GXValidFnc[5]={fld:"TABLETOOLBAR",grid:0};this.GXValidFnc[8]={fld:"BTN_FIRST",grid:0};this.GXValidFnc[9]={fld:"BTN_FIRST_SEPARATOR",grid:0};this.GXValidFnc[10]={fld:"BTN_PREVIOUS",grid:0};this.GXValidFnc[11]={fld:"BTN_PREVIOUS_SEPARATOR",grid:0};
this.GXValidFnc[12]={fld:"BTN_NEXT",grid:0};this.GXValidFnc[13]={fld:"BTN_NEXT_SEPARATOR",grid:0};this.GXValidFnc[14]={fld:"BTN_LAST",grid:0};this.GXValidFnc[15]={fld:"BTN_LAST_SEPARATOR",grid:0};this.GXValidFnc[16]={fld:"BTN_SELECT",grid:0};this.GXValidFnc[17]={fld:"BTN_SELECT_SEPARATOR",grid:0};this.GXValidFnc[18]={fld:"BTN_ENTER2",grid:0};this.GXValidFnc[19]={fld:"BTN_ENTER2_SEPARATOR",grid:0};this.GXValidFnc[20]={fld:"BTN_CANCEL2",grid:0};this.GXValidFnc[21]={fld:"BTN_CANCEL2_SEPARATOR",grid:0};
this.GXValidFnc[22]={fld:"BTN_DELETE2",grid:0};this.GXValidFnc[23]={fld:"BTN_DELETE2_SEPARATOR",grid:0};this.GXValidFnc[26]={fld:"GROUPDATA",grid:0};this.GXValidFnc[27]={fld:"TABLE1",grid:0};this.GXValidFnc[33]={fld:"TABLE2",grid:0};this.GXValidFnc[36]={fld:"TEXTBLOCKTTDNROSEQUENCIA",format:0,grid:0};this.GXValidFnc[38]={lvl:0,type:"int",len:4,dec:0,sign:false,pic:"ZZZ9",ro:0,grid:0,gxgrid:null,fnc:this.Valid_Ttdnrosequ,isvalid:null,rgrid:[this.Gridtimt097_ttccodContainer],fld:"TTDNROSEQU",gxz:"Z1068TtdNroSequ",gxold:"O1068TtdNroSequ",gxvar:"A1068TtdNroSequ",ucs:[],op:[48,43],ip:[48,43,38],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A1068TtdNroSequ=gx.num.intval(a)
},v2z:function(a){gx.O.Z1068TtdNroSequ=gx.num.intval(a)},v2c:function(){gx.fn.setControlValue("TTDNROSEQU",gx.O.A1068TtdNroSequ,0)},c2v:function(){gx.O.A1068TtdNroSequ=this.val()},val:function(){return gx.fn.getIntegerValue("TTDNROSEQU",".")},nac:function(){return false}};this.GXValidFnc[41]={fld:"TEXTBLOCKTTDIND1",format:0,grid:0};this.GXValidFnc[43]={lvl:0,type:"char",len:1,dec:0,sign:false,ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,fld:"TTDIND1",gxz:"Z1069TtdInd1",gxold:"O1069TtdInd1",gxvar:"A1069TtdInd1",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A1069TtdInd1=a
},v2z:function(a){gx.O.Z1069TtdInd1=a},v2c:function(){gx.fn.setControlValue("TTDIND1",gx.O.A1069TtdInd1,0)},c2v:function(){gx.O.A1069TtdInd1=this.val()},val:function(){return gx.fn.getControlValue("TTDIND1")},nac:function(){return false}};this.GXValidFnc[46]={fld:"TEXTBLOCKSTRCOD",format:0,grid:0};this.GXValidFnc[48]={lvl:0,type:"int",len:5,dec:0,sign:false,pic:"ZZZZ9",ro:0,grid:0,gxgrid:null,fnc:this.Valid_Strcod,isvalid:null,rgrid:[],fld:"STRCOD",gxz:"Z1070StrCod",gxold:"O1070StrCod",gxvar:"A1070StrCod",ucs:[],op:[53],ip:[53,48],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A1070StrCod=gx.num.intval(a)
},v2z:function(a){gx.O.Z1070StrCod=gx.num.intval(a)},v2c:function(){gx.fn.setControlValue("STRCOD",gx.O.A1070StrCod,0)},c2v:function(){gx.O.A1070StrCod=this.val()},val:function(){return gx.fn.getIntegerValue("STRCOD",".")},nac:function(){return false}};this.GXValidFnc[51]={fld:"TEXTBLOCKSTRNOM",format:0,grid:0};this.GXValidFnc[53]={lvl:0,type:"char",len:50,dec:0,sign:false,ro:1,grid:0,gxgrid:null,fnc:null,isvalid:null,fld:"STRNOM",gxz:"Z1071StrNom",gxold:"O1071StrNom",gxvar:"A1071StrNom",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A1071StrNom=a
},v2z:function(a){gx.O.Z1071StrNom=a},v2c:function(){gx.fn.setControlValue("STRNOM",gx.O.A1071StrNom,0)},c2v:function(){gx.O.A1071StrNom=this.val()},val:function(){return gx.fn.getControlValue("STRNOM")},nac:function(){return false}};this.GXValidFnc[56]={fld:"TABLE3",grid:0};this.GXValidFnc[59]={fld:"TITLETTCCOD",format:0,grid:0};this.GXValidFnc[61]={lvl:163,type:"char",len:10,dec:0,sign:false,ro:0,grid:60,gxgrid:this.Gridtimt097_ttccodContainer,fnc:this.Valid_Ttccodcamp,isvalid:null,fld:"TTCCODCAMP",gxz:"Z1072TtcCodCamp",gxold:"O1072TtcCodCamp",gxvar:"A1072TtcCodCamp",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A1072TtcCodCamp=a
},v2z:function(a){gx.O.Z1072TtcCodCamp=a},v2c:function(){gx.fn.setGridControlValue("TTCCODCAMP",gx.fn.currentGridRowImpl(60),gx.O.A1072TtcCodCamp,0)},c2v:function(){gx.O.A1072TtcCodCamp=this.val()},val:function(){return gx.fn.getGridControlValue("TTCCODCAMP",gx.fn.currentGridRowImpl(60))},nac:function(){return false}};this.GXValidFnc[62]={lvl:163,type:"svchar",len:1024,dec:0,sign:false,ro:0,grid:60,gxgrid:this.Gridtimt097_ttccodContainer,fnc:null,isvalid:null,fld:"TTCVALCAMP",gxz:"Z1073TtcValCamp",gxold:"O1073TtcValCamp",gxvar:"A1073TtcValCamp",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A1073TtcValCamp=a
},v2z:function(a){gx.O.Z1073TtcValCamp=a},v2c:function(){gx.fn.setGridControlValue("TTCVALCAMP",gx.fn.currentGridRowImpl(60),gx.O.A1073TtcValCamp,0)},c2v:function(){gx.O.A1073TtcValCamp=this.val()},val:function(){return gx.fn.getGridControlValue("TTCVALCAMP",gx.fn.currentGridRowImpl(60))},nac:function(){return false}};this.GXValidFnc[68]={fld:"PROMPT_1070",grid:162};this.A1068TtdNroSequ=0;this.Z1068TtdNroSequ=0;this.O1068TtdNroSequ=0;this.A1069TtdInd1="";this.Z1069TtdInd1="";this.O1069TtdInd1="";
this.A1070StrCod=0;this.Z1070StrCod=0;this.O1070StrCod=0;this.A1071StrNom="";this.Z1071StrNom="";this.O1071StrNom="";this.Z1072TtcCodCamp="";this.O1072TtcCodCamp="";this.Z1073TtcValCamp="";this.O1073TtcValCamp="";this.A1072TtcCodCamp="";this.A1073TtcValCamp="";this.ServerEvents=["e115t162_client","e125t162_client"];this.setPrompt("PROMPT_1070",[48]);this.EnterCtrl=["BTN_ENTER"];this.VarControlMap.Gx_mode={id:"vMODE",grid:0,type:"char"};this.SetStandaloneVars()}timt097.prototype=new gx.GxObject;gx.setParentObj(new timt097());