예제 #1
0
    protected void Bind_ddlPageLayout()
    {
        SYS_PageLayoutBSO _pageLayoutBSO = new SYS_PageLayoutBSO();
        DataTable         table          = _pageLayoutBSO.GetSYS_PageLayoutAll(Language.language);
        commonBSO         commonBSO      = new commonBSO();

        ddlPageLayout.Items.Clear();
        commonBSO.FillToDropDown(ddlPageLayout, table, "~ Chọn trang ~", "0", "PageName", "Id", "");

        ddlPageLayout2.Items.Clear();
        commonBSO.FillToDropDown(ddlPageLayout2, table, "~ Chọn trang ~", "0", "PageName", "Id", "");
    }
예제 #2
0
    private void ViewCateGroup(int group)
    {
        ddlCateNews.Items.Clear();
        CateNewsBSO catenewsBSO = new CateNewsBSO();
        DataTable   table       = catenewsBSO.GetCateGroupRolesUrl(Language.language, group, Session["Admin_UserName"].ToString());
        commonBSO   commonBSO   = new commonBSO();

        commonBSO.FillToDropDown(ddlCateNews, table, "~~ Danh mục gốc ~~", "0", "CateNewsName", "CateNewsID", "");
    }
예제 #3
0
    //#region Bind_ddlPageLayout
    //protected void Bind_ddlPageLayout()
    //{
    //    SYS_PageLayoutBSO _pageLayoutBSO = new SYS_PageLayoutBSO();
    //    DataTable table = _pageLayoutBSO.GetSYS_PageLayoutAll(Language.language);
    //    commonBSO commonBSO = new commonBSO();
    //    ddlPageLayout.Items.Clear();
    //    commonBSO.FillToDropDown(ddlPageLayout, table, "~ Chọn trang ~", "0", "PageName", "Id", "");
    //}
    //#endregion

    #region Bind_ddlWidgetType
    protected void Bind_ddlWidgetType()
    {
        SYS_WidgetTypeBSO _widgetTypeBSO = new SYS_WidgetTypeBSO();
        DataTable         table          = _widgetTypeBSO.GetSYS_WidgetTypeAll();
        commonBSO         commonBSO      = new commonBSO();

        ddlWidgetType.Items.Clear();
        commonBSO.FillToDropDown(ddlWidgetType, table, "~ Tất cả ~", "0", "WidgetTypeName", "Id", "");
    }
예제 #4
0
    protected void BindDropDownList()
    {
        SYS_TemplatePageBSO _tempateBSO = new SYS_TemplatePageBSO();
        DataTable           table       = _tempateBSO.GetSYS_TemplatePageAll(Language.language);
        commonBSO           commonBSO   = new commonBSO();

        ddlTemplate.Items.Clear();
        commonBSO.FillToDropDown(ddlTemplate, table, "~ Chọn Template ~", "0", "TemplateName", "Id", "");
    }
예제 #5
0
    private void BindCateNews(int group)
    {
        ddlCateNewsSearch.Items.Clear();
        CateNewsBSO catenewsBSO = new CateNewsBSO();
        DataTable   table       = catenewsBSO.GetCateGroupRoles(Language.language, group, Session["Admin_Username"].ToString());
        commonBSO   commonBSO   = new commonBSO();

        commonBSO.FillToDropDown(ddlCateNewsSearch, table, "~~ Trong tất cả ~~", "0", "CateNewsName", "CateNewsID", "");
    }
예제 #6
0
    protected void BindDropDownList()
    {
        ModulesBSO modulesBSO = new ModulesBSO();
        DataTable  table      = modulesBSO.MixModules();
        commonBSO  commonBSO  = new commonBSO();

        ddlModules.Items.Clear();
        commonBSO.FillToDropDown(ddlModules, table, "~ Cấp độ modules ~", "0", "Modules_Name", "Modules_ID", "");
    }
예제 #7
0
    protected void BindDropDownList()
    {
        MenuLinksBSO menuLinksBSO = new MenuLinksBSO();
        //  DataTable table = menuLinksBSO.GetAllMenuLinks();
        DataTable table     = menuLinksBSO.getCateClient(0, Language.language);
        commonBSO commonBSO = new commonBSO();

        ddlMenuLinks.Items.Clear();
        commonBSO.FillToDropDown(ddlMenuLinks, table, "~ Cấp độ menuLinks ~", "0", "MenuLinksName", "MenuLinksID", "");
    }
