private void ViewChart24h()
 {
     Chart24hBSO chart24hBSO = new Chart24hBSO();
     DataTable table = chart24hBSO.GetChart24hAll();
     commonBSO commonBSO = new commonBSO();
     commonBSO.FillToGridView(grvChart24h, table);
 }
Beispiel #2
0
 private void ViewFaq()
 {
     FaqBSO faqBSO = new FaqBSO();
     DataTable table = faqBSO.GetFaqAll(Language.language);
     commonBSO commonBSO = new commonBSO();
     commonBSO.FillToGridView(grvFaq, table);
 }
 public void ViewEmail()
 {
     EmailBSO emailBSO = new EmailBSO();
     DataTable table = emailBSO.GetEmailAll();
     commonBSO commonBSO = new commonBSO();
     commonBSO.FillToGridView(grvEmail, table);
 }
        protected void initControl()
        {

            ConfigBSO configBSO = new ConfigBSO();
            int Ngon_Ngu = Convert.ToInt32(ViewState["CauHinh_Viet"]);
            if (Ngon_Ngu == 1 || Ngon_Ngu == 0)
            {
                VideoBSO videoBSO = new VideoBSO();
                DataTable table = videoBSO.GetVideoAll(Language.language);
                commonBSO commonBSO = new commonBSO();
                commonBSO.FillToGridView(grvVideo, table);

            }
            else
            {
                VideoBSO videoBSO = new VideoBSO();
                DataTable table = videoBSO.GetVideoAll(Language.language_Eng);
                commonBSO commonBSO = new commonBSO();
                commonBSO.FillToGridView(grvVideo, table);
            }




        }
        public void ViewModulesFrontPanel(string Panel)
        {
            ModulesFrontPanelBSO _modulesFrontPanelBSO = new ModulesFrontPanelBSO();
            DataTable table = new DataTable();
            bool check_lag = Check_Viet.Checked;
            if (Panel.Equals("All"))
                if (check_lag)
                {
                    table = _modulesFrontPanelBSO.MixModulesFrontPanel_lag("vi-VN");
                }
                else
                {
                    //  table = _modulesFrontPanelBSO.MixModulesFrontPanel();
                    table = _modulesFrontPanelBSO.MixModulesFrontPanel_lag("en-US");
                }

            else
                if (check_lag)
                {
                    //table = _modulesFrontPanelBSO.MixModulesFrontPanel(Panel, "vi-VN");
                    table = _modulesFrontPanelBSO.MixModulesFrontPanel_lag_Vitri(Panel, "vi-VN");
                }
                else
                {
                    table = _modulesFrontPanelBSO.MixModulesFrontPanel_lag_Vitri(Panel, "en-US");
                    // table = _modulesFrontPanelBSO.MixModulesFrontPanel(Panel, "en-US");
                }
            //  table = _modulesFrontPanelBSO.MixModulesFrontPanel(Panel);

            commonBSO commonBSO = new commonBSO();
            commonBSO.FillToGridView(GridView1, table);
        }
 private void ViewSinglePage(string lang)
 {
     SinglePageBSO singlepageBSO = new SinglePageBSO();
     DataTable table = singlepageBSO.GetSinglePageAll(lang);
     commonBSO commonBSO = new commonBSO();
     commonBSO.FillToGridView(grvSinglePage, table);
 }
 public void ViewBrand()
 {
     BrandBSO brandBSO = new BrandBSO();
     DataTable table = brandBSO.GetBrandAll(Language.language);
     commonBSO commonBSO = new commonBSO();
     commonBSO.FillToGridView(grvBrand, table);
 }
 private void ViewAlbum()
 {
     AlbumBSO albumBSO = new AlbumBSO();
     DataTable table = albumBSO.GetAlbumAll();
     commonBSO commonBSO = new commonBSO();
     commonBSO.FillToGridView(grvAlbum, table);
 }
 public void ViewChartRound()
 {
     ChartRoundBSO chartRoundBSO = new ChartRoundBSO();
     DataTable table = chartRoundBSO.MixChartRound();
     commonBSO commonBSO = new commonBSO();
     commonBSO.FillToGridView(GridView1, table);
 }
