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);
        }
Пример #2
0
 private void ViewSinglePage(string lang)
 {
     SinglePageBSO singlepageBSO = new SinglePageBSO();
     DataTable table = singlepageBSO.GetSinglePageAll(lang);
     commonBSO commonBSO = new commonBSO();
     commonBSO.FillToGridView(grvSinglePage, table);
 }
Пример #3
0
 private void ViewAlbum()
 {
     AlbumBSO albumBSO = new AlbumBSO();
     DataTable table = albumBSO.GetAlbumAll();
     commonBSO commonBSO = new commonBSO();
     commonBSO.FillToGridView(grvAlbum, table);
 }
Пример #4
0
 public void ViewChartRound()
 {
     ChartRoundBSO chartRoundBSO = new ChartRoundBSO();
     DataTable table = chartRoundBSO.MixChartRound();
     commonBSO commonBSO = new commonBSO();
     commonBSO.FillToGridView(GridView1, table);
 }
Пример #5
0
        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);
            }




        }
Пример #6
0
 private void ViewLogo()
 {
     AdvBSO advBSO = new AdvBSO();
     DataTable table = advBSO.GetAdvAll();
     commonBSO commonBSO = new commonBSO();
     commonBSO.FillToGridView(grvAdv, table);
 }
Пример #7
0
 private void ViewFaq()
 {
     FaqBSO faqBSO = new FaqBSO();
     DataTable table = faqBSO.GetFaqAll(Language.language);
     commonBSO commonBSO = new commonBSO();
     commonBSO.FillToGridView(grvFaq, table);
 }
Пример #8
0
 public void ViewBrand()
 {
     BrandBSO brandBSO = new BrandBSO();
     DataTable table = brandBSO.GetBrandAll(Language.language);
     commonBSO commonBSO = new commonBSO();
     commonBSO.FillToGridView(grvBrand, table);
 }
Пример #9
0
 private void ViewContact()
 {
     ContactBSO contactBSO = new ContactBSO();
     DataTable table = contactBSO.GetContactAll();
     commonBSO commonBSO = new commonBSO();
     commonBSO.FillToGridView(grvContact, table);
 }
Пример #10
0
 private void ViewChart24h()
 {
     Chart24hBSO chart24hBSO = new Chart24hBSO();
     DataTable table = chart24hBSO.GetChart24hAll();
     commonBSO commonBSO = new commonBSO();
     commonBSO.FillToGridView(grvChart24h, table);
 }
Пример #11
0
 public void ViewEmail()
 {
     EmailBSO emailBSO = new EmailBSO();
     DataTable table = emailBSO.GetEmailAll();
     commonBSO commonBSO = new commonBSO();
     commonBSO.FillToGridView(grvEmail, table);
 }
Пример #12
0
        protected void ViewMember()
        {
            MemberBSO memberBSO = new MemberBSO();
            DataTable table = memberBSO.GetAllMember();

            commonBSO commonBSO = new commonBSO();
            commonBSO.FillToGridView(grvMember, table);
        }
Пример #13
0
        private void ViewAlbumsCate()
        {
            AlbumsCateBSO albumcateBSO = new AlbumsCateBSO();
            DataTable table = albumcateBSO.GetAlbumsCate();
            commonBSO commonBSO = new commonBSO();
            commonBSO.FillToGridView(grvAlbumsCate, table);

        }
Пример #14
0
        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 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());
 }
Пример #16
0
        public void ViewModules()
        {
            ModulesBSO modulesBSO = new ModulesBSO();
            DataTable table = modulesBSO.MixModules();
            commonBSO commonBSO = new commonBSO();
            commonBSO.FillToGridView(GridView1, table);


        }
Пример #17
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);
        }
Пример #19
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);
 }
Пример #20
0
        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);
        }
Пример #21
0
        private void ViewOfficial()
        {
            int group = 4;
            OfficialBSO officialBSO = new OfficialBSO();
            DataTable table = new DataTable();

            if (!Session["Admin_UserName"].Equals("administrator"))
            {
                string strCate = GetCateParentIDArrayByID(group);
                if (strCate != "")
                    table = officialBSO.GetOfficialByCateHomeList(strCate);
            }
            else
            {
                table = officialBSO.GetOfficialAll();
            }

            commonBSO commonBSO = new commonBSO();
            commonBSO.FillToGridView(grvOfficial, table);
            BindCateSearch(group);
        }
Пример #22
0
        private void ViewAnnounce()
        {
            int group = 3;
            AnnounceBSO announceBSO = new AnnounceBSO();
            DataTable table = new DataTable();

            if (!Session["Admin_UserName"].Equals("administrator"))
            {
                string strCate = GetCateParentIDArrayByID(group);
                if (strCate != "")
                    table = announceBSO.GetAnnounceByCateHomeList(strCate);
            }
            else
            {
                table = announceBSO.GetAnnounceAll(Language.language);
            }


            commonBSO commonBSO = new commonBSO();
            commonBSO.FillToGridView(grvAnnounce, table);
            BindCateSearch(group);
        }
