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

📄 consume.dfm

📁 结于初学者来说这对数据库是一个很好的例子
💻 DFM
字号:
object Form13: TForm13
  Left = 227
  Top = 145
  Width = 696
  Height = 475
  BorderIcons = [biSystemMenu]
  Caption = #23458#20154#28040#36153
  Color = clBtnFace
  Font.Charset = DEFAULT_CHARSET
  Font.Color = clWindowText
  Font.Height = -12
  Font.Name = #23435#20307
  Font.Style = []
  OldCreateOrder = False
  Position = poDesktopCenter
  Scaled = False
  OnClose = FormClose
  OnShow = FormShow
  PixelsPerInch = 96
  TextHeight = 12
  object Label1: TLabel
    Left = 280
    Top = 8
    Width = 105
    Height = 21
    AutoSize = False
    Caption = #21830#21697#28040#36153#30331#35760
    Font.Charset = ANSI_CHARSET
    Font.Color = clWindowText
    Font.Height = -16
    Font.Name = #23435#20307
    Font.Style = [fsBold]
    ParentFont = False
  end
  object XF_RoomName: TLabel
    Left = 112
    Top = 8
    Width = 3
    Height = 13
    Font.Charset = DEFAULT_CHARSET
    Font.Color = clRed
    Font.Height = -11
    Font.Name = 'MS Sans Serif'
    Font.Style = []
    ParentFont = False
  end
  object Label2: TLabel
    Left = 64
    Top = 8
    Width = 48
    Height = 13
    AutoSize = False
    Caption = #25151#38388#21495#65306
  end
  object SpeedButton1: TSpeedButton
    Left = 616
    Top = 0
    Width = 33
    Height = 33
    Glyph.Data = {
      B6080000424DB608000000000000360400002800000022000000200000000100
      08000000000080040000C40E0000C40E00000001000000000000000000000000
      80000080000000808000800000008000800080800000C0C0C000C0DCC000F0CA
      A6000020400000206000002080000020A0000020C0000020E000004000000040
      20000040400000406000004080000040A0000040C0000040E000006000000060
      20000060400000606000006080000060A0000060C0000060E000008000000080
      20000080400000806000008080000080A0000080C0000080E00000A0000000A0
      200000A0400000A0600000A0800000A0A00000A0C00000A0E00000C0000000C0
      200000C0400000C0600000C0800000C0A00000C0C00000C0E00000E0000000E0
      200000E0400000E0600000E0800000E0A00000E0C00000E0E000400000004000
      20004000400040006000400080004000A0004000C0004000E000402000004020
      20004020400040206000402080004020A0004020C0004020E000404000004040
      20004040400040406000404080004040A0004040C0004040E000406000004060
      20004060400040606000406080004060A0004060C0004060E000408000004080
      20004080400040806000408080004080A0004080C0004080E00040A0000040A0
      200040A0400040A0600040A0800040A0A00040A0C00040A0E00040C0000040C0
      200040C0400040C0600040C0800040C0A00040C0C00040C0E00040E0000040E0
      200040E0400040E0600040E0800040E0A00040E0C00040E0E000800000008000
      20008000400080006000800080008000A0008000C0008000E000802000008020
      20008020400080206000802080008020A0008020C0008020E000804000008040
      20008040400080406000804080008040A0008040C0008040E000806000008060
      20008060400080606000806080008060A0008060C0008060E000808000008080
      20008080400080806000808080008080A0008080C0008080E00080A0000080A0
      200080A0400080A0600080A0800080A0A00080A0C00080A0E00080C0000080C0
      200080C0400080C0600080C0800080C0A00080C0C00080C0E00080E0000080E0
      200080E0400080E0600080E0800080E0A00080E0C00080E0E000C0000000C000
      2000C0004000C0006000C0008000C000A000C000C000C000E000C0200000C020
      2000C0204000C0206000C0208000C020A000C020C000C020E000C0400000C040
      2000C0404000C0406000C0408000C040A000C040C000C040E000C0600000C060
      2000C0604000C0606000C0608000C060A000C060C000C060E000C0800000C080
      2000C0804000C0806000C0808000C080A000C080C000C080E000C0A00000C0A0
      2000C0A04000C0A06000C0A08000C0A0A000C0A0C000C0A0E000C0C00000C0C0
      2000C0C04000C0C06000C0C08000C0C0A000F0FBFF00A4A0A000808080000000
      FF0000FF000000FFFF00FF000000FF00FF00FFFF0000FFFFFF00080808080808
      08A4A4A4A4A4A4A4A4A4A4A4A400000000000000000000000000000000000808
      080808080808080808080808080808FF00000000080000A4A4A4A4A4A4A4A400
      00000808080808080808080808080808080808FF00000000080000A4A4A4A4A4
      A4A4A40000000808080808080808080808080808080808FF00000000080000A4
      A4A4A4A4A4A4A40000000808080808080808080808080808080808FF00000000
      080000A4A4A4A4A4A4A4A4000000080808080808FF00000000000008080808FF
      00000000080000A4A4A4A4A4A4A4A4000000080808080808FF00000000000008
      080808FF00000000080000A4A4A4A4A4A4A4A4000000080000000808FF000000
      000000000808FF0000000000080000A4A4A4A4A4A4A4A400000008FFFFFF0808
      FF000000000000000000000000000008000000A4A4A4A4A4A4A4A40000000808
      08080808FFFFFFFFFFFF00000000000000080800000000A4A4A4A4A4A4A4A400
      0000080808080808FFFFFFFFFFFF00000000000000080800000000A4A4A4A4A4
      A4A4A4000000080808080808080808080808FF000000000008080808080800A4
      A407A4A4A4A4A400000008080808080808FF0000000008000000000008000000
      000008A4A40707A4A4A4A400000008080808080808FF00000000080000000000
      00000000000008A4A4A4A4A4A4A4A400000008080808080808FF000000000800
      0000000000000000000008A4A4A4A4A4A4A4A400000008000000000808FF0000
      000000080000000000000008080800A4A4A4A4A4A4A4A400000008FFFFFFFF08
      0808FFFF000000000000000000000008000000A4A4A4A4A4A4A4A40000000808
      0808080808080808FF0000000000000000080800000000A4A4A4A4A4A4A4A400
      000008080808080808080808FF0000000000000000080800000000A4A4A4A4A4
      A4A4A40000000808080808080808080808FFFFFFFFFFFF0000080800000000A4
      A4A4A4A4A4A4A40000000808080808080808080808080808FFFF000000000008
      000000A4A4A4A4A4A4A4A400000008080808080808080808080808FF00000000
      00000000080000A4A4A4A4A4A4A4A400000008080808080808080808080808FF
      0000000000000000080000A4A4A4A4A4A4A4A400000008080808080808080808
      080808FF0000000000000000080000A4A4A4A4A4A4A4A4000000080808080808
      0808080808080808FFFF000000000008000000A4A4A4A4A4A4A4A40000000808
      0808080808080808080808080808FF0000080800000000000000A4A4A4A4A400
      000008080808080808080808080808080808FF0000080800000000000000A4A4
      A4A4A40000000808080808080808080808080808080808FFFF00000000000000
      00000000A4A4A4000000080808080808080808080808080808080808FF000000
      0000000000000000000000000000080808080808080808080808080808080808
      FF00000000000000000000000000000000000808080808080808080808080808
      08080808FF000000000000000000000000000000000008080808080808080808
      0808080808080808FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF0000}
    OnClick = SpeedButton1Click
  end
  object Label10: TLabel
    Left = 152
    Top = 8
    Width = 36
    Height = 13
    AutoSize = False
    Caption = #21333#21495#65306
  end
  object Label11: TLabel
    Left = 184
    Top = 8
    Width = 38
    Height = 13
    Caption = 'Label11'
    Font.Charset = DEFAULT_CHARSET
    Font.Color = clRed
    Font.Height = -11
    Font.Name = 'MS Sans Serif'
    Font.Style = []
    ParentFont = False
  end
  object GroupBox1: TGroupBox
    Left = 208
    Top = 32
    Width = 473
    Height = 81
    Hint = #35831#21452#20987#39033#30446#21015#34920#20013#30340#39033#30446#21518#36827#34892#36755#20837
    Caption = #28040#36153#30331#35760
    ParentShowHint = False
    ShowHint = True
    TabOrder = 0
    object Label3: TLabel
      Left = 232
      Top = 24
      Width = 60
      Height = 13
      AutoSize = False
      Caption = #21830#21697#21517#31216#65306
    end
    object Label4: TLabel
      Left = 136
      Top = 56
      Width = 57
      Height = 13
      AutoSize = False
      Caption = #25968'    '#37327#65306
    end
    object XF_spmc: TLabel
      Left = 296
      Top = 24
      Width = 161
      Height = 13
      AutoSize = False
      Font.Charset = DEFAULT_CHARSET
      Font.Color = clRed
      Font.Height = -11
      Font.Name = 'MS Sans Serif'
      Font.Style = []
      ParentFont = False
    end
    object Label6: TLabel
      Left = 8
      Top = 24
      Width = 60
      Height = 12
      Caption = #25340#38899#26597#35810#65306
    end
    object Label7: TLabel
      Left = 264
      Top = 56
      Width = 57
      Height = 13
      AutoSize = False
      Caption = #26381' '#21153' '#21592#65306
    end
    object Label8: TLabel
      Left = 8
      Top = 56
      Width = 57
      Height = 13
      AutoSize = False
      Caption = #21333'    '#20215#65306
    end
    object XF_dj: TLabel
      Left = 72
      Top = 56
      Width = 3
      Height = 13
      Alignment = taCenter
      Font.Charset = DEFAULT_CHARSET
      Font.Color = clRed
      Font.Height = -11
      Font.Name = 'MS Sans Serif'
      Font.Style = []
      ParentFont = False
    end
    object Label5: TLabel
      Left = 136
      Top = 24
      Width = 60
      Height = 12
      Caption = #21830#21697#32534#21495#65306
    end
    object XF_spbh: TLabel
      Left = 192
      Top = 24
      Width = 3
      Height = 13
      Font.Charset = DEFAULT_CHARSET
      Font.Color = clRed
      Font.Height = -11
      Font.Name = 'MS Sans Serif'
      Font.Style = []
      ParentFont = False
    end
    object Label9: TLabel
      Left = 96
      Top = 56
      Width = 12
      Height = 12
      Caption = #20803
    end
    object ME_pycx: TMaskEdit
      Left = 64
      Top = 16
      Width = 65
      Height = 20
      ImeMode = imDisable
      ImeName = #20013#25991' ('#31616#20307') - '#20840#25340
      TabOrder = 0
      OnChange = ME_pycxChange
    end
    object SP_sl: TMaskEdit
      Left = 192
      Top = 48
      Width = 62
      Height = 20
      ImeName = #20013#25991' ('#31616#20307') - '#26234#33021' ABC'
      TabOrder = 1
      OnKeyPress = SP_slKeyPress
    end
    object SP_fwy: TComboBox
      Left = 320
      Top = 48
      Width = 73
      Height = 20
      Style = csDropDownList
      ImeName = #20013#25991' ('#31616#20307') - '#26234#33021' ABC'
      ItemHeight = 12
      TabOrder = 2
      OnKeyPress = SP_fwyKeyPress
    end
    object Button1: TButton
      Left = 408
      Top = 40
      Width = 59
      Height = 25
      Caption = #30830#23450
      TabOrder = 3
      OnClick = Button1Click
    end
  end
  object GroupBox2: TGroupBox
    Left = 8
    Top = 32
    Width = 193
    Height = 409
    Caption = #21830#21697#21015#34920
    TabOrder = 1
    object Db_sp: TDBGrid
      Left = 8
      Top = 16
      Width = 177
      Height = 385
      Hint = #35831#21452#20987#20013#30340#39033#30446#36827#34892#21518#65292#36827#34892#25968#37327#36755#20837
      DataSource = DataSource1
      ImeName = #20013#25991' ('#31616#20307') - '#26234#33021' ABC'
      Options = [dgTitles, dgColumnResize, dgColLines, dgRowLines, dgTabs, dgRowSelect, dgConfirmDelete, dgCancelOnExit, dgMultiSelect]
      ParentShowHint = False
      ReadOnly = True
      ShowHint = True
      TabOrder = 0
      TitleFont.Charset = DEFAULT_CHARSET
      TitleFont.Color = clWindowText
      TitleFont.Height = -12
      TitleFont.Name = #23435#20307
      TitleFont.Style = []
      OnDblClick = Db_spDblClick
      Columns = <
        item
          Expanded = False
          FieldName = 'MenuNo'
          Title.Caption = #32534#21495
          Width = 25
          Visible = True
        end
        item
          Expanded = False
          FieldName = 'MenuName'
          Title.Alignment = taCenter
          Title.Caption = #21517#31216
          Width = 95
          Visible = True
        end
        item
          Expanded = False
          FieldName = 'SalePrice'
          Title.Alignment = taCenter
          Title.Caption = #20215#26684
          Width = 34
          Visible = True
        end>
    end
  end
  object GroupBox3: TGroupBox
    Left = 208
    Top = 120
    Width = 473
    Height = 321
    Caption = #24050#28040#36153#21830#21697#21015#34920
    TabOrder = 2
    object DBGrid1: TDBGrid
      Left = 8
      Top = 16
      Width = 457
      Height = 297
      DataSource = DataSource2
      ImeName = #20013#25991' ('#31616#20307') - '#26234#33021' ABC'
      Options = [dgTitles, dgColumnResize, dgColLines, dgRowLines, dgTabs, dgRowSelect, dgConfirmDelete, dgCancelOnExit]
      ReadOnly = True
      TabOrder = 0
      TitleFont.Charset = DEFAULT_CHARSET
      TitleFont.Color = clWindowText
      TitleFont.Height = -12
      TitleFont.Name = #23435#20307
      TitleFont.Style = []
      Columns = <
        item
          Alignment = taCenter
          Expanded = False
          FieldName = 'MenuNo'
          Title.Alignment = taCenter
          Title.Caption = #32534#21495
          Width = 37
          Visible = True
        end
        item
          Expanded = False
          FieldName = 'MenuName'
          Title.Alignment = taCenter
          Title.Caption = #21517#31216
          Width = 140
          Visible = True
        end
        item
          Expanded = False
          FieldName = 'SalePrice'
          Title.Alignment = taCenter
          Title.Caption = #20215#26684
          Width = 47
          Visible = True
        end
        item
          Expanded = False
          FieldName = 'Quantity'
          Title.Alignment = taCenter
          Title.Caption = #25968#37327
          Width = 51
          Visible = True
        end
        item
          Alignment = taCenter
          Expanded = False
          FieldName = 'Waiter'
          Title.Alignment = taCenter
          Title.Caption = #26381#21153#21592
          Width = 55
          Visible = True
        end
        item
          Alignment = taCenter
          Expanded = False
          FieldName = 'operator'
          Title.Alignment = taCenter
          Title.Caption = #25805#20316#21592
          Width = 52
          Visible = True
        end
        item
          Alignment = taCenter
          Expanded = False
          FieldName = 'BeginTime'
          Title.Alignment = taCenter
          Title.Caption = #30331#35760#26102#38388
          Width = 129
          Visible = True
        end>
    end
  end
  object Q_select: TQuery
    Active = True
    AutoRefresh = True
    DatabaseName = 'Hotel'
    SQL.Strings = (
      'select * from menu order by MenuNo')
    Left = 392
  end
  object DataSource1: TDataSource
    DataSet = Q_select
    Left = 432
    Top = 8
  end
  object Query1: TQuery
    Left = 16
    Top = 16
  end
  object Q_splb: TQuery
    AutoRefresh = True
    DatabaseName = 'Hotel'
    SQL.Strings = (
      'select * from Dinlist')
    Left = 288
    Top = 104
  end
  object DataSource2: TDataSource
    DataSet = Q_splb
    Left = 320
    Top = 104
  end
  object Q_service: TQuery
    DatabaseName = 'Hotel'
    SQL.Strings = (
      'select Name from service')
    Left = 576
  end
  object T_spin: TTable
    DatabaseName = 'Hotel'
    TableName = 'DinList'
    Left = 480
    Top = 8
  end
  object Q_skc: TQuery
    DatabaseName = 'Hotel'
    RequestLive = True
    Left = 536
  end
end

⌨️ 快捷键说明

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