示例#1
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._EnumDTO = NHExt.Runtime.Serialize.XmlSerialize.DeSerialize<THU.LabSystemBE.Deploy.CommonEnumDTO >(ctx.ParamList[0].ToString());
     ctx.ParamList[0] = this._EnumDTO;
     }
     else{
     if(ctx.ParamList.Count > 0){
     this._EnumDTO = (THU.LabSystemBE.Deploy.CommonEnumDTO )ctx.ParamList[0];
     }else{
     ctx.ParamList.Add(this._EnumDTO);
     }
     }
     }
 }
示例#2
0
 public override void SetValue(object obj, string memberName)
 {
     switch(memberName){
     case "EnumDTO" :
     this._EnumDTO = this.TransferValue<THU.LabSystemBE.Deploy.CommonEnumDTO>(obj);
     break;
     default:
     base.SetValue(obj,memberName);
     break;
     }
 }
示例#3
0
 public new virtual THU.LabSystemBE.Deploy.CommonEnumDTO ToDTO()
 {
     THU.LabSystemBE.Deploy.CommonEnumDTO dto = new THU.LabSystemBE.Deploy.CommonEnumDTO();
     this.ToDTO(dto);
     return dto;
 }