Example #1
0
 public new virtual IWEHAVE.ERP.CenterBE.Deploy.RefereeDTO ToDTO()
 {
     IWEHAVE.ERP.CenterBE.Deploy.RefereeDTO dto = new IWEHAVE.ERP.CenterBE.Deploy.RefereeDTO();
     this.ToDTO(dto);
     return dto;
 }
 public override void SetValue(object obj, string memberName)
 {
     switch(memberName){
     case "RefereeDTO" :
     this._RefereeDTO = this.TransferValue<IWEHAVE.ERP.CenterBE.Deploy.RefereeDTO>(obj);
     break;
     case "RefereeDTOList" :
     this._RefereeDTOList = this.TransferValue<List<IWEHAVE.ERP.CenterBE.Deploy.RefereeDTO> >(obj);
     break;
     case "StudentKey" :
     this._StudentKey = this.TransferValue<long>(obj);
     break;
     default:
     base.SetValue(obj,memberName);
     break;
     }
 }
Example #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._RefereeDTO = NHExt.Runtime.Serialize.XmlSerialize.DeSerialize<IWEHAVE.ERP.CenterBE.Deploy.RefereeDTO >(ctx.ParamList[0].ToString());
     ctx.ParamList[0] = this._RefereeDTO;
     }
     else{
     if(ctx.ParamList.Count > 0){
     this._RefereeDTO = (IWEHAVE.ERP.CenterBE.Deploy.RefereeDTO )ctx.ParamList[0];
     }else{
     ctx.ParamList.Add(this._RefereeDTO);
     }
     }
     if(this.CallerType == NHExt.Runtime.Session.CallerTypeEnum.WCF){
     this._RefereeDTOList = NHExt.Runtime.Serialize.XmlSerialize.DeSerialize<List<IWEHAVE.ERP.CenterBE.Deploy.RefereeDTO >>(ctx.ParamList[1].ToString());
     ctx.ParamList[1] = this._RefereeDTOList;
     }
     else{
     if(ctx.ParamList.Count > 1){
     this._RefereeDTOList = (List<IWEHAVE.ERP.CenterBE.Deploy.RefereeDTO >)ctx.ParamList[1];
      }else{
     ctx.ParamList.Add(this._RefereeDTOList);
     }
     }
     if(this.CallerType == NHExt.Runtime.Session.CallerTypeEnum.WCF){
     this._StudentKey = NHExt.Runtime.Serialize.XmlSerialize.DeSerialize<long >(ctx.ParamList[2].ToString());
     ctx.ParamList[2] = this._StudentKey;
     }
     else{
     if(ctx.ParamList.Count > 2){
     this._StudentKey = (long )ctx.ParamList[2];
     }else{
     ctx.ParamList.Add(this._StudentKey);
     }
     }
     }
 }