- Timestamp:
- Mar 25, 2013, 11:47:38 PM (12 years ago)
- Location:
- trunk
- Files:
-
- 11 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 -
trunk/Languages/FioInfo.cs.po
r20 r22 9 9 "MIME-Version: 1.0\n" 10 10 "Content-Transfer-Encoding: 8bit\n" 11 "X-Generator: Poedit 1.5.5\n" 11 12 12 13 #: tcore.aabout.caption … … 97 98 98 99 #: tformaccounts.listview1.columns[0].caption 100 #| msgid "Name" 99 101 msgctxt "tformaccounts.listview1.columns[0].caption" 102 msgid "Seq." 103 msgstr "PoÅ." 104 105 #: tformaccounts.listview1.columns[1].caption 106 #| msgid "Number" 107 msgctxt "tformaccounts.listview1.columns[1].caption" 100 108 msgid "Name" 101 109 msgstr "Jméno" 102 110 103 #: tformaccounts.listview1.columns[1].caption 111 #: tformaccounts.listview1.columns[2].caption 112 #| msgid "Bank code" 104 113 msgid "Number" 105 114 msgstr "ÄÃslo" 106 115 107 #: tformaccounts.listview1.columns[ 2].caption116 #: tformaccounts.listview1.columns[3].caption 108 117 #| msgid "Balance" 118 msgctxt "tformaccounts.listview1.columns[3].caption" 109 119 msgid "Bank code" 110 120 msgstr "Kód banky" 111 121 112 #: tformaccounts.listview1.columns[ 3].caption122 #: tformaccounts.listview1.columns[4].caption 113 123 #| msgid "Date" 114 msgctxt "tformaccounts.listview1.columns[ 3].caption"124 msgctxt "tformaccounts.listview1.columns[4].caption" 115 125 msgid "Balance" 116 126 msgstr "Zůstatek" 117 127 118 #: tformaccounts.listview1.columns[ 4].caption128 #: tformaccounts.listview1.columns[5].caption 119 129 #| msgid "Token" 120 msgctxt "tformaccounts.listview1.columns[ 4].caption"130 msgctxt "tformaccounts.listview1.columns[5].caption" 121 131 msgid "Date" 122 132 msgstr "Datum" 123 133 124 #: tformaccounts.listview1.columns[5].caption 125 msgctxt "tformaccounts.listview1.columns[5].caption" 134 #: tformaccounts.listview1.columns[6].caption 135 #| msgid "Token" 136 msgctxt "tformaccounts.listview1.columns[6].caption" 126 137 msgid "Token" 127 138 msgstr "Token" … … 225 236 msgstr " " 226 237 227 #: tformmain.listview1.columns[0].caption 238 #: tformmain.listviewoperation.columns[0].caption 239 msgctxt "tformmain.listviewoperation.columns[0].caption" 228 240 msgid "Id" 229 241 msgstr "Id" 230 242 231 #: tformmain.listview 1.columns[1].caption232 msgctxt "tformmain.listview 1.columns[1].caption"243 #: tformmain.listviewoperation.columns[1].caption 244 msgctxt "tformmain.listviewoperation.columns[1].caption" 233 245 msgid "Date" 234 246 msgstr "Datum" 235 247 236 #: tformmain.listview1.columns[2].caption 248 #: tformmain.listviewoperation.columns[2].caption 249 msgctxt "tformmain.listviewoperation.columns[2].caption" 237 250 msgid "Account" 238 251 msgstr "ÃÄet" 239 252 240 #: tformmain.listview1.columns[3].caption 253 #: tformmain.listviewoperation.columns[3].caption 254 msgctxt "tformmain.listviewoperation.columns[3].caption" 241 255 msgid "Value" 242 256 msgstr "Hodnota" 243 257 244 #: tformmain.listview1.columns[4].caption 258 #: tformmain.listviewoperation.columns[4].caption 259 msgctxt "tformmain.listviewoperation.columns[4].caption" 245 260 msgid "Var. sym." 246 261 msgstr "Var. sym." 247 262 248 #: tformmain.listview1.columns[5].caption 263 #: tformmain.listviewoperation.columns[5].caption 264 msgctxt "tformmain.listviewoperation.columns[5].caption" 249 265 msgid "Spec. sym." 250 266 msgstr "Spec. sym." 251 267 252 #: tformmain.listview1.columns[6].caption 268 #: tformmain.listviewoperation.columns[6].caption 269 msgctxt "tformmain.listviewoperation.columns[6].caption" 253 270 msgid "Const. sym." 254 271 msgstr "Konst. sym." … … 278 295 279 296 #: tformsettings.label2.caption 280 #| msgid "%f - data format, %d - date, %t - time, %a - account number, %n - account name, %% - percent symbol" 281 msgid "%f - data format, %d - date, %t - time, %a - account number, %n - account name, %b - bank code, %% - percent symbol" 282 msgstr "%f - formát dat, %d - datum, %t - Äas, %a - ÄÃslo úÄtu, %n - jméno úÄtu, %b - kód banky, %% - znak procent" 297 #| msgid "" 298 #| "%f - data format, %d - date, %t - time, %a - account number, %n - account " 299 #| "name, %% - percent symbol" 300 msgid "" 301 "%f - data format, %d - date, %t - time, %a - account number, %n - account " 302 "name, %b - bank code, %% - percent symbol" 303 msgstr "" 304 "%f - formát dat, %d - datum, %t - Äas, %a - ÄÃslo úÄtu, %n - jméno úÄtu, %b " 305 "- kód banky, %% - znak procent" 283 306 284 307 #: tformsettings.label3.caption … … 347 370 msgid "Select destination folder" 348 371 msgstr "Vyberte cÃlovou sloÅŸku" 349 -
trunk/Languages/FioInfo.po
r20 r22 90 90 #: tformaccounts.listview1.columns[0].caption 91 91 msgctxt "tformaccounts.listview1.columns[0].caption" 92 msgid "Seq." 93 msgstr "" 94 95 #: tformaccounts.listview1.columns[1].caption 96 msgctxt "tformaccounts.listview1.columns[1].caption" 92 97 msgid "Name" 93 98 msgstr "" 94 99 95 #: tformaccounts.listview1.columns[ 1].caption100 #: tformaccounts.listview1.columns[2].caption 96 101 msgid "Number" 97 msgstr ""98 99 #: tformaccounts.listview1.columns[2].caption100 msgid "Bank code"101 102 msgstr "" 102 103 103 104 #: tformaccounts.listview1.columns[3].caption 104 105 msgctxt "TFORMACCOUNTS.LISTVIEW1.COLUMNS[3].CAPTION" 105 msgid "Ba lance"106 msgid "Bank code" 106 107 msgstr "" 107 108 108 109 #: tformaccounts.listview1.columns[4].caption 109 110 msgctxt "TFORMACCOUNTS.LISTVIEW1.COLUMNS[4].CAPTION" 110 msgid " Date"111 msgid "Balance" 111 112 msgstr "" 112 113 113 114 #: tformaccounts.listview1.columns[5].caption 114 115 msgctxt "TFORMACCOUNTS.LISTVIEW1.COLUMNS[5].CAPTION" 116 msgid "Date" 117 msgstr "" 118 119 #: tformaccounts.listview1.columns[6].caption 120 msgctxt "TFORMACCOUNTS.LISTVIEW1.COLUMNS[6].CAPTION" 115 121 msgid "Token" 116 122 msgstr "" … … 213 219 msgstr "" 214 220 215 #: tformmain.listview1.columns[0].caption 221 #: tformmain.listviewoperation.columns[0].caption 222 msgctxt "TFORMMAIN.LISTVIEWOPERATION.COLUMNS[0].CAPTION" 216 223 msgid "Id" 217 224 msgstr "" 218 225 219 #: tformmain.listview 1.columns[1].caption220 msgctxt "TFORMMAIN.LISTVIEW 1.COLUMNS[1].CAPTION"226 #: tformmain.listviewoperation.columns[1].caption 227 msgctxt "TFORMMAIN.LISTVIEWOPERATION.COLUMNS[1].CAPTION" 221 228 msgid "Date" 222 229 msgstr "" 223 230 224 #: tformmain.listview1.columns[2].caption 231 #: tformmain.listviewoperation.columns[2].caption 232 msgctxt "TFORMMAIN.LISTVIEWOPERATION.COLUMNS[2].CAPTION" 225 233 msgid "Account" 226 234 msgstr "" 227 235 228 #: tformmain.listview1.columns[3].caption 236 #: tformmain.listviewoperation.columns[3].caption 237 msgctxt "TFORMMAIN.LISTVIEWOPERATION.COLUMNS[3].CAPTION" 229 238 msgid "Value" 230 239 msgstr "" 231 240 232 #: tformmain.listview1.columns[4].caption 241 #: tformmain.listviewoperation.columns[4].caption 242 msgctxt "TFORMMAIN.LISTVIEWOPERATION.COLUMNS[4].CAPTION" 233 243 msgid "Var. sym." 234 244 msgstr "" 235 245 236 #: tformmain.listview1.columns[5].caption 246 #: tformmain.listviewoperation.columns[5].caption 247 msgctxt "TFORMMAIN.LISTVIEWOPERATION.COLUMNS[5].CAPTION" 237 248 msgid "Spec. sym." 238 249 msgstr "" 239 250 240 #: tformmain.listview1.columns[6].caption 251 #: tformmain.listviewoperation.columns[6].caption 252 msgctxt "TFORMMAIN.LISTVIEWOPERATION.COLUMNS[6].CAPTION" 241 253 msgid "Const. sym." 242 254 msgstr "" -
trunk/UCore.lfm
r21 r22 647 647 object MenuItem7: TMenuItem 648 648 Action = ASettings 649 Bitmap.Data = { 650 36040000424D3604000000000000360000002800000010000000100000000100 651 2000000000000004000064000000640000000000000000000000000000000000 652 0000000000000000000000000000000000003F3428FF3F3428FF3F3428FF3F34 653 28FF000000000000000000000000000000000000000000000000000000000000 654 0000000000003F3428FF3F3428FF00000000776D66FFE5DBD2FFE5DBD2FF776D 655 66FF000000003F3428FF3F3428FF000000000000000000000000000000000000 656 00003F3428FF877D73FFE1D9D1FF574D42FF766C63FFEDE5DDFFEDE5DDFF766C 657 63FF574D42FFE1D9D1FF877D73FF3F3428FF0000000000000000000000003F34 658 28FFB6B0A9FFE1D9D1FFC8BEB4FFE1D9D1FFC8BEB4FFEDE5DDFFEDE5DDFFC8BE 659 B4FFE1D9D1FFC8BEB4FFE1D9D1FFB6B0A9FF3F3428FF00000000000000003F34 660 28FFE1D9D1FFEBE7E2FFE1D9D1FFAEA7A0FFE2DDDAFFB7B1ABFFB7B1ABFFE2DD 661 DAFFAEA7A0FFE1D9D1FFEBE7E2FFE1D9D1FF3F3428FF00000000000000000000 662 000061564CFFE1D9D1FFACA39BFFE4E1DCFFAFA8A4FF695E53FF695E53FFAFA8 663 A4FFE4E1DCFFACA39BFFE1D9D1FF61564CFF0000000000000000463B2FFF3E33 664 28FF61564CFFAFA8A4FFC1BCB6FFAFA8A4FF695E53FFFFFFFFFFFFFFFFFF695E 665 53FFAFA8A4FFC1BCB6FFAFA8A4FF61564CFF3E3328FF463B2FFF897E74FFE8E0 666 D7FFE8E0D7FFB0ACA8FFE8E3DDFF695E53FFFFFFFFFFFFFFFFFFFFFFFFFFFFFF 667 FFFF695E53FFE8E3DDFFB0ACA8FFE8E0D7FFE8E0D7FF897E74FF877B70FFFFFF 668 FFFFFFFFFFFFBFBCB8FFD6CDC5FF695E53FFFFFFFFFFFFFFFFFFFFFFFFFFFFFF 669 FFFF695E53FFD6CDC5FFBFBCB8FFFFFFFFFFFFFFFFFF877B70FF8E8378FF897D 670 72FF84796CFFD8D5D3FFC9C2B9FFA99C90FF594F45FFFFFFFFFFFFFFFFFF6056 671 4DFFA99C90FFC9C2B9FFD8D5D3FF84796CFF897D72FF8E8378FF000000000000 672 0000696053FFDFDFDEFFDFDFDEFFD1C4BAFF8E8377FF44392EFF44392EFF8E83 673 77FFD1C4BAFFDFDFDEFFDFDFDEFF696053FF0000000000000000000000006960 674 53FFF6F1EEFFBBAC9DFFDFD8D3FFEEEFEFFFEBE7E2FFE3D9D1FFE3D9D1FFEBE7 675 E2FFEEEFEFFFDFD8D3FFBBAC9DFFF6F1EEFF696053FF0000000000000000675D 676 50FFCDC6BFFFF6F1EEFFF8F7F4FFF8F7F4FFFFFFFFFFFCFDFDFFFCFDFDFFFFFF 677 FFFFF8F7F4FFF8F7F4FFF6F1EEFFCDC6BFFF696053FF00000000000000000000 678 0000998F83FFCCC5BEFFF6F1EEFF908377FF908377FFEDE7E0FFEDE7E0FF9083 679 77FF908377FFF6F1EEFFCCC5BEFFA9A096FF0000000000000000000000000000 680 0000000000009C9083FF9C9083FF00000000998D80FFFFFFFFFFFFFFFFFF998D 681 80FF000000009C9083FF9C9083FF000000000000000000000000000000000000 682 000000000000000000000000000000000000A19588FF9C9083FF9C9083FFA195 683 88FF000000000000000000000000000000000000000000000000 684 } 649 685 end 650 686 object MenuItem8: TMenuItem 651 687 Action = AAbout 688 Bitmap.Data = { 689 36040000424D3604000000000000360000002800000010000000100000000100 690 2000000000000004000064000000640000000000000000000000000000000000 691 0000000000000000000000000000000000000000000000000000000000000000 692 0000000000000000000000000000000000000000000000000000000000000000 693 00000000000000000000916429FF855A24FF885015FF824A1DFF7E4719FF7944 694 17FF583C0EFF49340DFF00000000000000000000000000000000000000000000 695 000000000000A1692CFFC08858FFE0C9B4FFF7F1ECFFFEFDFCFFFEFDFCFFF5F0 696 ECFFDCC9B8FF9E7857FF473108FF000000000000000000000000000000000000 697 0000B2702BFFDBAB80FFF8EFE7FFE2BBA6FFCC7E56FFC15823FFC05722FFC97F 698 56FFDEBAA7FFF2EBE7FFB39376FF483108FF000000000000000000000000B677 699 34FFD6996BFFF9F0E7FFDDA488FFC75013FFC04E11FFDCA688FFFFFEFEFFB549 700 11FFB64A10FFD59E82FFF3ECE7FF9A7352FF49340DFF0000000000000000B479 701 3AFFEFD6C1FFEDC5B2FFDD5A1AFFD55617FFD25313FFD87D4DFFE3A686FFBB4C 702 11FFB34A12FFB64A10FFDEB9A6FFDCC9B8FF563C0DFF0000000000000000CD7F 703 45FFFCF4EDFFEC9772FFE86021FFE05A1DFFDB5819FFEDAA89FFFFFEFEFFC84E 704 12FFB94C11FFB34C13FFC77B53FFF6F0ECFF7A4319FF0000000000000000CD81 705 47FFFFFEFEFFF87A46FFF96829FFF66525FFF16020FFF18653FFFFFEFEFFF0BF 706 A8FFC55A24FFB64C15FFB75724FFFEFEFDFF7F481AFF0000000000000000CD84 707 4EFFFFFEFEFFFC814CFFFF7031FFFF6B2CFFFD6928FFF86523FFF49265FFFDF5 708 F1FFF4D4C5FFC65018FFBA5927FFFEFEFDFF834A1CFF0000000000000000D183 709 4CFFFCF7F1FFFAA582FFFF733AFFFF844EFFFFAE8AFFFE6C2DFFF76727FFF192 710 68FFFFFEFEFFE98354FFD78560FFF8F1ECFF81551FFF0000000000000000C483 711 41FFF0DAC3FFFAD1C0FFFF7940FFFF986EFFFFFEFEFFFFC9B2FFFD9164FFFAC6 712 AFFFFEF5F1FFF5773DFFEDC5B2FFE4CBB3FF905D21FF0000000000000000C484 713 45FFDCA277FFFCF4EDFFFABFA6FFFF7A43FFFFBB9EFFFFF6F3FFFFFEFEFFFEED 714 E5FFFA9970FFF3B69CFFF8F0E6FFBB8B56FF986426FF00000000000000000000 715 0000C48443FFE5B999FFFCF4EDFFFBD2C1FFFAA887FFFD8757FFFD8454FFF8A5 716 82FFF7CEBDFFFAF1E7FFD2A77AFFA36A2AFF0000000000000000000000000000 717 000000000000C58442FFDCA277FFF3DAC7FFFCF7F1FFFFFEFEFFFFFEFEFFFCF4 718 EDFFF1D6C0FFC7935DFFA66F33FF000000000000000000000000000000000000 719 00000000000000000000C58444FFC28342FFD89C6DFFD69668FFD49463FFD696 720 68FFB2793CFFB1783BFF00000000000000000000000000000000000000000000 721 0000000000000000000000000000000000000000000000000000000000000000 722 0000000000000000000000000000000000000000000000000000 723 } 652 724 end 653 725 object MenuItem2: TMenuItem 654 726 Action = AExit 727 Bitmap.Data = { 728 36040000424D3604000000000000360000002800000010000000100000000100 729 2000000000000004000064000000640000000000000000000000000000000000 730 0000000000000000000000000000000000FF0000000000000000000000000000 731 0000000000000000000000000000000000000000000000000000000000000000 732 00000000000000000000000000FF000000FF0000000000000000000000000000 733 0000000000000000000000000000000000000000000000000000000000000000 734 000000000000000000FF008484FF000000FF0000000000000000000000000000 735 0000000000000000000000000000000000000000000000000000000000000000 736 0000000000FF008484FF008484FF000000FF0000000000000000000000000000 737 0000000000000000000000000000000000000000000000000000000000FF0000 738 00FF008484FF008484FF008484FF000000FF000000FF000000FF000000FF0000 739 00FF000000FF000000FF000000FF000000000000000000000000000000000000 740 00FF008484FF008484FF008484FF000000FFFFFFFFFFFFFFFFFF000000FF0000 741 0000000000000000000000000000000000000000000000000000000000000000 742 00FF008484FF008484FF000000FF000000FFFFFFFFFFFFFFFFFF000000FF0000 743 0000000000000000000000000000840000FF0000000000000000000000000000 744 00FF008484FF008484FF008484FF000000FFFFFFFFFFFFFFFFFF000000FF0000 745 00000000000000000000840000FF840000FF0000000000000000000000000000 746 00FF008484FF008484FF008484FF000000FFFFFFFFFFFFFFFFFF000000FF0000 747 000000000000840000FF840000FF840000FF840000FF840000FF000000000000 748 00FF008484FF008484FF008484FF000000FFFFFFFFFFFFFFFFFF000000FF0000 749 0000840000FF840000FF840000FF840000FF840000FF840000FF000000000000 750 00FF008484FF008484FF008484FF000000FFFFFFFFFFFFFFFFFF000000FF0000 751 000000000000840000FF840000FF840000FF840000FF840000FF000000000000 752 00FF008484FF008484FF000000FFFFFFFFFFFFFFFFFFFFFFFFFF000000FF0000 753 00000000000000000000840000FF840000FF0000000000000000000000000000 754 00FF008484FF000000FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF000000FF0000 755 0000000000000000000000000000840000FF0000000000000000000000000000 756 00FF000000FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF000000FF0000 757 0000000000000000000000000000000000000000000000000000000000000000 758 00FF000000FF000000FF000000FF000000FF000000FF000000FF000000FF0000 759 0000000000000000000000000000000000000000000000000000000000000000 760 0000000000000000000000000000000000000000000000000000000000000000 761 0000000000000000000000000000000000000000000000000000 762 } 655 763 end 656 764 end -
trunk/UCore.pas
r20 r22 11 11 12 12 type 13 14 { TAccountOperation } 15 13 16 TAccountOperation = class 14 17 Id: string; 15 18 Time: TDateTime; 16 19 Value: Double; 20 Account: string; 17 21 VarSym: string; 18 22 SpecSym: string; 19 23 ConstSym: string; 24 procedure LoadFromRegistry(Context: TRegistryContext); 25 procedure SaveToRegistry(Context: TRegistryContext); 20 26 end; 21 27 … … 118 124 SDumpFormat = 'Dump %d %t.%f'; 119 125 126 { TAccountOperation } 127 128 procedure TAccountOperation.LoadFromRegistry(Context: TRegistryContext); 129 begin 130 with TRegistryEx.Create do 131 try 132 RootKey := Context.RootKey; 133 OpenKey(Context.Key, True); 134 Id := UTF8Encode(ReadStringWithDefault('Id', UTF8Decode(''))); 135 Time := ReadDateTimeWithDefault('Time', 0); 136 Value := ReadFloatWithDefault('Value', 0); 137 Account := UTF8Encode(ReadStringWithDefault('Account', UTF8Decode(''))); 138 VarSym := UTF8Encode(ReadStringWithDefault('VarSym', UTF8Decode(''))); 139 SpecSym := UTF8Encode(ReadStringWithDefault('SpecSym', UTF8Decode(''))); 140 ConstSym := UTF8Encode(ReadStringWithDefault('ConstSym', UTF8Decode(''))); 141 finally 142 Free; 143 end; 144 end; 145 146 procedure TAccountOperation.SaveToRegistry(Context: TRegistryContext); 147 begin 148 with TRegistryEx.Create do 149 try 150 RootKey := Context.RootKey; 151 OpenKey(Context.Key, True); 152 WriteString('Id', UTF8Decode(Id)); 153 WriteString('Account', UTF8Decode(Account)); 154 WriteDateTime('Time', Time); 155 WriteFloat('Value', Value); 156 WriteString('VarSym', UTF8Decode(VarSym)); 157 WriteString('SpecSym', UTF8Decode(SpecSym)); 158 WriteString('ConstSym', UTF8Decode(ConstSym)); 159 finally 160 Free; 161 end; 162 end; 163 120 164 { TAccount } 121 165 … … 127 171 Time := Source.Time; 128 172 Number := Source.Number; 173 BankCode := Source.BankCode; 174 //Operations.Assign(Source.Operations); 129 175 end; 130 176 131 177 procedure TAccount.LoadFromRegistry(Context: TRegistryContext); 178 var 179 I: Integer; 132 180 begin 133 181 with TRegistryEx.Create do … … 144 192 Free; 145 193 end; 194 with Operations do 195 for I := 0 to Count - 1 do begin 196 if not Assigned(Items[I]) then Items[I] := TAccountOperation.Create; 197 TAccountOperation(Items[I]).LoadFromRegistry(RegContext(Context.RootKey, Context.Key + '\' + IntToStr(I))); 198 end; 146 199 end; 147 200 148 201 procedure TAccount.SaveToRegistry(Context: TRegistryContext); 202 var 203 I: Integer; 149 204 begin 150 205 with TRegistryEx.Create do … … 161 216 Free; 162 217 end; 218 with Operations do 219 for I := 0 to Count - 1 do 220 TAccountOperation(Items[I]).SaveToRegistry(RegContext(Context.RootKey, Context.Key + '\' + IntToStr(I))); 163 221 end; 164 222 … … 219 277 Strings.Delete(Strings.Count - 1); 220 278 for I := 0 to Count - 1 do begin 221 Strings.Strings[I] := IntToStr(I ) + ': ' + TAccount(Items[I]).Name + ' (' +279 Strings.Strings[I] := IntToStr(I + 1) + ': ' + TAccount(Items[I]).Name + ' (' + 222 280 TAccount(Items[I]).Number + '/' + TAccount(Items[I]).BankCode + ')'; 223 281 Strings.Objects[I] := Items[I]; -
trunk/UFioAPI.pas
r10 r22 6 6 7 7 uses 8 Classes, SysUtils, httpsend, ssl_openssl ;8 Classes, SysUtils, httpsend, ssl_openssl, dateutils; 9 9 10 10 type … … 23 23 function DownloadMonthly(Year, Id: Integer; Data: TStrings): Boolean; 24 24 function DownloadLast(Data: TStrings): Boolean; 25 function SetLastId(Id: Integer): Boolean; 26 function SetLastDate(Date: TDate): Boolean; 25 27 end; 26 28 … … 46 48 100..299: 47 49 begin 48 Data.LoadFromStream(HTTPSender.Document); 50 if Assigned(Data) then 51 Data.LoadFromStream(HTTPSender.Document); 49 52 Result := True; 50 53 end; //informational, success … … 85 88 end; 86 89 90 function TFioAPI.SetLastId(Id: Integer): Boolean; 91 begin 92 Result := Download('https://www.fio.cz/ib_api/rest/set-last-id/' + Token + 93 '/' + IntToStr(Id), nil); 94 end; 95 96 function TFioAPI.SetLastDate(Date: TDate): Boolean; 97 begin 98 Result := Download('https://www.fio.cz/ib_api/rest/set-last-date/' + Token + 99 '/' + IntToStr(YearOf(Date)) + '/' + IntToStr(MonthOf(Date)) + '/' + 100 IntToStr(DayOf(Date)), nil); 101 end; 102 87 103 end. 88 104
Note:
See TracChangeset
for help on using the changeset viewer.