업무용 소스 예제
학원 관리에 유용한 CommonTypes 구조체 정의 예제
안요사님
2021. 8. 21. 15:43
728x90
반응형
728x90
학원 관리에 유용한 CommonTypes 구조체 정의 예제
코스, 유저, 멤버 등 구조체 정의
public sealed class UsersAttendInfo
{
public int AttendIdx { get; set; }
public int UserKey { get; set; }
public DateTime AttendDateTime { get; set; }
public string AttendDateStr
{
get { return AttendDateTime.ToShortDateString(); }
}
public string AttendTimeStr
{
get { return AttendDateTime.ToLongTimeString(); }
}
public string AttendResult { get; set; }
public string WorkName { get; set; }
}
public sealed class CourseInfo
{
public int MemberKey { get; set; }
public int CourseKey { get; set; }
public DateTime StartDate { get; set; }
public DateTime EndDate { get; set; }
public int MMCnt { get; set; }
public int Total { get; set; }
public string SettlementDay { get; set; }
public string amount { get; set; }
public string Name { get; set; }
}
public sealed class UserInfo
{
public string Status { get; set; }
public string UserName { get; set; }
public int UserKey { get; set; }
public string Mobile { get; set; }
public string MobileStr
{
get { return UtilManager.GetPhone(Mobile); }
}
public string Sex { get; set; }
public string MajorSubject { get; set; }
}
public sealed class MemberInfo
{
public string Status { get; set; }
public string MemberName { get; set; }
public int MemberKey { get; set; }
public string Mobile { get; set; }
public DateTime BaseDate { get; set; }
public string MobileStr
{
get { return UtilManager.GetPhone(Mobile); }
}
public string Sex { get; set; }
}
public sealed class WorkSetInfo
{
public int InTime { get; set; }
public int OutTime { get; set; }
public DateTime Date { get; set; }
}
public sealed class MemberLessonList
{
public int MemberKey { get; set; }
public int MonthlyIdx { get; set; }
public string MemberName { get; set; }
public string Sex { get; set; }
public int BaseDay { get; set; }
public DateTime StartDate { get; set; }
public DateTime EndDate { get; set; }
public List<string> Lessons { get; set; }
public string Memo { get; set; }
public int StoreStat { get; set; }
public string CurrStat { get; set; }
public int TotalCnt { get; set; }
}
728x90
반응형