-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathChangeList.frm
212 lines (204 loc) · 7.49 KB
/
ChangeList.frm
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
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
VERSION 5.00
Object = "{831FDD16-0C5C-11D2-A9FC-0000F8754DA1}#2.1#0"; "MSCOMCTL.OCX"
Begin VB.Form ChangeList
Caption = "Pending Approvals & Changes"
ClientHeight = 7125
ClientLeft = 60
ClientTop = 450
ClientWidth = 11880
ControlBox = 0 'False
LinkTopic = "Form1"
MDIChild = -1 'True
ScaleHeight = 7020
ScaleMode = 0 'User
ScaleWidth = 11880
WindowState = 2 'Maximized
Begin VB.CommandButton Command1
Cancel = -1 'True
Caption = "Close"
Height = 735
Left = 1080
TabIndex = 1
Top = 6240
Width = 1455
End
Begin MSComctlLib.ListView ListView1
Height = 6135
Left = 0
TabIndex = 0
Top = 0
Width = 11055
_ExtentX = 19500
_ExtentY = 10821
View = 3
LabelEdit = 1
LabelWrap = -1 'True
HideSelection = 0 'False
FullRowSelect = -1 'True
_Version = 393217
SmallIcons = "ImageList1"
ForeColor = -2147483640
BackColor = -2147483643
BorderStyle = 1
Appearance = 1
BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
Name = "MS Sans Serif"
Size = 12
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
NumItems = 11
BeginProperty ColumnHeader(1) {BDD1F052-858B-11D1-B16A-00C0F0283628}
Text = "CHANGEID"
Object.Width = 0
EndProperty
BeginProperty ColumnHeader(2) {BDD1F052-858B-11D1-B16A-00C0F0283628}
Alignment = 2
SubItemIndex = 1
Text = "Date Initiated"
Object.Width = 2117
EndProperty
BeginProperty ColumnHeader(3) {BDD1F052-858B-11D1-B16A-00C0F0283628}
Alignment = 2
SubItemIndex = 2
Text = "Customer"
Object.Width = 4410
EndProperty
BeginProperty ColumnHeader(4) {BDD1F052-858B-11D1-B16A-00C0F0283628}
Alignment = 2
SubItemIndex = 3
Text = "Part Family"
Object.Width = 4410
EndProperty
BeginProperty ColumnHeader(5) {BDD1F052-858B-11D1-B16A-00C0F0283628}
Alignment = 2
SubItemIndex = 4
Text = "Operation Description"
Object.Width = 4410
EndProperty
BeginProperty ColumnHeader(6) {BDD1F052-858B-11D1-B16A-00C0F0283628}
Alignment = 2
SubItemIndex = 5
Text = "Reason"
Object.Width = 6526
EndProperty
BeginProperty ColumnHeader(7) {BDD1F052-858B-11D1-B16A-00C0F0283628}
SubItemIndex = 6
Text = "Engineer"
Object.Width = 2117
EndProperty
BeginProperty ColumnHeader(8) {BDD1F052-858B-11D1-B16A-00C0F0283628}
SubItemIndex = 7
Text = "Approved"
Object.Width = 1587
EndProperty
BeginProperty ColumnHeader(9) {BDD1F052-858B-11D1-B16A-00C0F0283628}
SubItemIndex = 8
Text = "Complete"
Object.Width = 1587
EndProperty
BeginProperty ColumnHeader(10) {BDD1F052-858B-11D1-B16A-00C0F0283628}
SubItemIndex = 9
Text = "ApprovedInt"
Object.Width = 0
EndProperty
BeginProperty ColumnHeader(11) {BDD1F052-858B-11D1-B16A-00C0F0283628}
SubItemIndex = 10
Text = "CompleteInt"
Object.Width = 0
EndProperty
End
Begin MSComctlLib.ImageList ImageList1
Left = 240
Top = 6480
_ExtentX = 1005
_ExtentY = 1005
BackColor = -2147483643
ImageWidth = 16
ImageHeight = 16
MaskColor = 16777215
_Version = 393216
BeginProperty Images {2C247F25-8591-11D1-B16A-00C0F0283628}
NumListImages = 2
BeginProperty ListImage1 {2C247F27-8591-11D1-B16A-00C0F0283628}
Picture = "ChangeList.frx":0000
Key = ""
EndProperty
BeginProperty ListImage2 {2C247F27-8591-11D1-B16A-00C0F0283628}
Picture = "ChangeList.frx":9C29
Key = ""
EndProperty
EndProperty
End
End
Attribute VB_Name = "ChangeList"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Command1_Click()
ChangeList.Hide
MDIForm1.RefreshMenuOptions
End Sub
Private Sub Form_Load()
ListView1.Top = 0
ListView1.Left = 0
If ScaleHeight > 751 Then
ListView1.Height = ScaleHeight - 750
End If
ListView1.Width = ScaleWidth
Command1.Top = ScaleHeight - 650
End Sub
Private Sub Form_Resize()
ListView1.Top = 0
ListView1.Left = 0
If ScaleHeight > 751 Then
ListView1.Height = ScaleHeight - 1000
End If
ListView1.Width = ScaleWidth
Command1.Top = ScaleHeight - 800
Command1.Left = ScaleWidth - 4000
End Sub
Private Sub ListView1_DblClick()
ProgressBar.Show
ProgressBar.Timer1.Enabled = True
DoEvents
Select Case GetUserType
Case "ADMIN"
If ListView1.SelectedItem.SubItems(9) = "False" And ListView1.SelectedItem.SubItems(10) = "False" Then
CreateRouting.SetForApproval (Val(ListView1.SelectedItem.Text))
ElseIf ListView1.SelectedItem.SubItems(9) = "True" And ListView1.SelectedItem.SubItems(10) = "False" Then
CreateRouting.SetForCompletion (Val(ListView1.SelectedItem.Text))
Else
CreateRouting.SetForViewing (Val(ListView1.SelectedItem.Text))
End If
Case "ENGINEER"
CreateRouting.SetForViewing (Val(ListView1.SelectedItem.Text))
Case "BUYER"
If ListView1.SelectedItem.SubItems(9) = "True" And ListView1.SelectedItem.SubItems(10) = "False" Then
CreateRouting.SetForCompletion (Val(ListView1.SelectedItem.Text))
Else
CreateRouting.SetForViewing (Val(ListView1.SelectedItem.Text))
End If
Case "MANAGER"
If ListView1.SelectedItem.SubItems(9) = "False" And ListView1.SelectedItem.SubItems(10) = "False" Then
CreateRouting.SetForApproval (Val(ListView1.SelectedItem.Text))
ElseIf ListView1.SelectedItem.SubItems(9) = "True" And ListView1.SelectedItem.SubItems(10) = "False" Then
CreateRouting.SetForCompletion (Val(ListView1.SelectedItem.Text))
Else
CreateRouting.SetForViewing (Val(ListView1.SelectedItem.Text))
End If
Case Else
MsgBox ("Invalid User")
End Select
If bRefreshActionListError <> True Then
ChangeList.Hide
Else
bRefreshActionListError = False
End If
ProgressBar.Hide
ProgressBar.Timer1.Enabled = False
End Sub