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

📄 main_htxy.frm

📁 本软件可适用于各大、中、小型企业的人力资源管理。
💻 FRM
字号:
VERSION 5.00
Object = "{86CF1D34-0C5F-11D2-A9FC-0000F8754DA1}#2.0#0"; "MSCOMCT2.OCX"
Begin VB.Form main_htxy 
   BorderStyle     =   1  'Fixed Single
   Caption         =   "续约"
   ClientHeight    =   2430
   ClientLeft      =   45
   ClientTop       =   330
   ClientWidth     =   4665
   LinkTopic       =   "Form1"
   MaxButton       =   0   'False
   MinButton       =   0   'False
   ScaleHeight     =   2430
   ScaleWidth      =   4665
   StartUpPosition =   2  '屏幕中心
   Begin VB.CommandButton Command2 
      Caption         =   "取消"
      Height          =   390
      Left            =   2415
      TabIndex        =   8
      Top             =   1890
      Width           =   1440
   End
   Begin VB.CommandButton Command1 
      Caption         =   "确定"
      Height          =   390
      Left            =   825
      TabIndex        =   7
      Top             =   1890
      Width           =   1440
   End
   Begin VB.Frame Frame1 
      Height          =   1785
      Left            =   15
      TabIndex        =   0
      Top             =   -45
      Width           =   4635
      Begin VB.TextBox Text1 
         Height          =   330
         Left            =   1515
         TabIndex        =   6
         Top             =   1320
         Width           =   2640
      End
      Begin MSComCtl2.DTPicker DTP1 
         Height          =   345
         Left            =   1830
         TabIndex        =   2
         Top             =   240
         Width           =   2640
         _ExtentX        =   4657
         _ExtentY        =   609
         _Version        =   393216
         Format          =   48168961
         CurrentDate     =   39794
      End
      Begin MSComCtl2.DTPicker DTP2 
         Height          =   345
         Left            =   1830
         TabIndex        =   3
         Top             =   705
         Width           =   2640
         _ExtentX        =   4657
         _ExtentY        =   609
         _Version        =   393216
         Format          =   48168961
         CurrentDate     =   39794
      End
      Begin VB.Label Label3 
         Caption         =   "合同期限:                               年"
         Height          =   255
         Left            =   555
         TabIndex        =   5
         Top             =   1395
         Width           =   3960
      End
      Begin VB.Label Label2 
         Caption         =   "(至)"
         Height          =   195
         Left            =   1380
         TabIndex        =   4
         Top             =   825
         Width           =   360
      End
      Begin VB.Label Label1 
         Caption         =   "合同续约日期:(从)"
         Height          =   225
         Left            =   120
         TabIndex        =   1
         Top             =   330
         Width           =   2385
      End
   End
End
Attribute VB_Name = "main_htxy"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Command1_Click()
  Cnn.Execute ("update 合同表 set 合同开始日期='" + str(DTP1.Value) + "',合同结束日期='" + str(DTP2.Value) + "',合同期限=" + Text1 + ",状态='生效'where 合同编号='" + main_rsgl_htgl.DataGrid1.Columns(2) + "'")
  main_rsgl_htgl.Adodc1.Refresh
  Unload Me
End Sub
Private Sub Command2_Click()
  Unload Me
End Sub
Private Sub DTP1_Change()
  Text1 = DateDiff("yyyy", DTP1.Value, DTP2.Value)
End Sub
Private Sub DTP2_Change()
 Text1 = DateDiff("yyyy", DTP1.Value, DTP2.Value)
End Sub
Private Sub Form_Load()
  DTP1.Value = Date
  DTP2.Value = Date
End Sub

⌨️ 快捷键说明

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