?? frmnews_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 frmNews_issue
Caption = "新聞發布"
ClientHeight = 4335
ClientLeft = 60
ClientTop = 345
ClientWidth = 8805
LinkTopic = "Form1"
LockControls = -1 'True
MaxButton = 0 'False
ScaleHeight = 4335
ScaleWidth = 8805
StartUpPosition = 2 '屏幕中心
Begin VB.CommandButton cmdEnd
Caption = "退出"
Height = 345
Left = 7455
TabIndex = 2
Top = 3840
Width = 1110
End
Begin VB.ComboBox Combo1
Height = 300
Left = 975
Style = 2 'Dropdown List
TabIndex = 5
Top = 390
Width = 1800
End
Begin VB.ComboBox Combo2
Height = 300
Left = 975
Style = 2 'Dropdown List
TabIndex = 4
Top = 720
Width = 1800
End
Begin VB.CommandButton cmdSave
Caption = "發布新聞"
Height = 345
Left = 6360
TabIndex = 3
Top = 3840
Width = 1110
End
Begin VB.TextBox Text1
Height = 2550
Left = 45
MultiLine = -1 'True
ScrollBars = 2 'Vertical
TabIndex = 1
Text = "frmNews_issue.frx":0000
Top = 1140
Width = 8580
End
Begin VB.TextBox Text2
Alignment = 2 'Center
Enabled = 0 'False
Height = 285
Left = 960
TabIndex = 0
Text = "Text2"
Top = 3885
Width = 1590
End
Begin MSAdodcLib.Adodc adoNews
Height = 330
Left = 3270
Top = 3870
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 = "adoNews"
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 adoEmployee
Height = 330
Left = 3585
Top = 735
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 = 3585
Top = 375
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 MSComCtl2.DTPicker DTPicker1
Height = 285
Left = 7290
TabIndex = 6
Top = 705
Width = 1320
_ExtentX = 2328
_ExtentY = 503
_Version = 393216
Format = 23658497
CurrentDate = 38713
End
Begin VB.Label Label1
AutoSize = -1 'True
Caption = "接收部門:"
Height = 180
Left = 60
TabIndex = 10
Top = 435
Width = 900
End
Begin VB.Label Label2
AutoSize = -1 'True
Caption = "接收人:"
Height = 180
Left = 60
TabIndex = 9
Top = 765
Width = 720
End
Begin VB.Label Label3
AutoSize = -1 'True
Caption = "日期:"
Height = 180
Left = 6690
TabIndex = 8
Top = 780
Width = 540
End
Begin VB.Label Label4
AutoSize = -1 'True
Caption = "發布人:"
Height = 180
Left = 120
TabIndex = 7
Top = 3945
Width = 720
End
End
Attribute VB_Name = "frmNews_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()
adoNews.Recordset.AddNew
adoNews.Recordset.Fields(1).Value = DTPicker1.Value
adoNews.Recordset.Fields(2).Value = Text2.Text
adoNews.Recordset.Fields(3).Value = Combo1.Text
adoNews.Recordset.Fields(4).Value = Combo2.Text
adoNews.Recordset.Fields(5).Value = 0
adoNews.Recordset.Fields(6).Value = Text1.Text
adoNews.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()
adoNews.ConnectionString = PublicStr
adoNews.RecordSource = "select * from tbOA_news"
adoNews.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 + -