예제 #8
0
    public void ViewRoles()
    {
        ddlRoles.Items.Clear();
        RolesBSO  rolesBSO = new RolesBSO();
        DataTable table    = rolesBSO.GetAllRoles();
        DataView  dataView = new DataView(table);

        dataView.RowFilter = "Roles_Name NOT IN ('adminsys32','Administrators')";
        DataTable dataTable = dataView.ToTable();

        commonBSO commonBSO = new commonBSO();

        commonBSO.FillToDropDown(ddlRoles, dataTable, "~~ Trong tất cả các nhóm ~~", "0", "Roles_Name", "Roles_ID", "");
    }
예제 #9
0
    private void BindControl()
    {
        ddlCateNewsSearch.Items.Clear();
        CateNewsGroupBSO categroupBSO = new CateNewsGroupBSO();
        DataTable        table        = categroupBSO.GetCateNewsGroupNewAll(Language.language, Session["Admin_Username"].ToString());
        commonBSO        commonBSO    = new commonBSO();

        commonBSO.FillToDropDown(ddlGroupCate, table, "~~ Trong tất cả ~~", "0", "CateNewsGroupName", "GroupCate", "");

        ddlType.Items.Clear();
        ddlType.Items.Add(new ListItem("--All--", "0"));
        ddlType.Items.Add(new ListItem("Tiêu đề", "1"));
        ddlType.Items.Add(new ListItem("Tin vắn", "2"));
        ddlType.SelectedValue = "1";
    }
    //#region Bind_ddlWidgetType
    //protected void Bind_ddlWidgetType()
    //{
    //    SYS_WidgetTypeBSO _widgetTypeBSO = new SYS_WidgetTypeBSO();
    //    DataTable table = _widgetTypeBSO.GetSYS_WidgetTypeAll();
    //    commonBSO commonBSO = new commonBSO();
    //    ddlWidgetType.Items.Clear();
    //    commonBSO.FillToDropDown(ddlWidgetType, table, "~ Tất cả ~", "0", "WidgetTypeName", "Id", "");
    //}
    //#endregion

    #region Bind_ddlWidget
    protected void Bind_ddlWidget(int _widgetType)
    {
        SYS_WidgetBSO _widgetBSO = new SYS_WidgetBSO();
        DataTable     table      = new DataTable();

        if (_widgetType == 0)
        {
            table = _widgetBSO.GetSYS_WidgetAllFull();
        }
        else
        {
            table = _widgetBSO.GetSYS_WidgetByType(_widgetType);
        }

        commonBSO commonBSO = new commonBSO();

        ddlWidget.Items.Clear();
        commonBSO.FillToDropDown(ddlWidget, table, "", "", "WidgetName", "Id", "");
    }
    private void BindControl(int group)
    {
        ddlCateNewsSearch.Items.Clear();
        CateNewsGroupBSO catenewsGroupBSO = new CateNewsGroupBSO();
        DataTable        table            = catenewsGroupBSO.GetCateNewsGroupNewAll(Language.language, Session["Admin_UserName"].ToString());
        commonBSO        commonBSO        = new commonBSO();

        commonBSO.FillToDropDown(ddlCateNewsGroup, table, "~~ Trong tất cả ~~", "-1", "CateNewsGroupName", "GroupCate", "");

        ddlType.Items.Clear();
        ddlType.Items.Add(new ListItem("--All--", "0"));
        ddlType.Items.Add(new ListItem("Tiêu đề", "1"));
        ddlType.Items.Add(new ListItem("Mô tả tin", "2"));
        ddlType.SelectedValue = "1";

        //ddlTypeApproved.Items.Clear();
        //ddlTypeApproved.Items.Add(new ListItem("-- Tất cả --", "0"));
        //ddlTypeApproved.Items.Add(new ListItem("Bài chờ duyệt", "1"));
        //ddlTypeApproved.Items.Add(new ListItem("Bài đã xuất bản", "2"));
        //ddlTypeApproved.Items.Add(new ListItem("Bài đã khóa", "3"));
        //ddlTypeApproved.SelectedValue = "0";
    }