/// <summary> /// 插入反馈意见 /// </summary> /// <param name="cardNo">学号</param> /// <param name="remark">反馈意见</param> /// <param name="loginId"></param> /// <returns></returns> public static Model.Enum.HandleResult AddFeedback(Model.AMS_FeedbackModel model) { IWCFService.IAdvertManageService advertService = WcfAccessProxy.AMS_ServiceProxy.CreateChannelAdvertManageService(); bool error = false; try { return(advertService.AddFeedback(model)); } catch (Exception ex) { error = true; SeatManage.SeatManageComm.WriteLog.Write(string.Format("添加反馈意见遇到异常,异常模块:{0};信息:{1}", ex.Source, ex.Message)); throw ex; } finally { ICommunicationObject ICommObjectService = advertService as ICommunicationObject; try { if (ICommObjectService.State == CommunicationState.Faulted) { ICommObjectService.Abort(); } else { ICommObjectService.Close(); } } catch { ICommObjectService.Abort(); } } }