-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathfrmOperateRZ.frm
More file actions
266 lines (261 loc) · 8.83 KB
/
frmOperateRZ.frm
File metadata and controls
266 lines (261 loc) · 8.83 KB
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
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
VERSION 5.00
Object = "{CDE57A40-8B86-11D0-B3C6-00A0C90AEA82}#1.0#0"; "MSDATGRD.OCX"
Object = "{67397AA1-7FB1-11D0-B148-00A0C922E820}#6.0#0"; "MSADODC.OCX"
Begin VB.Form frmOperateRZ
Caption = "导入日志"
ClientHeight = 5415
ClientLeft = 60
ClientTop = 345
ClientWidth = 8070
LinkTopic = "Form1"
LockControls = -1 'True
MDIChild = -1 'True
ScaleHeight = 5415
ScaleWidth = 8070
WindowState = 2 'Maximized
Begin MSAdodcLib.Adodc adcOperateRZ
Height = 555
Left = 900
Top = 3420
Visible = 0 'False
Width = 2940
_ExtentX = 5186
_ExtentY = 979
ConnectMode = 0
CursorLocation = 3
IsolationLevel = -1
ConnectionTimeout= 15
CommandTimeout = 30
CursorType = 3
LockType = 3
CommandType = 8
CursorOptions = 0
CacheSize = 50
MaxRecords = 0
BOFAction = 0
EOFAction = 0
ConnectStringType= 1
Appearance = 1
BackColor = -2147483643
ForeColor = -2147483640
Orientation = 0
Enabled = -1
Connect = "DSN=IpCard"
OLEDBString = "DSN=IpCard"
OLEDBFile = ""
DataSourceName = ""
OtherAttributes = ""
UserName = "sa"
Password = "iamchinese"
RecordSource = "select * from operatelog"
Caption = "adcOperatorRZ"
BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
Name = "宋体"
Size = 9
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
_Version = 393216
End
Begin MSDataGridLib.DataGrid dgImportRZ
Bindings = "frmOperateRZ.frx":0000
Height = 3315
Left = 0
TabIndex = 0
Top = 0
Width = 7935
_ExtentX = 13996
_ExtentY = 5847
_Version = 393216
HeadLines = 1
RowHeight = 18
FormatLocked = -1 'True
BeginProperty HeadFont {0BE35203-8F91-11CE-9DE3-00AA004BB851}
Name = "宋体"
Size = 12
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
Name = "宋体"
Size = 12
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ColumnCount = 7
BeginProperty Column00
DataField = "ID"
Caption = "ID"
BeginProperty DataFormat {6D835690-900B-11D0-9484-00A0C91110ED}
Type = 0
Format = ""
HaveTrueFalseNull= 0
FirstDayOfWeek = 0
FirstWeekOfYear = 0
LCID = 2052
SubFormatType = 0
EndProperty
EndProperty
BeginProperty Column01
DataField = "nowdate"
Caption = "nowdate"
BeginProperty DataFormat {6D835690-900B-11D0-9484-00A0C91110ED}
Type = 0
Format = ""
HaveTrueFalseNull= 0
FirstDayOfWeek = 0
FirstWeekOfYear = 0
LCID = 2052
SubFormatType = 0
EndProperty
EndProperty
BeginProperty Column02
DataField = "nowTime"
Caption = "nowTime"
BeginProperty DataFormat {6D835690-900B-11D0-9484-00A0C91110ED}
Type = 0
Format = ""
HaveTrueFalseNull= 0
FirstDayOfWeek = 0
FirstWeekOfYear = 0
LCID = 2052
SubFormatType = 0
EndProperty
EndProperty
BeginProperty Column03
DataField = "module"
Caption = "module"
BeginProperty DataFormat {6D835690-900B-11D0-9484-00A0C91110ED}
Type = 0
Format = ""
HaveTrueFalseNull= 0
FirstDayOfWeek = 0
FirstWeekOfYear = 0
LCID = 2052
SubFormatType = 0
EndProperty
EndProperty
BeginProperty Column04
DataField = "oprName"
Caption = "oprName"
BeginProperty DataFormat {6D835690-900B-11D0-9484-00A0C91110ED}
Type = 0
Format = ""
HaveTrueFalseNull= 0
FirstDayOfWeek = 0
FirstWeekOfYear = 0
LCID = 2052
SubFormatType = 0
EndProperty
EndProperty
BeginProperty Column05
DataField = "operate"
Caption = "operate"
BeginProperty DataFormat {6D835690-900B-11D0-9484-00A0C91110ED}
Type = 0
Format = ""
HaveTrueFalseNull= 0
FirstDayOfWeek = 0
FirstWeekOfYear = 0
LCID = 2052
SubFormatType = 0
EndProperty
EndProperty
BeginProperty Column06
DataField = "remark"
Caption = "remark"
BeginProperty DataFormat {6D835690-900B-11D0-9484-00A0C91110ED}
Type = 0
Format = ""
HaveTrueFalseNull= 0
FirstDayOfWeek = 0
FirstWeekOfYear = 0
LCID = 2052
SubFormatType = 0
EndProperty
EndProperty
SplitCount = 1
BeginProperty Split0
BeginProperty Column00
ColumnWidth = 1454.74
EndProperty
BeginProperty Column01
ColumnWidth = 2775.118
EndProperty
BeginProperty Column02
ColumnWidth = 2775.118
EndProperty
BeginProperty Column03
ColumnWidth = 2775.118
EndProperty
BeginProperty Column04
ColumnWidth = 2775.118
EndProperty
BeginProperty Column05
ColumnWidth = 2775.118
EndProperty
BeginProperty Column06
ColumnWidth = 2775.118
EndProperty
EndProperty
End
End
Attribute VB_Name = "frmOperateRZ"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Option Explicit
Private Sub adcOperateRZ_Error(ByVal ErrorNumber As Long, Description As String, ByVal Scode As Long, ByVal Source As String, ByVal HelpFile As String, ByVal HelpContext As Long, fCancelDisplay As Boolean)
fCancelDisplay = True
End Sub
Private Sub Form_Load()
Me.Icon = LoadResPicture(101, 1)
IniMenu 1
'adcOperateRZ.RecordSource = "Select * from OperateLog" ' where rtrim(wkrNo)= '" & gOpr.strOprName & "'"
'adcOperateRZ.Refresh
setADODC Me.adcOperateRZ
RefreshWindow
mfrmMain.mnuClearRZ.Enabled = False
With adcOperateRZ.Recordset
If Not .EOF Then .MoveLast
End With
End Sub
Private Sub Form_Resize()
If Me.Width < 100 Then Exit Sub
If Me.Height < 500 Then Exit Sub
dgImportRZ.Width = Me.Width - 120
dgImportRZ.Height = Me.Height - 400
End Sub
Private Sub Form_Unload(Cancel As Integer)
IniMenu 11
mfrmMain.mnuClearRZ.Enabled = True
End Sub
Private Sub RefreshWindow()
With frmOperateRZ.dgImportRZ.Columns
.Item("ID").Width = 10 * 120
.Item("ID").Caption = "编号"
.Item("nowDate").Width = 10 * 130
.Item("nowDate").Caption = "日期"
.Item("nowTime").Width = 10 * 130
.Item("nowTime").Caption = "时间"
.Item("module").Width = 20 * 120
.Item("module").Caption = "模块"
.Item("OprName").Width = 10 * 120
.Item("OprName").Caption = "操作员"
.Item("Operate").Width = 10 * 120
.Item("Operate").Caption = "操作"
.Item("Remark").Width = 40 * 120
.Item("Remark").Caption = "备注"
End With
Me.adcOperateRZ.Refresh
End Sub