Beispiel #10
0
 private void BindCateNews()
 {
     CateNewsBSO catenewsBSO = new CateNewsBSO();
     DataTable table = catenewsBSO.GetCateNews(Language.language);
     commonBSO commonBSO = new commonBSO();
     commonBSO.FillToDropDown(ddlCateNews, table, "", "", "CateNewsName", "CateNewsID", "");
 }
Beispiel #11
0
 private void ViewLogo()
 {
     AdvBSO advBSO = new AdvBSO();
     DataTable table = advBSO.GetAdvAll();
     commonBSO commonBSO = new commonBSO();
     commonBSO.FillToGridView(grvAdv, table);
 }
 private void ViewContact()
 {
     ContactBSO contactBSO = new ContactBSO();
     DataTable table = contactBSO.GetContactAll();
     commonBSO commonBSO = new commonBSO();
     commonBSO.FillToGridView(grvContact, table);
 }
Beispiel #13
0
 protected void ViewCate(string group)
 {
     PagesBSO pagesBSO = new PagesBSO();
     DataTable table = pagesBSO.PageGetGroup(group, Language.language);
     commonBSO commonBSO = new commonBSO();
     ddlPage.Items.Clear();
     commonBSO.FillToDropDown(ddlPage, table, "~~ Lựa chọn trang đã có ~~", "0", "PageName", "PageName", "");
 }
        protected void ViewMember()
        {
            MemberBSO memberBSO = new MemberBSO();
            DataTable table = memberBSO.GetAllMember();

            commonBSO commonBSO = new commonBSO();
            commonBSO.FillToGridView(grvMember, table);
        }
 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", "");
 }
        private void ViewCateGroup(int group)
        {
            CateNewsBSO catenewsBSO = new CateNewsBSO();
            DataTable table = catenewsBSO.GetCateGroupRolesUrl(Language.language, group, Session["Admin_UserName"].ToString());
            commonBSO commonBSO = new commonBSO();
            commonBSO.FillToGridView(grvCateNews, table);

        }
 private void ViewCateGroup()
 {
     ddlAlbumsCate.Items.Clear();
     AlbumsCateBSO albumscateBSO = new AlbumsCateBSO();
     DataTable table = albumscateBSO.GetAlbumsCate();
     commonBSO commonBSO = new commonBSO();
     commonBSO.FillToDropDown(ddlAlbumsCate, table, "~~ Danh mục gốc ~~", "0", "AlbumsCateName", "AlbumsCateID", "");
 }
 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", "");
 }
        private void ViewAlbumsCate()
        {
            AlbumsCateBSO albumcateBSO = new AlbumsCateBSO();
            DataTable table = albumcateBSO.GetAlbumsCate();
            commonBSO commonBSO = new commonBSO();
            commonBSO.FillToGridView(grvAlbumsCate, table);

        }
 private void ViewLogo()
 {
     LinkBSO linkBSO = new LinkBSO();
     DataTable table = linkBSO.GetLinkAll();
     DataView dv = new DataView(table);
     dv.RowFilter = "LinkType=1";
     commonBSO commonBSO = new commonBSO();
     commonBSO.FillToGridView(grvLink, dv.ToTable());
 }
 protected void BindDropDownList()
 {
     MenuLinksBSO menuLinksBSO = new MenuLinksBSO();
     //  DataTable table = menuLinksBSO.GetAllMenuLinks();
     DataTable table = menuLinksBSO.MixMenuLinks();
     commonBSO commonBSO = new commonBSO();
     ddlMenuLinks.Items.Clear();
     commonBSO.FillToDropDown(ddlMenuLinks, table, "~ Cấp độ menuLinks ~", "0", "MenuLinksName", "MenuLinksID", "");
 }
        public void ViewModules()
        {
            ModulesBSO modulesBSO = new ModulesBSO();
            DataTable table = modulesBSO.MixModules();
            commonBSO commonBSO = new commonBSO();
            commonBSO.FillToGridView(GridView1, table);


        }
 private void ViewCateGroup()
 {
     CateNewsGroupBSO catenewsGroupBSO = new CateNewsGroupBSO();
     DataTable table = catenewsGroupBSO.GetCateNewsGroupAll();
     DataView dv = new DataView(table);
     dv.RowFilter = "CateNewsGroupName <> 'Văn bản pháp quy' and language = 'vi-VN'";
     DataTable dt = dv.ToTable();
     commonBSO commonBSO = new commonBSO();
     commonBSO.FillToDropDown(ddlValueCategory, dt, "Không có giá trị", "0", "CateNewsGroupName", "GroupCate", "");
 }
