protected override void InitParameter(NHExt.Runtime.Proxy.ProxyContext ctx) { base.InitParameter(ctx); if(ctx != null){ if(this.CallerType == NHExt.Runtime.Session.CallerTypeEnum.WCF){ this._CounselorDTO = NHExt.Runtime.Serialize.XmlSerialize.DeSerialize<IWEHAVE.ERP.CenterBE.Deploy.CounselorDTO >(ctx.ParamList[0].ToString()); ctx.ParamList[0] = this._CounselorDTO; } else{ if(ctx.ParamList.Count > 0){ this._CounselorDTO = (IWEHAVE.ERP.CenterBE.Deploy.CounselorDTO )ctx.ParamList[0]; }else{ ctx.ParamList.Add(this._CounselorDTO); } } } }
public override void SetValue(object obj, string memberName) { switch(memberName){ case "CounselorDTO" : this._CounselorDTO = this.TransferValue<IWEHAVE.ERP.CenterBE.Deploy.CounselorDTO>(obj); break; default: base.SetValue(obj,memberName); break; } }
public new virtual IWEHAVE.ERP.CenterBE.Deploy.CounselorDTO ToDTO() { IWEHAVE.ERP.CenterBE.Deploy.CounselorDTO dto = new IWEHAVE.ERP.CenterBE.Deploy.CounselorDTO(); this.ToDTO(dto); return dto; }