protected override void BeforeInvokeProxy(NHExt.Runtime.Proxy.AgentInvoker invoker, NHExt.Runtime.Web.HttpHandler.DirectRequest req, HttpContext ctx) { base.BeforeInvokeProxy(invoker, req, ctx); NHExt.Runtime.Auth.AuthContext authCtx = NHExt.Runtime.Auth.AuthContext.GetInstance(); Type authType = authCtx.GetType(); NHExt.Runtime.GAIA.HttpHandler.DirectRequest reqExtend = req as NHExt.Runtime.GAIA.HttpHandler.DirectRequest; foreach (JToken token in reqExtend.Auth) { JProperty jp = token as JProperty; PropertyInfo pi = authType.GetProperty(jp.Name); if (token.Type != JTokenType.Null && pi != null) { //调用序列化函数,序列化json对象 var desObj = NHExt.Runtime.Serialize.JsonSerialize.DeSerialize(jp.Value, pi.PropertyType); pi.SetValue(authCtx, desObj, null); } } if (!NHExt.Runtime.Auth.AuthContext.IsAuthenticated(ctx)) { authCtx.ValidateAuth(); } }
protected override void ValidateDirectParameter(NHExt.Runtime.Web.HttpHandler.DirectRequest req) { base.ValidateDirectParameter(req); if (string.IsNullOrEmpty(req.SourcePage)) { throw new NHExt.Runtime.Exceptions.RuntimeException(req.Action + "服务调用失败,错误信息:来源页面不能为空"); } }
public ProxyContext(NHExt.Runtime.Auth.AuthContext ctx) : this() { if (ctx != null) { this.AuthContext = ctx.ToString(); } }
protected override void CreateDirectParameterExtend(NHExt.Runtime.Web.HttpHandler.DirectRequest req, NameValueCollection coll) { string strAuth = coll["Auth"]; JToken jToken = JToken.Parse(strAuth); foreach (JToken t in jToken.Children()) { req.Auth.Add(t); } }
public void EvictEntity(NHExt.Runtime.Model.BaseEntity be) { if (be.EntityState == Enums.EntityState.UnKnow || be.EntityState == Enums.EntityState.UnChanged) { return; } lock (this.Factory) { this.Factory.EvictEntity(be.EntityName, be.ID); NHExt.Runtime.Logger.LoggerHelper.Debug("清除实体缓存,实体" + be.EntityName + ",ID" + be.ID, NHExt.Runtime.Logger.LoggerInstance.RuntimeLogger); } }
public void EvictCollection(NHExt.Runtime.Model.BaseEntity be) { NHibernate.Persister.Collection.OneToManyPersister persister = this.getParentEntityMetaData(be) as NHibernate.Persister.Collection.OneToManyPersister; if (persister != null) { lock (this.Factory) { if (persister != null) { long entityKey = be.GetParentKey(persister.OwnerEntityName); this.Factory.EvictCollection(persister.Role, entityKey); NHExt.Runtime.Logger.LoggerHelper.Debug("清除聚合字段属性缓存,实体类型:" + persister.OwnerEntityName + ",实体KEY:" + entityKey, NHExt.Runtime.Logger.LoggerInstance.RuntimeLogger); } } } }
private NHibernate.Metadata.ICollectionMetadata getParentEntityMetaData(NHExt.Runtime.Model.BaseEntity be) { if (SecondCache.MetadataCollection == null) { lock (this.Factory) { // 初始化二级缓存对象 SecondCache.MetadataCollection = this.Factory.GetAllCollectionMetadata(); } } foreach (System.Collections.Generic.KeyValuePair<string, NHibernate.Metadata.ICollectionMetadata> kvp in SecondCache.MetadataCollection) { if (kvp.Value.ElementType.Name == be.EntityName) { return kvp.Value; } } return null; }
public override NHExt.Runtime.Model.WCFCallDTO DoWCF(NHExt.Runtime.Proxy.ProxyContext ctx) { string xml = string.Empty; NHExt.Runtime.Model.WCFCallDTO callDTO = new NHExt.Runtime.Model.WCFCallDTO(); try { this._callerType = NHExt.Runtime.Session.CallerTypeEnum.WCF; var obj = this.TypeConvert(this.DoCommon(ctx)); if (obj != null) { xml = NHExt.Runtime.Serialize.XmlSerialize.Serialize(obj); }else{ xml = string.Empty; } callDTO.Success = true; } catch(Exception ex){ xml = ex.Message; } callDTO.Result = xml; return callDTO; }
protected override void InitParameter(NHExt.Runtime.Proxy.ProxyContext ctx) { base.InitParameter(ctx); if(ctx != null){ if(this.CallerType == NHExt.Runtime.Session.CallerTypeEnum.WCF){ this._AttrubuteList = NHExt.Runtime.Serialize.XmlSerialize.DeSerialize<List<string >>(ctx.ParamList[0].ToString()); ctx.ParamList[0] = this._AttrubuteList; } else{ if(ctx.ParamList.Count > 0){ this._AttrubuteList = (List<string >)ctx.ParamList[0]; }else{ ctx.ParamList.Add(this._AttrubuteList); } } if(this.CallerType == NHExt.Runtime.Session.CallerTypeEnum.WCF){ this._SearchTxt = NHExt.Runtime.Serialize.XmlSerialize.DeSerialize<string >(ctx.ParamList[1].ToString()); ctx.ParamList[1] = this._SearchTxt; } else{ if(ctx.ParamList.Count > 1){ this._SearchTxt = (string )ctx.ParamList[1]; }else{ ctx.ParamList.Add(this._SearchTxt); } } } }
protected override void InitParameter(NHExt.Runtime.Proxy.ProxyContext ctx) { base.InitParameter(ctx); if(ctx != null){ if(this.CallerType == NHExt.Runtime.Session.CallerTypeEnum.WCF){ this._Code = NHExt.Runtime.Serialize.XmlSerialize.DeSerialize<string >(ctx.ParamList[0].ToString()); ctx.ParamList[0] = this._Code; } else{ if(ctx.ParamList.Count > 0){ this._Code = (string )ctx.ParamList[0]; }else{ ctx.ParamList.Add(this._Code); } } if(this.CallerType == NHExt.Runtime.Session.CallerTypeEnum.WCF){ this._Password = NHExt.Runtime.Serialize.XmlSerialize.DeSerialize<string >(ctx.ParamList[1].ToString()); ctx.ParamList[1] = this._Password; } else{ if(ctx.ParamList.Count > 1){ this._Password = (string )ctx.ParamList[1]; }else{ ctx.ParamList.Add(this._Password); } } } }
protected override void InitParameter(NHExt.Runtime.Proxy.ProxyContext ctx) { base.InitParameter(ctx); if(ctx != null){ if(this.CallerType == NHExt.Runtime.Session.CallerTypeEnum.WCF){ this._pageSize = NHExt.Runtime.Serialize.XmlSerialize.DeSerialize<int >(ctx.ParamList[0].ToString()); ctx.ParamList[0] = this._pageSize; } else{ if(ctx.ParamList.Count > 0){ this._pageSize = (int )ctx.ParamList[0]; }else{ ctx.ParamList.Add(this._pageSize); } } if(this.CallerType == NHExt.Runtime.Session.CallerTypeEnum.WCF){ this._pageIndex = NHExt.Runtime.Serialize.XmlSerialize.DeSerialize<int >(ctx.ParamList[1].ToString()); ctx.ParamList[1] = this._pageIndex; } else{ if(ctx.ParamList.Count > 1){ this._pageIndex = (int )ctx.ParamList[1]; }else{ ctx.ParamList.Add(this._pageIndex); } } } }
protected override void InitParameter(NHExt.Runtime.Proxy.ProxyContext ctx) { base.InitParameter(ctx); if(ctx != null){ if(this.CallerType == NHExt.Runtime.Session.CallerTypeEnum.WCF){ this._FileName = NHExt.Runtime.Serialize.XmlSerialize.DeSerialize<string >(ctx.ParamList[0].ToString()); ctx.ParamList[0] = this._FileName; } else{ if(ctx.ParamList.Count > 0){ this._FileName = (string )ctx.ParamList[0]; }else{ ctx.ParamList.Add(this._FileName); } } if(this.CallerType == NHExt.Runtime.Session.CallerTypeEnum.WCF){ this._HandleDate = NHExt.Runtime.Serialize.XmlSerialize.DeSerialize<DateTime >(ctx.ParamList[1].ToString()); ctx.ParamList[1] = this._HandleDate; } else{ if(ctx.ParamList.Count > 1){ this._HandleDate = (DateTime )ctx.ParamList[1]; }else{ ctx.ParamList.Add(this._HandleDate); } } if(this.CallerType == NHExt.Runtime.Session.CallerTypeEnum.WCF){ this._StartDate = NHExt.Runtime.Serialize.XmlSerialize.DeSerialize<DateTime >(ctx.ParamList[2].ToString()); ctx.ParamList[2] = this._StartDate; } else{ if(ctx.ParamList.Count > 2){ this._StartDate = (DateTime )ctx.ParamList[2]; }else{ ctx.ParamList.Add(this._StartDate); } } if(this.CallerType == NHExt.Runtime.Session.CallerTypeEnum.WCF){ this._EndDate = NHExt.Runtime.Serialize.XmlSerialize.DeSerialize<DateTime >(ctx.ParamList[3].ToString()); ctx.ParamList[3] = this._EndDate; } else{ if(ctx.ParamList.Count > 3){ this._EndDate = (DateTime )ctx.ParamList[3]; }else{ ctx.ParamList.Add(this._EndDate); } } if(this.CallerType == NHExt.Runtime.Session.CallerTypeEnum.WCF){ this._ExportType = NHExt.Runtime.Serialize.XmlSerialize.DeSerialize<int >(ctx.ParamList[4].ToString()); ctx.ParamList[4] = this._ExportType; } else{ if(ctx.ParamList.Count > 4){ this._ExportType = (int )ctx.ParamList[4]; }else{ ctx.ParamList.Add(this._ExportType); } } } }
protected override void InitParameter(NHExt.Runtime.Proxy.ProxyContext ctx) { base.InitParameter(ctx); if(ctx != null){ if(this.CallerType == NHExt.Runtime.Session.CallerTypeEnum.WCF){ this._Year = NHExt.Runtime.Serialize.XmlSerialize.DeSerialize<int >(ctx.ParamList[0].ToString()); ctx.ParamList[0] = this._Year; } else{ if(ctx.ParamList.Count > 0){ this._Year = (int )ctx.ParamList[0]; }else{ ctx.ParamList.Add(this._Year); } } if(this.CallerType == NHExt.Runtime.Session.CallerTypeEnum.WCF){ this._Month = NHExt.Runtime.Serialize.XmlSerialize.DeSerialize<int >(ctx.ParamList[1].ToString()); ctx.ParamList[1] = this._Month; } else{ if(ctx.ParamList.Count > 1){ this._Month = (int )ctx.ParamList[1]; }else{ ctx.ParamList.Add(this._Month); } } if(this.CallerType == NHExt.Runtime.Session.CallerTypeEnum.WCF){ this._IsAppoint = NHExt.Runtime.Serialize.XmlSerialize.DeSerialize<bool >(ctx.ParamList[2].ToString()); ctx.ParamList[2] = this._IsAppoint; } else{ if(ctx.ParamList.Count > 2){ this._IsAppoint = (bool )ctx.ParamList[2]; }else{ ctx.ParamList.Add(this._IsAppoint); } } } }
protected override void InitParameter(NHExt.Runtime.Proxy.ProxyContext ctx) { base.InitParameter(ctx); if(ctx != null){ if(this.CallerType == NHExt.Runtime.Session.CallerTypeEnum.WCF){ this._ID = NHExt.Runtime.Serialize.XmlSerialize.DeSerialize<long >(ctx.ParamList[0].ToString()); ctx.ParamList[0] = this._ID; } else{ if(ctx.ParamList.Count > 0){ this._ID = (long )ctx.ParamList[0]; }else{ ctx.ParamList.Add(this._ID); } } if(this.CallerType == NHExt.Runtime.Session.CallerTypeEnum.WCF){ this._Fee = NHExt.Runtime.Serialize.XmlSerialize.DeSerialize<decimal >(ctx.ParamList[1].ToString()); ctx.ParamList[1] = this._Fee; } else{ if(ctx.ParamList.Count > 1){ this._Fee = (decimal )ctx.ParamList[1]; }else{ ctx.ParamList.Add(this._Fee); } } if(this.CallerType == NHExt.Runtime.Session.CallerTypeEnum.WCF){ this._Memo = NHExt.Runtime.Serialize.XmlSerialize.DeSerialize<string >(ctx.ParamList[2].ToString()); ctx.ParamList[2] = this._Memo; } else{ if(ctx.ParamList.Count > 2){ this._Memo = (string )ctx.ParamList[2]; }else{ ctx.ParamList.Add(this._Memo); } } } }
protected override void CreateAgentParameterExtend(Model.IBizAgent agent, NHExt.Runtime.Web.HttpHandler.DirectRequest dr) { base.CreateAgentParameterExtend(agent, dr); agent.SourcePage = dr.SourcePage; }
public override object Do(NHExt.Runtime.Proxy.ProxyContext ctx) { this._callerType = NHExt.Runtime.Session.CallerTypeEnum.Reflect; var obj = this.TypeConvert(this.DoCommon(ctx)); return obj; }
protected virtual void BeforeInvokeProxy(NHExt.Runtime.Proxy.AgentInvoker invoker, DirectRequest dr, HttpContext ctx) { }
protected override void InitParameter(NHExt.Runtime.Proxy.ProxyContext ctx) { base.InitParameter(ctx); if(ctx != null){ if(this.CallerType == NHExt.Runtime.Session.CallerTypeEnum.WCF){ this._ID = NHExt.Runtime.Serialize.XmlSerialize.DeSerialize<long >(ctx.ParamList[0].ToString()); ctx.ParamList[0] = this._ID; } else{ if(ctx.ParamList.Count > 0){ this._ID = (long )ctx.ParamList[0]; }else{ ctx.ParamList.Add(this._ID); } } } }
protected override void InitParameter(NHExt.Runtime.Proxy.ProxyContext ctx) { base.InitParameter(ctx); if(ctx != null){ if(this.CallerType == NHExt.Runtime.Session.CallerTypeEnum.WCF){ this._ContractDTO = NHExt.Runtime.Serialize.XmlSerialize.DeSerialize<IWEHAVE.ERP.CenterBE.Deploy.ClientContractDTO >(ctx.ParamList[0].ToString()); ctx.ParamList[0] = this._ContractDTO; } else{ if(ctx.ParamList.Count > 0){ this._ContractDTO = (IWEHAVE.ERP.CenterBE.Deploy.ClientContractDTO )ctx.ParamList[0]; }else{ ctx.ParamList.Add(this._ContractDTO); } } } }
protected override void InitParameter(NHExt.Runtime.Proxy.ProxyContext ctx) { base.InitParameter(ctx); if(ctx != null){ if(this.CallerType == NHExt.Runtime.Session.CallerTypeEnum.WCF){ this._TeacherKey = NHExt.Runtime.Serialize.XmlSerialize.DeSerialize<long >(ctx.ParamList[0].ToString()); ctx.ParamList[0] = this._TeacherKey; } else{ if(ctx.ParamList.Count > 0){ this._TeacherKey = (long )ctx.ParamList[0]; }else{ ctx.ParamList.Add(this._TeacherKey); } } if(this.CallerType == NHExt.Runtime.Session.CallerTypeEnum.WCF){ this._Level = NHExt.Runtime.Serialize.XmlSerialize.DeSerialize<int >(ctx.ParamList[1].ToString()); ctx.ParamList[1] = this._Level; } else{ if(ctx.ParamList.Count > 1){ this._Level = (int )ctx.ParamList[1]; }else{ ctx.ParamList.Add(this._Level); } } if(this.CallerType == NHExt.Runtime.Session.CallerTypeEnum.WCF){ this._PageSize = NHExt.Runtime.Serialize.XmlSerialize.DeSerialize<int >(ctx.ParamList[2].ToString()); ctx.ParamList[2] = this._PageSize; } else{ if(ctx.ParamList.Count > 2){ this._PageSize = (int )ctx.ParamList[2]; }else{ ctx.ParamList.Add(this._PageSize); } } if(this.CallerType == NHExt.Runtime.Session.CallerTypeEnum.WCF){ this._PageIndex = NHExt.Runtime.Serialize.XmlSerialize.DeSerialize<int >(ctx.ParamList[3].ToString()); ctx.ParamList[3] = this._PageIndex; } else{ if(ctx.ParamList.Count > 3){ this._PageIndex = (int )ctx.ParamList[3]; }else{ ctx.ParamList.Add(this._PageIndex); } } if(this.CallerType == NHExt.Runtime.Session.CallerTypeEnum.WCF){ this._StartTime = NHExt.Runtime.Serialize.XmlSerialize.DeSerialize<DateTime >(ctx.ParamList[4].ToString()); ctx.ParamList[4] = this._StartTime; } else{ if(ctx.ParamList.Count > 4){ this._StartTime = (DateTime )ctx.ParamList[4]; }else{ ctx.ParamList.Add(this._StartTime); } } if(this.CallerType == NHExt.Runtime.Session.CallerTypeEnum.WCF){ this._EndTime = NHExt.Runtime.Serialize.XmlSerialize.DeSerialize<DateTime >(ctx.ParamList[5].ToString()); ctx.ParamList[5] = this._EndTime; } else{ if(ctx.ParamList.Count > 5){ this._EndTime = (DateTime )ctx.ParamList[5]; }else{ ctx.ParamList.Add(this._EndTime); } } if(this.CallerType == NHExt.Runtime.Session.CallerTypeEnum.WCF){ this._OrderField = NHExt.Runtime.Serialize.XmlSerialize.DeSerialize<string >(ctx.ParamList[6].ToString()); ctx.ParamList[6] = this._OrderField; } else{ if(ctx.ParamList.Count > 6){ this._OrderField = (string )ctx.ParamList[6]; }else{ ctx.ParamList.Add(this._OrderField); } } if(this.CallerType == NHExt.Runtime.Session.CallerTypeEnum.WCF){ this._DeviceKey = NHExt.Runtime.Serialize.XmlSerialize.DeSerialize<long >(ctx.ParamList[7].ToString()); ctx.ParamList[7] = this._DeviceKey; } else{ if(ctx.ParamList.Count > 7){ this._DeviceKey = (long )ctx.ParamList[7]; }else{ ctx.ParamList.Add(this._DeviceKey); } } } }
protected virtual void AfterInvokeProxy(NHExt.Runtime.Proxy.AgentInvoker invoker, object obj, HttpContext ctx) { }
protected override void InitParameter(NHExt.Runtime.Proxy.ProxyContext ctx) { base.InitParameter(ctx); if(ctx != null){ if(this.CallerType == NHExt.Runtime.Session.CallerTypeEnum.WCF){ this._Date = NHExt.Runtime.Serialize.XmlSerialize.DeSerialize<DateTime >(ctx.ParamList[0].ToString()); ctx.ParamList[0] = this._Date; } else{ if(ctx.ParamList.Count > 0){ this._Date = (DateTime )ctx.ParamList[0]; }else{ ctx.ParamList.Add(this._Date); } } if(this.CallerType == NHExt.Runtime.Session.CallerTypeEnum.WCF){ this._DeviceKey = NHExt.Runtime.Serialize.XmlSerialize.DeSerialize<long >(ctx.ParamList[1].ToString()); ctx.ParamList[1] = this._DeviceKey; } else{ if(ctx.ParamList.Count > 1){ this._DeviceKey = (long )ctx.ParamList[1]; }else{ ctx.ParamList.Add(this._DeviceKey); } } } }
protected override void InitParameter(NHExt.Runtime.Proxy.ProxyContext ctx) { base.InitParameter(ctx); if(ctx != null){ if(this.CallerType == NHExt.Runtime.Session.CallerTypeEnum.WCF){ this._IsAppoint = NHExt.Runtime.Serialize.XmlSerialize.DeSerialize<bool >(ctx.ParamList[0].ToString()); ctx.ParamList[0] = this._IsAppoint; } else{ if(ctx.ParamList.Count > 0){ this._IsAppoint = (bool )ctx.ParamList[0]; }else{ ctx.ParamList.Add(this._IsAppoint); } } if(this.CallerType == NHExt.Runtime.Session.CallerTypeEnum.WCF){ this._PageIndex = NHExt.Runtime.Serialize.XmlSerialize.DeSerialize<int >(ctx.ParamList[1].ToString()); ctx.ParamList[1] = this._PageIndex; } else{ if(ctx.ParamList.Count > 1){ this._PageIndex = (int )ctx.ParamList[1]; }else{ ctx.ParamList.Add(this._PageIndex); } } if(this.CallerType == NHExt.Runtime.Session.CallerTypeEnum.WCF){ this._PageSize = NHExt.Runtime.Serialize.XmlSerialize.DeSerialize<int >(ctx.ParamList[2].ToString()); ctx.ParamList[2] = this._PageSize; } else{ if(ctx.ParamList.Count > 2){ this._PageSize = (int )ctx.ParamList[2]; }else{ ctx.ParamList.Add(this._PageSize); } } if(this.CallerType == NHExt.Runtime.Session.CallerTypeEnum.WCF){ this._UserKey = NHExt.Runtime.Serialize.XmlSerialize.DeSerialize<long >(ctx.ParamList[3].ToString()); ctx.ParamList[3] = this._UserKey; } else{ if(ctx.ParamList.Count > 3){ this._UserKey = (long )ctx.ParamList[3]; }else{ ctx.ParamList.Add(this._UserKey); } } } }
protected override void InitParameter(NHExt.Runtime.Proxy.ProxyContext ctx) { base.InitParameter(ctx); if(ctx != null){ } }
private bool DoCommon(NHExt.Runtime.Proxy.ProxyContext ctx) { Exception errEx = null; try{ using (NHExt.Runtime.Session.Transaction trans = NHExt.Runtime.Session.Transaction.New(NHExt.Runtime.Enums.TransactionSupport.Required, ctx.UseReadDB)) { List<NHExt.Runtime.AOP.IProxyAspect> aspectList = new List<NHExt.Runtime.AOP.IProxyAspect>(); try { this.InitParameter(ctx); ctx.ProxyStack.Add(new NHExt.Runtime.Auth.ProxyProperty() { ProxyGuid = this.Guid, ProxyName = this.ProxyName }); aspectList = NHExt.Runtime.AOP.AspectManager.BuildProxyAspect(this.ProxyName); foreach (NHExt.Runtime.AOP.IProxyAspect insector in aspectList) { insector.BeforeDo(this,ctx); } var obj = this.DoExtend(); NHExt.Runtime.Session.Session.Current.Commit(); foreach (NHExt.Runtime.AOP.IProxyAspect insector in aspectList) { insector.AfterDo(this,obj); } trans.Commit(); return obj; } catch (Exception ex) { errEx = ex; trans.RollBack(); NHExt.Runtime.Logger.LoggerHelper.Error(ex, NHExt.Runtime.Logger.LoggerInstance.RuntimeLogger); throw ex; } finally{ ctx.ProxyStack.RemoveAt(ctx.ProxyStack.Count -1); } } } catch(Exception err){ if(errEx != null){ throw errEx; }else{ throw err; } } }
protected override void InitParameter(NHExt.Runtime.Proxy.ProxyContext ctx) { base.InitParameter(ctx); if(ctx != null){ if(this.CallerType == NHExt.Runtime.Session.CallerTypeEnum.WCF){ this._OrgDTO = NHExt.Runtime.Serialize.XmlSerialize.DeSerialize<THU.LabSystemBE.Deploy.OrgDTO >(ctx.ParamList[0].ToString()); ctx.ParamList[0] = this._OrgDTO; } else{ if(ctx.ParamList.Count > 0){ this._OrgDTO = (THU.LabSystemBE.Deploy.OrgDTO )ctx.ParamList[0]; }else{ ctx.ParamList.Add(this._OrgDTO); } } } }
protected override void CreateDirectParameterExtend(NHExt.Runtime.Web.HttpHandler.DirectRequest req, NameValueCollection nvc) { base.CreateDirectParameterExtend(req, nvc); req.SourcePage = nvc["PageGuid"]; }
protected override void InitParameter(NHExt.Runtime.Proxy.ProxyContext ctx) { base.InitParameter(ctx); if(ctx != null){ if(this.CallerType == NHExt.Runtime.Session.CallerTypeEnum.WCF){ this._RefereeDTO = NHExt.Runtime.Serialize.XmlSerialize.DeSerialize<IWEHAVE.ERP.CenterBE.Deploy.RefereeDTO >(ctx.ParamList[0].ToString()); ctx.ParamList[0] = this._RefereeDTO; } else{ if(ctx.ParamList.Count > 0){ this._RefereeDTO = (IWEHAVE.ERP.CenterBE.Deploy.RefereeDTO )ctx.ParamList[0]; }else{ ctx.ParamList.Add(this._RefereeDTO); } } if(this.CallerType == NHExt.Runtime.Session.CallerTypeEnum.WCF){ this._RefereeDTOList = NHExt.Runtime.Serialize.XmlSerialize.DeSerialize<List<IWEHAVE.ERP.CenterBE.Deploy.RefereeDTO >>(ctx.ParamList[1].ToString()); ctx.ParamList[1] = this._RefereeDTOList; } else{ if(ctx.ParamList.Count > 1){ this._RefereeDTOList = (List<IWEHAVE.ERP.CenterBE.Deploy.RefereeDTO >)ctx.ParamList[1]; }else{ ctx.ParamList.Add(this._RefereeDTOList); } } if(this.CallerType == NHExt.Runtime.Session.CallerTypeEnum.WCF){ this._StudentKey = NHExt.Runtime.Serialize.XmlSerialize.DeSerialize<long >(ctx.ParamList[2].ToString()); ctx.ParamList[2] = this._StudentKey; } else{ if(ctx.ParamList.Count > 2){ this._StudentKey = (long )ctx.ParamList[2]; }else{ ctx.ParamList.Add(this._StudentKey); } } } }