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