Пример #23
0
        private void ViewDownload()
        {
            int group = 1;
            DownloadBSO downloadBSO = new DownloadBSO();
            DataTable table = new DataTable();

            if (!Session["Admin_UserName"].Equals("administrator"))
            {
                string strCate = GetCateParentIDArrayByID(group);
                if (strCate != "")
                    table = downloadBSO.GetDownloadByCateHomeList(strCate);
            }
            else
            {
                table = downloadBSO.GetDownloadAll(Language.language);
            }


            commonBSO commonBSO = new commonBSO();
            commonBSO.FillToGridView(grvDownload, table);
            BindCateSearch(group);
        }
        private void ViewCateGroup()
        {
            ConfigBSO configBSO = new ConfigBSO();
            int Ngon_Ngu = Convert.ToInt32(ViewState["CauHinh_Viet"]);
            if (Ngon_Ngu == 1 || Ngon_Ngu == 0)
            {
                CateNewsGroupBSO CateBSO = new CateNewsGroupBSO();
                DataTable table = CateBSO.GetCateLanguage(Language.language);
                commonBSO commonBSO = new commonBSO();
                commonBSO.FillToGridView(grvCateNewsGroup, table);
            }
            else
            {
                CateNewsGroupBSO CateBSO = new CateNewsGroupBSO();
                DataTable table = CateBSO.GetCateLanguage(Language.language_Eng);
                commonBSO commonBSO = new commonBSO();
                commonBSO.FillToGridView(grvCateNewsGroup, table);
            }
            //CateNewsGroupBSO catenewsGroupBSO = new CateNewsGroupBSO();
            //DataTable table = catenewsGroupBSO.GetCateNewsGroupAll();
            //commonBSO commonBSO = new commonBSO();
            //commonBSO.FillToGridView(grvCateNewsGroup, table);

        }
Пример #25
0
 protected void btn_search_Click(object sender, EventArgs e)
 {
     if (txtKeyword.Text != "")
     {
         int cId = Convert.ToInt32(ddlCateDownloadSearch.SelectedValue);
         DownloadBSO downloadBSO = new DownloadBSO();
         DataTable table = downloadBSO.DownloadSearch(txtKeyword.Text, cId, Language.language);
         commonBSO commonBSO = new commonBSO();
         commonBSO.FillToGridView(grvDownload, table);
         BindCateSearch(1);
     }
 }
        protected void NewsCommentView(int group)
        {
            NewsCommentBSO newsCommentBSO = new NewsCommentBSO();
            DataTable table = new DataTable();
            if (hddNewsID.Value != "-1")
            {

                table = newsCommentBSO.GetAllNewsGroupComment(Convert.ToInt32(hddNewsID.Value), group);

            }
            else
            {
                table = newsCommentBSO.GetAllNewsGroupComment(group);
            }
            commonBSO commonBSO = new commonBSO();
            commonBSO.FillToGridView(grvNewsComment, table);
        }
Пример #27
0
        protected void btn_search_Click(object sender, EventArgs e)
        {

            int cId = Convert.ToInt32(ddlRoles.SelectedValue);
            AdminBSO adminBSO = new AdminBSO();
            //DataTable table = adminBSO.AdminGetAllRolesByID(cId);

            DataTable dataTable = new DataTable();
            commonBSO commonBSO = new commonBSO();
            DataTable table = adminBSO.GetAllAdminRoles();
            DataView dataView = new DataView(table);
            //dataView.RowFilter = "Admin_Username <> 'administrator' and Admin_Username <> 'Administrator'";

            if (cId == 0)
            {
                dataView.RowFilter = "Admin_Username not in ('administrator','Administrator')";
                dataTable = dataView.ToTable();
                commonBSO.FillToGridView(grvAdmin, dataTable);
            }
            else
            {
                AdminRolesBSO adminRolesBSO = new AdminRolesBSO();
                string strUser = adminRolesBSO.GetAdminUserName1(cId);
                if (strUser != "")
                {
                    DataTable table1 = adminBSO.GetAdminBystrName(strUser);
                    commonBSO.FillToGridView(grvAdmin, table1);
                }

            }



        }
Пример #28
0
 protected void btn_search_Click(object sender, EventArgs e)
 {
     if (txtKeyword.Text != "")
     {
         int cId = Convert.ToInt32(ddlCateNewsSearch.SelectedValue);
         OfficialBSO officialBSO = new OfficialBSO();
         DataTable table = officialBSO.OfficialSearch(txtKeyword.Text, cId, Language.language);
         commonBSO commonBSO = new commonBSO();
         commonBSO.FillToGridView(grvOfficial, table);
         BindCateSearch(4);
     }
 }
Пример #29
0
        private void ViewCompany(int group)
        {
            //int group =2;
            CompanyBSO companyBSO = new CompanyBSO();
            DataTable table = new DataTable();

            if (!Session["Admin_UserName"].Equals("administrator"))
            {
                string strCate = GetCateParentIDArrayByID(group);
                if (strCate != "")
                    table = companyBSO.GetCompanyByCateHomeList(group, strCate);
            }
            else
            {
                table = companyBSO.GetCompanyAll(Language.language, group);
            }



            commonBSO commonBSO = new commonBSO();
            commonBSO.FillToGridView(grvCompany, table);
            BindCateSearch(group);
        }
Пример #30
0
        private void ViewNewsGroup(int group)
        {
            var newsGroupBSO = new NewsGroupBSO();
            var table = new DataTable();

            if (!Session["Admin_UserName"].Equals("administrator"))
            {
                var strCate = GetCateParentIDArrayByID(group);
                if (strCate != "")
                    table = newsGroupBSO.GetNewsGroupAll(Language.language, group, strCate);
            }
            else
            {
                if (ddlCateNewsSearch.SelectedValue == "0")
                    table = newsGroupBSO.GetNewsGroupAll(Language.language, group);
                else
                {
                    var cId = Convert.ToInt32(ddlCateNewsSearch.SelectedValue);
                    table = newsGroupBSO.NewsGroupSearch(txtKeyword.Text, cId, Language.language);
                }
            }
            var commonBSO = new commonBSO();
            commonBSO.FillToGridView(grvNewsGroup, table);
        }