-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathDelete Process.frm
124 lines (118 loc) · 3.93 KB
/
Delete Process.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
VERSION 5.00
Object = "{831FDD16-0C5C-11D2-A9FC-0000F8754DA1}#2.0#0"; "MSCOMCTL.OCX"
Begin VB.Form DeleteProcess
Caption = "Select Process to Delete"
ClientHeight = 4860
ClientLeft = 60
ClientTop = 345
ClientWidth = 7665
ControlBox = 0 'False
LinkTopic = "Form1"
MDIChild = -1 'True
ScaleHeight = 4860
ScaleWidth = 7665
WindowState = 2 'Maximized
Begin VB.CommandButton Command2
Cancel = -1 'True
Caption = "Cancel"
Height = 615
Left = 6000
TabIndex = 1
Top = 4080
Width = 1455
End
Begin MSComctlLib.ListView ListView1
Height = 3855
Left = 0
TabIndex = 0
Top = 0
Width = 7695
_ExtentX = 13573
_ExtentY = 6800
View = 3
Arrange = 1
LabelEdit = 1
LabelWrap = -1 'True
HideSelection = 0 'False
AllowReorder = -1 'True
FullRowSelect = -1 'True
_Version = 393217
ForeColor = -2147483640
BackColor = -2147483643
BorderStyle = 1
Appearance = 1
BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
Name = "Gill Sans MT"
Size = 12
Charset = 0
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
NumItems = 5
BeginProperty ColumnHeader(1) {BDD1F052-858B-11D1-B16A-00C0F0283628}
Text = "Process ID"
Object.Width = 0
EndProperty
BeginProperty ColumnHeader(2) {BDD1F052-858B-11D1-B16A-00C0F0283628}
SubItemIndex = 1
Text = "Customer"
Object.Width = 5292
EndProperty
BeginProperty ColumnHeader(3) {BDD1F052-858B-11D1-B16A-00C0F0283628}
SubItemIndex = 2
Text = "Part Family"
Object.Width = 10760
EndProperty
BeginProperty ColumnHeader(4) {BDD1F052-858B-11D1-B16A-00C0F0283628}
SubItemIndex = 3
Text = "Operation Description"
Object.Width = 6174
EndProperty
BeginProperty ColumnHeader(5) {BDD1F052-858B-11D1-B16A-00C0F0283628}
SubItemIndex = 4
Text = "Op Number"
Object.Width = 3528
EndProperty
End
End
Attribute VB_Name = "DeleteProcess"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Command2_Click()
DeleteProcess.ListView1.ListItems.Clear
DeleteProcess.Hide
MDIForm1.RefreshMenuOptions
End Sub
Private Sub Form_Resize()
ListView1.Top = 0
ListView1.Left = 0
If ScaleHeight > 750 Then
ListView1.Height = ScaleHeight - 750
End If
ListView1.Width = ScaleWidth
If ScaleHeight > 650 Then
Command2.Top = ScaleHeight - 650
End If
End Sub
Private Sub ListView1_ColumnClick(ByVal ColumnHeader As ColumnHeader)
oddEvenSort = oddEvenSort + 1
If oddEvenSort Mod 2 > 0 Then
ListView1.SortOrder = lvwAscending
Else
ListView1.SortOrder = lvwDescending
End If
ListView1.SortKey = ColumnHeader.Index - 1
ListView1.Sorted = True
End Sub
Private Sub ListView1_DblClick()
If MsgBox("Are you sure you want to delete Process " + Str(ProcessID) + " - " + ListView1.SelectedItem.SubItems(1) + " - " + ListView1.SelectedItem.SubItems(2) + "?", vbOKCancel) = vbOK Then
DeleteProcessSub (Val(ListView1.SelectedItem.Text))
ListView1.ListItems.Clear
DeleteProcess.Hide
MDIForm1.RefreshMenuOptions
End If
End Sub