2017-02-04 23:43:06 +01:00
|
|
|
object MainForm: TMainForm
|
2014-06-27 16:38:49 +02:00
|
|
|
Left = 0
|
|
|
|
Top = 0
|
|
|
|
Caption = 'Articles CRUD SAMPLE'
|
|
|
|
ClientHeight = 391
|
2018-09-25 15:36:53 +02:00
|
|
|
ClientWidth = 876
|
2014-06-27 16:38:49 +02:00
|
|
|
Color = clBtnFace
|
|
|
|
Font.Charset = DEFAULT_CHARSET
|
|
|
|
Font.Color = clWindowText
|
|
|
|
Font.Height = -11
|
|
|
|
Font.Name = 'Tahoma'
|
|
|
|
Font.Style = []
|
|
|
|
OnCreate = FormCreate
|
|
|
|
TextHeight = 13
|
|
|
|
object Panel1: TPanel
|
|
|
|
Left = 0
|
|
|
|
Top = 0
|
2018-09-25 15:36:53 +02:00
|
|
|
Width = 876
|
2020-04-23 17:20:53 +02:00
|
|
|
Height = 112
|
2014-06-27 16:38:49 +02:00
|
|
|
Align = alTop
|
|
|
|
TabOrder = 0
|
2023-04-09 17:05:55 +02:00
|
|
|
ExplicitWidth = 872
|
2017-02-04 23:43:06 +01:00
|
|
|
object DBNavigator1: TDBNavigator
|
2014-06-27 16:38:49 +02:00
|
|
|
AlignWithMargins = True
|
2018-09-25 15:36:53 +02:00
|
|
|
Left = 585
|
2017-02-04 23:43:06 +01:00
|
|
|
Top = 4
|
|
|
|
Width = 287
|
2020-04-23 17:20:53 +02:00
|
|
|
Height = 40
|
2017-02-04 23:43:06 +01:00
|
|
|
DataSource = dsrcArticles
|
|
|
|
Align = alRight
|
2020-08-26 22:13:18 +02:00
|
|
|
TabOrder = 3
|
2023-04-09 17:05:55 +02:00
|
|
|
ExplicitLeft = 581
|
2014-06-27 16:38:49 +02:00
|
|
|
end
|
2017-02-04 23:43:06 +01:00
|
|
|
object btnOpen: TButton
|
2014-06-27 16:38:49 +02:00
|
|
|
AlignWithMargins = True
|
2017-02-04 23:43:06 +01:00
|
|
|
Left = 4
|
|
|
|
Top = 4
|
|
|
|
Width = 75
|
2020-04-23 17:20:53 +02:00
|
|
|
Height = 40
|
2014-06-27 16:38:49 +02:00
|
|
|
Align = alLeft
|
2017-02-04 23:43:06 +01:00
|
|
|
Caption = 'Open'
|
2020-08-26 22:13:18 +02:00
|
|
|
TabOrder = 0
|
2017-02-04 23:43:06 +01:00
|
|
|
OnClick = btnOpenClick
|
2014-06-30 12:32:43 +02:00
|
|
|
end
|
2017-02-06 14:10:04 +01:00
|
|
|
object btnRefreshRecord: TButton
|
|
|
|
AlignWithMargins = True
|
|
|
|
Left = 166
|
|
|
|
Top = 4
|
|
|
|
Width = 107
|
2020-04-23 17:20:53 +02:00
|
|
|
Height = 40
|
2017-02-06 14:10:04 +01:00
|
|
|
Align = alLeft
|
|
|
|
Caption = 'Refresh Record'
|
|
|
|
TabOrder = 2
|
|
|
|
OnClick = btnRefreshRecordClick
|
|
|
|
end
|
|
|
|
object Button1: TButton
|
2017-02-04 23:43:06 +01:00
|
|
|
AlignWithMargins = True
|
|
|
|
Left = 85
|
|
|
|
Top = 4
|
|
|
|
Width = 75
|
2020-04-23 17:20:53 +02:00
|
|
|
Height = 40
|
2017-02-04 23:43:06 +01:00
|
|
|
Align = alLeft
|
|
|
|
Caption = 'Close'
|
2020-08-26 22:13:18 +02:00
|
|
|
TabOrder = 1
|
2017-02-04 23:43:06 +01:00
|
|
|
OnClick = btnCloseClick
|
2020-04-23 17:20:53 +02:00
|
|
|
end
|
|
|
|
object Panel2: TPanel
|
|
|
|
Left = 1
|
|
|
|
Top = 47
|
|
|
|
Width = 874
|
|
|
|
Height = 64
|
|
|
|
Align = alBottom
|
|
|
|
BevelOuter = bvNone
|
|
|
|
TabOrder = 4
|
2023-04-09 17:05:55 +02:00
|
|
|
ExplicitWidth = 870
|
2020-04-23 17:20:53 +02:00
|
|
|
object Label1: TLabel
|
|
|
|
Left = 3
|
|
|
|
Top = 11
|
|
|
|
Width = 24
|
|
|
|
Height = 13
|
|
|
|
Caption = 'Filter'
|
|
|
|
end
|
|
|
|
object EditFilter: TEdit
|
|
|
|
Left = 3
|
|
|
|
Top = 30
|
|
|
|
Width = 156
|
|
|
|
Height = 21
|
2020-08-26 22:13:18 +02:00
|
|
|
TabOrder = 1
|
2020-04-23 17:20:53 +02:00
|
|
|
end
|
|
|
|
object btnFilter: TButton
|
|
|
|
Left = 165
|
|
|
|
Top = 19
|
|
|
|
Width = 107
|
|
|
|
Height = 40
|
2023-04-09 17:05:55 +02:00
|
|
|
Caption = 'Filter by description'
|
2020-08-26 22:13:18 +02:00
|
|
|
TabOrder = 0
|
2020-04-23 17:20:53 +02:00
|
|
|
OnClick = btnFilterClick
|
|
|
|
end
|
2014-06-27 16:38:49 +02:00
|
|
|
end
|
|
|
|
end
|
|
|
|
object DBGrid1: TDBGrid
|
|
|
|
Left = 0
|
2020-04-23 17:20:53 +02:00
|
|
|
Top = 112
|
2018-09-25 15:36:53 +02:00
|
|
|
Width = 876
|
2020-04-23 17:20:53 +02:00
|
|
|
Height = 279
|
2014-06-27 16:38:49 +02:00
|
|
|
Align = alClient
|
2017-02-04 23:43:06 +01:00
|
|
|
DataSource = dsrcArticles
|
2014-06-27 16:38:49 +02:00
|
|
|
TabOrder = 1
|
|
|
|
TitleFont.Charset = DEFAULT_CHARSET
|
|
|
|
TitleFont.Color = clWindowText
|
|
|
|
TitleFont.Height = -11
|
|
|
|
TitleFont.Name = 'Tahoma'
|
|
|
|
TitleFont.Style = []
|
|
|
|
Columns = <
|
|
|
|
item
|
|
|
|
Expanded = False
|
|
|
|
FieldName = 'id'
|
2017-02-04 23:43:06 +01:00
|
|
|
Title.Caption = '#ID'
|
2014-06-27 16:38:49 +02:00
|
|
|
Visible = True
|
|
|
|
end
|
|
|
|
item
|
|
|
|
Expanded = False
|
|
|
|
FieldName = 'code'
|
2017-02-04 23:43:06 +01:00
|
|
|
Title.Caption = 'Code'
|
2014-06-27 16:38:49 +02:00
|
|
|
Visible = True
|
|
|
|
end
|
|
|
|
item
|
|
|
|
Expanded = False
|
|
|
|
FieldName = 'description'
|
2017-02-04 23:43:06 +01:00
|
|
|
Title.Caption = 'Description'
|
|
|
|
Width = 265
|
2014-06-27 16:38:49 +02:00
|
|
|
Visible = True
|
|
|
|
end
|
|
|
|
item
|
|
|
|
Expanded = False
|
|
|
|
FieldName = 'price'
|
2017-02-04 23:43:06 +01:00
|
|
|
Title.Caption = 'Price'
|
2014-06-27 16:38:49 +02:00
|
|
|
Visible = True
|
2020-11-05 15:42:31 +01:00
|
|
|
end
|
|
|
|
item
|
|
|
|
Expanded = False
|
|
|
|
FieldName = 'createdat'
|
|
|
|
ReadOnly = True
|
|
|
|
Visible = True
|
|
|
|
end
|
|
|
|
item
|
|
|
|
Expanded = False
|
|
|
|
FieldName = 'updatedat'
|
|
|
|
ReadOnly = True
|
|
|
|
Visible = True
|
2014-06-27 16:38:49 +02:00
|
|
|
end>
|
|
|
|
end
|
2017-02-04 23:43:06 +01:00
|
|
|
object dsArticles: TFDMemTable
|
|
|
|
AfterOpen = dsArticlesAfterOpen
|
|
|
|
BeforePost = dsArticlesBeforePost
|
|
|
|
BeforeDelete = dsArticlesBeforeDelete
|
|
|
|
BeforeRefresh = dsArticlesBeforeRefresh
|
2014-06-27 16:38:49 +02:00
|
|
|
FieldDefs = <>
|
|
|
|
IndexDefs = <>
|
2017-02-06 12:42:17 +01:00
|
|
|
BeforeRowRequest = dsArticlesBeforeRowRequest
|
2014-06-27 16:38:49 +02:00
|
|
|
FetchOptions.AssignedValues = [evMode]
|
|
|
|
FetchOptions.Mode = fmAll
|
|
|
|
ResourceOptions.AssignedValues = [rvSilentMode]
|
|
|
|
ResourceOptions.SilentMode = True
|
|
|
|
UpdateOptions.AssignedValues = [uvCheckRequired]
|
|
|
|
UpdateOptions.CheckRequired = False
|
|
|
|
StoreDefs = True
|
|
|
|
Left = 136
|
|
|
|
Top = 120
|
2017-02-04 23:43:06 +01:00
|
|
|
object dsArticlesid: TIntegerField
|
2014-06-27 16:38:49 +02:00
|
|
|
FieldName = 'id'
|
|
|
|
end
|
2017-02-04 23:43:06 +01:00
|
|
|
object dsArticlescode: TStringField
|
2014-06-27 16:38:49 +02:00
|
|
|
FieldName = 'code'
|
|
|
|
end
|
2017-02-04 23:43:06 +01:00
|
|
|
object dsArticlesdescription: TStringField
|
2014-06-27 16:38:49 +02:00
|
|
|
FieldName = 'description'
|
|
|
|
Size = 50
|
|
|
|
end
|
2017-02-04 23:43:06 +01:00
|
|
|
object dsArticlesprice: TCurrencyField
|
2014-06-27 16:38:49 +02:00
|
|
|
FieldName = 'price'
|
|
|
|
end
|
2020-11-05 15:42:31 +01:00
|
|
|
object dsArticlescreatedat: TDateTimeField
|
|
|
|
AutoGenerateValue = arDefault
|
|
|
|
FieldName = 'createdat'
|
|
|
|
end
|
|
|
|
object dsArticlesupdatedat: TDateTimeField
|
|
|
|
AutoGenerateValue = arDefault
|
|
|
|
FieldName = 'updatedat'
|
|
|
|
end
|
2014-06-27 16:38:49 +02:00
|
|
|
end
|
2017-02-04 23:43:06 +01:00
|
|
|
object dsrcArticles: TDataSource
|
|
|
|
DataSet = dsArticles
|
|
|
|
Left = 136
|
|
|
|
Top = 184
|
2014-06-27 16:38:49 +02:00
|
|
|
end
|
|
|
|
end
|