Changeset 23 for trunk/Forms
- Timestamp:
- Nov 16, 2012, 1:26:29 PM (12 years ago)
- Location:
- trunk/Forms
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Forms/UFormConnection.pas
r12 r23 44 44 EditHostName.Text := Database.HostName; 45 45 EditUserName.Text := Database.UserName; 46 EditPassword.Text := '';46 EditPassword.Text := Database.Password; 47 47 EditSchema.Text := Database.Database; 48 48 end; -
trunk/Forms/UFormList.lfm
r16 r23 134 134 Hint = 'Send to printer' 135 135 ImageIndex = 6 136 OnExecute = APrintExecute 136 137 end 137 138 object AExport: TAction … … 342 343 end 343 344 end 345 object PrintPreview1: TPrintPreview 346 Zoom = 1 347 left = 240 348 top = 112 349 end 344 350 end -
trunk/Forms/UFormList.pas
r20 r23 8 8 Classes, SysUtils, FileUtil, Forms, Controls, Graphics, Dialogs, ComCtrls, 9 9 ActnList, Menus, StdCtrls, ExtCtrls, SpecializedList, USqlDatabase, 10 UListViewSort, UDataView, URegistry ;10 UListViewSort, UDataView, URegistry, UPrintPreview; 11 11 12 12 type … … 61 61 Panel1: TPanel; 62 62 PopupMenu1: TPopupMenu; 63 PrintPreview1: TPrintPreview; 63 64 ToolBar1: TToolBar; 64 65 ToolButton1: TToolButton; … … 73 74 procedure ADuplicateExecute(Sender: TObject); 74 75 procedure AModifyExecute(Sender: TObject); 76 procedure APrintExecute(Sender: TObject); 75 77 procedure AReloadExecute(Sender: TObject); 76 78 procedure FormCreate(Sender: TObject); … … 171 173 end; 172 174 175 procedure TFormList.APrintExecute(Sender: TObject); 176 begin 177 PrintPreview1.Preview; 178 end; 179 173 180 procedure TFormList.AReloadExecute(Sender: TObject); 174 181 begin … … 277 284 Filter := Filter + ', `' + Name + '`'; 278 285 end; 279 Core.Database.Query(DbRows, 'SELECT ' + Filter + ' FROM ' + View.Name); 286 if Core.Database.Connected then 287 Core.Database.Query(DbRows, 'SELECT ' + Filter + ' FROM ' + View.Name); 280 288 281 289 ListView1.Items.Count := DbRows.Count; -
trunk/Forms/UFormMain.pas
r18 r23 156 156 begin 157 157 UpdateInterface; 158 AConnect.Execute; 158 159 end; 159 160
Note:
See TracChangeset
for help on using the changeset viewer.