33 |
|
uses |
34 |
|
Classes, SysUtils, FileUtil, Forms, Controls, Graphics, Dialogs, ComCtrls, |
35 |
|
StdCtrls, ExtCtrls, IBSQLEditFrame, IBCustomDataSet, |
36 |
< |
IBDatabase, IBLookupComboEditBox, IBDynamicGrid, Types; |
36 |
> |
IBDatabase, IBLookupComboEditBox, IBDynamicGrid; |
37 |
|
|
38 |
|
type |
39 |
|
|
124 |
|
FDataSet := DataSet; |
125 |
|
with IBSQLEditFrame1 do |
126 |
|
begin |
127 |
– |
IncludePrimaryKeys := false; |
127 |
|
IncludeReadOnlyFields := false; |
128 |
|
end; |
129 |
|
Result := ShowModal = mrOK; |
138 |
|
{ TIBDataSetEditorForm } |
139 |
|
|
140 |
|
procedure TIBDataSetEditorForm.FormShow(Sender: TObject); |
142 |
– |
var TableName: string; |
141 |
|
begin |
142 |
|
PageControl.ActivePage := FieldsPage; |
143 |
|
FModifySQL.Assign(FDataSet.ModifySQL); |
186 |
|
|
187 |
|
procedure TIBDataSetEditorForm.GenerateButtonClick(Sender: TObject); |
188 |
|
begin |
189 |
< |
IBSQLEditFrame1.GenerateSelectSQL(QuoteFields.Checked,FSelectSQL); |
190 |
< |
IBSQLEditFrame1.GenerateRefreshSQL(QuoteFields.Checked,FRefreshSQL); |
189 |
> |
IBSQLEditFrame1.GenerateSelectSQL(QuoteFields.Checked,FSelectSQL,true); |
190 |
> |
IBSQLEditFrame1.GenerateRefreshSQL(QuoteFields.Checked,FRefreshSQL,true); |
191 |
|
IBSQLEditFrame1.GenerateDeleteSQL(QuoteFields.Checked,FDeleteSQL); |
192 |
|
IBSQLEditFrame1.GenerateInsertSQL(QuoteFields.Checked,FInsertSQL); |
193 |
< |
IBSQLEditFrame1.GenerateModifySQL(QuoteFields.Checked,FModifySQL, not IncludePrimaryKeys.Checked); |
193 |
> |
IBSQLEditFrame1.GenerateModifySQL(QuoteFields.Checked,FModifySQL, IncludePrimaryKeys.Checked); |
194 |
|
FDirty := false; |
195 |
|
PageControl.ActivePage := SQLPage; |
196 |
|
end; |