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

📄 frmproductquery.frm

📁 VB礼品店销售管理系统 包括ACCESS数据库访问职工管理 账单管理
💻 FRM
📖 第 1 页 / 共 2 页
字号:
            FirstWeekOfYear =   0
            LCID            =   2052
            SubFormatType   =   0
         EndProperty
      EndProperty
      BeginProperty Column05 
         DataField       =   "JinhuoPrice"
         Caption         =   " 进货价格"
         BeginProperty DataFormat {6D835690-900B-11D0-9484-00A0C91110ED} 
            Type            =   1
            Format          =   """¥""#,##0.00"
            HaveTrueFalseNull=   0
            FirstDayOfWeek  =   0
            FirstWeekOfYear =   0
            LCID            =   2052
            SubFormatType   =   0
         EndProperty
      EndProperty
      BeginProperty Column06 
         DataField       =   "MarketPrice"
         Caption         =   " 市场定价"
         BeginProperty DataFormat {6D835690-900B-11D0-9484-00A0C91110ED} 
            Type            =   1
            Format          =   """¥""#,##0.00"
            HaveTrueFalseNull=   0
            FirstDayOfWeek  =   0
            FirstWeekOfYear =   0
            LCID            =   2052
            SubFormatType   =   0
         EndProperty
      EndProperty
      BeginProperty Column07 
         DataField       =   "LowestPrice"
         Caption         =   "最低售价"
         BeginProperty DataFormat {6D835690-900B-11D0-9484-00A0C91110ED} 
            Type            =   1
            Format          =   """¥""#,##0.00"
            HaveTrueFalseNull=   0
            FirstDayOfWeek  =   0
            FirstWeekOfYear =   0
            LCID            =   2052
            SubFormatType   =   0
         EndProperty
      EndProperty
      BeginProperty Column08 
         DataField       =   "Picture"
         Caption         =   "   显示图片"
         BeginProperty DataFormat {6D835690-900B-11D0-9484-00A0C91110ED} 
            Type            =   0
            Format          =   ""
            HaveTrueFalseNull=   0
            FirstDayOfWeek  =   0
            FirstWeekOfYear =   0
            LCID            =   2052
            SubFormatType   =   0
         EndProperty
      EndProperty
      BeginProperty Column09 
         DataField       =   "InstockTime"
         Caption         =   "       入库时间"
         BeginProperty DataFormat {6D835690-900B-11D0-9484-00A0C91110ED} 
            Type            =   0
            Format          =   ""
            HaveTrueFalseNull=   0
            FirstDayOfWeek  =   0
            FirstWeekOfYear =   0
            LCID            =   2052
            SubFormatType   =   0
         EndProperty
      EndProperty
      SplitCount      =   1
      BeginProperty Split0 
         BeginProperty Column00 
            Alignment       =   2
            ColumnWidth     =   1289.764
         EndProperty
         BeginProperty Column01 
            Alignment       =   2
            ColumnWidth     =   1349.858
         EndProperty
         BeginProperty Column02 
            Alignment       =   2
            ColumnWidth     =   1289.764
         EndProperty
         BeginProperty Column03 
            Alignment       =   2
            ColumnWidth     =   1035.213
         EndProperty
         BeginProperty Column04 
            Alignment       =   2
            ColumnWidth     =   1049.953
         EndProperty
         BeginProperty Column05 
            Alignment       =   2
            ColumnWidth     =   1244.976
         EndProperty
         BeginProperty Column06 
            Alignment       =   2
            ColumnWidth     =   1275.024
         EndProperty
         BeginProperty Column07 
            Alignment       =   2
            ColumnWidth     =   1140.095
         EndProperty
         BeginProperty Column08 
            Alignment       =   2
            ColumnWidth     =   1785.26
         EndProperty
         BeginProperty Column09 
            Alignment       =   2
            ColumnWidth     =   2670.236
         EndProperty
      EndProperty
   End
   Begin MSAdodcLib.Adodc Adodc1 
      Height          =   375
      Left            =   240
      Top             =   9720
      Visible         =   0   'False
      Width           =   1695
      _ExtentX        =   2990
      _ExtentY        =   661
      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         =   ""
      OLEDBString     =   ""
      OLEDBFile       =   ""
      DataSourceName  =   ""
      OtherAttributes =   ""
      UserName        =   ""
      Password        =   ""
      RecordSource    =   "Product"
      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.Frame Frame2 
      Caption         =   "当条产品的入库详细信息"
      ForeColor       =   &H00004000&
      Height          =   3135
      Left            =   240
      TabIndex        =   1
      Top             =   2400
      Width           =   14775
      Begin VB.TextBox txtRemain 
         Height          =   375
         Left            =   1320
         Locked          =   -1  'True
         TabIndex        =   20
         Top             =   1680
         Width           =   2235
      End
      Begin VB.TextBox txtTreeSort 
         Height          =   375
         Left            =   8160
         Locked          =   -1  'True
         TabIndex        =   18
         Top             =   480
         Width           =   1875
      End
      Begin VB.TextBox txtLowestPrice 
         Height          =   375
         Left            =   8160
         Locked          =   -1  'True
         TabIndex        =   16
         Top             =   2280
         Width           =   1875
      End
      Begin VB.TextBox txtMarketPrice 
         Height          =   375
         Left            =   4800
         Locked          =   -1  'True
         TabIndex        =   14
         Top             =   2280
         Width           =   2175
      End
      Begin VB.TextBox txtInprice 
         Height          =   375
         Left            =   1320
         Locked          =   -1  'True
         TabIndex        =   12
         Top             =   2280
         Width           =   2175
      End
      Begin VB.TextBox txtNumber 
         Height          =   375
         Left            =   8160
         Locked          =   -1  'True
         TabIndex        =   9
         Top             =   1080
         Width           =   1875
      End
      Begin VB.TextBox txtInDate 
         Height          =   375
         Left            =   1320
         Locked          =   -1  'True
         TabIndex        =   6
         Top             =   1080
         Width           =   5655
      End
      Begin VB.TextBox txtName 
         Height          =   375
         Left            =   4800
         Locked          =   -1  'True
         TabIndex        =   5
         Top             =   480
         Width           =   2175
      End
      Begin VB.TextBox txtId 
         Height          =   390
         Left            =   1320
         Locked          =   -1  'True
         TabIndex        =   3
         Top             =   480
         Width           =   2175
      End
      Begin VB.Label Label2 
         AutoSize        =   -1  'True
         Caption         =   "当前库存"
         ForeColor       =   &H000000C0&
         Height          =   180
         Left            =   360
         TabIndex        =   19
         Top             =   1800
         Width           =   720
      End
      Begin VB.Label Label1 
         AutoSize        =   -1  'True
         Caption         =   "树种名称"
         Height          =   180
         Left            =   7200
         TabIndex        =   17
         Top             =   600
         Width           =   720
      End
      Begin VB.Label Label13 
         AutoSize        =   -1  'True
         Caption         =   "最低售价"
         Height          =   180
         Left            =   7200
         TabIndex        =   15
         Top             =   2400
         Width           =   720
      End
      Begin VB.Label Label12 
         AutoSize        =   -1  'True
         Caption         =   "市场定价"
         Height          =   180
         Left            =   3840
         TabIndex        =   13
         Top             =   2400
         Width           =   720
      End
      Begin VB.Label Label11 
         AutoSize        =   -1  'True
         Caption         =   "进货价格"
         Height          =   180
         Left            =   360
         TabIndex        =   11
         Top             =   2400
         Width           =   720
      End
      Begin VB.Image imgProduct 
         BorderStyle     =   1  'Fixed Single
         Height          =   2895
         Left            =   11040
         Stretch         =   -1  'True
         Top             =   120
         Width           =   3495
      End
      Begin VB.Label Label10 
         AutoSize        =   -1  'True
         Caption         =   "产品图片"
         Height          =   720
         Left            =   10680
         TabIndex        =   10
         Top             =   240
         Width           =   180
         WordWrap        =   -1  'True
      End
      Begin VB.Label Label9 
         AutoSize        =   -1  'True
         Caption         =   "入库数量"
         Height          =   180
         Left            =   7200
         TabIndex        =   8
         Top             =   1200
         Width           =   720
      End
      Begin VB.Label Label8 
         AutoSize        =   -1  'True
         Caption         =   "入库时间"
         Height          =   180
         Left            =   360
         TabIndex        =   7
         Top             =   1200
         Width           =   720
      End
      Begin VB.Label Label7 
         AutoSize        =   -1  'True
         Caption         =   "产品名称"
         Height          =   180
         Left            =   3840
         TabIndex        =   4
         Top             =   600
         Width           =   720
      End
      Begin VB.Label Label6 
         AutoSize        =   -1  'True
         Caption         =   "产品编号"
         Height          =   180
         Left            =   360
         TabIndex        =   2
         Top             =   600
         Width           =   720
      End
   End
End
Attribute VB_Name = "frmProductQuery"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub DataGrid1_RowColChange(LastRow As Variant, ByVal LastCol As Integer)
    txtName = Adodc1.Recordset.Fields("ProductName")
    txtId = Adodc1.Recordset.Fields("ProductID")
    txtInDate = Adodc1.Recordset.Fields("instocktime")
    txtInprice = "¥" & Format(Adodc1.Recordset.Fields("JinhuoPrice"), "###,###,###.00")
    txtNumber = Adodc1.Recordset.Fields("Number")
    txtMarketPrice = "¥" & Format(Adodc1.Recordset.Fields("marketprice"), "###,###,###.00")
    txtLowestPrice = "¥" & Format(Adodc1.Recordset.Fields("lowestprice"), "###,###,###.00")
    imgProduct.Picture = LoadPicture(Adodc1.Recordset.Fields("picture"))
    txtTreeSort = Adodc1.Recordset.Fields("TreeSort")
    txtRemain = Adodc1.Recordset.Fields("remainNumber")

    sqlstring1 = "select a.lsh,a.productid,a.productname,a.salesprice,a.shuliang,a.lirun," & _
                "a.salespersonid,a.saledate,a.customerid,b.name,b.phone from tabsales a,customer b " & _
                "  where a.customerid=b.id  and a.productId='" & txtId & "' order by a.lsh"
    
    Adodc2.CommandType = adCmdText
    Adodc2.ConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & dbFile & ";Persist Security Info=False"
    Adodc2.RecordSource = sqlstring1
    Adodc2.Refresh
    Set DataGrid2.DataSource = Adodc2
End Sub

Private Sub Form_Load()
    ProductQueryFlag = True '产品查询窗口打开
End Sub

Private Sub Form_Terminate()
    ProductQueryFlag = False
End Sub

⌨️ 快捷键说明

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