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

📄 dialogzs.frm

📁 这是一个人事管理软件
💻 FRM
字号:
VERSION 5.00
Object = "{67397AA1-7FB1-11D0-B148-00A0C922E820}#6.0#0"; "MSADODC.OCX"
Begin VB.Form Dialogzs 
   BorderStyle     =   3  'Fixed Dialog
   Caption         =   "住宿人员查询"
   ClientHeight    =   3195
   ClientLeft      =   2760
   ClientTop       =   3750
   ClientWidth     =   6030
   LinkTopic       =   "Form1"
   MaxButton       =   0   'False
   MinButton       =   0   'False
   ScaleHeight     =   3195
   ScaleWidth      =   6030
   ShowInTaskbar   =   0   'False
   Begin VB.TextBox Textdate2 
      Height          =   270
      Left            =   2160
      TabIndex        =   17
      Top             =   2280
      Width           =   1335
   End
   Begin VB.CommandButton OKButton 
      Caption         =   "确定"
      Height          =   375
      Left            =   4320
      TabIndex        =   10
      Top             =   240
      Width           =   855
   End
   Begin VB.CommandButton CancelButton 
      Caption         =   "返回"
      Height          =   375
      Left            =   4320
      TabIndex        =   9
      Top             =   720
      Width           =   855
   End
   Begin VB.TextBox Textzgid 
      Height          =   270
      Left            =   2160
      TabIndex        =   8
      Top             =   240
      Width           =   1335
   End
   Begin VB.TextBox Textzgname 
      Height          =   270
      Left            =   2160
      TabIndex        =   7
      Top             =   600
      Width           =   1335
   End
   Begin VB.TextBox Textdate1 
      Height          =   270
      Left            =   2160
      TabIndex        =   6
      Top             =   1920
      Width           =   1335
   End
   Begin VB.TextBox Textbmname 
      Height          =   270
      Left            =   2160
      TabIndex        =   5
      Top             =   1440
      Width           =   1455
   End
   Begin VB.CommandButton Command1 
      Caption         =   "…"
      Height          =   255
      Left            =   3600
      TabIndex        =   4
      Top             =   1440
      Width           =   255
   End
   Begin VB.TextBox Textbmid 
      Height          =   270
      Left            =   4560
      TabIndex        =   3
      Top             =   1320
      Width           =   975
   End
   Begin VB.TextBox Textjobname 
      Height          =   270
      Left            =   2160
      TabIndex        =   2
      Top             =   960
      Width           =   1215
   End
   Begin VB.CommandButton Command2 
      Caption         =   "…"
      Height          =   255
      Left            =   3360
      TabIndex        =   1
      Top             =   960
      Width           =   255
   End
   Begin VB.TextBox Textjobid 
      Height          =   270
      Left            =   4560
      TabIndex        =   0
      Top             =   1920
      Width           =   975
   End
   Begin MSAdodcLib.Adodc Adodc1 
      Height          =   330
      Left            =   2880
      Top             =   2640
      Visible         =   0   'False
      Width           =   2055
      _ExtentX        =   3625
      _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         =   "Provider=SQLOLEDB.1;Persist Security Info=False;User ID=sa;Initial Catalog=hgrs;Data Source=SERVER"
      OLEDBString     =   "Provider=SQLOLEDB.1;Persist Security Info=False;User ID=sa;Initial Catalog=hgrs;Data Source=SERVER"
      OLEDBFile       =   ""
      DataSourceName  =   ""
      OtherAttributes =   ""
      UserName        =   ""
      Password        =   ""
      RecordSource    =   "tbm"
      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 MSAdodcLib.Adodc Adczg 
      Height          =   330
      Left            =   840
      Top             =   2640
      Visible         =   0   'False
      Width           =   2055
      _ExtentX        =   3625
      _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         =   "Provider=SQLOLEDB.1;Persist Security Info=False;User ID=sa;Initial Catalog=hgrs;Data Source=SERVER"
      OLEDBString     =   "Provider=SQLOLEDB.1;Persist Security Info=False;User ID=sa;Initial Catalog=hgrs;Data Source=SERVER"
      OLEDBFile       =   ""
      DataSourceName  =   ""
      OtherAttributes =   ""
      UserName        =   ""
      Password        =   ""
      RecordSource    =   "tzg"
      Caption         =   "Adczg"
      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.Label Label5 
      Caption         =   "结束日期"
      Height          =   255
      Left            =   1200
      TabIndex        =   16
      Top             =   2280
      Width           =   855
   End
   Begin VB.Label Label1 
      Caption         =   "请输入查询工号"
      Height          =   255
      Left            =   720
      TabIndex        =   15
      Top             =   240
      Width           =   1335
   End
   Begin VB.Label Label2 
      Caption         =   "姓名"
      Height          =   255
      Left            =   1560
      TabIndex        =   14
      Top             =   600
      Width           =   375
   End
   Begin VB.Label Label3 
      Caption         =   "部门"
      Height          =   255
      Left            =   1560
      TabIndex        =   13
      Top             =   1440
      Width           =   375
   End
   Begin VB.Label Label4 
      Caption         =   "开始日期"
      Height          =   255
      Left            =   1200
      TabIndex        =   12
      Top             =   1920
      Width           =   735
   End
   Begin VB.Label Label6 
      Caption         =   "职务"
      Height          =   255
      Left            =   1560
      TabIndex        =   11
      Top             =   960
      Width           =   495
   End
End
Attribute VB_Name = "Dialogzs"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False

Option Explicit

Private Sub CancelButton_Click()
Unload Me
End Sub

Private Sub Combo1_Change()

End Sub

Private Sub Command1_Click()
Dialogbm6.Show
End Sub

Private Sub Command2_Click()
Dialogjob4.Show
End Sub

Private Sub OKButton_Click()
Dim vzgid, vzgname, vbmid, vdate1, vjobid, vdate2
vzgid = Textzgid.Text
vzgname = Textzgname.Text
vbmid = Textbmid.Text
vdate1 = Textdate1.Text
vdate2 = Textdate2.Text
vjobid = Textjobid.Text
Formzs.Adczsred.RecordSource = "select * from zsred where zgid='" & vzgid & "'or zgname='" & vzgname & "'or bmid='" & vbmid & "'or (sdate>='" & vdate1 & "' and sdate<='" & vdate2 & "') or jobid='" & vjobid & "'"
Formzs.Adczsred.Refresh
If Formzs.Adczsred.Recordset.EOF Then
Formzs.Textcount.Text = 0
Else
Formzs.Textcount.Text = Formzs.Adczsred.Recordset.RecordCount
End If
End Sub


⌨️ 快捷键说明

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