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

📄 dialogfind2.frm

📁 这是一个人事管理软件
💻 FRM
字号:
VERSION 5.00
Object = "{67397AA1-7FB1-11D0-B148-00A0C922E820}#6.0#0"; "MSADODC.OCX"
Object = "{F0D2F211-CCB0-11D0-A316-00AA00688B10}#1.0#0"; "MSDATLST.OCX"
Begin VB.Form Dialogfind2 
   BorderStyle     =   3  'Fixed Dialog
   Caption         =   "查询条件"
   ClientHeight    =   4110
   ClientLeft      =   2760
   ClientTop       =   3750
   ClientWidth     =   6030
   LinkTopic       =   "Form1"
   MaxButton       =   0   'False
   MinButton       =   0   'False
   ScaleHeight     =   4110
   ScaleWidth      =   6030
   ShowInTaskbar   =   0   'False
   Begin VB.TextBox Textdate2 
      Height          =   270
      Left            =   3360
      TabIndex        =   6
      Top             =   1680
      Width           =   1455
   End
   Begin VB.TextBox Textdate1 
      Height          =   270
      Left            =   1800
      TabIndex        =   5
      Top             =   1680
      Width           =   1335
   End
   Begin VB.TextBox Textcustomer 
      Height          =   270
      Left            =   1800
      TabIndex        =   4
      Top             =   960
      Width           =   1455
   End
   Begin VB.TextBox Textcode 
      Height          =   270
      Left            =   1800
      TabIndex        =   3
      Top             =   480
      Width           =   1455
   End
   Begin VB.CommandButton CancelButton 
      Caption         =   "取消"
      Height          =   375
      Left            =   4680
      TabIndex        =   1
      Top             =   600
      Width           =   1215
   End
   Begin VB.CommandButton OKButton 
      Caption         =   "确定"
      Height          =   375
      Left            =   4680
      TabIndex        =   0
      Top             =   120
      Width           =   1215
   End
   Begin MSDataListLib.DataCombo DC1 
      Bindings        =   "Dialogfind2.frx":0000
      Height          =   330
      Left            =   1800
      TabIndex        =   2
      Top             =   2400
      Width           =   1695
      _ExtentX        =   2990
      _ExtentY        =   582
      _Version        =   393216
      ListField       =   "usename"
      Text            =   ""
   End
   Begin MSAdodcLib.Adodc Adodc1 
      Height          =   330
      Left            =   1200
      Top             =   3000
      Visible         =   0   'False
      Width           =   2055
      _ExtentX        =   3625
      _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=SQLOLEDB.1;Persist Security Info=False;User ID=sa;Initial Catalog=gonsi;Data Source=SERVER"
      OLEDBString     =   "Provider=SQLOLEDB.1;Persist Security Info=False;User ID=sa;Initial Catalog=gonsi;Data Source=SERVER"
      OLEDBFile       =   ""
      DataSourceName  =   ""
      OtherAttributes =   ""
      UserName        =   ""
      Password        =   ""
      RecordSource    =   "tuser"
      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.Label Label5 
      Caption         =   "--"
      BeginProperty Font 
         Name            =   "宋体"
         Size            =   9
         Charset         =   134
         Weight          =   700
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      ForeColor       =   &H000000FF&
      Height          =   255
      Left            =   3120
      TabIndex        =   11
      Top             =   1680
      Width           =   255
   End
   Begin VB.Label Label4 
      Caption         =   "制定人"
      BeginProperty Font 
         Name            =   "宋体"
         Size            =   9
         Charset         =   134
         Weight          =   700
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      ForeColor       =   &H8000000D&
      Height          =   255
      Left            =   960
      TabIndex        =   10
      Top             =   2400
      Width           =   735
   End
   Begin VB.Label Label3 
      Caption         =   "制定日期"
      BeginProperty Font 
         Name            =   "宋体"
         Size            =   9
         Charset         =   134
         Weight          =   700
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      ForeColor       =   &H8000000D&
      Height          =   255
      Left            =   960
      TabIndex        =   9
      Top             =   1680
      Width           =   975
   End
   Begin VB.Label Label2 
      Caption         =   "客户"
      BeginProperty Font 
         Name            =   "宋体"
         Size            =   9
         Charset         =   134
         Weight          =   700
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      ForeColor       =   &H8000000D&
      Height          =   255
      Left            =   960
      TabIndex        =   8
      Top             =   960
      Width           =   735
   End
   Begin VB.Label Label1 
      Caption         =   "编号"
      BeginProperty Font 
         Name            =   "宋体"
         Size            =   9
         Charset         =   134
         Weight          =   700
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      ForeColor       =   &H8000000D&
      Height          =   255
      Left            =   960
      TabIndex        =   7
      Top             =   480
      Width           =   615
   End
End
Attribute VB_Name = "Dialogfind2"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Option Explicit
Dim vcode, vcustomer, vdate1, vdate2, vcode2, vusename
Private Sub CancelButton_Click()
Unload Me
End Sub

Private Sub OKButton_Click()
vcode = Textcode.Text
vusename = DC1.Text
vdate1 = Textdate1.Text
vdate2 = Textdate2.Text
vcustomer = Textcustomer.Text
If Textcode.Text = "" And Textcustomer.Text = "" And Textdate1.Text = "" And Textdate2.Text = "" And DC1.Text = "" Then
Formmain.Adodc1.RecordSource = "select * from gonsim where code<>''"
Formmain.Adodc1.Refresh
If Not Formmain.Adodc1.Recordset.EOF Then
vcode2 = Formmain.Adodc1.Recordset.Fields("code").Value

'Formsearth.Adodc2.RecordSource = "select * from gonsid where code='" & vcode2 & "'"
'Formsearth.Adodc2.Refresh
End If
Else
Formmain.Adodc1.RecordSource = "select * from gonsim where usename='" & vusename & "'" 'code='" & vcode & "'or customer='" & vcustomer & "'or (writedate>='" & vdate1 & "'and writedate<='" & vdate2 & "') or usename='" & vusename & "'"
Formmain.Adodc1.Refresh
'If Not Formsearth.Adodc1.Recordset.EOF Then
'vcode2 = Formsearth.Adodc1.Recordset.Fields("code").Value
'Formsearth.Adodc2.RecordSource = "select * from gonsid where code='" & vcode2 & "'"
'Formsearth.Adodc2.Refresh
'End If
End If
Formmain.Show
Dialogfind.Hide
End Sub

⌨️ 快捷键说明

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