프로젝트

일반

사용자정보

통계
| 개정판:

hytos / ID2.Manager / ID2.Manager.Common / Informations.cs @ deaa202b

이력 | 보기 | 이력해설 | 다운로드 (2.46 KB)

1
using System;
2
using System.Collections.Generic;
3
using System.Linq;
4
using System.Text;
5
using System.Threading.Tasks;
6

    
7
using System.ComponentModel;
8

    
9
using ID2.Manager.Data;
10
using ID2.Manager.Data.Models;
11

    
12
namespace ID2.Manager.Common
13
{
14
    public class Informations
15
    {
16
        private static readonly Lazy<Informations> lazy = new Lazy<Informations>(() => new Informations());
17

    
18
        public static Informations Instance
19
        {
20
            get { return lazy.Value; }
21
        }
22

    
23
        private Informations()
24
        {
25

    
26
        }
27

    
28
        public UserInfo ActiveUser { get; set; }
29
        public ProjectInfo ActiveProject { get; set; }
30

    
31
        public List<UserInfo> UserList { get; set; } = new List<UserInfo>();
32
        public List<ProjectInfo> ProjectList { get; set; } = new List<ProjectInfo>();
33

    
34
        public string FindID2LocalPath(string ProjectCode)
35
        {
36
            var proj = this.ProjectList.Where(x =>
37
            {
38
                return x.Code.Equals(ProjectCode);
39
            }).FirstOrDefault();
40

    
41
            return proj == null ? string.Empty : proj.ID2Info.Path;
42
        }
43

    
44
        private readonly List<string> _JobLevel = new List<string>() { "1", "2", "3", "4", "5" };
45
        public List<string> JobLevel
46
        {
47
            get { return _JobLevel; }
48
        }
49

    
50
        private readonly List<string> _IsYesNo = new List<string>() { "Yes", "No" };
51
        public List<string> IsYesNo
52
        {
53
            get { return _IsYesNo; }
54
        }
55

    
56
        private readonly List<string> _ClientStatus = new List<string>() { "Waiting", "검토중", "회신완료" };
57
        public List<string> ClientStatus
58
        {
59
            get { return _ClientStatus; }
60
        }
61

    
62
        private readonly List<string> _ValidationResult = new List<string>() { "O", "X" };
63
        public List<string> ValidationResult
64
        {
65
            get { return _ValidationResult; }
66
        }
67

    
68
        private readonly List<string> _JobStatus = new List<string>() { "시작전", "진행중", "완료", "기타" };
69
        public List<string> JobStatus
70
        {
71
            get { return _JobStatus; }
72
        }
73

    
74
        private readonly List<string> _UserRole = new List<string>() { "Admin", "Manager", "User" };
75
        public List<string> UserRole
76
        {
77
            get { return _UserRole; }
78
        }
79

    
80
        private readonly List<string> _IsSuccess = new List<string>() { "성공", "실패" };
81
        public List<string> IsSuccess
82
        {
83
            get { return _IsSuccess; }
84
        }
85
    }
86
}
클립보드 이미지 추가 (최대 크기: 500 MB)