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

📄 frmdcailist.frm

📁 餐饮经销系统
💻 FRM
📖 第 1 页 / 共 2 页
字号:
VERSION 5.00
Object = "{5E9E78A0-531B-11CF-91F6-C2863C385E30}#1.0#0"; "msflxgrd.ocx"
Begin VB.Form frmDCAILIST 
   Caption         =   "点菜单信息"
   ClientHeight    =   6060
   ClientLeft      =   48
   ClientTop       =   348
   ClientWidth     =   8064
   LinkTopic       =   "Form1"
   MDIChild        =   -1  'True
   ScaleHeight     =   6060
   ScaleWidth      =   8064
   WindowState     =   2  'Maximized
   Begin VB.TextBox txtJLDW 
      Height          =   372
      Left            =   7680
      TabIndex        =   23
      Top             =   6000
      Visible         =   0   'False
      Width           =   252
   End
   Begin VB.TextBox txtWZMC 
      Height          =   372
      Left            =   7200
      TabIndex        =   22
      Top             =   6000
      Visible         =   0   'False
      Width           =   252
   End
   Begin VB.TextBox txtWZDM 
      Height          =   372
      Left            =   360
      TabIndex        =   21
      Top             =   6480
      Visible         =   0   'False
      Width           =   252
   End
   Begin VB.TextBox txt_YWDM 
      Height          =   372
      Left            =   0
      TabIndex        =   20
      Top             =   6480
      Visible         =   0   'False
      Width           =   252
   End
   Begin VB.TextBox txtM_DATE 
      Height          =   372
      Left            =   480
      TabIndex        =   19
      Top             =   6000
      Visible         =   0   'False
      Width           =   252
   End
   Begin VB.TextBox txtM_NO 
      Height          =   372
      Left            =   0
      TabIndex        =   18
      Top             =   6000
      Visible         =   0   'False
      Width           =   252
   End
   Begin VB.Frame Frame2 
      Caption         =   "记录操作"
      Height          =   972
      Left            =   960
      TabIndex        =   14
      Top             =   5040
      Width           =   6000
      Begin VB.CommandButton cmdAdd 
         Caption         =   "添加酒菜"
         Height          =   375
         Left            =   240
         TabIndex        =   17
         Top             =   360
         Width           =   1700
      End
      Begin VB.CommandButton cmdModify 
         Caption         =   "修改酒菜"
         Height          =   375
         Left            =   2160
         TabIndex        =   16
         Top             =   360
         Width           =   1700
      End
      Begin VB.CommandButton cmdDelete 
         Caption         =   "删除酒菜"
         Height          =   375
         Left            =   4080
         TabIndex        =   15
         Top             =   360
         Width           =   1700
      End
   End
   Begin VB.Frame Frame1 
      Caption         =   "点菜单基本信息:"
      Height          =   1560
      Index           =   0
      Left            =   120
      TabIndex        =   2
      Top             =   0
      Width           =   7932
      Begin VB.CommandButton cmdJZ 
         Caption         =   "结             账"
         Height          =   375
         Left            =   5880
         TabIndex        =   31
         Top             =   1080
         Visible         =   0   'False
         Width           =   1572
      End
      Begin VB.TextBox txtItem 
         Height          =   270
         Index           =   6
         Left            =   960
         MaxLength       =   20
         TabIndex        =   30
         Top             =   1080
         Width           =   1572
      End
      Begin VB.CommandButton cmdCANCEL 
         Caption         =   "取消点菜单"
         Height          =   375
         Left            =   4200
         TabIndex        =   29
         Top             =   1080
         Width           =   1572
      End
      Begin VB.CommandButton cmdOK 
         Caption         =   "确定点菜单"
         Height          =   372
         Left            =   2640
         TabIndex        =   28
         Top             =   1080
         Width           =   1452
      End
      Begin VB.TextBox txtItem 
         Height          =   270
         Index           =   5
         Left            =   6120
         MaxLength       =   20
         TabIndex        =   26
         Top             =   720
         Width           =   1572
      End
      Begin VB.TextBox txtItem 
         Height          =   270
         Index           =   4
         Left            =   3480
         MaxLength       =   20
         TabIndex        =   24
         Top             =   720
         Width           =   1812
      End
      Begin VB.TextBox txtItem 
         Height          =   270
         Index           =   3
         Left            =   960
         MaxLength       =   20
         TabIndex        =   11
         Top             =   720
         Width           =   1572
      End
      Begin VB.TextBox txtItem 
         Height          =   270
         Index           =   2
         Left            =   6120
         MaxLength       =   20
         TabIndex        =   7
         Top             =   360
         Width           =   1572
      End
      Begin VB.TextBox txtItem 
         Height          =   270
         Index           =   0
         Left            =   7920
         MaxLength       =   20
         TabIndex        =   5
         Top             =   1200
         Visible         =   0   'False
         Width           =   372
      End
      Begin VB.ComboBox Combo1 
         Height          =   288
         Index           =   0
         Left            =   3480
         Style           =   2  'Dropdown List
         TabIndex        =   4
         Top             =   360
         Width           =   1812
      End
      Begin VB.TextBox txtItem 
         Height          =   270
         Index           =   1
         Left            =   960
         MaxLength       =   20
         TabIndex        =   3
         Top             =   360
         Width           =   1572
      End
      Begin VB.Label Label2 
         Caption         =   "折扣比例:"
         Height          =   252
         Index           =   7
         Left            =   240
         TabIndex        =   27
         Top             =   1080
         Width           =   1092
      End
      Begin VB.Label Label2 
         Caption         =   "联系电话:"
         Height          =   252
         Index           =   6
         Left            =   5400
         TabIndex        =   25
         Top             =   720
         Width           =   1092
      End
      Begin VB.Label Label2 
         Caption         =   "房台名称:"
         Height          =   252
         Index           =   1
         Left            =   240
         TabIndex        =   13
         Top             =   720
         Width           =   1092
      End
      Begin VB.Label Label2 
         Caption         =   "客人姓名:"
         Height          =   252
         Index           =   4
         Left            =   2640
         TabIndex        =   12
         Top             =   720
         Width           =   1092
      End
      Begin VB.Label Label2 
         Caption         =   "业  务  员:"
         Height          =   252
         Index           =   3
         Left            =   2640
         TabIndex        =   9
         Top             =   360
         Width           =   1092
      End
      Begin VB.Label Label2 
         Caption         =   "房台编号:"
         Height          =   252
         Index           =   2
         Left            =   5400
         TabIndex        =   8
         Top             =   360
         Width           =   1092
      End
      Begin VB.Label Label2 
         Caption         =   "日        期:"
         Height          =   252
         Index           =   5
         Left            =   240
         TabIndex        =   6
         Top             =   360
         Width           =   1092
      End
   End
   Begin VB.Frame Frame1 
      Caption         =   "点菜信息"
      Height          =   3252
      Index           =   1
      Left            =   120
      TabIndex        =   0
      Top             =   1680
      Width           =   7932
      Begin MSFlexGridLib.MSFlexGrid msgList 
         Height          =   2892
         Left            =   120
         TabIndex        =   1
         Top             =   240
         Width           =   7692
         _ExtentX        =   13568
         _ExtentY        =   5101
         _Version        =   393216
         Cols            =   4
         FixedCols       =   2
         AllowUserResizing=   1
      End
   End
   Begin VB.Label lblTitle 
      Caption         =   "生  产  配  料  单  设  置  信  息  列  表"
      BeginProperty Font 
         Name            =   "宋体"
         Size            =   12
         Charset         =   134
         Weight          =   700
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      ForeColor       =   &H8000000D&
      Height          =   252
      Left            =   480
      TabIndex        =   10
      Top             =   240
      Visible         =   0   'False
      Width           =   5532
   End
