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

📄 dialogzgfind.frm

📁 这是一个人事管理软件
💻 FRM
字号:
VERSION 5.00
Object = "{67397AA1-7FB1-11D0-B148-00A0C922E820}#6.0#0"; "Msadodc.OCX"
Begin VB.Form Dialogzgfind 
   BorderStyle     =   3  'Fixed Dialog
   Caption         =   "对话框标题"
   ClientHeight    =   3120
   ClientLeft      =   2760
   ClientTop       =   3750
   ClientWidth     =   6345
   LinkTopic       =   "Form1"
   MaxButton       =   0   'False
   MinButton       =   0   'False
   ScaleHeight     =   3120
   ScaleWidth      =   6345
   ShowInTaskbar   =   0   'False
   Begin VB.TextBox Textjobid 
      Height          =   270
      Left            =   4440
      TabIndex        =   17
      Top             =   1800
      Visible         =   0   'False
      Width           =   975
   End
   Begin VB.CommandButton Command2 
      Caption         =   "…"
      Height          =   255
      Left            =   3240
      TabIndex        =   16
      Top             =   840
      Width           =   255
   End
   Begin VB.TextBox Textjobname 
      Height          =   270
      Left            =   2040
      TabIndex        =   15
      Top             =   840
      Width           =   1215
   End
   Begin VB.TextBox Textbmid 
      Height          =   270
      Left            =   4440
      TabIndex        =   13
      Top             =   1200
      Visible         =   0   'False
      Width           =   975
   End
   Begin VB.CommandButton Command1 
      Caption         =   "…"
      Height          =   255
      Left            =   3480
      TabIndex        =   12
      Top             =   1320
      Width           =   255
   End
   Begin VB.TextBox Textbmname 
      Height          =   270
      Left            =   2040
      TabIndex        =   11
      Top             =   1320
      Width           =   1455
   End
   Begin MSAdodcLib.Adodc Adodc1 
      Height          =   330
      Left            =   2760
      Top             =   2520
      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 VB.TextBox Textdate2 
      Height          =   270
      Left            =   2040
      TabIndex        =   10
      Top             =   2160
      Width           =   1335
   End
   Begin VB.TextBox Textdate1 
      Height          =   270
      Left            =   2040
      TabIndex        =   8
      Top             =   1800
      Width           =   1335
   End
   Begin VB.TextBox Textzgname 
      Height          =   270
      Left            =   2040
      TabIndex        =   7
      Top             =   480
      Width           =   1335
   End
   Begin MSAdodcLib.Adodc Adczg 
      Height          =   330
      Left            =   720
      Top             =   2520
      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.TextBox Textzgid 
      Height          =   270
      Left            =   2040
      TabIndex        =   2
      Top             =   120
      Width           =   1335
   End
   Begin VB.CommandButton CancelButton 
      Caption         =   "返回"
      Height          =   375
      Left            =   4200
      TabIndex        =   1
      Top             =   600
      Width           =   855
   End
   Begin VB.CommandButton OKButton 
      Caption         =   "确定"
      Height          =   375
      Left            =   4200
      TabIndex        =   0
      Top             =   120
      Width           =   855
   End
   Begin VB.Label Label6 
      Caption         =   "职务"
      Height          =   255
      Left            =   1440
      TabIndex        =   14
      Top             =   840
      Width           =   495
   End
   Begin VB.Label Label5 
      Caption         =   "入厂结束日期"
      Height          =   255
      Left            =   840
      TabIndex        =   9
      Top             =   2160
      Width           =   1095
   End
   Begin VB.Label Label4 
      Caption         =   "入厂开始日期"
      Height          =   255
      Left            =   840
      TabIndex        =   6
      Top             =   1800
      Width           =   1095
   End
   Begin VB.Label Label3 
      Caption         =   "部门"
      Height          =   255
      Left            =   1440
      TabIndex        =   5
      Top             =   1320
      Width           =   375
   End
   Begin VB.Label Label2 
      Caption         =   "姓名"
      Height          =   255
      Left            =   1440
      TabIndex        =   4
      Top             =   480
      Width           =   375
   End
   Begin VB.Label Label1 
      Caption         =   "请输入查询工号"
      Height          =   255
      Left            =   600
      TabIndex        =   3
      Top             =   120
      Width           =   1335
   End
End
Attribute VB_Name = "Dialogzgfind"
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()
Dialogbm4.Show
End Sub

Private Sub Command2_Click()
Dialogjob2.Show
End Sub

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

⌨️ 快捷键说明

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