⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 exloginfofacade.cs

📁 异常处理包,通用 异常处理包,通用 异常处理包,通用
💻 CS
字号:
using System;

namespace ExManagement
{
	/// <summary>
	/// ExLogInfoFacade,为DefaultLogHandler提供访问数据库的操作方法
	/// </summary>
	public class ExLogInfoFacade
	{
		public ExLogInfoFacade()
		{
			//
			// TODO: 在此处添加构造函数逻辑
			//
		}

		/// <summary>
		/// 方法名称:GetLogInfoSequence
		/// 方法摘要:获取异常记录的序列号
		/// 作    者:夏应成
		/// </summary>
		/// <returns></returns>
		public static string GetLogInfoSequence()
		{
			string ReturnVal = "";
			ExLogInfoRule bl = new ExLogInfoRule();
			try
			{
				// 调用服务器方法
				ReturnVal = bl.GetLogInfoSequence();
			}
			catch(Exception ex)
			{
				throw(ex);
			}
			return ReturnVal;

		}
        
		/// <summary>
		/// 方法名称:InsertLogInfo
		/// 方法摘要:往异常记录表中插入记录
		/// 作    者:夏应成
		/// </summary>
		public static void InsertLogInfo(string serial_id,string strLayerName,string excType,string excMsg,string excPosition,string userID,params string [] strExtension)
		{
			
			ExLogInfoRule bl = new ExLogInfoRule();
			try
			{
				// 调用数据访问组件
				bl.InsertLogInfo(serial_id,strLayerName,excType,excMsg,excPosition,userID,strExtension);
			}
			catch(Exception ex)
			{
				throw(ex);
			}
		}
	}
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -