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

📄 czskd.frm

📁 关于图书销售管理
💻 FRM
字号:
VERSION 5.00
Begin VB.Form czskd 
   Caption         =   "查找收款单"
   ClientHeight    =   3075
   ClientLeft      =   3540
   ClientTop       =   3225
   ClientWidth     =   4755
   Icon            =   "czskd.frx":0000
   LinkTopic       =   "Form1"
   MaxButton       =   0   'False
   MinButton       =   0   'False
   ScaleHeight     =   3075
   ScaleWidth      =   4755
   Begin VB.Frame Frame1 
      Height          =   3015
      Left            =   0
      TabIndex        =   0
      Top             =   0
      Width           =   4695
      Begin VB.Frame Frame3 
         Caption         =   "查询内容"
         BeginProperty Font 
            Name            =   "宋体"
            Size            =   10.5
            Charset         =   134
            Weight          =   400
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         ForeColor       =   &H00FF0000&
         Height          =   855
         Left            =   2160
         TabIndex        =   12
         Top             =   1320
         Width           =   2415
         Begin VB.TextBox Text1 
            BackColor       =   &H00FFFFFF&
            BeginProperty Font 
               Name            =   "宋体"
               Size            =   12
               Charset         =   134
               Weight          =   400
               Underline       =   0   'False
               Italic          =   0   'False
               Strikethrough   =   0   'False
            EndProperty
            ForeColor       =   &H00000000&
            Height          =   375
            Left            =   240
            TabIndex        =   13
            Top             =   360
            Width           =   1935
         End
      End
      Begin VB.Frame Frame5 
         Caption         =   "查询条件"
         BeginProperty Font 
            Name            =   "宋体"
            Size            =   10.5
            Charset         =   134
            Weight          =   400
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         ForeColor       =   &H00FF0000&
         Height          =   855
         Left            =   2160
         TabIndex        =   10
         Top             =   240
         Width           =   2415
         Begin VB.ComboBox Combo1 
            BackColor       =   &H00FFFFFF&
            BeginProperty Font 
               Name            =   "宋体"
               Size            =   12
               Charset         =   134
               Weight          =   400
               Underline       =   0   'False
               Italic          =   0   'False
               Strikethrough   =   0   'False
            EndProperty
            ForeColor       =   &H00000000&
            Height          =   360
            ItemData        =   "czskd.frx":0442
            Left            =   600
            List            =   "czskd.frx":044F
            TabIndex        =   11
            Text            =   "等于"
            Top             =   360
            Width           =   1455
         End
      End
      Begin VB.CommandButton Command1 
         Caption         =   "确定(&O)"
         BeginProperty Font 
            Name            =   "宋体"
            Size            =   12
            Charset         =   134
            Weight          =   400
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         Height          =   495
         Left            =   2160
         TabIndex        =   9
         Top             =   2400
         Width           =   1095
      End
      Begin VB.CommandButton Command2 
         Caption         =   "取消(&C)"
         BeginProperty Font 
            Name            =   "宋体"
            Size            =   12
            Charset         =   134
            Weight          =   400
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         Height          =   495
         Left            =   3480
         TabIndex        =   8
         Top             =   2400
         Width           =   1095
      End
      Begin VB.Frame Frame4 
         Caption         =   "查询主题"
         BeginProperty Font 
            Name            =   "宋体"
            Size            =   10.5
            Charset         =   134
            Weight          =   400
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         ForeColor       =   &H00FF0000&
         Height          =   2655
         Left            =   120
         TabIndex        =   1
         Top             =   240
         Width           =   1815
         Begin VB.OptionButton Option5 
            Caption         =   "经手人"
            BeginProperty Font 
               Name            =   "宋体"
               Size            =   12
               Charset         =   134
               Weight          =   400
               Underline       =   0   'False
               Italic          =   0   'False
               Strikethrough   =   0   'False
            EndProperty
            ForeColor       =   &H00000000&
            Height          =   255
            Left            =   240
            TabIndex        =   7
            Top             =   2160
            Width           =   1335
         End
         Begin VB.OptionButton Option4 
            Caption         =   "收款日期"
            BeginProperty Font 
               Name            =   "宋体"
               Size            =   12
               Charset         =   134
               Weight          =   400
               Underline       =   0   'False
               Italic          =   0   'False
               Strikethrough   =   0   'False
            EndProperty
            ForeColor       =   &H00000000&
            Height          =   240
            Left            =   240
            TabIndex        =   6
            Top             =   1440
            Width           =   1335
         End
         Begin VB.OptionButton Option3 
            Caption         =   "余额"
            BeginProperty Font 
               Name            =   "宋体"
               Size            =   12
               Charset         =   134
               Weight          =   400
               Underline       =   0   'False
               Italic          =   0   'False
               Strikethrough   =   0   'False
            EndProperty
            ForeColor       =   &H00000000&
            Height          =   495
            Left            =   240
            TabIndex        =   5
            Top             =   960
            Width           =   1095
         End
         Begin VB.OptionButton Option2 
            Caption         =   "应收帐款"
            BeginProperty Font 
               Name            =   "宋体"
               Size            =   12
               Charset         =   134
               Weight          =   400
               Underline       =   0   'False
               Italic          =   0   'False
               Strikethrough   =   0   'False
            EndProperty
            ForeColor       =   &H00000000&
            Height          =   255
            Left            =   240
            TabIndex        =   4
            Top             =   720
            Width           =   1335
         End
         Begin VB.OptionButton Option1 
            Caption         =   "订单编号"
            BeginProperty Font 
               Name            =   "宋体"
               Size            =   12
               Charset         =   134
               Weight          =   400
               Underline       =   0   'False
               Italic          =   0   'False
               Strikethrough   =   0   'False
            EndProperty
            ForeColor       =   &H00000000&
            Height          =   255
            Index           =   0
            Left            =   240
            TabIndex        =   3
            Top             =   360
            Width           =   1335
         End
         Begin VB.OptionButton Option1 
            Caption         =   "实收帐款"
            BeginProperty Font 
               Name            =   "宋体"
               Size            =   12
               Charset         =   134
               Weight          =   400
               Underline       =   0   'False
               Italic          =   0   'False
               Strikethrough   =   0   'False
            EndProperty
            ForeColor       =   &H00000000&
            Height          =   240
            Index           =   3
            Left            =   240
            TabIndex        =   2
            Top             =   1800
            Width           =   1335
         End
      End
   End
