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