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