/// <summary> /// 获取本逻辑类单例 /// </summary> /// <returns></returns> public static BranchBll GetInstence() { if (_BranchBll == null) { _BranchBll = new BranchBll(); } return _BranchBll; }
/// <summary> /// 获取本逻辑类单例 /// </summary> /// <returns></returns> public static BranchBll GetInstence() { if (_BranchBll == null) { _BranchBll = new BranchBll(); } return(_BranchBll); }
/// <summary> /// 根据菜单Url地址,获取菜单相应内容 /// </summary> /// <param name="BranchUrl">页面地址</param> /// <returns>返回菜单实体</returns> public Branch GetBranch(string BranchUrl) { try { //从全局缓存中读取菜单内容 //获取菜单实体 return((Branch)(BranchBll.GetInstence().GetHashtable()[BranchUrl])); } catch (Exception) { return(new Branch()); } }