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

📄 cw_kfspgl.dfm

📁 结于初学者来说这对数据库是一个很好的例子
💻 DFM
字号:
object Form3: TForm3
  Left = 200
  Top = 139
  Width = 696
  Height = 486
  BorderIcons = [biSystemMenu]
  Caption = #32463#33829#21830#21697#35774#32622
  Color = clBtnFace
  Font.Charset = DEFAULT_CHARSET
  Font.Color = clWindowText
  Font.Height = -12
  Font.Name = #23435#20307
  Font.Style = []
  OldCreateOrder = False
  Position = poDesktopCenter
  Scaled = False
  OnShow = FormShow
  PixelsPerInch = 96
  TextHeight = 12
  object Label1: TLabel
    Left = 272
    Top = 8
    Width = 156
    Height = 14
    AutoSize = False
    Caption = #21830'    '#21697'    '#31649'    '#29702
    Font.Charset = GB2312_CHARSET
    Font.Color = clWindowText
    Font.Height = -14
    Font.Name = #23435#20307
    Font.Style = [fsBold]
    ParentFont = False
  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 Label2: TLabel
    Left = 24
    Top = 444
    Width = 33
    Height = 13
    AutoSize = False
    Caption = #39318#34892
  end
  object Label3: TLabel
    Left = 96
    Top = 444
    Width = 33
    Height = 13
    AutoSize = False
    Caption = #26411#34892
  end
  object Label4: TLabel
    Left = 168
    Top = 444
    Width = 33
    Height = 13
    AutoSize = False
    Caption = #21024#38500
  end
  object Label5: TLabel
    Left = 240
    Top = 444
    Width = 33
    Height = 13
    AutoSize = False
    Caption = #30830#35748
  end
  object Label6: TLabel
    Left = 312
    Top = 444
    Width = 33
    Height = 13
    AutoSize = False
    Caption = #21462#28040
  end
  object Label7: TLabel
    Left = 384
    Top = 444
    Width = 41
    Height = 13
    AutoSize = False
    Caption = #21047#26032
  end
  object GroupBox1: TGroupBox
    Left = 8
    Top = 32
    Width = 417
    Height = 377
    Caption = #24050#26377#21830#21697#21015#34920
    TabOrder = 0
    object DBGrid1: TDBGrid
      Left = 8
      Top = 24
      Width = 401
      Height = 353
      DataSource = DS_sp
      ImeName = #20013#25991' ('#31616#20307') - '#26234#33021' ABC'
      Options = [dgEditing, dgTitles, dgColumnResize, dgColLines, dgRowLines, dgTabs, dgConfirmDelete, dgCancelOnExit]
      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#30721
          Width = 37
          Visible = True
        end
        item
          Expanded = False
          FieldName = 'MenuName'
          Title.Alignment = taCenter
          Title.Caption = #21517#31216
          Visible = True
        end
        item
          Alignment = taCenter
          Expanded = False
          FieldName = 'TypeName'
          Title.Alignment = taCenter
          Title.Caption = #31867#22411
          Visible = True
        end
        item
          Expanded = False
          FieldName = 'Price'
          Title.Alignment = taCenter
          Title.Caption = #36827#20215
          Width = 47
          Visible = True
        end
        item
          Expanded = False
          FieldName = 'SalePrice'
          Title.Alignment = taCenter
          Title.Caption = #21334#20215
          Width = 44
          Visible = True
        end
        item
          Alignment = taCenter
          Expanded = False
          FieldName = 'Unit'
          Title.Alignment = taCenter
          Title.Caption = #21333#20301
          Visible = True
        end
        item
          Expanded = False
          FieldName = 'py'
          Title.Alignment = taCenter
          Title.Caption = #21161#35760#30721
          Width = 51
          Visible = True
        end
        item
          Expanded = False
          FieldName = 'kc'
          Title.Alignment = taCenter
          Title.Caption = #24211#23384
          Visible = True
        end
        item
          Expanded = False
          FieldName = 'dz'
          Title.Alignment = taCenter
          Title.Caption = #25171#25240
          Visible = True
        end>
    end
  end
  object GroupBox2: TGroupBox
    Left = 432
    Top = 32
    Width = 249
    Height = 425
    Caption = #26032#22686#21830#21697
    TabOrder = 1
    object Label8: TLabel
      Left = 32
      Top = 24
      Width = 36
      Height = 12
      Caption = #32534#30721#65306
    end
    object Label9: TLabel
      Left = 32
      Top = 64
      Width = 36
      Height = 12
      Caption = #21517#31216#65306
    end
    object Label10: TLabel
      Left = 32
      Top = 104
      Width = 36
      Height = 12
      Caption = #31867#22411#65306
    end
    object Label11: TLabel
      Left = 32
      Top = 144
      Width = 36
      Height = 12
      Caption = #36827#20215#65306
    end
    object Label12: TLabel
      Left = 32
      Top = 216
      Width = 36
      Height = 12
      Caption = #21333#20301#65306
    end
    object Label13: TLabel
      Left = 24
      Top = 256
      Width = 48
      Height = 12
      Caption = #21161#35760#30721#65306
    end
    object Label14: TLabel
      Left = 32
      Top = 400
      Width = 208
      Height = 13
      AutoSize = False
      Caption = '*'#21161#35760#30721#20026#21830#21697#21517#31216#27721#23383#23567#20889#25340#38899#23383#22836'*'
    end
    object Label15: TLabel
      Left = 16
      Top = 296
      Width = 60
      Height = 12
      Caption = #20801#35768#24211#23384#65306
    end
    object Label16: TLabel
      Left = 32
      Top = 184
      Width = 36
      Height = 12
      Caption = #21334#20215#65306
    end
    object Label17: TLabel
      Left = 16
      Top = 344
      Width = 60
      Height = 12
      Caption = #20801#35768#25240#25187#65306
    end
    object Button1: TButton
      Left = 88
      Top = 368
      Width = 75
      Height = 25
      Caption = #22686'    '#21152
      TabOrder = 8
      OnClick = Button1Click
    end
    object SP_bm: TMaskEdit
      Left = 72
      Top = 16
      Width = 114
      Height = 20
      EditMask = '9999;1;_'
      ImeName = #20013#25991' ('#31616#20307') - '#26234#33021' ABC'
      MaxLength = 4
      TabOrder = 0
      Text = '    '
      OnExit = SP_bmExit
      OnKeyPress = SP_bmKeyPress
    end
    object SP_mc: TEdit
      Left = 72
      Top = 56
      Width = 121
      Height = 20
      ImeName = #20013#25991' ('#31616#20307') - '#26234#33021' ABC'
      TabOrder = 1
      OnExit = SP_mcExit
      OnKeyPress = SP_mcKeyPress
    end
    object SP_lx: TComboBox
      Left = 72
      Top = 96
      Width = 121
      Height = 20
      AutoDropDown = True
      Style = csDropDownList
      ImeName = #20013#25991' ('#31616#20307') - '#26234#33021' ABC'
      ItemHeight = 12
      TabOrder = 2
      OnKeyPress = SP_lxKeyPress
    end
    object SP_dj: TMaskEdit
      Left = 72
      Top = 136
      Width = 121
      Height = 20
      ImeName = #20013#25991' ('#31616#20307') - '#26234#33021' ABC'
      TabOrder = 3
      OnKeyPress = SP_djKeyPress
    end
    object SP_dw: TEdit
      Left = 72
      Top = 208
      Width = 121
      Height = 20
      ImeName = #20013#25991' ('#31616#20307') - '#26234#33021' ABC'
      TabOrder = 5
      OnKeyPress = SP_dwKeyPress
    end
    object SP_py: TMaskEdit
      Left = 72
      Top = 248
      Width = 121
      Height = 20
      ImeName = #20013#25991' ('#31616#20307') - '#26234#33021' ABC'
      TabOrder = 6
      OnKeyPress = SP_pyKeyPress
    end
    object sp_kc: TComboBox
      Left = 72
      Top = 288
      Width = 121
      Height = 20
      Style = csDropDownList
      ImeName = #20013#25991' ('#31616#20307') - '#26234#33021' ABC'
      ItemHeight = 12
      TabOrder = 7
      OnKeyPress = sp_kcKeyPress
      Items.Strings = (
        #26159
        #21542)
    end
    object sp_mj: TMaskEdit
      Left = 72
      Top = 176
      Width = 121
      Height = 20
      ImeName = #20013#25991' ('#31616#20307') - '#26234#33021' ABC'
      TabOrder = 4
      OnKeyPress = sp_mjKeyPress
    end
    object dz: TComboBox
      Left = 72
      Top = 336
      Width = 121
      Height = 20
      Style = csDropDownList
      ImeName = #20013#25991' ('#31616#20307') - '#26234#33021' ABC'
      ItemHeight = 12
      TabOrder = 9
      OnKeyPress = sp_kcKeyPress
      Items.Strings = (
        #26159
        #21542)
    end
  end
  object DBNavigator1: TDBNavigator
    Left = 8
    Top = 416
    Width = 420
    Height = 25
    DataSource = DS_sp
    VisibleButtons = [nbFirst, nbLast, nbDelete, nbPost, nbCancel, nbRefresh]
    TabOrder = 2
  end
  object T_sp: TTable
    Active = True
    DatabaseName = 'Hotel'
    IndexName = 'MenuNo'
    TableName = 'Menu'
    Left = 120
    Top = 8
  end
  object DS_sp: TDataSource
    DataSet = T_sp
    Left = 160
    Top = 8
  end
  object Q_repeat: TQuery
    DatabaseName = 'Hotel'
    Left = 496
    Top = 8
  end
  object Q_lb: TQuery
    Active = True
    DatabaseName = 'Hotel'
    SQL.Strings = (
      'select * from Dtype order by TypeNo')
    Left = 552
    Top = 8
  end
  object Q_spTypeNo: TQuery
    DatabaseName = 'Hotel'
    Left = 624
    Top = 144
  end
end

⌨️ 快捷键说明

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