End
Attribute VB_Name = "frmDCAILIST"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Option Explicit
Public txtSQL As String
Dim mrc As ADODB.Recordset
Dim MsgText As String

Private Sub cmdAdd_Click()
    If gintPLLISTmode = 1 Then
        If Trim(txtItem(0)) <> "" And Trim(Combo1(0)) <> "" And Trim(txtItem(4)) <> "" And Trim(txtItem(5)) <> "" And Trim(txtItem(6)) <> "" Then
            txtSQL = "select * from outh where outh_no ='" & Trim(txtItem(0)) & "'"
            Set mrc = ExecuteSQL(txtSQL, MsgText)
            If mrc.EOF = False Then
                MsgBox "已经存在相同编号的维修单记录!", vbOKOnly + vbExclamation, "警告"
                txtItem(0).SetFocus
                mrc.Close
                Exit Sub
            End If
                    
                    
                    
                frmDCAILIST1.txtM_NO = Trim(txtItem(0))
                frmDCAILIST1.txtM_DATE = Trim(txtItem(1))
                frmDCAILIST1.txtKHMC = Trim(txtItem(4))
                frmDCAILIST1.txtLXDH = Trim(txtItem(5))
                frmDCAILIST1.txtROOM = Trim(txtItem(2))
                frmDCAILIST1.txtREB = Trim(txtItem(6))
                frmDCAILIST1.txtYWDM = Trim(Combo1(0).ItemData(Combo1(0).ListIndex))
                gintPLmode = 1
                frmDCAILIST1.Show 1
        Else
            MsgBox "请设置点菜单的所有选项!", vbOKOnly, "警告"
            Exit Sub
        End If
    ElseIf gintPLLISTmode = 2 Then
                frmDCAILIST1.txtM_NO = Trim(txtItem(0))
                frmDCAILIST1.txtM_DATE = Trim(txtItem(1))
                frmDCAILIST1.txtKHMC = Trim(txtItem(4))
                frmDCAILIST1.txtLXDH = Trim(txtItem(5))
                frmDCAILIST1.txtROOM = Trim(txtItem(2))
                frmDCAILIST1.txtREB = Trim(txtItem(6))
                frmDCAILIST1.txtYWDM = Trim(Combo1(0).ItemData(Combo1(0).ListIndex))
                gintPLmode = 1
                frmDCAILIST1.Show 1
    End If
