コード例 #1
0
ファイル: UnitHelper.cs プロジェクト: Nghinv00/ShopOnLine
        public static MvcHtmlString UnitLink(this HtmlHelper helper, int?UnitId, int?UserId)
        {
            qtUserService _user    = new qtUserService();
            string        UserName = _user.UserName(UserId);

            string html = "<a href='/QuanTri/UnitManager/Create/" + UnitId + "'>" + UserName + "</a>";

            return(new MvcHtmlString(html));
        }
コード例 #2
0
ファイル: UserHelper.cs プロジェクト: Nghinv00/ShopOnLine
        public static MvcHtmlString NhanVienXuLyChinh(this HtmlHelper helper, int? UserId)
        {
            qtUserService _user = new qtUserService();
            string UserName = _user.UserName(UserId);

            UserName = "******" + UserName + "</span>";

            return new MvcHtmlString(UserName);
        }
コード例 #3
0
ファイル: UserHelper.cs プロジェクト: Nghinv00/ShopOnLine
        public static MvcHtmlString NhanVienXuLyDanhMuChinh(this HtmlHelper helper, shCategory category)
        {
            qtUserService _user = new qtUserService();
            string UserName = string.Empty;

            if (!string.IsNullOrEmpty(category.ParentId) || !string.IsNullOrWhiteSpace(category.ParentId))
            {
                shCategoryService _category = new shCategoryService();
                shCategory parent = _category.FindByKey(category.ParentId);
                if (parent != null)
                {
                    UserName = "******" + _user.UserName(parent.UserId) + " » </span>";
                }
            }

            UserName += "<span data-toggle='tooltip' title='Theo dõi chính' data-original-title='Theo dõi chính' style='font-weight: 600; color: #72afd2;'>" + _user.UserName(category.UserId) + "</span>";

            return new MvcHtmlString(UserName);
        }
コード例 #4
0
ファイル: UserHelper.cs プロジェクト: Nghinv00/ShopOnLine
        public static MvcHtmlString UserName(this HtmlHelper helper, int? UserId)
        {
            qtUserService _user = new qtUserService();

            return new MvcHtmlString(_user.UserName(UserId));
        }