gx.evt.autoSkip=false;function timt085(){this.ServerClass="TImt085";this.PackageName="";this.setObjectType("trn");this.hasEnterEvent=true;this.SetStandaloneVars=function(){this.AV10ValorCampo=gx.fn.getControlValue("vVALORCAMPO");this.AV9IndCnpjValido=gx.fn.getControlValue("vINDCNPJVALIDO");this.A523LtrInd1=gx.fn.getControlValue("LTRIND1");this.Gx_mode=gx.fn.getControlValue("vMODE");this.AV11ValorSubcampo=gx.fn.getControlValue("vVALORSUBCAMPO");this.A825SltInd1=gx.fn.getControlValue("SLTIND1")};this.Valid_Ltrnro=function(){gx.ajax.validSrvEvt("dyncall","valid_Ltrnro",[["A827SltNro","Title"],"gx.O.AV10ValorCampo","gx.O.AV11ValorSubcampo","gx.O.A525LtrNro","gx.O.A524LtrNom","gx.O.A523LtrInd1","gx.O.A522LtrCampo1L"],["A524LtrNom","A523LtrInd1","A522LtrCampo1L","Gx_mode","Z525LtrNro","Z524LtrNom","Z523LtrInd1","Z522LtrCampo1L","Grid1",["BUTTON1","Enabled"],["BTN_ENTER2","Enabled"]]);
return true};this.Valid_Ltrnom=function(){try{var a=gx.util.balloon.getNew("LTRNOM");this.AnyError=0}catch(b){}try{if(a==null){return true}return a.show()}catch(b){}return true};this.Valid_Ltrcampo1l=function(){try{var a=gx.util.balloon.getNew("LTRCAMPO1L");this.AnyError=0}catch(b){}try{if(a==null){return true}return a.show()}catch(b){}return true};this.Valid_Sltnro=function(){try{if(gx.fn.currentGridRowImpl(52)===0){return true}var a=gx.util.balloon.getNew("SLTNRO",gx.fn.currentGridRowImpl(52));
this.AnyError=0;this.sMode122=this.Gx_mode;this.Gx_mode=gx.fn.getGridRowMode(122,52);this.standaloneModal4C122();this.standaloneNotModal4C122();if(gx.fn.gridDuplicateKey(53)){a.setError(gx.text.format(gx.getMessage("GXM_1004"),"Level1"));this.AnyError=1}}catch(b){}try{this.Gx_mode=this.sMode122;if(a==null){return true}return a.show()}catch(b){}return true};this.Valid_Sltnom=function(){try{if(gx.fn.currentGridRowImpl(52)===0){return true}var a=gx.util.balloon.getNew("SLTNOM",gx.fn.currentGridRowImpl(52));
this.AnyError=0;this.sMode122=this.Gx_mode;this.Gx_mode=gx.fn.getGridRowMode(122,52)}catch(b){}try{this.Gx_mode=this.sMode122;if(a==null){return true}return a.show()}catch(b){}return true};this.standaloneModal4C122=function(){try{if(this.Gx_mode!="INS"){gx.fn.setCtrlProperty("SLTNRO","Enabled",0)}else{gx.fn.setCtrlProperty("SLTNRO","Enabled",1)}}catch(a){}return true};this.standaloneNotModal4C122=function(){return true};this.e124c2_client=function(){this.executeServerEvent("'VOLTAR'",false)};this.e134c2_client=function(){this.executeServerEvent("'SEM USO'",false)
};this.e144c121_client=function(){this.executeServerEvent("ENTER",true)};this.e154c121_client=function(){this.executeServerEvent("CANCEL",true)};this.GXValidFnc=[];this.GXCtrlIds=[3,23,26,29,32,34,37,42,44,47,49,53,54];this.GXLastCtrlId=54;this.Grid1Container=new gx.grid.grid(this,122,"Level1",52,"Grid1","Grid1","Grid1Container",this.CmpContext,this.IsMasterPage,"timt085",[827],false,1,true,true,5,false,false,false,"",0,"px","Novo registro",true,false,false,null,null,false,"");this.Grid1Container.addSingleLineEdit(827,53,"SLTNRO","","","SltNro","int",34,"px",4,4,"right",null,[],827,"SltNro",true,0,false,false);
this.Grid1Container.addSingleLineEdit(826,54,"SLTNOM","Nome","","SltNom","char",0,"px",40,40,"left",null,[],826,"SltNom",true,0,false,false);this.setGrid(this.Grid1Container);this.GXValidFnc[3]={fld:"TABLE4",grid:0};this.GXValidFnc[23]={fld:"TEXTTITULO",format:0,grid:0};this.GXValidFnc[26]={fld:"TABLE1",grid:0};this.GXValidFnc[29]={fld:"TABLE2",grid:0};this.GXValidFnc[32]={fld:"TEXTCAMPO",format:0,grid:0};this.GXValidFnc[34]={fld:"TABLE3",grid:0};this.GXValidFnc[37]={lvl:0,type:"int",len:5,dec:0,sign:false,pic:"ZZZZ9",ro:0,grid:0,gxgrid:null,fnc:this.Valid_Ltrnro,isvalid:null,rgrid:[this.Grid1Container],fld:"LTRNRO",gxz:"Z525LtrNro",gxold:"O525LtrNro",gxvar:"A525LtrNro",ucs:[],op:[49,44],ip:[49,44,37],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A525LtrNro=gx.num.intval(a)
},v2z:function(a){gx.O.Z525LtrNro=gx.num.intval(a)},v2c:function(){gx.fn.setControlValue("LTRNRO",gx.O.A525LtrNro,0)},c2v:function(){gx.O.A525LtrNro=this.val()},val:function(){return gx.fn.getIntegerValue("LTRNRO",".")},nac:function(){return false}};this.GXValidFnc[42]={fld:"TEXTBLOCK2",format:0,grid:0};this.GXValidFnc[44]={lvl:0,type:"char",len:40,dec:0,sign:false,ro:0,grid:0,gxgrid:null,fnc:this.Valid_Ltrnom,isvalid:null,fld:"LTRNOM",gxz:"Z524LtrNom",gxold:"O524LtrNom",gxvar:"A524LtrNom",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A524LtrNom=a
},v2z:function(a){gx.O.Z524LtrNom=a},v2c:function(){gx.fn.setControlValue("LTRNOM",gx.O.A524LtrNom,0)},c2v:function(){gx.O.A524LtrNom=this.val()},val:function(){return gx.fn.getControlValue("LTRNOM")},nac:function(){return false}};this.GXValidFnc[47]={fld:"TEXTBLOCK3",format:0,grid:0};this.GXValidFnc[49]={lvl:0,type:"char",len:20,dec:0,sign:false,ro:0,grid:0,gxgrid:null,fnc:this.Valid_Ltrcampo1l,isvalid:null,fld:"LTRCAMPO1L",gxz:"Z522LtrCampo1L",gxold:"O522LtrCampo1L",gxvar:"A522LtrCampo1L",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A522LtrCampo1L=a
},v2z:function(a){gx.O.Z522LtrCampo1L=a},v2c:function(){gx.fn.setControlValue("LTRCAMPO1L",gx.O.A522LtrCampo1L,0)},c2v:function(){gx.O.A522LtrCampo1L=this.val()},val:function(){return gx.fn.getControlValue("LTRCAMPO1L")},nac:function(){return false}};this.GXValidFnc[53]={lvl:122,type:"int",len:4,dec:0,sign:false,pic:"ZZZ9",ro:0,grid:52,gxgrid:this.Grid1Container,fnc:this.Valid_Sltnro,isvalid:null,rgrid:[],fld:"SLTNRO",gxz:"Z827SltNro",gxold:"O827SltNro",gxvar:"A827SltNro",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A827SltNro=gx.num.intval(a)
},v2z:function(a){gx.O.Z827SltNro=gx.num.intval(a)},v2c:function(){gx.fn.setGridControlValue("SLTNRO",gx.fn.currentGridRowImpl(52),gx.O.A827SltNro,0)},c2v:function(){gx.O.A827SltNro=this.val()},val:function(){return gx.fn.getGridIntegerValue("SLTNRO",gx.fn.currentGridRowImpl(52),".")},nac:function(){return false}};this.GXValidFnc[54]={lvl:122,type:"char",len:40,dec:0,sign:false,ro:0,grid:52,gxgrid:this.Grid1Container,fnc:this.Valid_Sltnom,isvalid:null,fld:"SLTNOM",gxz:"Z826SltNom",gxold:"O826SltNom",gxvar:"A826SltNom",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A826SltNom=a
},v2z:function(a){gx.O.Z826SltNom=a},v2c:function(){gx.fn.setGridControlValue("SLTNOM",gx.fn.currentGridRowImpl(52),gx.O.A826SltNom,0)},c2v:function(){gx.O.A826SltNom=this.val()},val:function(){return gx.fn.getGridControlValue("SLTNOM",gx.fn.currentGridRowImpl(52))},nac:function(){return false}};this.A525LtrNro=0;this.Z525LtrNro=0;this.O525LtrNro=0;this.A524LtrNom="";this.Z524LtrNom="";this.O524LtrNom="";this.A522LtrCampo1L="";this.Z522LtrCampo1L="";this.O522LtrCampo1L="";this.Z827SltNro=0;this.O827SltNro=0;
this.Z826SltNom="";this.O826SltNom="";this.A827SltNro=0;this.A826SltNom="";this.A825SltInd1="";this.AV7UsuCodCorr="";this.AV10ValorCampo="";this.AV11ValorSubcampo="";this.AV9IndCnpjValido="";this.A523LtrInd1="";this.ServerEvents=["e124c2_client","e134c2_client","e144c121_client","e154c121_client"];this.EnterCtrl=["BTN_ENTER2"];this.VarControlMap.AV10ValorCampo={id:"vVALORCAMPO",grid:0,type:"char"};this.VarControlMap.AV9IndCnpjValido={id:"vINDCNPJVALIDO",grid:0,type:"char"};this.VarControlMap.A523LtrInd1={id:"LTRIND1",grid:0,type:"char"};
this.VarControlMap.Gx_mode={id:"vMODE",grid:0,type:"char"};this.VarControlMap.AV11ValorSubcampo={id:"vVALORSUBCAMPO",grid:0,type:"char"};this.VarControlMap.A825SltInd1={id:"SLTIND1",grid:52,type:"char"};this.SetStandaloneVars()}timt085.prototype=new gx.GxObject;gx.setParentObj(new timt085());