天津投入产出系统后端
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

36 lines
859 B

using System;
using QMAPP.BLL;
using QMAPP.Common.Web.Util;
namespace QMAPP.Common.Web.Controllers
{
/// <summary>
/// 业务逻辑类工厂
/// 创建人:李炳海
/// 创建时间:2012.11.16
/// </summary>
public class BLLFactory
{
/// <summary>
/// 创建逻辑处理对象
/// </summary>
/// <typeparam name="T">逻辑处理对象类型</typeparam>
/// <returns>逻辑处理对象</returns>
public static T CreateBLL<T>() where T : new()
{
T bll = new T();
try
{
//设置登录信息
(bll as BaseBLL).LoginUser = AccountController.GetLoginInfo();
return bll;
}
catch (Exception ex)
{
throw ex;
}
}
}
}