-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathTimeEntry.cls
112 lines (90 loc) · 2.81 KB
/
TimeEntry.cls
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
VERSION 1.0 CLASS
BEGIN
MultiUse = -1 'True
END
Attribute VB_Name = "TimeEntry"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = False
Attribute VB_Exposed = False
'
' TimeEntry
' (c) Petr Bobov - https://github.com/PetrBobov/proj-assistant
'
'
' @author: [email protected]
' @license: MIT (http://www.opensource.org/licenses/mit-license.php)
'
' ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ '
Option Explicit
' Class module for keeping information of single Redmine Time Entry
Private m_sUniqueKey As String ' Unique Key for sorting
Private m_sIssueID As String ' Redmine Issue ID
Private m_sIssueSubject As String ' Redmine Issue Subject
Private m_sIssueTracker As String ' Redmine Issue Tracker
Private m_sResource As String ' Redmine Issue Resource
Private m_sWorkType As String ' Work type of Redmine Time Entry
Private m_sComment As String ' Comment of Redmine Time Entry
Private m_sSpent As String ' Spent on of Redmine Time Entry
Private m_sHours As Double ' Hours of Redmine Time Entry
Private m_sOvertime As Boolean ' overtime hours of Redmine Time Entry. It requires specific parameter in Redmine configuration
Property Get UniqueKey() As String
UniqueKey = m_sUniqueKey
End Property
Property Let UniqueKey(ByVal sUniqueKey As String)
m_sUniqueKey = sUniqueKey
End Property
Property Get IssueId() As String
IssueId = m_sIssueID
End Property
Property Let IssueId(ByVal sIssueId As String)
m_sIssueID = sIssueId
End Property
Property Get IssueSubject() As String
IssueSubject = m_sIssueSubject
End Property
Property Let IssueSubject(ByVal sIssueSubject As String)
m_sIssueSubject = sIssueSubject
End Property
Property Get IssueTracker() As String
IssueTracker = m_sIssueTracker
End Property
Property Let IssueTracker(ByVal sIssueTracker As String)
m_sIssueTracker = sIssueTracker
End Property
Property Get Resource() As String
Resource = m_sResource
End Property
Property Let Resource(ByVal sResource As String)
m_sResource = sResource
End Property
Property Get WorkType() As String
WorkType = m_sWorkType
End Property
Property Let WorkType(ByVal sWorkType As String)
m_sWorkType = sWorkType
End Property
Property Get Comment() As String
Comment = m_sComment
End Property
Property Let Comment(ByVal sComment As String)
m_sComment = sComment
End Property
Property Get Spent() As String
Spent = m_sSpent
End Property
Property Let Spent(ByVal sSpent As String)
m_sSpent = sSpent
End Property
Property Get Hours() As Double
Hours = m_sHours
End Property
Property Let Hours(ByVal sHours As Double)
m_sHours = sHours
End Property
Property Get OverTime() As Boolean
OverTime = m_sOvertime
End Property
Property Let OverTime(ByVal sOvertime As Boolean)
m_sOvertime = sOvertime
End Property