63 lines
1.7 KiB
C#
63 lines
1.7 KiB
C#
using Newtonsoft.Json;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.ComponentModel;
|
|
using System.ComponentModel.DataAnnotations;
|
|
using System.Globalization;
|
|
using System.Linq;
|
|
using System.Reflection;
|
|
using System.Reflection.Emit;
|
|
using System.Runtime.Serialization;
|
|
using System.Web.Http;
|
|
|
|
namespace Model
|
|
{
|
|
// 為對應資料表MODEL宣告額外參數類別(Metadata)
|
|
// [JsonIgnore] 避免WEBAPI自動抓關聯資料
|
|
[MetadataType(typeof(memberMetadata))]
|
|
public partial class member
|
|
{
|
|
private class memberMetadata
|
|
{
|
|
[JsonIgnore]
|
|
public virtual follower follower { get; set; }
|
|
|
|
[JsonIgnore]
|
|
public virtual ICollection<member_check> member_check { get; set; }
|
|
|
|
[JsonIgnore]
|
|
public virtual member_group member_group { get; set; }
|
|
|
|
[JsonIgnore]
|
|
public virtual member_title member_title { get; set; }
|
|
}
|
|
public const int KindLevelMax = 3; //組別頁面層數
|
|
public const int TitleLevelMax = 1; //職稱頁面層數
|
|
public const string Dir = "~/upload/member"; //圖片上傳位置
|
|
public const int picMax = 1; //圖片數量
|
|
|
|
|
|
public class attendances
|
|
{
|
|
public enum type : int
|
|
{
|
|
[Description("上班")]
|
|
Start = 1,
|
|
[Description("下班")]
|
|
GetOff = 2
|
|
}
|
|
|
|
public enum login : int
|
|
{
|
|
[Description("主管補登")]
|
|
Enter = 1,
|
|
[Description("帳號密碼")]
|
|
Account = 2
|
|
}
|
|
}
|
|
|
|
|
|
}
|
|
}
|
|
|