End
Attribute VB_Name = "czskd"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Public a As Integer

Private Sub Command1_Click()
   Dim oIndex As Integer
   If Option1(0).Value = True Then
       oIndex = 0
      
   End If
   If Option4.Value = True Then
      oIndex = 1
  
   End If
   If Option2.Value = True Then
       oIndex = 2
      
   End If
   If Option1(3).Value = True Then oIndex = 3
   If Option3.Value = True Then oIndex = 4
   If Option5.Value = True Then oIndex = 5
   'If Option4.Value = True Then oIndex = 6
   
   '查找职员
    Select Case oIndex
          Case 0
              yszk1.Data1.RecordSource = "select * from xhskd where " & "skdbh" & " = '" & Trim(Text1.Text) & "'"
             ' xhdcl.Adodc1.RecordSource = "select * from xhdsp where " & "ddbh" & " = '" & Trim(Text1.Text) & "'"
          'Case 1
              ' xhdcl.Data2.RecordSource = "select * from spdhd where " & "spbh" & " = '" & Trim(Text1.Text) & "'"
                'xhdcl.Adodc1.RecordSource = "select  spbh,ddbh,gg,ys,dj,sl,ysje,zk,bz from xhdsp where " & "spbh" & " = '" & Trim(Text1.Text) & "'"
              '  xhdcl.Adodc1.Refresh
                 
                  

         Case 1
                  If Combo1.Text = "等于" Then
                        yszk1.Data1.RecordSource = "select * from xhskd where " & "skrq " & " =  #" & Format(CDate(Trim(Text1.Text)), "mmm d yyyy") & "#"
                  End If
                  If Combo1.Text = "大于" Then
                       yszk1.Data1.RecordSource = "select * from xhskd where " & "skrq" & "  >   #" & Format(CDate(Trim(Text1.Text)), "mmm d yyyy") & "#"
                  End If
                  If Combo1.Text = "小于" Then
                       yszk1.Data1.RecordSource = "select * from xhskd where " & "skrq" & "  <    #" & Format(CDate(Text1.Text), "mmm d yyyy") & "#"
                   End If
        Case 2
                    If Combo1.Text = "等于" Then
                        yszk1.Data1.RecordSource = "select * from xhskd where " & "yszk " & " =  " & Val(Text1.Text)
                    End If
                     If Combo1.Text = "大于" Then
                       yszk1.Data1.RecordSource = "select * from xhskd where " & "yszk" & "  >   " & Val(Text1.Text)
                  End If
                  If Combo1.Text = "小于" Then
                       yszk1.Data1.RecordSource = "select * from xhskd where " & "yszk" & "  <    " & Val(Text1.Text)
                  End If
        Case 3
                    If Combo1.Text = "等于" Then
                        yszk1.Data1.RecordSource = "select * from xhskd where " & "sszk " & " =  " & Val(Text1.Text)
                  End If
                  If Combo1.Text = "大于" Then
                       yszk1.Data1.RecordSource = "select * from xhskd where " & "sszk" & "  >   " & Val(Text1.Text)
                  End If
                  If Combo1.Text = "小于" Then
                       yszk1.Data1.RecordSource = "select * from xhskd where " & "sszk" & "  <    " & Val(Text1.Text)
                  End If

        Case 4
                  If Combo1.Text = "等于" Then
                        yszk1.Data1.RecordSource = "select * from xhskd where " & "ye " & " =  " & Val(Text1.Text)
                  End If
                  If Combo1.Text = "大于" Then
                       yszk1.Data1.RecordSource = "select * from xhskd where " & "ye" & "  >   " & Val(Text1.Text)
                  End If
                  If Combo1.Text = "小于" Then
                       yszk1.Data1.RecordSource = "select * from xhskd where " & "ye" & "  <   " & Val(Text1.Text)
                  End If
         Case 5
               yszk1.Data1.RecordSource = "select * from xhskd where " & "jsr" & " = '" & Trim(Text1.Text) & "'"
       
                  
    
    End Select
       yszk1.Show
         
    yszk1.Data1.Refresh
   If yszk1.Data1.Recordset.BOF = True Then
               MsgBox "没有找到符合条件的记录。", vbInformation, "提示"
                Unload Me
                
         Else

                    yszk1.Data1.Recordset.MoveFirst
                     yszk1.Data1.Recordset.MoveLast
                     l = yszk1.Data1.Recordset.RecordCount
                      yszk1.StatusBar1.Panels(3).Text = "共找到符合条件的订单 " & l & " 张"
                    yszk1.Show
               
    End If
'spdhd1.Data2.Recordset.MoveFirst
Unload Me
'Combo1.Enabled = True
End Sub

Private Sub Command2_Click()
yszk1.Data1.RecordSource = "select * from xhskd"
yszk1.Data1.Refresh
'zyxx.Show
'Combo1.Enabled = True
 yszk1.Show
Unload Me
End Sub

Private Sub Option1_Click(Index As Integer)
If Option1(0).Value = True Then Combo1.Enabled = False
'If Option1(1).Value = True Then Combo1.Enabled = False
'If Option1(2).Value = True Then Combo1.Enabled = False
If Option1(3).Value = True Then Combo1.Enabled = True



End Sub

Private Sub Option2_Click()
If Option2.Value = True Then Combo1.Enabled = True

End Sub

Private Sub Option3_Click()
Combo1.Enabled = True
End Sub

Private Sub Option4_Click()
If Option4.Value = True Then Combo1.Enabled = True
End Sub

Private Sub Option5_Click()
 Combo1.Enabled = False

End Sub

⌨️ 快捷键说明

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