33 |
|
uses |
34 |
|
Classes, SysUtils, FileUtil, Forms, Controls, Graphics, Dialogs, ComCtrls, |
35 |
|
StdCtrls, ExtCtrls, IBSQLEditFrame, IBCustomDataSet, |
36 |
< |
IBDatabase, IBLookupComboEditBox, IBDynamicGrid, Types, IBUpdateSQL; |
36 |
> |
IBDatabase, IBLookupComboEditBox, IBDynamicGrid, IBUpdateSQL; |
37 |
|
|
38 |
|
type |
39 |
|
|
120 |
|
IBSQLEditFrame1.Database := UpdateObject.DataSet.Database; |
121 |
|
GenerateParams.Checked := UpdateObject.DataSet.GenerateParamNames; |
122 |
|
end; |
123 |
+ |
with IBSQLEditFrame1 do |
124 |
+ |
IncludeReadOnlyFields := false; |
125 |
|
FUpdateObject := UpdateObject; |
126 |
|
Result := ShowModal = mrOK; |
127 |
|
if Result then |
135 |
|
{ TIBUpdateSQLEditorForm } |
136 |
|
|
137 |
|
procedure TIBUpdateSQLEditorForm.FormShow(Sender: TObject); |
136 |
– |
var TableName: string; |
138 |
|
begin |
139 |
|
PageControl.ActivePage := FieldsPage; |
140 |
|
FModifySQL.Assign(FUpdateObject.ModifySQL); |
181 |
|
|
182 |
|
procedure TIBUpdateSQLEditorForm.GenerateButtonClick(Sender: TObject); |
183 |
|
begin |
184 |
< |
IBSQLEditFrame1.GenerateRefreshSQL(QuoteFields.Checked,FRefreshSQL); |
184 |
> |
IBSQLEditFrame1.GenerateRefreshSQL(QuoteFields.Checked,FRefreshSQL,true); |
185 |
|
IBSQLEditFrame1.GenerateDeleteSQL(QuoteFields.Checked,FDeleteSQL); |
186 |
|
IBSQLEditFrame1.GenerateInsertSQL(QuoteFields.Checked,FInsertSQL); |
187 |
< |
IBSQLEditFrame1.GenerateModifySQL(QuoteFields.Checked,FModifySQL, not IncludePrimaryKeys.Checked); |
187 |
> |
IBSQLEditFrame1.GenerateModifySQL(QuoteFields.Checked,FModifySQL, IncludePrimaryKeys.Checked); |
188 |
|
FDirty := false; |
189 |
|
PageControl.ActivePage := SQLPage; |
190 |
|
end; |