-
Notifications
You must be signed in to change notification settings - Fork 0
/
FormDuty.vb
57 lines (52 loc) · 1.75 KB
/
FormDuty.vb
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
Public Sub ComOK_Click()
'检查正确的密码
Watch1 = ComboWatch1.ListIndex '值班人设置
Watch2 = ComboWatch2.ListIndex
DealyW1 = ComboDealy1.ListIndex
DealyW2 = ComboDealy2.ListIndex
DealyW3 = ComboDealy3.ListIndex
SaveSetting "RDMS System", "Duty", "Watch1", Watch1
SaveSetting "RDMS System", "Duty", "Watch2", Watch2
SaveSetting "RDMS System", "Duty", "DealyW1", DealyW1
SaveSetting "RDMS System", "Duty", "DealyW2", DealyW2
SaveSetting "RDMS System", "Duty", "DealyW3", DealyW3
Unload Me
End Sub
Public Sub Form_Load()
Dim i As Integer, j As Integer, k As Integer
Dim x As Integer, y As Integer, ImgErr As Boolean
For i = 0 To 4
ComboWatch1.AddItem WatchName(i)
ComboWatch2.AddItem WatchName(i)
Next i
ComboWatch1.ListIndex = Watch1
ComboWatch2.ListIndex = Watch2
ComboDealy1.Clear
ComboDealy1.AddItem "0 minute"
ComboDealy1.AddItem "1 minute"
ComboDealy1.AddItem "2 minute"
ComboDealy1.AddItem "5 minute"
ComboDealy1.AddItem "10 minute"
ComboDealy1.ListIndex = DealyW1
ComboDealy2.Clear
ComboDealy2.AddItem "0 minute"
ComboDealy2.AddItem "1 minute"
ComboDealy2.AddItem "2 minute"
ComboDealy2.AddItem "5 minute"
ComboDealy2.AddItem "10 minute"
ComboDealy2.ListIndex = DealyW2
ComboDealy3.Clear
ComboDealy3.AddItem "0 minute"
ComboDealy3.AddItem "1 minute"
ComboDealy3.AddItem "2 minute"
ComboDealy3.AddItem "5 minute"
ComboDealy3.AddItem "10 minute"
ComboDealy3.ListIndex = DealyW3
End Sub
Private Sub txtPassword_Change()
If txtPassword.Text = Password Then
ComOK.Enabled = True
Else
ComOK.Enabled = False
End If
End Sub