📄 frmdrawedit.frm
字号:
VERSION 5.00
Object = "{67397AA1-7FB1-11D0-B148-00A0C922E820}#6.0#0"; "MSADODC.OCX"
Object = "{F0D2F211-CCB0-11D0-A316-00AA00688B10}#1.0#0"; "MSDATLST.OCX"
Begin VB.Form FrmDrawEdit
Caption = "编辑办公用品领用信息"
ClientHeight = 2325
ClientLeft = 60
ClientTop = 345
ClientWidth = 3315
LinkTopic = "Form1"
ScaleHeight = 2325
ScaleWidth = 3315
StartUpPosition = 2 '屏幕中心
Begin VB.CommandButton Cmd_Cancel
Caption = "取 消"
Height = 495
Left = 1800
TabIndex = 6
Top = 1680
Width = 1095
End
Begin VB.CommandButton Cmd_OK
Caption = "确 定"
Height = 495
Left = 480
TabIndex = 5
Top = 1680
Width = 1095
End
Begin VB.Frame Frame1
Height = 1575
Left = 120
TabIndex = 0
Top = 0
Width = 3015
Begin VB.TextBox txtDate
Height = 300
Left = 1320
TabIndex = 2
Top = 360
Width = 1335
End
Begin MSDataListLib.DataCombo dco_Dep
Height = 315
Left = 1320
TabIndex = 1
Top = 900
Width = 1335
_ExtentX = 2355
_ExtentY = 582
_Version = 393216
Style = 2
Text = ""
End
Begin VB.Label Label1
AutoSize = -1 'True
Caption = "领用日期"
Height = 195
Left = 360
TabIndex = 4
Top = 420
Width = 720
End
Begin VB.Label Label2
AutoSize = -1 'True
Caption = "领用部门"
Height = 195
Left = 360
TabIndex = 3
Top = 960
Width = 720
End
End
Begin MSAdodcLib.Adodc Ado_Dep
Height = 330
Left = 0
Top = 1560
Visible = 0 'False
Width = 1575
_ExtentX = 2778
_ExtentY = 582
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 = ""
OLEDBString = ""
OLEDBFile = ""
DataSourceName = ""
OtherAttributes = ""
UserName = ""
Password = ""
RecordSource = ""
Caption = "Ado_Dep"
BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
Name = "MS Sans Serif"
Size = 8.25
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
_Version = 393216
End
End
Attribute VB_Name = "FrmDrawEdit"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Cmd_Cancel_Click()
Unload Me
End Sub
Private Sub Cmd_OK_Click()
If Trim(txtDate) = "" Then
MsgBox "请输入领用日期"
txtDate.SetFocus
Exit Sub
End If
If Trim(dco_Dep.Text) = "" Then
MsgBox "请选择领用部门"
dco_Dep.SetFocus
Exit Sub
End If
With MyDraw
.CreateDate = Trim(txtDate)
.DepId = dco_Dep.BoundText()
.Insert
MsgBox "添加成功"
End With
Unload Me
End Sub
Private Sub Form_Load()
'装入部门信息
Ado_Dep.ConnectionString = Conn
Ado_Dep.RecordSource = "Select * From Department"
Ado_Dep.Refresh
Set dco_Dep.RowSource = Ado_Dep
dco_Dep.ListField = "DepName"
dco_Dep.BoundColumn = "DepId"
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -