예제 #1
0
    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);
    }
예제 #2
0
 private void LoadGridViewPartner()
 {
     try
     {
         OtherFunctions objFunc  = new OtherFunctions();
         DataSet        ds       = objFunc.GetAllPartner("Partner", Globals.AgentCatID);
         GridViewHelper gvHelper = new GridViewHelper();
         gvHelper.FillData(gridViewPartner, ds);
     }
     catch { }
 }
예제 #3
0
 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 { }
 }
예제 #5
0
 private void LoadGridViewAlbum()
 {
     //try
     {
         Gallery        obj      = new Gallery();
         DataSet        ds       = obj.GetAllAlbum("GalleryAlbum", Globals.AgentCatID);
         GridViewHelper gvHelper = new GridViewHelper();
         gvHelper.FillData(gridViewAlbum, ds);
     }
     //catch { }
 }
예제 #6
0
 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 { }
 }
예제 #7
0
 private void LoadGridViewProducer()
 {
     try
     {
         Producer       obj      = new Producer();
         DataSet        ds       = obj.GetAllProducer("Producer", Globals.AgentCatID);
         GridViewHelper gvHelper = new GridViewHelper();
         gvHelper.FillData(gridViewProducer, ds);
     }
     catch { }
 }
예제 #8
0
 private void LoadGridViewDemoList()
 {
     try
     {
         WebDemo        obj      = new WebDemo();
         DataSet        ds       = obj.GetAllWebDemo("WebDemo", Globals.AgentCatID);
         GridViewHelper gvHelper = new GridViewHelper();
         gvHelper.FillData(gridViewDemoList, ds);
     }
     catch { }
 }
예제 #9
0
 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 { }
 }
예제 #10
0
 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 { }
 }
예제 #11
0
 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 { }
 }
예제 #12
0
 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 { }
 }
예제 #13
0
 private void LoadGridViewFileDownload()
 {
     try
     {
         OtherFunctions obj      = new OtherFunctions();
         DataSet        ds       = obj.GetAllFileDownload("FileDownload", Globals.AgentCatID);
         GridViewHelper gvHelper = new GridViewHelper();
         gvHelper.FillData(gridViewFileDownload, ds);
     }
     catch { }
 }
예제 #14
0
 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 { }
 }
예제 #15
0
 private void LoadGridViewOrder()
 {
     //try
     {
         Order          obj      = new Order();
         DataSet        ds       = obj.GetAllOrder("Order", Globals.AgentCatID);
         GridViewHelper gvHelper = new GridViewHelper();
         gvHelper.FillData(gridViewOrder, ds);
     }
     //catch { }
 }
예제 #16
0
 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 { }
 }
예제 #17
0
 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 { }
 }
예제 #18
0
 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 { }
 }
예제 #20
0
 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 { }
 }
예제 #21
0
 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 { }
 }
예제 #22
0
 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 { }
 }
예제 #23
0
 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 { }
 }
예제 #24
0
 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 { }
 }