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

📄 frmstorequery.frm

📁 this is my first software.
💻 FRM
📖 第 1 页 / 共 4 页
字号:
         Left            =   120
         TabIndex        =   41
         Top             =   840
         Width           =   495
      End
   End
   Begin VB.Frame FrameProduct 
      Caption         =   "网材"
      Height          =   1335
      Index           =   7
      Left            =   120
      TabIndex        =   33
      Top             =   600
      Width           =   4935
      Begin VB.ComboBox ComboColorWang 
         Height          =   300
         Left            =   720
         TabIndex        =   34
         Top             =   600
         Width           =   975
      End
      Begin VB.Label Label38 
         Caption         =   "颜色"
         Height          =   255
         Left            =   120
         TabIndex        =   35
         Top             =   600
         Width           =   495
      End
   End
   Begin VB.Frame FrameProduct 
      Caption         =   "管材"
      Height          =   1335
      Index           =   6
      Left            =   120
      TabIndex        =   26
      Top             =   600
      Width           =   4935
      Begin VB.TextBox txtDanWeiMiShuGuan 
         Height          =   320
         Left            =   600
         TabIndex        =   127
         Top             =   840
         Width           =   975
      End
      Begin VB.ComboBox ComboColorGuan 
         Height          =   300
         Left            =   600
         TabIndex        =   29
         Top             =   360
         Width           =   975
      End
      Begin VB.ComboBox ComboNeiJingGuan 
         Height          =   300
         Left            =   2160
         TabIndex        =   28
         Top             =   360
         Width           =   975
      End
      Begin VB.ComboBox ComboWaiJingGuan 
         Height          =   300
         Left            =   3720
         TabIndex        =   27
         Top             =   360
         Width           =   975
      End
      Begin VB.Label Label51 
         Caption         =   "单位米数"
         Height          =   375
         Left            =   120
         TabIndex        =   126
         Top             =   840
         Width           =   375
      End
      Begin VB.Label Label34 
         Caption         =   "颜色"
         Height          =   255
         Left            =   120
         TabIndex        =   32
         Top             =   360
         Width           =   495
      End
      Begin VB.Label Label35 
         Caption         =   "内径"
         Height          =   255
         Left            =   1680
         TabIndex        =   31
         Top             =   360
         Width           =   495
      End
      Begin VB.Label Label36 
         Caption         =   "外径"
         Height          =   255
         Left            =   3240
         TabIndex        =   30
         Top             =   360
         Width           =   495
      End
   End
   Begin VB.Frame FrameProduct 
      Caption         =   "棒材"
      Height          =   1335
      Index           =   5
      Left            =   120
      TabIndex        =   21
      Top             =   600
      Width           =   4935
      Begin VB.TextBox txtDanWeiMiShuBang 
         Height          =   270
         Left            =   3720
         TabIndex        =   125
         Top             =   600
         Width           =   975
      End
      Begin VB.ComboBox ComboColorBang 
         Height          =   300
         Left            =   600
         TabIndex        =   23
         Top             =   600
         Width           =   975
      End
      Begin VB.ComboBox comboZhiJingBang 
         Height          =   300
         Left            =   2160
         TabIndex        =   22
         Top             =   600
         Width           =   975
      End
      Begin VB.Label Label50 
         Caption         =   "单位米数"
         Height          =   375
         Left            =   3240
         TabIndex        =   124
         Top             =   600
         Width           =   375
      End
      Begin VB.Label Label30 
         Caption         =   "颜色"
         Height          =   255
         Left            =   120
         TabIndex        =   25
         Top             =   600
         Width           =   375
      End
      Begin VB.Label Label31 
         Caption         =   "直径"
         Height          =   255
         Left            =   1680
         TabIndex        =   24
         Top             =   600
         Width           =   375
      End
   End
   Begin VB.Frame FrameProduct 
      Caption         =   "定位包装"
      Height          =   1335
      Index           =   4
      Left            =   120
      TabIndex        =   16
      Top             =   600
      Width           =   4935
      Begin VB.ComboBox comboChangJiaDingWei 
         Height          =   300
         Left            =   600
         TabIndex        =   18
         Top             =   480
         Width           =   975
      End
      Begin VB.ComboBox comboPinZhongDingWei 
         Height          =   300
         Left            =   2160
         TabIndex        =   17
         Top             =   480
         Width           =   975
      End
      Begin VB.Label Label27 
         Caption         =   "厂家"
         Height          =   255
         Left            =   120
         TabIndex        =   20
         Top             =   540
         Width           =   375
      End
      Begin VB.Label Label28 
         Caption         =   "品种"
         Height          =   255
         Left            =   1680
         TabIndex        =   19
         Top             =   480
         Width           =   375
      End
   End
   Begin VB.Frame FrameProduct 
      Caption         =   "淋膜制品"
      Height          =   1335
      Index           =   3
      Left            =   120
      TabIndex        =   11
      Top             =   600
      Width           =   5895
      Begin VB.ComboBox ComboThirdHouDu 
         Height          =   300
         Left            =   4800
         TabIndex        =   114
         Top             =   960
         Width           =   975
      End
      Begin VB.ComboBox ComboThirdName 
         Height          =   300
         Left            =   3720
         TabIndex        =   113
         Top             =   960
         Width           =   975
      End
      Begin VB.ComboBox ComboSecondHouDu 
         Height          =   300
         Left            =   4800
         TabIndex        =   111
         Top             =   600
         Width           =   975
      End
      Begin VB.ComboBox ComboSecondName 
         Height          =   300
         Left            =   3720
         TabIndex        =   110
         Top             =   600
         Width           =   975
      End
      Begin VB.ComboBox ComboFirstHouDu 
         Height          =   300
         Left            =   4800
         TabIndex        =   108
         Top             =   230
         Width           =   975
      End
      Begin VB.ComboBox ComboFirstName 
         Height          =   300
         Left            =   3720
         TabIndex        =   107
         Top             =   230
         Width           =   975
      End
      Begin VB.ComboBox ComboLangthLinMo 
         Height          =   300
         Left            =   480
         TabIndex        =   13
         Top             =   480
         Width           =   975
      End
      Begin VB.ComboBox ComboWidthLinMo 
         Height          =   300
         Left            =   2040
         TabIndex        =   12
         Top             =   480
         Width           =   975
      End
      Begin VB.Label Label49 
         Caption         =   "第三层"
         Height          =   255
         Left            =   3120
         TabIndex        =   112
         Top             =   960
         Width           =   615
      End
      Begin VB.Label Label26 
         Caption         =   "第二层"
         Height          =   255
         Left            =   3120
         TabIndex        =   109
         Top             =   600
         Width           =   615
      End
      Begin VB.Label Label25 
         Caption         =   "第一层"
         Height          =   255
         Left            =   3120
         TabIndex        =   106
         Top             =   230
         Width           =   615
      End
      Begin VB.Label Label23 
         Caption         =   "长度"
         Height          =   255
         Left            =   120
         TabIndex        =   15
         Top             =   480
         Width           =   375
      End
      Begin VB.Label Label24 
         Caption         =   "宽度"
         Height          =   255
         Left            =   1560
         TabIndex        =   14
         Top             =   480
         Width           =   375
      End
   End
   Begin VB.Label Label47 
      Caption         =   "仓库名称"
      Height          =   255
      Left            =   2400
      TabIndex        =   115
      Top             =   195
      Width           =   855
   End
   Begin VB.Label Label46 
      Caption         =   "原料名称"
      ForeColor       =   &H00800000&
      Height          =   255
      Left            =   120
      TabIndex        =   103
      Top             =   2070
      Width           =   735
   End
   Begin VB.Label Label6 
      Caption         =   "产品类型"
      ForeColor       =   &H00800000&
      Height          =   255
      Left            =   120
      TabIndex        =   69
      Top             =   195
      Width           =   735
   End
   Begin VB.Menu mmuSelect 
      Caption         =   "选择查询方式(&S)"
      Begin VB.Menu mmuProduct 
         Caption         =   "查询产品"
      End
      Begin VB.Menu mmuMeteral 
         Caption         =   "查询原料"
      End
   End
