コード例 #1
0
    protected void Tab_Host_TabClick(object sender, RadTabStripEventArgs e)
    {
        if (Grid_StudentList.SelectedValue != null)
        {
            switch (Convert.ToInt32(Tab_Host.SelectedIndex))
            {
            case 0:     // Request Detail
                PageViewVisible(true, false, false, false);
                break;

            case 1:     //Request History
                PageViewVisible(false, true, false, false);
                GridHistory.Rebind();
                break;

            case 2:     // Placement by School
                PageViewVisible(false, false, true, false);
                Grid_HomestayPlacement.Rebind();
                break;

            case 3:    // Placement by Agency
                PageViewVisible(false, false, false, true);
                Grid_PlacementAgency.Rebind();
                Download.Visible = false;

                break;
            }
        }
    }
コード例 #2
0
    protected void Grid_StudentList_SelectedIndexChanged(object sender, EventArgs e)
    {
        if (Grid_StudentList.SelectedValue != null)
        {
            int OriginalId = Convert.ToInt32(Grid_StudentList.SelectedValue);
            RadToolBar3.Items[2].Enabled = true; //Placement
            RadToolBar3.Items[4].Enabled = true; //Shcedule Change

            RadToolBar3.Items[6].Enabled = true; //Cancel
            RadToolBar3.Items[8].Enabled = true; // Invoice and Payment

            //Show Placement Request Detail
            ShowPlacementRequestDetail(Convert.ToInt32(Grid_StudentList.SelectedValue));
            PageViewVisible(true, true, true, true);
            GridHistory.Rebind();
            Grid_DormitoryPlacement.Rebind();
        }
    }
コード例 #3
0
    protected void Grid_StudentList_SelectedIndexChanged(object sender, EventArgs e)
    {
        if (Grid_StudentList.SelectedValue != null)
        {
            int OriginalId = Convert.ToInt32(Grid_StudentList.SelectedValue);
            RadToolBar3.Items[2].Enabled  = true;
            RadToolBar3.Items[4].Enabled  = true;
            RadToolBar3.Items[6].Enabled  = true;
            RadToolBar3.Items[8].Enabled  = true;
            RadToolBar3.Items[10].Enabled = true;
            RadToolBar3.Items[12].Enabled = true;

            //Show Placement Request Detail
            ShowPlacementRequestDetail(Convert.ToInt32(Grid_StudentList.SelectedValue));
            PageViewVisible(true, true, true, true);
            GridHistory.Rebind();
            Grid_HomestayPlacement.Rebind();
            Grid_PlacementAgency.Rebind();

            Download.Visible = false;
        }
    }