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);
        }