protected void ddlProvince2_SelectedIndexChanged(object sender, EventArgs e) { OtherFunctions obj = new OtherFunctions(); DataSet ds = obj.GetAllDistrict("District", Globals.AgentCatID, Convert.ToInt32(ddlProvince2.SelectedValue)); GridViewHelper gvHelper = new GridViewHelper(); gvHelper.FillData(gridViewItem, ds); }
private void LoadGridViewPartner() { try { OtherFunctions objFunc = new OtherFunctions(); DataSet ds = objFunc.GetAllPartner("Partner", Globals.AgentCatID); GridViewHelper gvHelper = new GridViewHelper(); gvHelper.FillData(gridViewPartner, ds); } catch { } }
private void LoadGridViewColor() { try { Size obj = new Size(); DataSet ds = obj.GetListColor("Color", ddlLanguage2.SelectedValue); GridViewHelper gvHelper = new GridViewHelper(); gvHelper.FillData(gridViewColor, ds); } catch { } }
private void LoadSupportOnlineList() { //try { OtherFunctions obj = new OtherFunctions(); DataSet ds = obj.GetAllSupportOnline("SupportOnline", Globals.AgentCatID); GridViewHelper gvHelper = new GridViewHelper(); gvHelper.FillData(gridViewSupportOnline, ds); } //catch { } }
private void LoadGridViewAlbum() { //try { Gallery obj = new Gallery(); DataSet ds = obj.GetAllAlbum("GalleryAlbum", Globals.AgentCatID); GridViewHelper gvHelper = new GridViewHelper(); gvHelper.FillData(gridViewAlbum, ds); } //catch { } }
private void LoadGridViewLink() { try { Link obj = new Link(); DataSet ds = obj.GetAllLink("Link", Globals.AgentCatID, t); GridViewHelper gvHelper = new GridViewHelper(); gvHelper.FillData(gridViewLink, ds); } catch { } }
private void LoadGridViewProducer() { try { Producer obj = new Producer(); DataSet ds = obj.GetAllProducer("Producer", Globals.AgentCatID); GridViewHelper gvHelper = new GridViewHelper(); gvHelper.FillData(gridViewProducer, ds); } catch { } }
private void LoadGridViewDemoList() { try { WebDemo obj = new WebDemo(); DataSet ds = obj.GetAllWebDemo("WebDemo", Globals.AgentCatID); GridViewHelper gvHelper = new GridViewHelper(); gvHelper.FillData(gridViewDemoList, ds); } catch { } }
private void LoadGridViewWidth() { try { Size obj = new Size(); DataSet ds = obj.GetAllListWidth("Width", Globals.AgentCatID, ddlLanguage2.SelectedValue); GridViewHelper gvHelper = new GridViewHelper(); gvHelper.FillData(gridViewWidth, ds); } catch { } }
private void LoadGridViewSize() { try { Size obj = new Size(); DataSet ds = obj.GetListSizeByParentCatID("Size", Globals.AgentCatID, Convert.ToInt32(ddlParentGroupCat.SelectedValue), ddlLanguage.SelectedValue); GridViewHelper gvHelper = new GridViewHelper(); gvHelper.FillData(gridViewSize, ds); } catch { } }
private void LoadGridViewItem() { try { OtherFunctions obj = new OtherFunctions(); DataSet ds = obj.GetAllDistrict("District", Globals.AgentCatID, CountryID); GridViewHelper gvHelper = new GridViewHelper(); gvHelper.FillData(gridViewItem, ds); } catch { } }
private void LoadGridViewCustomerIdea() { try { Contact obj = new Contact(); DataSet ds = obj.GetAllContact("Contact", Globals.AgentCatID, t); GridViewHelper gvHelper = new GridViewHelper(); gvHelper.FillData(gridViewCustomerIdea, ds); } catch { } }
private void LoadGridViewFileDownload() { try { OtherFunctions obj = new OtherFunctions(); DataSet ds = obj.GetAllFileDownload("FileDownload", Globals.AgentCatID); GridViewHelper gvHelper = new GridViewHelper(); gvHelper.FillData(gridViewFileDownload, ds); } catch { } }
private void LoadGridViewService(string Lang) { try { OtherFunctions objFunc = new OtherFunctions(); DataSet ds = objFunc.GetAllService("Service", Globals.AgentCatID, Lang); GridViewHelper gvHelper = new GridViewHelper(); gvHelper.FillData(gridViewService, ds); } catch { } }
private void LoadGridViewOrder() { //try { Order obj = new Order(); DataSet ds = obj.GetAllOrder("Order", Globals.AgentCatID); GridViewHelper gvHelper = new GridViewHelper(); gvHelper.FillData(gridViewOrder, ds); } //catch { } }
private void LoadGridViewAboutUs() { try { AboutUs obj = new AboutUs(); DataSet ds = new DataSet(); ds = obj.GetAllAboutUs("Article", Globals.AgentCatID, ddlLanguage.SelectedValue); GridViewHelper gvHelper = new GridViewHelper(); gvHelper.FillData(gridViewAboutUs, ds); } catch { } }
private void LoadGridViewOrderDetail() { try { Order obj = new Order(); int OrderID = Globals.GetIntFromQueryString("OrderID"); DataSet ds = obj.GetOrderDetail("OrderDetail", OrderID); GridViewHelper gvHelper = new GridViewHelper(); gvHelper.FillData(gridViewOrderDetail, ds); } catch { } }
private void LoadAllProduct(string Lang) { try { Product obj = new Product(); Catalog objCat = new Catalog(); DataSet ds = new DataSet(); ds = obj.GetAllProduct("ProductCat", Globals.AgentCatID, Lang); GridViewHelper gvHelper = new GridViewHelper(); gvHelper.FillData(gridViewProduct, ds); } catch { } }
private void LoadSpecialArticle(string Lang, string SpecType) { //try { Article objNews = new Article(); ArticleCategory objCate = new ArticleCategory(); DataSet ds = new DataSet(); ds = objNews.GetSpecialArticle("Article", Globals.AgentCatID, Lang, SpecType); GridViewHelper gvHelper = new GridViewHelper(); gvHelper.FillData(gridViewArticle, ds); } //catch { } }
protected void btnSearch_Click(object sender, EventArgs e) { try { string strSearch = txtSearch.Text.Trim(); string Lang = ddlLanguage.SelectedValue; OtherFunctions obj = new OtherFunctions(); DataSet ds = obj.SearchServiceByText("Service", strSearch, Lang, Globals.AgentCatID); GridViewHelper gvHelper = new GridViewHelper(); gvHelper.FillData(gridViewService, ds); } catch { } }
private void LoadGridViewUser() { try { Account obj = new Account(); DataSet ds = obj.GetAllUser("UserCat", Globals.AgentCatID); GridViewHelper gvHelper = new GridViewHelper(); if (ds.Tables.Count > 0) { gvHelper.FillData(gridViewUser, ds); } } catch { } }
protected void ddlPosition2_SelectedIndexChanged(object sender, EventArgs e) { try { if (ddlPosition2.SelectedValue == "all") { LoadGridViewLink(); } else { Link obj = new Link(); DataSet ds = obj.GetLinkByPosition("Link", Globals.AgentCatID, ddlPosition2.SelectedValue, t); GridViewHelper gvHelper = new GridViewHelper(); gvHelper.FillData(gridViewLink, ds); } } catch { } }
private void LoadGridViewArticle(string Lang, int CateID) { //try { Article objNews = new Article(); ArticleCategory objCate = new ArticleCategory(); DataSet ds = new DataSet(); if (CateID != -1) { string StringCateID = objCate.GetStringCategoryIDByParentCateID(CateID, Globals.AgentCatID, Lang, t); ds = objNews.GetArticleByByStringCategoryID("Article", Lang, StringCateID, t); } else if (CateID == -1) //all { ds = objNews.GetAllArticle("Article", Globals.AgentCatID, ddlLanguage.SelectedValue, t); } GridViewHelper gvHelper = new GridViewHelper(); gvHelper.FillData(gridViewArticle, ds); } //catch { } }
private void LoadGridViewProduct(string Lang, int CatID) { try { Product obj = new Product(); Catalog objCat = new Catalog(); DataSet ds = new DataSet(); if (CatID != -1) { string StringCatID = objCat.GetStringCatalogIDByParentCatID(CatID, Globals.AgentCatID, Lang); //ds = obj.SearchProduct("ProductCat", Globals.AgentCatID, Lang, StringCatID, CatID, "Default"); ds = obj.GetProductByStringCatalogID("ProductCat", Lang, StringCatID); //MessageBox.Show(StringCatID); } else //all { ds = obj.GetAllProduct("ProductCat", Globals.AgentCatID, Lang); } GridViewHelper gvHelper = new GridViewHelper(); gvHelper.FillData(gridViewProduct, ds); } catch { } }