116 lines
2.2 KiB
C#
116 lines
2.2 KiB
C#
|
|
using System;
|
|||
|
|
using System.Collections.Generic;
|
|||
|
|
using System.Drawing;
|
|||
|
|
using System.Linq;
|
|||
|
|
using System.Text;
|
|||
|
|
using System.Threading.Tasks;
|
|||
|
|
|
|||
|
|
namespace HRM.BO
|
|||
|
|
{
|
|||
|
|
public class CourseProgres : BasicBaseObject
|
|||
|
|
{
|
|||
|
|
#region Constructor
|
|||
|
|
public CourseProgres()
|
|||
|
|
{
|
|||
|
|
_completionPercentage = 0;
|
|||
|
|
_isCourseComplete = false;
|
|||
|
|
_startDate = DateTime.Now;
|
|||
|
|
_lastActivityDate = DateTime.Now;
|
|||
|
|
}
|
|||
|
|
public CourseProgres(int enrollemntID,int courseID, int userID)
|
|||
|
|
{
|
|||
|
|
_enrollmentID = enrollemntID;
|
|||
|
|
_userID = userID;
|
|||
|
|
_courseID = courseID;
|
|||
|
|
_completionPercentage = 0;
|
|||
|
|
_isCourseComplete = false;
|
|||
|
|
_startDate = DateTime.Now;
|
|||
|
|
_lastActivityDate = DateTime.Now;
|
|||
|
|
}
|
|||
|
|
#endregion
|
|||
|
|
|
|||
|
|
#region Properties
|
|||
|
|
|
|||
|
|
#region UserID
|
|||
|
|
private int _userID;
|
|||
|
|
public int UserID
|
|||
|
|
{
|
|||
|
|
get { return _userID; }
|
|||
|
|
set { _userID = value; }
|
|||
|
|
}
|
|||
|
|
#endregion
|
|||
|
|
|
|||
|
|
#region CourseID
|
|||
|
|
private int _courseID;
|
|||
|
|
public int CourseID
|
|||
|
|
{
|
|||
|
|
get { return _courseID; }
|
|||
|
|
set { _courseID = value; }
|
|||
|
|
}
|
|||
|
|
#endregion
|
|||
|
|
|
|||
|
|
#region EnrollmentID
|
|||
|
|
private int _enrollmentID;
|
|||
|
|
public int EnrollmentID
|
|||
|
|
{
|
|||
|
|
get { return _enrollmentID; }
|
|||
|
|
set { _enrollmentID = value; }
|
|||
|
|
}
|
|||
|
|
#endregion
|
|||
|
|
|
|||
|
|
#region CompletionPercentage
|
|||
|
|
private float _completionPercentage;
|
|||
|
|
public float CompletionPercentage
|
|||
|
|
{
|
|||
|
|
get { return _completionPercentage; }
|
|||
|
|
set { _completionPercentage = value; }
|
|||
|
|
}
|
|||
|
|
#endregion
|
|||
|
|
|
|||
|
|
#region StartDate
|
|||
|
|
private DateTime _startDate;
|
|||
|
|
public DateTime StartDate
|
|||
|
|
{
|
|||
|
|
get { return _startDate; }
|
|||
|
|
set { _startDate = value; }
|
|||
|
|
}
|
|||
|
|
#endregion
|
|||
|
|
|
|||
|
|
#region IsCourseComplete
|
|||
|
|
private bool _isCourseComplete;
|
|||
|
|
public bool IsCourseComplete
|
|||
|
|
{
|
|||
|
|
get { return _isCourseComplete; }
|
|||
|
|
set { _isCourseComplete = value; }
|
|||
|
|
}
|
|||
|
|
#endregion
|
|||
|
|
|
|||
|
|
#region EndDate
|
|||
|
|
private DateTime? _endDate;
|
|||
|
|
public DateTime? EndDate
|
|||
|
|
{
|
|||
|
|
get { return _endDate; }
|
|||
|
|
set { _endDate = value; }
|
|||
|
|
}
|
|||
|
|
#endregion
|
|||
|
|
|
|||
|
|
#region LastActivityDate
|
|||
|
|
private DateTime? _lastActivityDate;
|
|||
|
|
public DateTime? LastActivityDate
|
|||
|
|
{
|
|||
|
|
get { return _lastActivityDate; }
|
|||
|
|
set { _lastActivityDate = value; }
|
|||
|
|
}
|
|||
|
|
#endregion
|
|||
|
|
|
|||
|
|
#endregion
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
#region ICourseProgress
|
|||
|
|
public interface ICourseProgressService
|
|||
|
|
{
|
|||
|
|
int Save(CourseProgres oCourseProgress);
|
|||
|
|
}
|
|||
|
|
#endregion
|
|||
|
|
}
|