Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.Text;
- namespace DistrictAgent.Model
- {
- public class AttendanceRecord
- {
- #region .member variables.
- private Guid id = Guid.Empty;
- private School school;
- private string username;
- private DateTime dateCreated;
- private int school_year;
- private string term;
- private string week;
- private int g_P1_full_day;
- private int g_P2_full_day;
- private int g_P3_full_day;
- private int g_P4_full_day;
- private int g_P5_full_day;
- private int g_P6_full_day;
- private int g_P7_full_day;
- private int g_P1_half_day;
- private int g_P2_half_day;
- private int g_P3_half_day;
- private int g_P4_half_day;
- private int g_P5_half_day;
- private int g_P6_half_day;
- private int g_P7_half_day;
- private int b_P1_full_day;
- private int b_P2_full_day;
- private int b_P3_full_day;
- private int b_P4_full_day;
- private int b_P5_full_day;
- private int b_P6_full_day;
- private int b_P7_full_day;
- private int b_P1_half_day;
- private int b_P2_half_day;
- private int b_P3_half_day;
- private int b_P4_half_day;
- #endregion
- /// <summary>
- /// gets or sets the school for this attendance record
- /// </summary>
- public virtual School School
- {
- get { return this.school; }
- set { this.school = value; }
- }
- /// <summary>
- /// gets or sets the id of the attendance record
- /// </summary>
- public virtual Guid Id
- {
- get { return id; }
- set { id = value; }
- }
- /// <summary>
- /// gets or sets the username of the attendance record
- /// </summary>
- public virtual string Username
- {
- get { return username; }
- set { username = value; }
- }
- /// <summary>
- /// gets or sets the date the attendance record was created
- /// </summary>
- public virtual DateTime DateCreated
- {
- get { return dateCreated; }
- set { dateCreated = value; }
- }
- public virtual int SchoolYear
- {
- get { return this.school_year; }
- set { this.school_year = value; }
- }
- /// <summary>
- /// gets or sets the term the attendance record was submitted
- /// </summary>
- public virtual string Term
- {
- get { return this.term; }
- set { this.term = value; }
- }
- /// <summary>
- /// gets or sets the week in which the attendance record was submitted
- /// </summary>
- public virtual string Week
- {
- get { return this.week; }
- set { this.week = value; }
- }
- /// <summary>
- /// gets or sets the P1 full day attendance for girls
- /// </summary>
- public virtual int G_P1_full_day
- {
- get { return g_P1_full_day; }
- set { g_P1_full_day = value; }
- }
- /// <summary>
- /// gets or sets the p2 full day atttendance for girls
- /// </summary>
- public virtual int G_P2_full_day
- {
- get { return g_P2_full_day; }
- set { g_P2_full_day = value; }
- }
- /// <summary>
- /// gets or sets the p3 full day attendane for girls
- /// </summary>
- public virtual int G_P3_full_day
- {
- get { return g_P3_full_day; }
- set { g_P3_full_day = value; }
- }
- /// <summary>
- /// gets or sets the p4 full day attendane for girls
- /// </summary>
- public virtual int G_P4_full_day
- {
- get { return g_P4_full_day; }
- set { g_P4_full_day = value; }
- }
- /// <summary>
- /// gets or sets the p5 full day attendane for girls
- /// </summary>
- public virtual int G_P5_full_day
- {
- get { return g_P5_full_day; }
- set { g_P5_full_day = value; }
- }
- /// <summary>
- /// gets or sets the p6 full day attendane for girls
- /// </summary>
- public virtual int G_P6_full_day
- {
- get { return g_P6_full_day; }
- set { g_P6_full_day = value; }
- }
- /// <summary>
- /// gets or sets the p7 full day attendane for girls
- /// </summary>
- public virtual int G_P7_full_day
- {
- get { return g_P7_full_day; }
- set { g_P7_full_day = value; }
- }
- public virtual int G_P1_half_day
- {
- get { return g_P1_half_day; }
- set { g_P1_half_day = value; }
- }
- public virtual int G_P2_half_day
- {
- get { return g_P2_half_day; }
- set { g_P2_half_day = value; }
- }
- public virtual int G_P3_half_day
- {
- get { return g_P3_half_day; }
- set { g_P3_half_day = value; }
- }
- public virtual int G_P4_half_day
- {
- get { return g_P4_half_day; }
- set { g_P4_half_day = value; }
- }
- public virtual int G_P5_half_day
- {
- get { return g_P5_half_day; }
- set { g_P5_half_day = value; }
- }
- public virtual int G_P6_half_day
- {
- get { return g_P6_half_day; }
- set { g_P6_half_day = value; }
- }
- public virtual int G_P7_half_day
- {
- get { return g_P7_half_day; }
- set { g_P7_half_day = value; }
- }
- public virtual int B_P1_full_day
- {
- get { return b_P1_full_day; }
- set { b_P1_full_day = value; }
- }
- public virtual int B_P2_full_day
- {
- get { return b_P2_full_day; }
- set { b_P2_full_day = value; }
- }
- public virtual int B_P3_full_day
- {
- get { return b_P3_full_day; }
- set { b_P3_full_day = value; }
- }
- public virtual int B_P4_full_day
- {
- get { return b_P4_full_day; }
- set { b_P4_full_day = value; }
- }
- public virtual int B_P5_full_day
- {
- get { return b_P5_full_day; }
- set { b_P5_full_day = value; }
- }
- public virtual int B_P6_full_day
- {
- get { return b_P6_full_day; }
- set { b_P6_full_day = value; }
- }
- public virtual int B_P7_full_day
- {
- get { return b_P7_full_day; }
- set { b_P7_full_day = value; }
- }
- public virtual int B_P1_half_day
- {
- get { return b_P1_half_day; }
- set { b_P1_half_day = value; }
- }
- public virtual int B_P2_half_day
- {
- get { return b_P2_half_day; }
- set { b_P2_half_day = value; }
- }
- public virtual int B_P3_half_day
- {
- get { return b_P3_half_day; }
- set { b_P3_half_day = value; }
- }
- public virtual int B_P4_half_day
- {
- get { return b_P4_half_day; }
- set { b_P4_half_day = value; }
- }
- private int b_P5_half_day;
- public virtual int B_P5_half_day
- {
- get { return b_P5_half_day; }
- set { b_P5_half_day = value; }
- }
- private int b_P6_half_day;
- public virtual int B_P6_half_day
- {
- get { return b_P6_half_day; }
- set { b_P6_half_day = value; }
- }
- private int b_P7_half_day;
- public virtual int B_P7_half_day
- {
- get { return b_P7_half_day; }
- set { b_P7_half_day = value; }
- }
- private int f_teacher_full_day_monday;
- public virtual int F_teacher_full_day_monday
- {
- get { return f_teacher_full_day_monday; }
- set { f_teacher_full_day_monday = value; }
- }
- private int f_teacher_full_day_tuesday;
- public virtual int F_teacher_full_day_tuesday
- {
- get { return f_teacher_full_day_tuesday; }
- set { f_teacher_full_day_tuesday = value; }
- }
- private int f_teacher_full_day_wed;
- public virtual int F_teacher_full_day_wed
- {
- get { return f_teacher_full_day_wed; }
- set { f_teacher_full_day_wed = value; }
- }
- private int f_teacher_full_day_thur;
- public virtual int F_teacher_full_day_thur
- {
- get { return f_teacher_full_day_thur; }
- set { f_teacher_full_day_thur = value; }
- }
- private int f_teacher_full_day_fri;
- public virtual int F_teacher_full_day_fri
- {
- get { return f_teacher_full_day_fri; }
- set { f_teacher_full_day_fri = value; }
- }
- private int f_teacher_half_day_monday;
- public virtual int F_teacher_half_day_monday
- {
- get { return f_teacher_half_day_monday; }
- set { f_teacher_half_day_monday = value; }
- }
- private int f_teacher_half_day_tuesday;
- public virtual int F_teacher_half_day_tuesday
- {
- get { return f_teacher_half_day_tuesday; }
- set { f_teacher_half_day_tuesday = value; }
- }
- private int f_teacher_half_day_wed;
- public virtual int F_teacher_half_day_wed
- {
- get { return f_teacher_half_day_wed; }
- set { f_teacher_half_day_wed = value; }
- }
- private int f_teacher_half_day_thur;
- public virtual int F_teacher_half_day_thur
- {
- get { return f_teacher_half_day_thur; }
- set { f_teacher_half_day_thur = value; }
- }
- private int f_teacher_half_day_fri;
- public virtual int F_teacher_half_day_fri
- {
- get { return f_teacher_half_day_fri; }
- set { f_teacher_half_day_fri = value; }
- }
- private int m_teacher_full_day_monday;
- public virtual int M_teacher_full_day_monday
- {
- get { return m_teacher_full_day_monday; }
- set { m_teacher_full_day_monday = value; }
- }
- private int m_teacher_full_day_tuesday;
- public virtual int M_teacher_full_day_tuesday
- {
- get { return m_teacher_full_day_tuesday; }
- set { m_teacher_full_day_tuesday = value; }
- }
- private int m_teacher_full_day_wed;
- public virtual int M_teacher_full_day_wed
- {
- get { return m_teacher_full_day_wed; }
- set { m_teacher_full_day_wed = value; }
- }
- private int m_teacher_full_day_thur;
- public virtual int M_teacher_full_day_thur
- {
- get { return m_teacher_full_day_thur; }
- set { m_teacher_full_day_thur = value; }
- }
- private int m_teacher_full_day_fri;
- public virtual int M_teacher_full_day_fri
- {
- get { return m_teacher_full_day_fri; }
- set { m_teacher_full_day_fri = value; }
- }
- private int m_teacher_half_day_monday;
- public virtual int M_teacher_half_day_monday
- {
- get { return m_teacher_half_day_monday; }
- set { m_teacher_half_day_monday = value; }
- }
- private int m_teacher_half_day_tuesday;
- public virtual int M_teacher_half_day_tuesday
- {
- get { return m_teacher_half_day_tuesday; }
- set { m_teacher_half_day_tuesday = value; }
- }
- private int m_teacher_half_day_wed;
- public virtual int M_teacher_half_day_wed
- {
- get { return m_teacher_half_day_wed; }
- set { m_teacher_half_day_wed = value; }
- }
- private int m_teacher_half_day_thur;
- public virtual int M_teacher_half_day_thur
- {
- get { return m_teacher_half_day_thur; }
- set { m_teacher_half_day_thur = value; }
- }
- private int m_teacher_half_day_fri;
- public virtual int M_teacher_half_day_fri
- {
- get { return m_teacher_half_day_fri; }
- set { m_teacher_half_day_fri = value; }
- }
- /// <summary>
- ///
- /// </summary>
- /// <param name="value"></param>
- /// <returns></returns>
- public virtual int GetAvgAttendance(int value)
- {
- if (value == 0)
- return 0;
- return Convert.ToInt32(value / (double)5);
- //return 0;
- }
- }
- }
Add Comment
Please, Sign In to add comment