gx.evt.autoSkip=false;function timt096(){this.ServerClass="TImt096";this.PackageName="";this.setObjectType("trn");this.hasEnterEvent=true;this.SetStandaloneVars=function(){this.Gx_mode=gx.fn.getControlValue("vMODE")};this.Valid_Rdonrosequ=function(){try{var a=gx.util.balloon.getNew("RDONROSEQU");this.AnyError=0}catch(b){}try{if(a==null){return true}return a.show()}catch(b){}return true};this.Valid_Rdinrosequ=function(){gx.ajax.validSrvEvt("dyncall","valid_Rdinrosequ",["gx.O.A1038RdoNroSequ","gx.O.A1044RdiNroSequ","gx.O.A1045RdiNroTomb","gx.O.A1046RdiInd1","gx.O.A1047RdiCampo1L"],["A1045RdiNroTomb","A1046RdiInd1","A1047RdiCampo1L","Gx_mode","Z1038RdoNroSequ","Z1044RdiNroSequ","Z1045RdiNroTomb","Z1046RdiInd1","Z1047RdiCampo1L","Gridtimt096_riccod",["BTN_ENTER2","Enabled"]]);
return true};this.Valid_Riccodcamp=function(){try{if(gx.fn.currentGridRowImpl(65)===0){return true}var a=gx.util.balloon.getNew("RICCODCAMP",gx.fn.currentGridRowImpl(65));this.AnyError=0;this.sMode161=this.Gx_mode;this.Gx_mode=gx.fn.getGridRowMode(161,65);this.standaloneModal5S161();this.standaloneNotModal5S161();if(gx.fn.gridDuplicateKey(66)){a.setError(gx.text.format(gx.getMessage("GXM_1004"),"Ric Cod"));this.AnyError=1}}catch(b){}try{this.Gx_mode=this.sMode161;if(a==null){return true}return a.show()
}catch(b){}return true};this.standaloneModal5S161=function(){try{if(this.Gx_mode!="INS"){gx.fn.setCtrlProperty("RICCODCAMP","Enabled",0)}else{gx.fn.setCtrlProperty("RICCODCAMP","Enabled",1)}}catch(a){}return true};this.standaloneNotModal5S161=function(){return true};this.e125s160_client=function(){this.executeServerEvent("ENTER",true)};this.e135s160_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,58,61,64,66,67,68,69];
this.GXLastCtrlId=69;this.Gridtimt096_riccodContainer=new gx.grid.grid(this,161,"RicCod",65,"Gridtimt096_riccod","Gridtimt096_riccod","Gridtimt096_riccodContainer",this.CmpContext,this.IsMasterPage,"timt096",[1048],false,1,false,true,5,false,false,false,"",0,"px","Novo registro",true,false,false,null,null,false,"");this.Gridtimt096_riccodContainer.addSingleLineEdit(1048,66,"RICCODCAMP","Campo","","RicCodCamp","char",0,"px",10,10,"left",null,[],1048,"RicCodCamp",true,0,false,false);this.Gridtimt096_riccodContainer.addSingleLineEdit(1049,67,"RICVALCONT","Conteúdo","","RicValCont","svchar",0,"px",1024,1024,"left",null,[],1049,"RicValCont",true,0,false,false);
this.Gridtimt096_riccodContainer.addSingleLineEdit(1050,68,"RICCAMPO1L","livre","","RicCampo1L","char",0,"px",10,10,"left",null,[],1050,"RicCampo1L",true,0,false,false);this.Gridtimt096_riccodContainer.addSingleLineEdit(1051,69,"RICIND1","livre","","RicInd1","char",0,"px",1,1,"left",null,[],1051,"RicInd1",true,0,false,false);this.setGrid(this.Gridtimt096_riccodContainer);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:"TEXTBLOCKRDONROSEQUENCIA",format:0,grid:0};this.GXValidFnc[38]={lvl:0,type:"int",len:6,dec:0,sign:false,pic:"ZZZZZ9",ro:1,grid:0,gxgrid:null,fnc:this.Valid_Rdonrosequ,isvalid:null,rgrid:[this.Gridtimt096_riccodContainer],fld:"RDONROSEQU",gxz:"Z1038RdoNroSequ",gxold:"O1038RdoNroSequ",gxvar:"A1038RdoNroSequ",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A1038RdoNroSequ=gx.num.intval(a)
},v2z:function(a){gx.O.Z1038RdoNroSequ=gx.num.intval(a)},v2c:function(){gx.fn.setControlValue("RDONROSEQU",gx.O.A1038RdoNroSequ,0)},c2v:function(){gx.O.A1038RdoNroSequ=this.val()},val:function(){return gx.fn.getIntegerValue("RDONROSEQU",".")},nac:function(){return false}};this.GXValidFnc[41]={fld:"TEXTBLOCKRDINROSEQUENCIA",format:0,grid:0};this.GXValidFnc[43]={lvl:0,type:"int",len:4,dec:0,sign:false,pic:"ZZZ9",ro:0,grid:0,gxgrid:null,fnc:this.Valid_Rdinrosequ,isvalid:null,rgrid:[this.Gridtimt096_riccodContainer],fld:"RDINROSEQU",gxz:"Z1044RdiNroSequ",gxold:"O1044RdiNroSequ",gxvar:"A1044RdiNroSequ",ucs:[],op:[58,53,48],ip:[58,53,48,43,38],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A1044RdiNroSequ=gx.num.intval(a)
},v2z:function(a){gx.O.Z1044RdiNroSequ=gx.num.intval(a)},v2c:function(){gx.fn.setControlValue("RDINROSEQU",gx.O.A1044RdiNroSequ,0)},c2v:function(){gx.O.A1044RdiNroSequ=this.val()},val:function(){return gx.fn.getIntegerValue("RDINROSEQU",".")},nac:function(){return false}};this.GXValidFnc[46]={fld:"TEXTBLOCKRDINROTOMBO",format:0,grid:0};this.GXValidFnc[48]={lvl:0,type:"int",len:9,dec:0,sign:false,pic:"ZZZZZZZZ9",ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,rgrid:[],fld:"RDINROTOMB",gxz:"Z1045RdiNroTomb",gxold:"O1045RdiNroTomb",gxvar:"A1045RdiNroTomb",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A1045RdiNroTomb=gx.num.intval(a)
},v2z:function(a){gx.O.Z1045RdiNroTomb=gx.num.intval(a)},v2c:function(){gx.fn.setControlValue("RDINROTOMB",gx.O.A1045RdiNroTomb,0)},c2v:function(){gx.O.A1045RdiNroTomb=this.val()},val:function(){return gx.fn.getIntegerValue("RDINROTOMB",".")},nac:function(){return false}};this.GXValidFnc[51]={fld:"TEXTBLOCKRDIIND1",format:0,grid:0};this.GXValidFnc[53]={lvl:0,type:"char",len:1,dec:0,sign:false,ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,fld:"RDIIND1",gxz:"Z1046RdiInd1",gxold:"O1046RdiInd1",gxvar:"A1046RdiInd1",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A1046RdiInd1=a
},v2z:function(a){gx.O.Z1046RdiInd1=a},v2c:function(){gx.fn.setControlValue("RDIIND1",gx.O.A1046RdiInd1,0)},c2v:function(){gx.O.A1046RdiInd1=this.val()},val:function(){return gx.fn.getControlValue("RDIIND1")},nac:function(){return false}};this.GXValidFnc[56]={fld:"TEXTBLOCKRDICAMPO1LIVRE",format:0,grid:0};this.GXValidFnc[58]={lvl:0,type:"char",len:10,dec:0,sign:false,ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,fld:"RDICAMPO1L",gxz:"Z1047RdiCampo1L",gxold:"O1047RdiCampo1L",gxvar:"A1047RdiCampo1L",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A1047RdiCampo1L=a
},v2z:function(a){gx.O.Z1047RdiCampo1L=a},v2c:function(){gx.fn.setControlValue("RDICAMPO1L",gx.O.A1047RdiCampo1L,0)},c2v:function(){gx.O.A1047RdiCampo1L=this.val()},val:function(){return gx.fn.getControlValue("RDICAMPO1L")},nac:function(){return false}};this.GXValidFnc[61]={fld:"TABLE3",grid:0};this.GXValidFnc[64]={fld:"TITLERICCOD",format:0,grid:0};this.GXValidFnc[66]={lvl:161,type:"char",len:10,dec:0,sign:false,ro:0,grid:65,gxgrid:this.Gridtimt096_riccodContainer,fnc:this.Valid_Riccodcamp,isvalid:null,fld:"RICCODCAMP",gxz:"Z1048RicCodCamp",gxold:"O1048RicCodCamp",gxvar:"A1048RicCodCamp",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A1048RicCodCamp=a
},v2z:function(a){gx.O.Z1048RicCodCamp=a},v2c:function(){gx.fn.setGridControlValue("RICCODCAMP",gx.fn.currentGridRowImpl(65),gx.O.A1048RicCodCamp,0)},c2v:function(){gx.O.A1048RicCodCamp=this.val()},val:function(){return gx.fn.getGridControlValue("RICCODCAMP",gx.fn.currentGridRowImpl(65))},nac:function(){return false}};this.GXValidFnc[67]={lvl:161,type:"svchar",len:1024,dec:0,sign:false,ro:0,grid:65,gxgrid:this.Gridtimt096_riccodContainer,fnc:null,isvalid:null,fld:"RICVALCONT",gxz:"Z1049RicValCont",gxold:"O1049RicValCont",gxvar:"A1049RicValCont",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A1049RicValCont=a
},v2z:function(a){gx.O.Z1049RicValCont=a},v2c:function(){gx.fn.setGridControlValue("RICVALCONT",gx.fn.currentGridRowImpl(65),gx.O.A1049RicValCont,0)},c2v:function(){gx.O.A1049RicValCont=this.val()},val:function(){return gx.fn.getGridControlValue("RICVALCONT",gx.fn.currentGridRowImpl(65))},nac:function(){return false}};this.GXValidFnc[68]={lvl:161,type:"char",len:10,dec:0,sign:false,ro:0,grid:65,gxgrid:this.Gridtimt096_riccodContainer,fnc:null,isvalid:null,fld:"RICCAMPO1L",gxz:"Z1050RicCampo1L",gxold:"O1050RicCampo1L",gxvar:"A1050RicCampo1L",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A1050RicCampo1L=a
},v2z:function(a){gx.O.Z1050RicCampo1L=a},v2c:function(){gx.fn.setGridControlValue("RICCAMPO1L",gx.fn.currentGridRowImpl(65),gx.O.A1050RicCampo1L,0)},c2v:function(){gx.O.A1050RicCampo1L=this.val()},val:function(){return gx.fn.getGridControlValue("RICCAMPO1L",gx.fn.currentGridRowImpl(65))},nac:function(){return false}};this.GXValidFnc[69]={lvl:161,type:"char",len:1,dec:0,sign:false,ro:0,grid:65,gxgrid:this.Gridtimt096_riccodContainer,fnc:null,isvalid:null,fld:"RICIND1",gxz:"Z1051RicInd1",gxold:"O1051RicInd1",gxvar:"A1051RicInd1",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A1051RicInd1=a
},v2z:function(a){gx.O.Z1051RicInd1=a},v2c:function(){gx.fn.setGridControlValue("RICIND1",gx.fn.currentGridRowImpl(65),gx.O.A1051RicInd1,0)},c2v:function(){gx.O.A1051RicInd1=this.val()},val:function(){return gx.fn.getGridControlValue("RICIND1",gx.fn.currentGridRowImpl(65))},nac:function(){return false}};this.A1038RdoNroSequ=0;this.Z1038RdoNroSequ=0;this.O1038RdoNroSequ=0;this.A1044RdiNroSequ=0;this.Z1044RdiNroSequ=0;this.O1044RdiNroSequ=0;this.A1045RdiNroTomb=0;this.Z1045RdiNroTomb=0;this.O1045RdiNroTomb=0;
this.A1046RdiInd1="";this.Z1046RdiInd1="";this.O1046RdiInd1="";this.A1047RdiCampo1L="";this.Z1047RdiCampo1L="";this.O1047RdiCampo1L="";this.Z1048RicCodCamp="";this.O1048RicCodCamp="";this.Z1049RicValCont="";this.O1049RicValCont="";this.Z1050RicCampo1L="";this.O1050RicCampo1L="";this.Z1051RicInd1="";this.O1051RicInd1="";this.A1048RicCodCamp="";this.A1049RicValCont="";this.A1050RicCampo1L="";this.A1051RicInd1="";this.AV8UsuCodCorr="";this.AV7IndLiber="";this.Gx_msg="";this.ServerEvents=["e125s160_client","e135s160_client"];
this.EnterCtrl=["BTN_ENTER"];this.VarControlMap.Gx_mode={id:"vMODE",grid:0,type:"char"};this.SetStandaloneVars()}timt096.prototype=new gx.GxObject;gx.setParentObj(new timt096());