Example #1
0
        /// <summary>
        /// 保存监控日志集合
        /// </summary>
        /// <param name="Customer_Id">客户标识</param>
        /// <param name="Unit_Id">组织标识</param>
        /// <param name="User_Id">用户标识</param>
        /// <param name="MonitorLogList">监控日志集合</param>
        /// <returns></returns>
        public bool SetMonitorLogInfo(string Customer_Id, string Unit_Id, string User_Id, MonitorLogInfo monitorLogInfo)
        {
            string strError = string.Empty;

            try
            {
                LoggingSessionInfo loggingSessionInfo = GetLoggingSessionInfo(Customer_Id, User_Id, Unit_Id);
                MonitorLogService  monitorLogService  = new MonitorLogService();

                monitorLogInfo.if_flag     = 0;
                monitorLogInfo.customer_id = Customer_Id;

                IList <MonitorLogInfo> MonitorLogList = new List <MonitorLogInfo>();
                MonitorLogList.Add(monitorLogInfo);
                bool bReturn = monitorLogService.SetMonitorLogListInfo(loggingSessionInfo, MonitorLogList, out strError);
                if (bReturn)
                {
                    return(bReturn);
                }
                else
                {
                    throw new Exception(string.Format(strError, strError));
                }
            }
            catch (Exception ex)
            {
                strError = ex.ToString();
                throw (ex);
            }
        }