unitemployee.dfm

来自「包含众多详细的delphi对数据库的访问代码」· DFM 代码 · 共 75 行

DFM
75
字号
object FormEmployee: TFormEmployee
  Left = 237
  Top = 119
  Width = 696
  Height = 480
  Caption = 'FormEmployee'
  Color = clBtnFace
  Font.Charset = DEFAULT_CHARSET
  Font.Color = clWindowText
  Font.Height = -11
  Font.Name = 'MS Sans Serif'
  Font.Style = []
  FormStyle = fsMDIChild
  OldCreateOrder = False
  Position = poDefault
  Visible = True
  WindowState = wsMaximized
  OnActivate = FormActivate
  OnClose = FormClose
  OnCreate = FormCreate
  PixelsPerInch = 96
  TextHeight = 13
  object DBGrid1: TDBGrid
    Left = 0
    Top = 0
    Width = 688
    Height = 453
    Align = alClient
    DataSource = DataSource1
    TabOrder = 0
    TitleFont.Charset = DEFAULT_CHARSET
    TitleFont.Color = clWindowText
    TitleFont.Height = -11
    TitleFont.Name = 'MS Sans Serif'
    TitleFont.Style = []
  end
  object Query1: TQuery
    AfterPost = Query1AfterPost
    AutoRefresh = True
    DatabaseName = 'TestDatabase'
    RequestLive = True
    SQL.Strings = (
      'Select * from Employee')
    UpdateObject = UpdateSQL1
    Left = 32
    Top = 8
  end
  object DataSource1: TDataSource
    DataSet = Query1
    Left = 176
    Top = 16
  end
  object UpdateSQL1: TUpdateSQL
    ModifySQL.Strings = (
      'update Employee'
      'set'
      '  iNo = :iNo,'
      '  sName = :sName,'
      '  sEName = :sEName'
      'where'
      '  iNo = :OLD_iNo')
    InsertSQL.Strings = (
      'insert into Employee'
      '  (iNo, sName, sEName)'
      'values'
      '  (:iNo, :sName, :sEName)')
    DeleteSQL.Strings = (
      'delete from Employee'
      'where'
      '  iNo = :OLD_iNo')
    Left = 72
    Top = 104
  end
end

⌨️ 快捷键说明

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