⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 jmpa_end.frm

📁 一个vb做的工资管理系统
💻 FRM
字号:
VERSION 5.00
Begin VB.Form Form8 
   BorderStyle     =   3  'Fixed Dialog
   Caption         =   "期末结账"
   ClientHeight    =   2325
   ClientLeft      =   45
   ClientTop       =   435
   ClientWidth     =   4905
   Icon            =   "JmPa_end.frx":0000
   LinkTopic       =   "Form8"
   MaxButton       =   0   'False
   MinButton       =   0   'False
   ScaleHeight     =   2325
   ScaleWidth      =   4905
   ShowInTaskbar   =   0   'False
   StartUpPosition =   2  '屏幕中心
   Begin VB.CommandButton Command2 
      Caption         =   "取  消"
      Height          =   495
      Left            =   3000
      TabIndex        =   2
      Top             =   1680
      Width           =   975
   End
   Begin VB.CommandButton Command1 
      Caption         =   "完  成"
      Height          =   495
      Left            =   600
      TabIndex        =   1
      Top             =   1680
      Width           =   975
   End
   Begin VB.Label Label2 
      Caption         =   "Label2"
      Height          =   495
      Left            =   120
      TabIndex        =   3
      Top             =   1080
      Width           =   4695
   End
   Begin VB.Label Label1 
      Caption         =   "Label1"
      Height          =   735
      Left            =   120
      TabIndex        =   0
      Top             =   240
      Width           =   4695
   End
End
Attribute VB_Name = "Form8"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Command1_Click()
If MsgBox("您是否要结束当月工资业务!", vbYesNo + vbQuestion, "结账") = vbYes Then
 Set conn_end = CreateObject("adodb.connection")
 conn_end.Open connstring
 Set rs_selectPa_set = conn_end.Execute("select * from Pa_set")
 If rs_selectPa_set.Fields!fperiod <> 12 Then
   Set rs_end = conn_end.Execute("update Pa_set set Fperiod=Fperiod+1")
 Else
  Set rs_end = conn_end.Execute("update Pa_set set Fperiod=1,Fyear=Fyear+1")
 End If
 rs_selectPa_set.Close
 conn_end.Close
 MsgBox "结账成功!", vbOKOnly + vbInformation, "结账"
 Unload Me
End If
End Sub

Private Sub Command2_Click()
Unload Me
End Sub

Private Sub Form_Load()
Label1.Caption = "为了方便每一年度或是每一期间(月份)的工资数据存档,系统必须进行期末结账处理来结束当月的工资业务,从而可以进行下月工资业务的处理!"
Set conn_seldate = CreateObject("adodb.connection")
conn_seldate.Open connstring
Set rs_seldate = conn_seldate.Execute("select * from Pa_set")
Label2.Caption = "你将把当前年度--月份分别为:" & rs_seldate.Fields!fyear & "年" & rs_seldate.Fields!fperiod & "月" & "结转到下月!"
rs_seldate.Close
conn_seldate.Close

End Sub

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -