📄 productcodefm.dfm
字号:
object ProductCode: TProductCode
Left = 192
Top = 107
Width = 626
Height = 480
Caption = #25104#21697#20195#30721#31383#21475
Color = clBtnFace
Font.Charset = DEFAULT_CHARSET
Font.Color = clWindowText
Font.Height = -11
Font.Name = 'MS Sans Serif'
Font.Style = []
OldCreateOrder = False
OnClose = FormClose
OnCreate = FormCreate
PixelsPerInch = 96
TextHeight = 13
object grp1: TGroupBox
Left = 0
Top = 0
Width = 618
Height = 453
Align = alClient
Anchors = [akLeft, akRight, akBottom]
Caption = #25104#21697#20195#30721
Font.Charset = GB2312_CHARSET
Font.Color = clWindowText
Font.Height = -12
Font.Name = #23435#20307
Font.Style = []
ParentFont = False
TabOrder = 0
DesignSize = (
618
453)
object grp2: TGroupBox
Left = 2
Top = 280
Width = 614
Height = 171
Align = alBottom
Anchors = [akLeft, akTop, akRight, akBottom]
TabOrder = 0
object dbgrd1: TDBGrid
Left = 2
Top = 14
Width = 610
Height = 155
Align = alClient
DataSource = ds_ProductCode
ReadOnly = True
TabOrder = 0
TitleFont.Charset = GB2312_CHARSET
TitleFont.Color = clWindowText
TitleFont.Height = -12
TitleFont.Name = #23435#20307
TitleFont.Style = []
Columns = <
item
Expanded = False
FieldName = 'fParentID'
Title.Caption = #25104#21697#20195#30721
Visible = True
end
item
Expanded = False
FieldName = 'fParentName'
Title.Caption = #25104#21697#21517#31216
Visible = True
end
item
Expanded = False
FieldName = 'fMeasureUnit'
Title.Caption = #24230#37327#21333#20301':'
Visible = True
end
item
Expanded = False
FieldName = 'fWeightUnit'
Title.Caption = #37325#37327#21333#20301':'
Visible = True
end>
end
end
object grp3: TGroupBox
Left = 8
Top = 15
Width = 497
Height = 48
Anchors = [akLeft, akTop, akRight]
Caption = #25805#20316#23548#33322
TabOrder = 1
object save: TButton
Left = 277
Top = 16
Width = 64
Height = 25
Caption = #20445#23384
Enabled = False
TabOrder = 0
OnClick = saveClick
end
object Button3: TButton
Left = 340
Top = 16
Width = 61
Height = 25
Caption = #25171#21360
TabOrder = 1
end
object add: TBitBtn
Left = 40
Top = 16
Width = 75
Height = 25
Caption = #26032#22686
TabOrder = 2
OnClick = addClick
end
object BitBtn2: TBitBtn
Left = 114
Top = 16
Width = 75
Height = 25
Caption = #21024#38500
TabOrder = 3
OnClick = BitBtn2Click
end
object BitBtn3: TBitBtn
Left = 188
Top = 16
Width = 75
Height = 25
Caption = #32534#36753
TabOrder = 4
OnClick = BitBtn3Click
end
end
object grp4: TGroupBox
Left = 8
Top = 67
Width = 497
Height = 209
Anchors = [akLeft, akTop, akRight]
Caption = #25104#21697#20449#24687#24405#20837
TabOrder = 2
object Label1: TLabel
Left = 47
Top = 28
Width = 54
Height = 12
Caption = #25104#21697#20195#30721':'
end
object Label2: TLabel
Left = 47
Top = 60
Width = 54
Height = 12
Caption = #25104#21697#21517#31216':'
end
object Label4: TLabel
Left = 47
Top = 148
Width = 54
Height = 12
Caption = #37325#37327#21333#20301':'
end
object Label5: TLabel
Left = 47
Top = 108
Width = 54
Height = 12
Caption = #24230#37327#21333#20301':'
end
object productID: TDBEdit
Left = 120
Top = 24
Width = 114
Height = 20
Color = clGradientActiveCaption
DataField = 'fParentID'
DataSource = ds_ProductCode
TabOrder = 0
end
object ProductName: TDBEdit
Left = 120
Top = 56
Width = 114
Height = 20
Color = clSkyBlue
DataField = 'fParentName'
DataSource = ds_ProductCode
TabOrder = 1
end
object DBEdit5: TDBEdit
Left = 120
Top = 144
Width = 114
Height = 20
Color = clGradientActiveCaption
DataField = 'fWeightUnit'
DataSource = ds_ProductCode
TabOrder = 2
end
object unitbox: TDBComboBox
Left = 120
Top = 102
Width = 114
Height = 20
Color = clGradientActiveCaption
DataField = 'fMeasureUnit'
DataSource = ds_ProductCode
ItemHeight = 12
TabOrder = 3
end
end
end
object AdoProductCode: TADOQuery
Active = True
ConnectionString = 'file name=stockdb.udl'
CursorType = ctStatic
Parameters = <>
SQL.Strings = (
'select * from tProductCode')
Left = 170
Top = 352
end
object ds_ProductCode: TDataSource
DataSet = AdoProductCode
Left = 202
Top = 352
end
object ado_unit: TADOTable
Active = True
ConnectionString = 'file name=stockdb.udl'
CursorType = ctStatic
TableName = 'tUnits'
Left = 296
Top = 184
object ado_unitfUnitCode: TWideStringField
FieldName = 'fUnitCode'
Size = 10
end
object ado_unitfbaseUnits: TWideStringField
FieldName = 'fbaseUnits'
Size = 10
end
end
end
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -