Exemplo n.º 1
0
 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;
     }
 }
Exemplo n.º 2
0
 public new virtual THU.LabSystemBE.Deploy.DeviceDTO ToDTO()
 {
     THU.LabSystemBE.Deploy.DeviceDTO dto = new THU.LabSystemBE.Deploy.DeviceDTO();
     this.ToDTO(dto);
     return dto;
 }
Exemplo n.º 3
0
 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);
     }
     }
     }
 }