End Sub

Private Sub cmdCancel_Click()
    If msgList.Rows > 1 Then
        txtSQL = "delete from outh where bz1 = 'N' and outh_no = '" & Trim(txtItem(0)) & "'"
        Set mrc = ExecuteSQL(txtSQL, MsgText)

        Unload Me
    End If
End Sub

Private Sub cmdDelete_Click()
    Dim intCount As Integer
    Dim mrc As ADODB.Recordset
    Dim MsgText As String
    
    
    If Trim(msgList.TextMatrix(1, 1)) <> "" Then
        If MsgBox("真的要删除编号为" & Trim(msgList.TextMatrix(msgList.Row, 2)) & "的酒菜记录吗?", vbOKCancel + vbExclamation, "警告") = vbOK Then
            intCount = msgList.Row
            txtSQL = "delete outh from outh  where outh.outh_no ='" & Trim(msgList.TextMatrix(intCount, 1)) & "' and outh.wzdm = '" & Trim(msgList.TextMatrix(intCount, 2)) & "'"
                    
            Set mrc = ExecuteSQL(txtSQL, MsgText)
                        
            txtSQL = "select outh.outh_no,dm_wz.dm,dm_wz.mc,outh.ckdm,outh.sl,outh.out_danj,outh.o_zk,outh.o_zke from outh inner join dm_wz on outh.wzdm = dm_wz.dm  where outh_no = '" & Trim(txtItem(0)) & "'"
            ShowData

⌨️ 快捷键说明

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