📄 frmnotice_issue.frm
字号:
VERSION 5.00
Object = "{67397AA1-7FB1-11D0-B148-00A0C922E820}#6.0#0"; "MSADODC.OCX"
Object = "{86CF1D34-0C5F-11D2-A9FC-0000F8754DA1}#2.0#0"; "MSCOMCT2.OCX"
Begin VB.Form frmNotice_issue
Caption = "发布通知"
ClientHeight = 4335
ClientLeft = 60
ClientTop = 345
ClientWidth = 8910
LinkTopic = "Form1"
LockControls = -1 'True
MaxButton = 0 'False
ScaleHeight = 4335
ScaleWidth = 8910
StartUpPosition = 2 '屏幕中心
Begin MSAdodcLib.Adodc adoNotice
Height = 330
Left = 3300
Top = 3915
Visible = 0 'False
Width = 2190
_ExtentX = 3863
_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 = "adoNotice"
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 VB.TextBox Text2
Alignment = 2 'Center
Enabled = 0 'False
Height = 285
Left = 990
TabIndex = 10
Text = "Text2"
Top = 3930
Width = 1590
End
Begin MSAdodcLib.Adodc adoEmployee
Height = 330
Left = 3615
Top = 780
Visible = 0 'False
Width = 2355
_ExtentX = 4154
_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 = "adoEmployee"
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 MSAdodcLib.Adodc adoDept
Height = 330
Left = 3615
Top = 420
Visible = 0 'False
Width = 2355
_ExtentX = 4154
_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 = "adoDept"
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 VB.TextBox Text1
Height = 2550
Left = 75
MultiLine = -1 'True
ScrollBars = 2 'Vertical
TabIndex = 8
Text = "frmNotice_issue.frx":0000
Top = 1185
Width = 8580
End
Begin VB.CommandButton cmdEnd
Caption = "退出"
Height = 345
Left = 7485
TabIndex = 7
Top = 3885
Width = 1110
End
Begin VB.CommandButton cmdSave
Caption = "发布通知"
Height = 345
Left = 6390
TabIndex = 6
Top = 3885
Width = 1110
End
Begin VB.ComboBox Combo2
Height = 300
Left = 1005
Style = 2 'Dropdown List
TabIndex = 4
Top = 765
Width = 1800
End
Begin VB.ComboBox Combo1
Height = 300
Left = 1005
Style = 2 'Dropdown List
TabIndex = 2
Top = 435
Width = 1800
End
Begin MSComCtl2.DTPicker DTPicker1
Height = 285
Left = 7320
TabIndex = 1
Top = 750
Width = 1320
_ExtentX = 2328
_ExtentY = 503
_Version = 393216
Format = 67108865
CurrentDate = 38713
End
Begin VB.Label Label4
AutoSize = -1 'True
Caption = "发布人:"
Height = 180
Left = 150
TabIndex = 9
Top = 3990
Width = 720
End
Begin VB.Label Label3
AutoSize = -1 'True
Caption = "日期:"
Height = 180
Left = 6720
TabIndex = 5
Top = 825
Width = 540
End
Begin VB.Label Label2
AutoSize = -1 'True
Caption = "接收人:"
Height = 180
Left = 90
TabIndex = 3
Top = 810
Width = 720
End
Begin VB.Label Label1
AutoSize = -1 'True
Caption = "接收部门:"
Height = 180
Left = 90
TabIndex = 0
Top = 480
Width = 900
End
End
Attribute VB_Name = "frmNotice_issue"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub cmdEnd_Click()
Unload Me
End Sub
Private Sub cmdSave_Click()
adoNotice.Recordset.AddNew
adoNotice.Recordset.Fields(1).Value = DTPicker1.Value
adoNotice.Recordset.Fields(2).Value = Text2.Text
adoNotice.Recordset.Fields(3).Value = Combo1.Text
adoNotice.Recordset.Fields(4).Value = Combo2.Text
adoNotice.Recordset.Fields(5).Value = 0
adoNotice.Recordset.Fields(6).Value = Text1.Text
adoNotice.Recordset.Update
MsgBox "通知发布成功!", vbInformation
End Sub
Private Sub Combo1_Click()
Combo2.Clear
adoEmployee.ConnectionString = PublicStr
adoEmployee.RecordSource = "select * from tbOA_employee"
adoEmployee.Refresh
For i = 0 To adoEmployee.Recordset.RecordCount - 1
Combo2.AddItem adoEmployee.Recordset.Fields(1).Value
adoEmployee.Recordset.MoveNext
Next i
End Sub
Private Sub Form_Load()
adoNotice.ConnectionString = PublicStr
adoNotice.RecordSource = "select * from tbOA_notice"
adoNotice.Refresh
adoDept.ConnectionString = PublicStr
adoDept.RecordSource = "select * from tbOA_dept"
adoDept.Refresh
For i = 0 To adoDept.Recordset.RecordCount - 1
Combo1.AddItem adoDept.Recordset.Fields(1).Value
adoDept.Recordset.MoveNext
Next i
Text2.Text = Mid(frm_mainBefore.StatusBar1.Panels(1).Text, 6, Len(frm_mainBefore.StatusBar1.Panels(1).Text) - 5)
DTPicker1.Value = Date
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -