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); }
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); }
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); } }
private void ViewLogo() { AdvBSO advBSO = new AdvBSO(); DataTable table = advBSO.GetAdvAll(); commonBSO commonBSO = new commonBSO(); commonBSO.FillToGridView(grvAdv, table); }
private void ViewFaq() { FaqBSO faqBSO = new FaqBSO(); DataTable table = faqBSO.GetFaqAll(Language.language); commonBSO commonBSO = new commonBSO(); commonBSO.FillToGridView(grvFaq, table); }
public void ViewBrand() { BrandBSO brandBSO = new BrandBSO(); DataTable table = brandBSO.GetBrandAll(Language.language); commonBSO commonBSO = new commonBSO(); commonBSO.FillToGridView(grvBrand, table); }
private void ViewContact() { ContactBSO contactBSO = new ContactBSO(); DataTable table = contactBSO.GetContactAll(); commonBSO commonBSO = new commonBSO(); commonBSO.FillToGridView(grvContact, table); }
private void ViewChart24h() { Chart24hBSO chart24hBSO = new Chart24hBSO(); DataTable table = chart24hBSO.GetChart24hAll(); commonBSO commonBSO = new commonBSO(); commonBSO.FillToGridView(grvChart24h, table); }
public void ViewEmail() { EmailBSO emailBSO = new EmailBSO(); DataTable table = emailBSO.GetEmailAll(); commonBSO commonBSO = new commonBSO(); commonBSO.FillToGridView(grvEmail, table); }
protected void ViewMember() { MemberBSO memberBSO = new MemberBSO(); DataTable table = memberBSO.GetAllMember(); commonBSO commonBSO = new commonBSO(); commonBSO.FillToGridView(grvMember, table); }
private void ViewAlbumsCate() { AlbumsCateBSO albumcateBSO = new AlbumsCateBSO(); DataTable table = albumcateBSO.GetAlbumsCate(); commonBSO commonBSO = new commonBSO(); commonBSO.FillToGridView(grvAlbumsCate, table); }
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()); }
public void ViewModules() { ModulesBSO modulesBSO = new ModulesBSO(); DataTable table = modulesBSO.MixModules(); commonBSO commonBSO = new commonBSO(); commonBSO.FillToGridView(GridView1, table); }
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); }
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); }
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); }
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); }
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); }
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); }
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); }
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); } } }
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); } }
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); }
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); }