Exemple #1
0
    protected void ShowButtonVenue_Click(object sender, EventArgs e)
    {
        string venue = VenueDropDownList.SelectedItem.Text;

        ServiceReference1.ShowInfo[] shows = bsc.GetShowByVenue(venue);
        ShowGridView.DataSource = shows;
        ShowGridView.DataBind();
    }
Exemple #2
0
    protected void ShowsbyArtistButton_Click(object sender, EventArgs e)
    {
        string artist = ArtistDropDownList.SelectedItem.Text;

        FanServices.ShowsPerArtist[] spa = showtracker.GetArtistShows(artist);
        ShowGridView.DataSource = spa;
        ShowGridView.DataBind();
    }
Exemple #3
0
    protected void ShowButtonArtist_Click(object sender, EventArgs e)
    {
        string artist = ArtistDropDownList.SelectedItem.Text;

        ServiceReference1.ShowInfo[] shows = bsc.GetShowByArtist(artist);
        ShowGridView.DataSource = shows;
        ShowGridView.DataBind();
    }
Exemple #4
0
    private void PopulateShowGridView(string club_ID)
    {
        Guid         Club_ID  = new Guid(club_ID);
        Shows        show     = new Shows(_connString);
        List <Shows> tblShows = show.GetShowsByClub_ID(Club_ID);

        ShowGridView.DataSource = tblShows;
        ShowGridView.DataBind();
    }
Exemple #5
0
    protected void ShowsbyVenueButton_Click(object sender, EventArgs e)
    {
        string venue = VenueDropDownList.SelectedItem.Text;

        FanServices.ShowsPerVenue[] spv = showtracker.GetVenueShows(venue);
        if (spv.Length == 0)
        {
            noshows.Text = "There are no shows for this venue";
        }
        ShowGridView.DataSource = spv;
        ShowGridView.DataBind();
    }
Exemple #6
0
    protected void ShowsbyArtistButton_Click(object sender, EventArgs e)
    {
        string artist = followArtistRadioButtonList.SelectedItem.Text;

        FanServices.ShowsPerArtist[] spa = showtracker.GetArtistShows(artist);
        if (spa.Length == 0)
        {
            nodata.Text = "There are no shows for this artist";
        }
        ShowGridView.DataSource = spa;
        ShowGridView.DataBind();
    }
        protected void addBT_Click(object sender, EventArgs e)
        {
            //get fee
            string value = testNameDropDownList.Text;
            TestRequestEntryManager aTestRequestEntryManager = new TestRequestEntryManager();

            int fee = aTestRequestEntryManager.GetFee(value);

            feeTB.Text = fee.ToString();
            int i = (int)ViewState["sn"];

            ViewState["sn"] = i + 1;
            test_list aTestList = new test_list();

            aTestList.id       = (int)ViewState["sn"];
            aTestList.testName = testNameDropDownList.Text;
            aTestList.testFee  = fee;



            if (ViewState["testList"] == null)
            {
                List <test_list> atesList = new List <test_list>();
                atesList.Add(aTestList);
                ViewState["testList"] = atesList;

                atesList = (List <test_list>)ViewState["testList"];
                ShowGridView.DataSource = atesList;
                ShowGridView.DataBind();
            }
            else
            {
                List <test_list> atesList = (List <test_list>)ViewState["testList"];
                atesList.Add(aTestList);
                ViewState["testList"] = atesList;

                ShowGridView.DataSource = atesList;
                ShowGridView.DataBind();
            }

            int total = Convert.ToInt32(totalTB.Text);
            int x     = total + Convert.ToInt32(feeTB.Text);

            totalTB.Text = x.ToString();
        }
        protected void ShowButton_Click(object sender, EventArgs e)
        {
            string bookSearch = ShowTextBox.Text;


            if (bookSearch != "")
            {
                List <BookModel> aBookModel = aBookBll.showGetway(bookSearch);
                ShowGridView.DataSource = aBookModel;
                ShowGridView.DataBind();
            }

            else
            {
                BookModel        aBookModel = new BookModel();
                List <BookModel> abook      = aBookBll.GetAllGrideViewBLL(aBookModel);
                ShowGridView.DataSource = abook;
                ShowGridView.DataBind();
            }
        }
        protected void SaveBT_Click(object sender, EventArgs e)
        {
            //make list
            List <test_list>   atesList            = (List <test_list>)ViewState["testList"];
            PatiencTestManager aPatiencTestManager = new PatiencTestManager();

            testUniqueID = (int)ViewState["testUniqueID"];

            foreach (var test in atesList)
            {
                string result = aPatiencTestManager.PatiencTestSave(test.testName, test.testFee, testUniqueID);
            }
            //save total amount
            TestRequestEntryManager aTestRequestEntryManager = new TestRequestEntryManager();

            aTestRequestEntryManager.SaveTotal(testUniqueID, Convert.ToInt32(totalTB.Text));

            ShowGridView.DataSource = "";
            ShowGridView.DataBind();
            TestIdLB.Text  = "Your Bill ID is : " + testUniqueID.ToString() + "<br/> And User ID is: " + (int)ViewState["userID"];
            addBT.Enabled  = false;
            SaveBT.Enabled = false;
        }