Esempio n. 1
0
 /// <summary>
 /// 向服务器写入日志
 /// </summary>
 /// <param name="type">1:登录日志 2:错误日志 3:信息日志 4:用户反馈</param>
 /// <param name="content"></param>
 private void WriteLog()
 {
     IWEHAVE.ERP.MotivationBE.Deploy.LogDTO logDTO = new IWEHAVE.ERP.MotivationBE.Deploy.LogDTO();
     logDTO.AuthorName = this._authorName;
     logDTO.Content = this._content;
     logDTO.LogType = this._type;
     logDTO.SubmitDate = DateTime.Now;
     string action = "IWEHAVE.ERP.MotivationBP.Agent.InsertLogBPProxy";
     string args = "{'LogDTO':" + NHExt.Runtime.Serialize.JsonSerialize.Serialize(logDTO) + "}";
     object result = BaseHttpRequest.DoRequest<IWEHAVE.ERP.MotivationBE.Deploy.LogDTO>(action, args);
 }
Esempio n. 2
0
 public new virtual IWEHAVE.ERP.MotivationBE.Deploy.LogDTO ToDTO()
 {
     IWEHAVE.ERP.MotivationBE.Deploy.LogDTO dto = new IWEHAVE.ERP.MotivationBE.Deploy.LogDTO();
     this.ToDTO(dto);
     return dto;
 }
Esempio n. 3
0
 public override void SetValue(object obj, string memberName)
 {
     switch(memberName){
     case "LogDTO" :
     this._LogDTO = this.TransferValue<IWEHAVE.ERP.MotivationBE.Deploy.LogDTO>(obj);
     break;
     default:
     base.SetValue(obj,memberName);
     break;
     }
 }
Esempio n. 4
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._LogDTO = NHExt.Runtime.Serialize.XmlSerialize.DeSerialize<IWEHAVE.ERP.MotivationBE.Deploy.LogDTO >(ctx.ParamList[0].ToString());
     ctx.ParamList[0] = this._LogDTO;
     }
     else{
     if(ctx.ParamList.Count > 0){
     this._LogDTO = (IWEHAVE.ERP.MotivationBE.Deploy.LogDTO )ctx.ParamList[0];
     }else{
     ctx.ParamList.Add(this._LogDTO);
     }
     }
     }
 }