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