Exemple #1
0
        /// <summary>
        /// 常用刪除按鈕
        /// </summary>
        /// <returns></returns>
        public static BackSiteListButton CommonListTableDelButton()
        {
            var delButton = new BackSiteListButton();

            delButton.ActionName  = "del";
            delButton.Classes     = "btn-grey-o square tooltip-info btn-del";
            delButton.DataSelect  = true;
            delButton.Title       = "刪除";
            delButton.IconClasses = "cc cc-trash-o";
            return(delButton);
        }
Exemple #2
0
        /// <summary>
        /// 常用排序按鈕
        /// </summary>
        /// <returns></returns>
        public static BackSiteListButton CommonListTableSortButton()
        {
            var sortButton = new BackSiteListButton();

            sortButton.ActionName  = "sort";
            sortButton.Classes     = "btn-grey-o square tooltip-info";
            sortButton.DataSelect  = true;
            sortButton.Title       = "排序";
            sortButton.IconClasses = "cc cc-sort";
            return(sortButton);
        }
Exemple #3
0
        /// <summary>
        /// 常用複製按鈕
        /// </summary>
        /// <returns></returns>
        public static BackSiteListButton CommonListTableCopyButton()
        {
            var copyButton = new BackSiteListButton();

            copyButton.ActionName  = "copy";
            copyButton.Classes     = "btn-grey-o square tooltip-info";
            copyButton.DataSelect  = true;
            copyButton.Title       = "複製";
            copyButton.IconClasses = "cc cc-content-copy";
            return(copyButton);
        }
Exemple #4
0
        /// <summary>
        /// 常用搜尋按鈕
        /// </summary>
        /// <returns></returns>
        public static BackSiteListButton CommonListTableSearchButton()
        {
            var searchButton = new BackSiteListButton();

            searchButton.ActionName     = "";
            searchButton.Classes        = "btn-grey-o square tooltip-info tooltipstered";
            searchButton.Title          = "篩選";
            searchButton.IconClasses    = "cc cc-search";
            searchButton.ShowDataAction = false;
            searchButton.IdAttribute    = "openSearch";
            return(searchButton);
        }
Exemple #5
0
        /// <summary>
        /// 常用新增按鈕
        /// </summary>
        /// <param name="href"></param>
        /// <returns></returns>
        public static BackSiteListButton CommonListTableLinkButton(string href = "")
        {
            var addButton = new BackSiteListButton();

            addButton.ActionName     = "add";
            addButton.Classes        = "btn-grey-darken-4-o square tooltip-info openEdit-c cboxElement tooltipstered";
            addButton.Title          = "新增";
            addButton.Href           = href;
            addButton.IconClasses    = "cc cc-plus";
            addButton.ShowDataAction = false;
            return(addButton);
        }
Exemple #6
0
        public bool AddDropDownListButton(BackSiteListButton button)
        {
            try
            {
                DropDownList.Links.Add(button);

                return(true);
            }
            catch (Exception)
            {
                return(false);
            }
        }
Exemple #7
0
        /// <summary>
        ///常用下拉按鈕
        /// </summary>
        /// <param name="dropDownListId"></param>
        /// <param name="title"></param>
        /// <returns></returns>
        public static BackSiteListButton CommonDropDownListButton(string dropDownListId, string title)
        {
            var dropDownListButton = new BackSiteListButton();

            dropDownListButton.ActionName     = "";
            dropDownListButton.Classes        = "btn-grey-o square tooltip-info dropdown-btn tooltipstered";
            dropDownListButton.Title          = title;
            dropDownListButton.IconClasses    = "cc cc-playlist-play";
            dropDownListButton.ShowDataAction = false;

            dropDownListButton.DropDownList = new BackSiteListButtonDropDownList(dropDownListId);
            return(dropDownListButton);
        }