示例#1
0
        private void Check_Attendence_Load(object sender, EventArgs e)
        {
            AttendanceWS.AttendanceWebService aws = new PakTurk_school_system.AttendanceWS.AttendanceWebService();
            aws.getStudentDetailsBLL(svi.li.user, ref svi.fName, ref svi.lName, ref svi.rollNo);
            lblName.Text   = svi.fName + " " + svi.lName;
            lblRollNo.Text = svi.rollNo;

            DataSet attd = new DataSet();

            attd = aws.getAttendanceBLL(svi.rollNo);
            gridCheckAttendance.DataSource = attd.Tables[0];
            int p = 0, a = 0, totalDays = 0;

            for (int i = 0; i < attd.Tables[0].Rows.Count; i++)
            {
                if (attd.Tables[0].Rows[i][1].ToString() == "P")
                {
                    p++;
                }
                if (attd.Tables[0].Rows[i][1].ToString() == "A")
                {
                    a++;
                }
            }
            totalDays             = a + p;
            lblTotalAbsents.Text  = a.ToString();
            lblTotalPresents.Text = p.ToString();
            lblTotalDays.Text     = totalDays.ToString();
        }
 private void Student_View_Information_Load(object sender, EventArgs e)
 {
     AttendanceWS.AttendanceWebService aws = new PakTurk_school_system.AttendanceWS.AttendanceWebService();
     aws.getStudentDetailsBLL(li.user, ref fName, ref lName, ref rollNo);
 }