📄 frmpaymentday.frm
字号:
VERSION 5.00
Object = "{67397AA1-7FB1-11D0-B148-00A0C922E820}#6.0#0"; "MSADODC.OCX"
Begin VB.Form frmPaymentDay
BackColor = &H00C0C0C0&
BorderStyle = 1 'Fixed Single
Caption = "月末设置"
ClientHeight = 3270
ClientLeft = 45
ClientTop = 330
ClientWidth = 4575
LinkTopic = "Form1"
MaxButton = 0 'False
MinButton = 0 'False
ScaleHeight = 3270
ScaleWidth = 4575
StartUpPosition = 2 '屏幕中心
Begin MSAdodcLib.Adodc Adodc1
Height = 330
Left = 0
Top = 2760
Visible = 0 'False
Width = 1200
_ExtentX = 2117
_ExtentY = 582
ConnectMode = 0
CursorLocation = 3
IsolationLevel = -1
ConnectionTimeout= 15
CommandTimeout = 30
CursorType = 3
LockType = 3
CommandType = 2
CursorOptions = 0
CacheSize = 50
MaxRecords = 0
BOFAction = 0
EOFAction = 0
ConnectStringType= 1
Appearance = 1
BackColor = -2147483643
ForeColor = -2147483640
Orientation = 0
Enabled = -1
Connect = "Provider=Microsoft.Jet.OLEDB.3.51;Persist Security Info=False;Data Source=C:\SYSTEM\DATABASE\SYSTEM.MDB"
OLEDBString = "Provider=Microsoft.Jet.OLEDB.3.51;Persist Security Info=False;Data Source=C:\SYSTEM\DATABASE\SYSTEM.MDB"
OLEDBFile = ""
DataSourceName = ""
OtherAttributes = ""
UserName = ""
Password = ""
RecordSource = "结算日期"
Caption = "Adodc1"
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.CommandButton cmdCancel
Caption = "取消"
Height = 390
Left = 2775
TabIndex = 6
Top = 2700
Width = 765
End
Begin VB.CommandButton cmdOk
Caption = "确定"
Height = 390
Left = 1200
TabIndex = 5
Top = 2700
Width = 765
End
Begin VB.Frame Frame1
BackColor = &H00C0C0C0&
Caption = "设置每月结算日期"
ForeColor = &H00FF0000&
Height = 1965
Left = 300
TabIndex = 1
Top = 600
Width = 3915
Begin VB.TextBox txtPaymentDay
BackColor = &H00FFFFFF&
DataField = "结算日期"
DataSource = "Adodc1"
BeginProperty Font
Name = "宋体"
Size = 10.5
Charset = 134
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H000000FF&
Height = 390
Left = 1800
TabIndex = 3
Top = 430
Width = 1215
End
Begin VB.Label Label3
BackColor = &H00C0C0C0&
Caption = "注意: 月末结算日期只能由系统管理员设置,并且不能轻易修改"
ForeColor = &H000000FF&
Height = 465
Left = 525
TabIndex = 4
Top = 1275
Width = 2940
End
Begin VB.Label Label2
BackColor = &H00C0C0C0&
Caption = "每月结算日"
BeginProperty Font
Name = "宋体"
Size = 10.5
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H00FF0000&
Height = 240
Left = 450
TabIndex = 2
Top = 525
Width = 1065
End
End
Begin VB.Label Label1
BackColor = &H00C0C0C0&
Caption = "月末结算日期设置"
BeginProperty Font
Name = "仿宋_GB2312"
Size = 18
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H00FF0000&
Height = 390
Left = 825
TabIndex = 0
Top = 75
Width = 2940
End
End
Attribute VB_Name = "frmPaymentDay"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub cmdCancel_Click()
Unload Me
End Sub
Private Sub cmdOK_Click()
Adodc1.Recordset("结算日期") = txtPaymentDay.Text
Adodc1.Recordset.Update
PaymentDay = Adodc1.Recordset("结算日期")
frmMain.Adodc3.Refresh
frmMain.Text1.Text = frmMain.Adodc3.Recordset("结算日期")
Unload Me
'Unload frmMain
End Sub
Private Sub txtPaymentDay_KeyPress(KeyAscii As Integer)
If KeyAscii = 13 Then
cmdOk.SetFocus
End If
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -