ypxs.dfm
来自「完整的delphi书籍源代码,大家有空的时候自己慢慢看看」· DFM 代码 · 共 570 行
DFM
570 行
object YPXSFrm: TYPXSFrm
Left = 37
Top = 6
Width = 691
Height = 554
Caption = #33647#21697#38144#21806#31649#29702
Color = clBtnFace
Font.Charset = DEFAULT_CHARSET
Font.Color = clWindowText
Font.Height = -11
Font.Name = 'MS Sans Serif'
Font.Style = []
OldCreateOrder = False
Position = poDesktopCenter
OnCreate = FormCreate
PixelsPerInch = 96
TextHeight = 13
object PageControl1: TPageControl
Left = 0
Top = 0
Width = 683
Height = 527
ActivePage = TabSheet1
Align = alClient
TabOrder = 0
object TabSheet1: TTabSheet
Caption = #38144#21806#30331#35760
OnShow = TabSheet1Show
object DBGrid1: TDBGrid
Left = 24
Top = 248
Width = 625
Height = 161
DataSource = DataSource1
Options = [dgTitles, dgIndicator, dgColumnResize, dgColLines, dgRowLines, dgTabs, dgConfirmDelete, dgCancelOnExit]
ReadOnly = True
TabOrder = 0
TitleFont.Charset = DEFAULT_CHARSET
TitleFont.Color = clWindowText
TitleFont.Height = -11
TitleFont.Name = 'MS Sans Serif'
TitleFont.Style = []
Columns = <
item
Expanded = False
Title.Alignment = taCenter
Title.Caption = #33647#21697#32534#21495
Width = 65
Visible = True
end
item
Expanded = False
Title.Alignment = taCenter
Title.Caption = #33647#21697#21517#31216' '
Width = 81
Visible = True
end
item
Expanded = False
Title.Alignment = taCenter
Title.Caption = #33647#21697#31867#21035
Width = 90
Visible = True
end
item
Expanded = False
Title.Alignment = taCenter
Title.Caption = #35745#37327#21333#20301
Width = 89
Visible = True
end
item
Expanded = False
Title.Alignment = taCenter
Title.Caption = #38144#21806#25968#37327
Width = 83
Visible = True
end
item
Expanded = False
Title.Alignment = taCenter
Title.Caption = #38144#21806#21333#20215
Width = 91
Visible = True
end
item
Expanded = False
Title.Alignment = taCenter
Title.Caption = #37329#39069
Width = 79
Visible = True
end>
end
object DBNavigator1: TDBNavigator
Left = 72
Top = 216
Width = 504
Height = 25
DataSource = DataSource1
VisibleButtons = [nbFirst, nbPrior, nbNext, nbLast, nbInsert, nbDelete, nbPost, nbCancel]
TabOrder = 1
end
object Button3: TButton
Left = 296
Top = 424
Width = 75
Height = 25
Caption = #25171#21360#27492#24211#21333
Font.Charset = DEFAULT_CHARSET
Font.Color = clRed
Font.Height = -11
Font.Name = 'MS Sans Serif'
Font.Style = []
ParentFont = False
TabOrder = 2
OnClick = Button3Click
end
object GroupBox1: TGroupBox
Left = 24
Top = 24
Width = 625
Height = 185
Caption = #38144#21806#20449#24687
TabOrder = 3
object Label1: TLabel
Left = 16
Top = 32
Width = 57
Height = 13
Caption = #38144#21806#21333#21495' '
end
object Label2: TLabel
Left = 216
Top = 32
Width = 60
Height = 13
Caption = #38144#21806#26085#26399' '
end
object Label3: TLabel
Left = 424
Top = 32
Width = 60
Height = 13
Caption = #32463' '#25163' '#20154' '
end
object Label8: TLabel
Left = 424
Top = 72
Width = 54
Height = 13
Caption = #33647#21697#31867#21035' '
end
object Label7: TLabel
Left = 216
Top = 72
Width = 57
Height = 13
Caption = #33647#21697#32534#21495' '
end
object Label5: TLabel
Left = 216
Top = 112
Width = 63
Height = 13
Caption = #38144#21806#25968#37327' '
end
object Label6: TLabel
Left = 424
Top = 112
Width = 63
Height = 13
Caption = #38144#21806#21333#20215' '
end
object Label9: TLabel
Left = 16
Top = 112
Width = 57
Height = 13
Caption = #35745#37327#21333#20301' '
end
object Label10: TLabel
Left = 16
Top = 148
Width = 57
Height = 13
Caption = #37329' '#39069' '
end
object Label4: TLabel
Left = 16
Top = 72
Width = 57
Height = 13
Caption = #33647#21697#36873#25321' '
end
object Edit1: TEdit
Left = 80
Top = 24
Width = 121
Height = 21
Color = clScrollBar
ReadOnly = True
TabOrder = 0
end
object Edit2: TEdit
Left = 280
Top = 24
Width = 121
Height = 21
Color = clScrollBar
ReadOnly = True
TabOrder = 1
end
object Edit3: TEdit
Left = 488
Top = 24
Width = 121
Height = 21
Color = clScrollBar
ReadOnly = True
TabOrder = 2
end
object DBComboBox1: TDBComboBox
Left = 80
Top = 64
Width = 121
Height = 21
DataField = 'YPMC'
DataSource = DataSource1
ItemHeight = 13
TabOrder = 3
OnChange = DBComboBox1Change
end
object DBEdit1: TDBEdit
Left = 280
Top = 64
Width = 121
Height = 21
Color = clScrollBar
DataField = 'YPBH'
DataSource = DataSource1
ReadOnly = True
TabOrder = 4
end
object DBEdit2: TDBEdit
Left = 488
Top = 64
Width = 121
Height = 21
Color = clScrollBar
DataField = 'YPLB'
DataSource = DataSource1
ReadOnly = True
TabOrder = 5
end
object DBEdit3: TDBEdit
Left = 80
Top = 104
Width = 121
Height = 21
Color = clScrollBar
DataField = 'JLDW'
DataSource = DataSource1
ReadOnly = True
TabOrder = 6
end
object DBEdit4: TDBEdit
Left = 280
Top = 104
Width = 121
Height = 21
DataField = 'XSSL'
DataSource = DataSource1
TabOrder = 7
OnChange = DBEdit4Change
end
object DBEdit5: TDBEdit
Left = 488
Top = 104
Width = 121
Height = 21
DataField = 'XSDJ'
DataSource = DataSource1
TabOrder = 8
OnChange = DBEdit5Change
end
object DBEdit6: TDBEdit
Left = 80
Top = 144
Width = 121
Height = 21
Color = clScrollBar
DataField = 'ZSJE'
DataSource = DataSource1
ReadOnly = True
TabOrder = 9
end
object Button1: TButton
Left = 280
Top = 144
Width = 121
Height = 25
Caption = #20445#23384#27492#26465#35760#24405
Font.Charset = DEFAULT_CHARSET
Font.Color = clRed
Font.Height = -11
Font.Name = 'MS Sans Serif'
Font.Style = []
ParentFont = False
TabOrder = 10
OnClick = Button1Click
end
end
object Button2: TButton
Left = 176
Top = 424
Width = 75
Height = 25
Caption = #28155#21152#26032#21333
TabOrder = 4
OnClick = Button2Click
end
object Button4: TButton
Left = 416
Top = 424
Width = 75
Height = 25
Caption = #36820' '#22238
TabOrder = 5
OnClick = Button4Click
end
end
object TabSheet2: TTabSheet
Caption = #26597#35810#38144#21806
ImageIndex = 1
OnShow = TabSheet2Show
object GroupBox2: TGroupBox
Left = 16
Top = 40
Width = 633
Height = 121
Caption = #26597#35810#26465#20214
TabOrder = 0
object RadioButton1: TRadioButton
Left = 40
Top = 24
Width = 113
Height = 17
Caption = #38144#21806#21333#21495
Checked = True
TabOrder = 0
TabStop = True
end
object Edit4: TEdit
Left = 136
Top = 24
Width = 121
Height = 21
TabOrder = 1
end
object RadioButton2: TRadioButton
Left = 288
Top = 24
Width = 113
Height = 17
Caption = #32463' '#25163' '#20154
TabOrder = 2
end
object Edit5: TEdit
Left = 360
Top = 24
Width = 121
Height = 21
TabOrder = 3
end
object RadioButton3: TRadioButton
Left = 40
Top = 64
Width = 113
Height = 17
Caption = #38144#21806#26085#26399
TabOrder = 4
end
object RadioButton4: TRadioButton
Left = 288
Top = 64
Width = 113
Height = 17
Caption = #33647#21697#21517#31216
TabOrder = 5
end
object Edit6: TEdit
Left = 136
Top = 64
Width = 121
Height = 21
TabOrder = 6
end
object Edit7: TEdit
Left = 360
Top = 64
Width = 121
Height = 21
TabOrder = 7
end
object Button5: TButton
Left = 504
Top = 24
Width = 75
Height = 25
Caption = #26597' '#35810
TabOrder = 8
OnClick = Button5Click
end
object Button6: TButton
Left = 504
Top = 64
Width = 75
Height = 25
Caption = #36820' '#22238
TabOrder = 9
OnClick = Button6Click
end
end
object GroupBox3: TGroupBox
Left = 16
Top = 216
Width = 633
Height = 273
TabOrder = 1
object DBGrid2: TDBGrid
Left = 8
Top = 24
Width = 617
Height = 225
DataSource = DataSource2
TabOrder = 0
TitleFont.Charset = DEFAULT_CHARSET
TitleFont.Color = clWindowText
TitleFont.Height = -11
TitleFont.Name = 'MS Sans Serif'
TitleFont.Style = []
Columns = <
item
Expanded = False
Title.Alignment = taCenter
Title.Caption = #38144#21806#21333#21495
Width = 77
Visible = True
end
item
Expanded = False
Title.Alignment = taCenter
Title.Caption = #33647#21697#32534#21495
Width = 60
Visible = True
end
item
Expanded = False
Title.Alignment = taCenter
Title.Caption = #33647#21697#21517#31216
Width = 56
Visible = True
end
item
Expanded = False
Title.Alignment = taCenter
Title.Caption = #33647#21697#31867#21035
Width = 55
Visible = True
end
item
Expanded = False
Title.Alignment = taCenter
Title.Caption = #35745#37327#21333#20301
Width = 59
Visible = True
end
item
Expanded = False
Title.Alignment = taCenter
Title.Caption = #38144#21806#25968#37327
Width = 60
Visible = True
end
item
Expanded = False
Title.Alignment = taCenter
Title.Caption = #38144#21806#21333#20215
Width = 59
Visible = True
end
item
Expanded = False
Title.Alignment = taCenter
Title.Caption = #37329#39069
Width = 55
Visible = True
end
item
Expanded = False
Title.Alignment = taCenter
Title.Caption = #38144#21806#26085#26399
Width = 57
Visible = True
end
item
Expanded = False
Title.Alignment = taCenter
Title.Caption = #32463#25163#20154
Visible = True
end>
end
end
object DBNavigator2: TDBNavigator
Left = 32
Top = 176
Width = 400
Height = 25
DataSource = DataSource2
VisibleButtons = [nbFirst, nbPrior, nbNext, nbLast, nbInsert, nbDelete, nbPost, nbCancel]
TabOrder = 2
end
object Button7: TButton
Left = 488
Top = 176
Width = 97
Height = 25
Caption = #25171#21360#26597#35810#32467#26524
TabOrder = 3
OnClick = Button7Click
end
end
end
object DataSource1: TDataSource
DataSet = ADOQuery1
Left = 224
Top = 8
end
object ADOQuery1: TADOQuery
Connection = LoginFrm.ADOConnection1
CursorType = ctStatic
Parameters = <>
SQL.Strings = (
'select * from YPXS')
Left = 264
Top = 8
end
object ADOTable1: TADOTable
Active = True
Connection = LoginFrm.ADOConnection1
CursorType = ctStatic
TableName = 'YPXX'
Left = 296
Top = 8
end
object ADOQuery2: TADOQuery
Connection = LoginFrm.ADOConnection1
Parameters = <>
SQL.Strings = (
'select * from YPXS')
Left = 384
Top = 8
end
object DataSource2: TDataSource
DataSet = ADOQuery2
Left = 424
Top = 8
end
end
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?