예제 #1
0
 public override string ToString()
 {
     return("ID: " + StudentID.ToString() +
            ", FirstName: " + StudentFirstName +
            ", LastName: " + StudentLastName +
            ", AverageGrade: " + StudentAverageGrade.ToString());
 }
    public void Displayselecteddata(Hashtable hashtable, object objsender)
    {
        ReportControl rpt = (ReportControl)objsender;

        if (rpt.ID == "SchoolwiseStudentGenderGrid")
        {
            GenderwiseReport1.Visible           = true;
            GenderwiseReport2.Visible           = true;
            GenderwiseReport3.Visible           = false;
            lblTitleFirst.Visible               = true;
            lblTitleSecond.Visible              = true;
            lblTitleThird.Visible               = false;
            btnBack.Visible                     = true;
            SchoolwiseStudentGenderGrid.Visible = false;
            BMSwiseStudentGender.Visible        = true;
            BMSwiseStudentList.Visible          = false;
            this.AcademicYear                   = hashtable["AcademicYear"].ToString();
            lblYearValueSecond.Text             = this.AcademicYear;
            lblSchoolValueSecond.Text           = ddlSchool.SelectedItem.Text;
            BindBoardDropdown(ddlBoardSecond);
            CurrentReport = "BMSwise Student Gender";
            StageTwoCalling();
        }
        else if (rpt.ID == "BMSwiseStudentGender")
        {
            GenderwiseReport1.Visible           = true;
            GenderwiseReport2.Visible           = false;
            GenderwiseReport3.Visible           = true;
            lblTitleFirst.Visible               = true;
            lblTitleSecond.Visible              = false;
            lblTitleThird.Visible               = true;
            SchoolwiseStudentGenderGrid.Visible = false;
            BMSwiseStudentGender.Visible        = false;
            BMSwiseStudentList.Visible          = true;

            btnBack.Visible          = true;
            lblYearValueThird.Text   = this.AcademicYear;
            lblSchoolValueThird.Text = ddlSchool.SelectedItem.Text;
            lblBMSValueThird.Text    = hashtable["BMS"].ToString();
            this.BMSID = Convert.ToInt32(hashtable["BMSID"].ToString());
            lblDivisionValueThird.Text = hashtable["Division"].ToString();
            this.DivisionID            = Convert.ToInt32(hashtable["DivisionID"].ToString());
            StageThirdCalling();
            BMSwiseStudentList.Visible = true;
        }
        else if (rpt.ID == "BMSwiseStudentList")
        {
            std.Visible           = true;
            this.StudentID        = Convert.ToInt32(hashtable["StudentID"].ToString());
            Session["ReportYear"] = this.AcademicYear;
            std.BindStudentDetails(StudentID.ToString());

            mpStudent.Show();
        }
    }
 public override string ToString()
 {
     return(String.Format("{0} {1} ({2})", FirstName, LastName, StudentID.ToString()));
 }
예제 #4
0
 public override string ToString()
 {
     //  return "[" + StudentID.ToString() + "]" + Name + " " + Surname;
     return(StudentID.ToString());
 }
예제 #5
0
        public override string ToString()
        {
            string application = StudentID.ToString() + "/n" + VisitorName + "/n" + CallAtTime.ToString();

            return(application);
        }
        public new bool Find(Int32 OrderID)
        {
            this.ID = "";

            if (StudentID == 0)
            {
                return(false);
            }

            //MessageBox.Show("Select * From Product Where ProductID='" + ProductID + "'");
            DataRow rProduct = this.oMySql.GetDataRow("Select * From Student Where StudentID='" + StudentID.ToString() + "'", "Student");

            if (rProduct == null)
            {
                return(false);
            }

            this.ID        = rProduct["CompanyID"].ToString();
            this.TeacherID = (Int32)rProduct["TeacherID"];
            return(true);
        }
예제 #7
0
 public string toString()
 {
     return(StudentID.ToString() + "," + FirstName.ToString() + "," + LastName.ToString() + "," + FavoriteColor.ToString());
 }