Beispiel #24
0
        protected void ViewRoles()
        {
            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.FillToGridView(grvRoles, dataTable);

        }
        private void ViewFiles(int cId)
        {
            OfficialFileBSO officialFilesBSO = new OfficialFileBSO();
            DataTable table = new DataTable();
            if (cId != 0)
                table = officialFilesBSO.GetOfficialFileByOfficial(cId);
            else
                table = officialFilesBSO.GetOfficialFileAll();

            commonBSO commonBSO = new commonBSO();
            commonBSO.FillToGridView(grvFiles, table);
        }
        private void ViewAlbum(int cId)
        {
            AlbumsBSO albumBSO = new AlbumsBSO();
            DataTable table = new DataTable();
            if (cId != 0)
                table = albumBSO.GetAlbumsByCate(cId);
            else
                table = albumBSO.GetAlbumsAll();

            commonBSO commonBSO = new commonBSO();
            commonBSO.FillToGridView(grvAlbum, table);
        }
Beispiel #27
0
 protected void ViewAdmin()
 {
     AdminBSO adminBSO = new AdminBSO();
     DataTable table = adminBSO.GetAllAdminRoles();
     DataView dataView = new DataView(table);
     //dataView.RowFilter = "Admin_Username <> 'administrator' and Admin_Username <> 'Administrator'";
     dataView.RowFilter = "Admin_Username not in ('administrator','Administrator')";
     dataView.Sort = "Admin_Username ASC";
     DataTable dataTable = dataView.ToTable();
     commonBSO commonBSO = new commonBSO();
     commonBSO.FillToGridView(grvAdmin, dataTable);
 }
Beispiel #28
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", "");

        }
        private void ViewCateDownload()
        {

            int group = 1;

            ddlCateDownload.Items.Clear();
            CateNewsBSO catenewsBSO = new CateNewsBSO();
            DataTable table = catenewsBSO.GetCateGroupRoles(Language.language, group, Session["Admin_UserName"].ToString());
            DataView view = new DataView(table);
            view.RowFilter = "ParentNewsID=0";
            table = view.ToTable();

            commonBSO commonBSO = new commonBSO();
            commonBSO.FillToDropDown(ddlCateDownload, table, "", "", "CateNewsName", "CateNewsID", "");
        }
        private void BindAlbumsCate(int cId)
        {
            AlbumsCateBSO albumscateBSO = new AlbumsCateBSO();
            DataTable table = albumscateBSO.GetAlbumsCate();
            commonBSO commonBSO = new commonBSO();
            commonBSO.FillToDropDown(ddlAlbumsCate, table, "", "", "AlbumsCateName", "AlbumsCateID", "");

            if (cId != 0)
            {
                ddlAlbumsCate.Enabled = false;
                ddlAlbumsCate.SelectedValue = Convert.ToString(cId);

            }
            else
                ddlAlbumsCate.Enabled = true;
        }