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

📄 frmsydd.frm

📁 鲜花管理系统
💻 FRM
字号:
VERSION 5.00
Object = "{74848F95-A02A-4286-AF0C-A3C755E4A5B3}#1.0#0"; "actskn43.ocx"
Object = "{CDE57A40-8B86-11D0-B3C6-00A0C90AEA82}#1.0#0"; "MSDATGRD.OCX"
Begin VB.Form FrmSuoyDD 
   BorderStyle     =   1  'Fixed Single
   Caption         =   "所有订单"
   ClientHeight    =   8340
   ClientLeft      =   45
   ClientTop       =   330
   ClientWidth     =   8130
   LinkTopic       =   "Form1"
   MaxButton       =   0   'False
   MDIChild        =   -1  'True
   MinButton       =   0   'False
   ScaleHeight     =   8340
   ScaleWidth      =   8130
   Begin VB.TextBox Text3 
      Height          =   495
      Left            =   5520
      TabIndex        =   12
      Text            =   "Text3"
      Top             =   6360
      Width           =   1335
   End
   Begin VB.TextBox Text2 
      Height          =   495
      Left            =   3120
      TabIndex        =   11
      Text            =   "Text2"
      Top             =   6360
      Width           =   1935
   End
   Begin VB.TextBox Text1 
      Height          =   495
      Left            =   840
      TabIndex        =   10
      Top             =   6360
      Width           =   1935
   End
   Begin ACTIVESKINLibCtl.Skin Skin1 
      Left            =   1680
      OleObjectBlob   =   "FrmSYDD.frx":0000
      Top             =   3480
   End
   Begin MSDataGridLib.DataGrid DataGrid1 
      Height          =   2535
      Left            =   360
      TabIndex        =   9
      Top             =   360
      Width           =   7335
      _ExtentX        =   12938
      _ExtentY        =   4471
      _Version        =   393216
      AllowUpdate     =   0   'False
      HeadLines       =   1
      RowHeight       =   15
      BeginProperty HeadFont {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
         Name            =   "宋体"
         Size            =   9
         Charset         =   134
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
         Name            =   "宋体"
         Size            =   9
         Charset         =   134
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      ColumnCount     =   2
      BeginProperty Column00 
         DataField       =   ""
         Caption         =   ""
         BeginProperty DataFormat {6D835690-900B-11D0-9484-00A0C91110ED} 
            Type            =   0
            Format          =   ""
            HaveTrueFalseNull=   0
            FirstDayOfWeek  =   0
            FirstWeekOfYear =   0
            LCID            =   2052
            SubFormatType   =   0
         EndProperty
      EndProperty
      BeginProperty Column01 
         DataField       =   ""
         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 
         EndProperty
         BeginProperty Column01 
         EndProperty
      EndProperty
   End
   Begin VB.Frame Fra 
      Height          =   2175
      Left            =   360
      TabIndex        =   0
      Top             =   3360
      Width           =   7335
      Begin VB.CommandButton Command1 
         Caption         =   "最前一条"
         BeginProperty Font 
            Name            =   "幼圆"
            Size            =   12
            Charset         =   134
            Weight          =   400
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         Height          =   495
         Left            =   480
         TabIndex        =   8
         Top             =   480
         Width           =   1215
      End
      Begin VB.CommandButton Command2 
         Caption         =   "退 出"
         BeginProperty Font 
            Name            =   "幼圆"
            Size            =   12
            Charset         =   134
            Weight          =   400
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         Height          =   495
         Left            =   5400
         TabIndex        =   7
         Top             =   1320
         Width           =   1215
      End
      Begin VB.CommandButton Command3 
         Caption         =   "添 加"
         BeginProperty Font 
            Name            =   "幼圆"
            Size            =   12
            Charset         =   134
            Weight          =   400
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         Height          =   495
         Left            =   3720
         TabIndex        =   6
         Top             =   1320
         Width           =   1215
      End
      Begin VB.CommandButton Command4 
         Caption         =   "修 改"
         BeginProperty Font 
            Name            =   "幼圆"
            Size            =   12
            Charset         =   134
            Weight          =   400
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         Height          =   495
         Left            =   2120
         TabIndex        =   5
         Top             =   1320
         Width           =   1215
      End
      Begin VB.CommandButton Command5 
         Caption         =   "删 除"
         BeginProperty Font 
            Name            =   "幼圆"
            Size            =   12
            Charset         =   134
            Weight          =   400
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         Height          =   495
         Left            =   480
         TabIndex        =   4
         Top             =   1320
         Width           =   1215
      End
      Begin VB.CommandButton Command6 
         Caption         =   "最后一条"
         BeginProperty Font 
            Name            =   "幼圆"
            Size            =   12
            Charset         =   134
            Weight          =   400
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         Height          =   495
         Left            =   5400
         TabIndex        =   3
         Top             =   480
         Width           =   1215
      End
      Begin VB.CommandButton Command7 
         Caption         =   "下一条"
         BeginProperty Font 
            Name            =   "幼圆"
            Size            =   12
            Charset         =   134
            Weight          =   400
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         Height          =   495
         Left            =   3760
         TabIndex        =   2
         Top             =   480
         Width           =   1215
      End
      Begin VB.CommandButton Command8 
         Caption         =   "上一条"
         BeginProperty Font 
            Name            =   "幼圆"
            Size            =   12
            Charset         =   134
            Weight          =   400
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         Height          =   495
         Left            =   2120
         TabIndex        =   1
         Top             =   480
         Width           =   1215
      End
   End
End
Attribute VB_Name = "FrmSuoyDD"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Option Explicit
Dim rs As ADODB.Recordset
Private Sub Command1_Click()
On Error Resume Next
     rs.MoveFirst
     If rs.BOF Then
        MsgBox "您正在查看的是第一条数据"
    End If
    Call jia
    Text3.Text = rs.Fields("鲜花数量").Value
End Sub

Private Sub Command2_Click()

    Unload Me
End Sub

Private Sub Command3_Click()
    frmddxg.Caption = "添加订单"
    frmddxg.Show vbModal
End Sub

Private Sub Command4_Click()
    frmddxg.Caption = "修改订单"
    frmddxg.txtid.Text = rs.Fields("订单编号").Value
    frmddxg.Show vbModal
End Sub

Private Sub Command5_Click()
    Dim i As Integer
    If MsgBox("确定要删除么?", vbOKCancel) = vbOK Then
        rs.Delete
        MsgBox "删除成功"
        Set rs = search("select * from floweryy")
        rs.MoveNext
        While Not rs.EOF
            Text2.Text = rs.Fields("鲜花名称").Value
            If Text2.Text Like Text1.Text Or Text1.Text = Text2.Text Then
                rs.Fields("鲜花数量") = rs.Fields("鲜花数量").Value + Text3.Text
                rs.Update
            End If
            rs.MoveNext
        Wend
        Set rs = search("select * from dingdan")
    End If
End Sub

Private Sub Command6_Click()
   On Error Resume Next
    rs.MoveLast
    If rs.EOF Then
        MsgBox "您正在查看的是最后一条数据"
    End If
    Call jia
    Text3.Text = rs.Fields("鲜花数量").Value
End Sub

Private Sub Command7_Click()
    On Error Resume Next
    rs.MoveNext
    If rs.EOF Then
        MsgBox "您正在查看的是最后一条数据"
        rs.MoveLast
    End If
    Call jia
    Text3.Text = rs.Fields("鲜花数量").Value
End Sub

Private Sub Command8_Click()
    On Error Resume Next
     rs.MovePrevious
     If rs.BOF Then
        MsgBox "您正在查看的是第一条数据"
        rs.MoveFirst
    End If
    Call jia
    Text3.Text = rs.Fields("鲜花数量").Value
End Sub

Private Sub Form_Load()
    Call showskin(Skin1, hwnd)
    Set rs = search("select * from dingdan")
    Set DataGrid1.DataSource = rs
End Sub

Public Sub jia()
    Text1.Text = rs.Fields("鲜花名称").Value
End Sub

⌨️ 快捷键说明

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