Changeset 22 for trunk/Forms
- Timestamp:
- Mar 25, 2013, 11:47:38 PM (12 years ago)
- Location:
- trunk/Forms
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Forms/UFormAccounts.lfm
r21 r22 20 20 Columns = < 21 21 item 22 Caption = 'Seq.' 23 end 24 item 22 25 Caption = 'Name' 23 26 Width = 150 … … 73 76 object LabeledEditToken: TLabeledEdit 74 77 Left = 8 78 Height = 21 79 Top = 432 80 Width = 601 75 81 Height = 27 76 82 Top = 428 … … 82 88 EditLabel.AnchorSideBottom.Control = LabeledEditToken 83 89 EditLabel.Left = 8 90 EditLabel.Height = 13 91 EditLabel.Top = 416 92 EditLabel.Width = 601 84 93 EditLabel.Height = 17 85 94 EditLabel.Top = 408 … … 95 104 Top = 374 96 105 Width = 617 106 Height = 21 107 Top = 378 108 Width = 601 97 109 Anchors = [akLeft, akRight, akBottom] 98 110 EditLabel.AnchorSideLeft.Control = LabeledEditName … … 104 116 EditLabel.Top = 354 105 117 EditLabel.Width = 617 118 EditLabel.Height = 13 119 EditLabel.Top = 362 120 EditLabel.Width = 601 106 121 EditLabel.Caption = 'Name' 107 122 EditLabel.ParentColor = False -
trunk/Forms/UFormAccounts.lrt
r20 r22 1 1 TFORMACCOUNTS.CAPTION=Accounts 2 TFORMACCOUNTS.LISTVIEW1.COLUMNS[0].CAPTION=Name 3 TFORMACCOUNTS.LISTVIEW1.COLUMNS[1].CAPTION=Number 4 TFORMACCOUNTS.LISTVIEW1.COLUMNS[2].CAPTION=Bank code 5 TFORMACCOUNTS.LISTVIEW1.COLUMNS[3].CAPTION=Balance 6 TFORMACCOUNTS.LISTVIEW1.COLUMNS[4].CAPTION=Date 7 TFORMACCOUNTS.LISTVIEW1.COLUMNS[5].CAPTION=Token 2 TFORMACCOUNTS.LISTVIEW1.COLUMNS[0].CAPTION=Seq. 3 TFORMACCOUNTS.LISTVIEW1.COLUMNS[1].CAPTION=Name 4 TFORMACCOUNTS.LISTVIEW1.COLUMNS[2].CAPTION=Number 5 TFORMACCOUNTS.LISTVIEW1.COLUMNS[3].CAPTION=Bank code 6 TFORMACCOUNTS.LISTVIEW1.COLUMNS[4].CAPTION=Balance 7 TFORMACCOUNTS.LISTVIEW1.COLUMNS[5].CAPTION=Date 8 TFORMACCOUNTS.LISTVIEW1.COLUMNS[6].CAPTION=Token 8 9 TFORMACCOUNTS.BUTTONOK.CAPTION=Ok 9 10 TFORMACCOUNTS.BUTTONCANCEL.CAPTION=Cancel -
trunk/Forms/UFormAccounts.pas
r21 r22 60 60 if (Item.Index >= 0) and (Item.Index < Accounts.Count) then 61 61 with TAccount(Accounts[Item.Index]) do begin 62 Item.Caption := Name;62 Item.Caption := IntToStr(Item.Index + 1); 63 63 Item.Data := Accounts[Item.Index]; 64 Item.SubItems.Add(Name); 64 65 Item.SubItems.Add(Number); 65 66 Item.SubItems.Add(BankCode); -
trunk/Forms/UFormMain.lfm
r20 r22 28 28 Anchors = [akLeft, akRight, akBottom] 29 29 Caption = 'New transaction from last check' 30 ClientHeight = 3 830 ClientHeight = 39 31 31 ClientWidth = 577 32 32 TabOrder = 1 … … 42 42 object Label7: TLabel 43 43 Left = 6 44 Height = 1 745 Top = 12 46 Width = 4744 Height = 13 45 Top = 12 46 Width = 35 47 47 Caption = 'Last id:' 48 48 ParentColor = False … … 50 50 object SpinEditLastId: TSpinEdit 51 51 Left = 70 52 Height = 2 752 Height = 21 53 53 Top = 7 54 54 Width = 96 … … 64 64 Anchors = [akLeft, akRight, akBottom] 65 65 Caption = 'Transactions from defined time interval' 66 ClientHeight = 5 366 ClientHeight = 54 67 67 ClientWidth = 577 68 68 TabOrder = 2 … … 78 78 object DateEditStart: TDateEdit 79 79 Left = 54 80 Height = 2 780 Height = 21 81 81 Top = 7 82 82 Width = 80 … … 94 94 object DateEditTo: TDateEdit 95 95 Left = 238 96 Height = 2 796 Height = 21 97 97 Top = 7 98 98 Width = 80 … … 110 110 object Label1: TLabel 111 111 Left = 6 112 Height = 1 7113 Top = 12 114 Width = 36112 Height = 13 113 Top = 12 114 Width = 28 115 115 Caption = 'From:' 116 116 ParentColor = False … … 118 118 object Label4: TLabel 119 119 Left = 174 120 Height = 1 7121 Top = 12 122 Width = 1 8120 Height = 13 121 Top = 12 122 Width = 16 123 123 Caption = 'To:' 124 124 ParentColor = False … … 132 132 Anchors = [akLeft, akRight, akBottom] 133 133 Caption = 'Selected mothly report' 134 ClientHeight = 4 6134 ClientHeight = 47 135 135 ClientWidth = 578 136 136 TabOrder = 3 … … 146 146 object SpinEditYear: TSpinEdit 147 147 Left = 54 148 Height = 2 7148 Height = 21 149 149 Top = 7 150 150 Width = 96 … … 156 156 object SpinEditId: TSpinEdit 157 157 Left = 238 158 Height = 2 7158 Height = 21 159 159 Top = 7 160 160 Width = 96 … … 166 166 object Label2: TLabel 167 167 Left = 6 168 Height = 1 7169 Top = 12 170 Width = 31168 Height = 13 169 Top = 12 170 Width = 26 171 171 Caption = 'Year:' 172 172 ParentColor = False … … 174 174 object Label3: TLabel 175 175 Left = 174 176 Height = 1 7177 Top = 12 178 Width = 56176 Height = 13 177 Top = 12 178 Width = 41 179 179 Caption = 'Number:' 180 180 ParentColor = False … … 201 201 object Label5: TLabel 202 202 Left = 16 203 Height = 1 7203 Height = 13 204 204 Top = 12 205 Width = 56205 Width = 43 206 206 Caption = 'Account:' 207 207 ParentColor = False … … 209 209 object ComboBoxAccounts: TComboBox 210 210 Left = 96 211 Height = 2 9211 Height = 21 212 212 Top = 8 213 213 Width = 395 214 214 Anchors = [akTop, akLeft, akRight] 215 ItemHeight = 0215 ItemHeight = 13 216 216 OnChange = ComboBoxAccountsChange 217 217 Style = csDropDownList … … 235 235 Anchors = [akTop, akLeft, akRight, akBottom] 236 236 Caption = 'Account state' 237 ClientHeight = 17 8237 ClientHeight = 179 238 238 ClientWidth = 577 239 239 TabOrder = 8 240 240 object Label6: TLabel 241 241 Left = 14 242 Height = 1 7243 Top = 7 244 Width = 56242 Height = 13 243 Top = 7 244 Width = 41 245 245 Caption = 'Balance:' 246 246 ParentColor = False … … 248 248 object LabelBalance: TLabel 249 249 Left = 110 250 Height = 1 7251 Top = 7 252 Width = 12250 Height = 13 251 Top = 7 252 Width = 9 253 253 Caption = ' ' 254 254 ParentColor = False … … 263 263 TabOrder = 0 264 264 end 265 object ListView 1: TListView265 object ListViewOperation: TListView 266 266 Left = 6 267 Height = 14 4268 Top = 3 1267 Height = 145 268 Top = 32 269 269 Width = 561 270 270 Anchors = [akTop, akLeft, akRight, akBottom] … … 296 296 Width = 134 297 297 end> 298 OwnerData = True 299 ReadOnly = True 300 RowSelect = True 298 301 TabOrder = 1 299 302 ViewStyle = vsReport 303 OnData = ListViewOperationData 300 304 end 301 305 end -
trunk/Forms/UFormMain.lrt
r20 r22 21 21 TFORMMAIN.LABELBALANCE.CAPTION= 22 22 TFORMMAIN.BUTTONGETSTATE.CAPTION=Get 23 TFORMMAIN.LISTVIEW 1.COLUMNS[0].CAPTION=Id24 TFORMMAIN.LISTVIEW 1.COLUMNS[1].CAPTION=Date25 TFORMMAIN.LISTVIEW 1.COLUMNS[2].CAPTION=Account26 TFORMMAIN.LISTVIEW 1.COLUMNS[3].CAPTION=Value27 TFORMMAIN.LISTVIEW 1.COLUMNS[4].CAPTION=Var. sym.28 TFORMMAIN.LISTVIEW 1.COLUMNS[5].CAPTION=Spec. sym.29 TFORMMAIN.LISTVIEW 1.COLUMNS[6].CAPTION=Const. sym.23 TFORMMAIN.LISTVIEWOPERATION.COLUMNS[0].CAPTION=Id 24 TFORMMAIN.LISTVIEWOPERATION.COLUMNS[1].CAPTION=Date 25 TFORMMAIN.LISTVIEWOPERATION.COLUMNS[2].CAPTION=Account 26 TFORMMAIN.LISTVIEWOPERATION.COLUMNS[3].CAPTION=Value 27 TFORMMAIN.LISTVIEWOPERATION.COLUMNS[4].CAPTION=Var. sym. 28 TFORMMAIN.LISTVIEWOPERATION.COLUMNS[5].CAPTION=Spec. sym. 29 TFORMMAIN.LISTVIEWOPERATION.COLUMNS[6].CAPTION=Const. sym. -
trunk/Forms/UFormMain.pas
r20 r22 38 38 Label7: TLabel; 39 39 LabelBalance: TLabel; 40 ListView 1: TListView;40 ListViewOperation: TListView; 41 41 SpinEditYear: TSpinEdit; 42 42 SpinEditId: TSpinEdit; … … 55 55 procedure FormCreate(Sender: TObject); 56 56 procedure FormShow(Sender: TObject); 57 procedure ListViewOperationData(Sender: TObject; Item: TListItem); 57 58 private 58 59 { private declarations } 59 60 public 61 procedure ReloadList; 60 62 procedure LoadInterface; 61 63 procedure SaveInterface; … … 114 116 Core.LoadAccount(Core.CurrentAccount); 115 117 LoadInterface; 118 ReloadList; 116 119 end; 117 120 end; … … 137 140 LoadInterface; 138 141 Core.CoolTranslator1.Translate; 142 end; 143 144 procedure TFormMain.ListViewOperationData(Sender: TObject; Item: TListItem); 145 begin 146 if Assigned(Core.CurrentAccount) then 147 with Core.CurrentAccount do begin 148 if (Item.Index >= 0) and (Item.Index < Operations.Count) then 149 with TAccountOperation(Operations[Item.Index]) do begin 150 Item.Caption := IntToStr(Item.Index + 1); 151 Item.Data := Operations[Item.Index]; 152 Item.SubItems.Add(DateToStr(Time)); 153 Item.SubItems.Add(Account); 154 Item.SubItems.Add(FloatToStr(Value)); 155 Item.SubItems.Add(VarSym); 156 Item.SubItems.Add(SpecSym); 157 Item.SubItems.Add(ConstSym); 158 end; 159 end; 160 end; 161 162 procedure TFormMain.ReloadList; 163 begin 164 if Assigned(Core.CurrentAccount) then 165 ListViewOperation.Items.Count := Core.CurrentAccount.Operations.Count 166 else ListViewOperation.Items.Count; 167 ListViewOperation.Refresh; 139 168 end; 140 169
Note:
See TracChangeset
for help on using the changeset viewer.