public override void SetValue(object obj, string memberName)
 {
     switch(memberName){
     case "ContractTypeDTO" :
     this._ContractTypeDTO = this.TransferValue<IWEHAVE.ERP.CenterBE.Deploy.ContractTypeDTO>(obj);
     break;
     default:
     base.SetValue(obj,memberName);
     break;
     }
 }
Exemplo n.º 2
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._ContractTypeDTO = NHExt.Runtime.Serialize.XmlSerialize.DeSerialize<IWEHAVE.ERP.CenterBE.Deploy.ContractTypeDTO >(ctx.ParamList[0].ToString());
     ctx.ParamList[0] = this._ContractTypeDTO;
     }
     else{
     if(ctx.ParamList.Count > 0){
     this._ContractTypeDTO = (IWEHAVE.ERP.CenterBE.Deploy.ContractTypeDTO )ctx.ParamList[0];
     }else{
     ctx.ParamList.Add(this._ContractTypeDTO);
     }
     }
     }
 }