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); } } } }
public override void SetValue(object obj, string memberName) { switch(memberName){ case "OrgDTO" : this._OrgDTO = this.TransferValue<THU.LabSystemBE.Deploy.OrgDTO>(obj); break; default: base.SetValue(obj,memberName); break; } }
public new virtual THU.LabSystemBE.Deploy.OrgDTO ToDTO() { THU.LabSystemBE.Deploy.OrgDTO dto = new THU.LabSystemBE.Deploy.OrgDTO(); this.ToDTO(dto); return dto; }