End
Attribute VB_Name = "frmStoreQuery"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private SQL As String
Private Sub SetDataGrid()
    AdodcArg.ConnectionString = connectString
    AdodcArg.RecordSource = SQL
    Set DataGridArg.DataSource = AdodcArg
    AdodcArg.Refresh
End Sub
Private Sub cmdCancle_Click()
    Unload Me
End Sub



Private Sub AdodcArg_MoveComplete(ByVal adReason As ADODB.EventReasonEnum, ByVal pError As ADODB.Error, adStatus As ADODB.EventStatusEnum, ByVal pRecordset As ADODB.Recordset)
    If AdodcArg.Recordset.BOF Or AdodcArg.Recordset.EOF Then
        AdodcArg.Caption = "记录:0"
    Else
        AdodcArg.Caption = "记录:" & (AdodcArg.Recordset.AbsolutePosition)
    End If


End Sub

Private Sub cmdMeteralQuery_Click()
    If ComboMeteral.Text = "" Then
        MsgBox "请选择原料名称!", , "提示"
        Exit Sub
    End If
    Select Case ComboMeteral.Text
    Case "低压膜":
        SQL = "select 长度,宽度,厚度,颜色,数量 from 低压膜库存表 where 数量 > 0"
        If ComboLangthDiYa.Text <> "" Then
            SQL = SQL & " and 长度 = '" & ComboLangthDiYa.Text & "'"
        End If
        If ComboWidthDiYa.Text <> "" Then
            SQL = SQL & " and 宽度 = '" & ComboWidthDiYa.Text & "'"
        End If
        If ComboHouDuDiYa.Text <> "" Then
            SQL = SQL & " and 厚度 = '" & ComboHouDuDiYa.Text & "'"
        End If
        If ComboColorDiYa.Text <> "" Then
            SQL = SQL & " and 颜色 = '" & ComboColorDiYa.Text & "'"
        End If
    Case "高压膜":
        SQL = "select 长度,宽度,厚度,颜色,数量 from 高压膜库存表 where 数量 > 0"
        If ComboLangthGaoYa.Text <> "" Then
            SQL = SQL & " and 长度 = '" & ComboLangthGaoYa.Text & "'"
        End If
        If ComboWidthGaoYa.Text <> "" Then
            SQL = SQL & " and 宽度 = '" & ComboWidthGaoYa.Text & "'"
        End If
        If ComboHouDuGaoYa.Text <> "" Then
            SQL = SQL & " and 厚度 = '" & ComboHouDuGaoYa.Text & "'"
        End If
        If ComboColorGaoYa.Text <> "" Then
            SQL = SQL & " and 颜色 = '" & ComboColorGaoYa.Text & "'"
        End If
    Case "彩印膜":

⌨️ 快捷键说明

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