Changeset 40 for trunk/Forms/UFormContact.pas
- Timestamp:
- Dec 1, 2021, 11:41:48 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Forms/UFormContact.pas
r39 r40 18 18 ButtonCancel: TButton; 19 19 ButtonOk: TButton; 20 Edit AddressHomeCity: TEdit;21 Edit AddressHomeCountry: TEdit;22 Edit AddressHomePostalCode: TEdit;23 Edit AddressHomePostOfficeBox: TEdit;24 Edit AddressHomeRegion: TEdit;25 Edit AddressHomeStreetExtended: TEdit;26 Edit AddressWorkStreet: TEdit;20 EditHomeAddressCity: TEdit; 21 EditHomeAddressCountry: TEdit; 22 EditHomeAddressPostalCode: TEdit; 23 EditHomeAddressPostOfficeBox: TEdit; 24 EditHomeAddressRegion: TEdit; 25 EditHomeAddressStreet: TEdit; 26 EditHomeAddressStreetExtended: TEdit; 27 27 EditAddressWorkCity: TEdit; 28 EditAddressWorkRegion: TEdit;29 28 EditAddressWorkCountry: TEdit; 30 EditAddressHomeStreet: TEdit;31 EditWebWork: TEdit;32 29 EditAddressWorkPostalCode: TEdit; 33 30 EditAddressWorkPostOfficeBox: TEdit; 31 EditAddressWorkRegion: TEdit; 32 EditAddressWorkStreet: TEdit; 34 33 EditAddressWorkStreetExtended: TEdit; 34 EditAniversary: TEdit; 35 EditWorkEmail: TEdit; 36 EditPager: TEdit; 37 EditFax: TEdit; 38 EditWeb: TEdit; 39 EditHomeFax: TEdit; 40 EditWorkFax: TEdit; 41 EditHomeMobile: TEdit; 42 EditWorkMobile: TEdit; 43 EditWorkPager: TEdit; 44 EditHomePhone: TEdit; 45 EditNickName: TEdit; 46 EditHomePager: TEdit; 47 EditHomeEmail: TEdit; 48 EditHomeWeb: TEdit; 49 EditWorkWeb: TEdit; 35 50 EditDepartment: TEdit; 36 51 EditFullName: TEdit; … … 40 55 EditMiddleName: TEdit; 41 56 EditTitleAfter: TEdit; 42 EditEmailHome: TEdit;43 EditEmailWork: TEdit;44 57 EditBirthday: TEdit; 45 EditPhoneHome: TEdit;46 EditPhoneWork: TEdit;47 EditCellPhoneHome: TEdit;48 EditCellPhoneWork: TEdit;49 EditFax: TEdit;50 EditFaxHome: TEdit;51 EditFaxWork: TEdit;52 EditPager: TEdit;53 58 EditLastName: TEdit; 54 59 EditEmail: TEdit; 55 60 EditPhone: TEdit; 56 61 EditFirstName: TEdit; 57 EditCellPhone: TEdit; 58 EditWebHome: TEdit; 62 EditMobile: TEdit; 63 EditWorkPhone: TEdit; 64 GroupBox1: TGroupBox; 65 GroupBox2: TGroupBox; 59 66 ImagePhoto: TImage; 60 67 Label1: TLabel; … … 64 71 Label13: TLabel; 65 72 Label14: TLabel; 73 Label15: TLabel; 74 Label16: TLabel; 75 Label17: TLabel; 66 76 Label18: TLabel; 77 Label19: TLabel; 67 78 Label2: TLabel; 68 Label20: TLabel;69 Label21: TLabel;70 79 Label22: TLabel; 71 80 Label23: TLabel; … … 92 101 Label42: TLabel; 93 102 Label43: TLabel; 103 Label44: TLabel; 104 Label45: TLabel; 105 Label46: TLabel; 94 106 Label5: TLabel; 95 107 Label6: TLabel; … … 103 115 PageControlContact: TPageControl; 104 116 PopupMenu1: TPopupMenu; 117 TabSheetOthers: TTabSheet; 118 TabSheetHome: TTabSheet; 105 119 TabSheetWork: TTabSheet; 106 120 TabSheetGeneral: TTabSheet; 107 TabSheetPrivate: TTabSheet;108 121 TabSheetAll: TTabSheet; 109 122 procedure ButtonOkClick(Sender: TObject); … … 215 228 FormProperties.Properties := Contact.Properties; 216 229 230 // General 217 231 EditFullName.Text := Contact.Fields[cfFullName]; 218 232 EditFirstName.Text := Contact.Fields[cfFirstName]; … … 221 235 EditTitleAfter.Text := Contact.Fields[cfTitleAfter]; 222 236 EditTitleBefore.Text := Contact.Fields[cfTitleBefore]; 223 EditCellPhone.Text := Contact.Fields[cfTelCell]; 224 EditPhoneHome.Text := Contact.Fields[cfTelHome]; 225 EditPhoneWork.Text := Contact.Fields[cfTelWork]; 237 EditNickName.Text := Contact.Fields[cfNickName]; 226 238 EditEmail.Text := Contact.Fields[cfEmail]; 227 MemoNotes.Lines.Text := Contact.Fields[cfNote]; 239 EditPhone.Text := Contact.Fields[cfTel]; 240 EditMobile.Text := Contact.Fields[cfTelCell]; 241 EditFax.Text := Contact.Fields[cfTelFax]; 242 EditPager.Text := Contact.Fields[cfTelPager]; 243 EditBirthday.Text := Contact.Fields[cfDayOfBirth]; 244 EditAniversary.Text := Contact.Fields[cfAnniversary]; 245 EditWeb.Text := Contact.Fields[cfUrl]; 246 247 // Home 248 EditHomeEmail.Text := Contact.Fields[cfEmailHome]; 249 EditHomePhone.Text := Contact.Fields[cfTelHome]; 250 EditHomeMobile.Text := Contact.Fields[cfTelCellHome]; 251 EditHomeFax.Text := Contact.Fields[cfTelFaxHome]; 252 EditHomePager.Text := Contact.Fields[cfTelPagerHome]; 253 EditHomeAddressPostOfficeBox.Text := Contact.Fields[cfHomeAddressPostOfficeBox]; 254 EditHomeAddressStreet.Text := Contact.Fields[cfHomeAddressStreet]; 255 EditHomeAddressStreetExtended.Text := Contact.Fields[cfHomeAddressStreetExtended]; 256 EditHomeAddressCity.Text := Contact.Fields[cfHomeAddressCity]; 257 EditHomeAddressRegion.Text := Contact.Fields[cfHomeAddressRegion]; 258 EditHomeAddressCountry.Text := Contact.Fields[cfHomeAddressCountry]; 259 EditHomeAddressPostalCode.Text := Contact.Fields[cfHomeAddressPostalCode]; 260 EditHomeWeb.Text := Contact.Fields[cfUrlHome]; 228 261 229 262 // Work 263 EditWorkEmail.Text := Contact.Fields[cfEmailWork]; 264 EditWorkPhone.Text := Contact.Fields[cfTelWork]; 265 EditWorkMobile.Text := Contact.Fields[cfTelCellWork]; 266 EditWorkFax.Text := Contact.Fields[cfTelFaxWork]; 267 EditWorkPager.Text := Contact.Fields[cfTelPagerWork]; 230 268 EditTitle.Text := Contact.Fields[cfTitle]; 231 269 EditOrganization.Text := Contact.Fields[cfOrganization]; … … 238 276 EditAddressWorkCountry.Text := Contact.Fields[cfWorkAddressCountry]; 239 277 EditAddressWorkPostalCode.Text := Contact.Fields[cfWorkAddressPostalCode]; 240 EditWebHome.Text := Contact.Fields[cfUrlWork]; 241 242 // Private 243 EditAddressHomePostOfficeBox.Text := Contact.Fields[cfHomeAddressPostOfficeBox]; 244 EditAddressHomeStreet.Text := Contact.Fields[cfHomeAddressStreet]; 245 EditAddressHomeStreetExtended.Text := Contact.Fields[cfHomeAddressStreetExtended]; 246 EditAddressHomeCity.Text := Contact.Fields[cfHomeAddressCity]; 247 EditAddressHomeRegion.Text := Contact.Fields[cfHomeAddressRegion]; 248 EditAddressHomeCountry.Text := Contact.Fields[cfHomeAddressCountry]; 249 EditAddressHomePostalCode.Text := Contact.Fields[cfHomeAddressPostalCode]; 250 EditWebHome.Text := Contact.Fields[cfUrlHome]; 251 EditBirthday.Text := Contact.Fields[cfDayOfBirth]; 252 253 EditEmailHome.Text := Contact.Fields[cfEmail]; 278 EditWorkWeb.Text := Contact.Fields[cfUrlWork]; 279 280 // Others 281 MemoNotes.Lines.Text := Contact.Fields[cfNote]; 282 254 283 ImagePhoto.Picture.Bitmap.Clear; 255 284 PhotoProperty := Contact.GetProperty(cfPhoto); … … 288 317 procedure TFormContact.SaveData; 289 318 begin 319 // General 290 320 Contact.Fields[cfFullName] := EditFullName.Text; 291 321 Contact.Fields[cfMiddleName] := EditMiddleName.Text; … … 294 324 Contact.Fields[cfTitleAfter] := EditTitleAfter.Text; 295 325 Contact.Fields[cfTitleBefore] := EditTitleBefore.Text; 296 Contact.Fields[cfTelCell] := EditCellPhone.Text; 297 Contact.Fields[cfTelHome] := EditPhoneHome.Text; 298 Contact.Fields[cfTelWork] := EditPhoneWork.Text; 326 Contact.Fields[cfNickName] := EditNickName.Text; 299 327 Contact.Fields[cfEmail] := EditEmail.Text; 300 Contact.Fields[cfNote] := MemoNotes.Lines.Text; 301 Contact.Fields[cfEmail] := EditEmailHome.Text; 328 Contact.Fields[cfTel] := EditPhone.Text; 329 Contact.Fields[cfTelCell] := EditMobile.Text; 330 Contact.Fields[cfTelFax] := EditFax.Text; 331 Contact.Fields[cfTelPager] := EditPager.Text; 302 332 Contact.Fields[cfDayOfBirth] := EditBirthday.Text; 333 Contact.Fields[cfAnniversary] := EditAniversary.Text; 334 Contact.Fields[cfUrl] := EditWeb.Text; 335 336 // Home 337 Contact.Fields[cfEmailHome] := EditHomeEmail.Text; 338 Contact.Fields[cfTelHome] := EditHomePhone.Text; 339 Contact.Fields[cfTelCellHome] := EditHomeMobile.Text; 340 Contact.Fields[cfTelFaxHome] := EditHomeFax.Text; 341 Contact.Fields[cfTelPagerHome] := EditHomePager.Text; 342 Contact.Fields[cfHomeAddressPostOfficeBox] := EditHomeAddressPostOfficeBox.Text; 343 Contact.Fields[cfHomeAddressStreet] := EditHomeAddressStreet.Text; 344 Contact.Fields[cfHomeAddressStreetExtended] := EditHomeAddressStreetExtended.Text; 345 Contact.Fields[cfHomeAddressCity] := EditHomeAddressCity.Text; 346 Contact.Fields[cfHomeAddressRegion] := EditHomeAddressRegion.Text; 347 Contact.Fields[cfHomeAddressCountry] := EditHomeAddressCountry.Text; 348 Contact.Fields[cfHomeAddressPostalCode] := EditHomeAddressPostalCode.Text; 349 Contact.Fields[cfUrlHome] := EditHomeWeb.Text; 303 350 304 351 // Work 352 Contact.Fields[cfEmailWork] := EditWorkEmail.Text; 353 Contact.Fields[cfTelWork] := EditWorkPhone.Text; 354 Contact.Fields[cfTelCellWork] := EditWorkMobile.Text; 355 Contact.Fields[cfTelFaxWork] := EditWorkFax.Text; 356 Contact.Fields[cfTelPagerWork] := EditWorkPager.Text; 305 357 Contact.Fields[cfTitle] := EditTitle.Text; 306 358 Contact.Fields[cfOrganization] := EditOrganization.Text; … … 313 365 Contact.Fields[cfWorkAddressCountry] := EditAddressWorkCountry.Text; 314 366 Contact.Fields[cfWorkAddressPostalCode] := EditAddressWorkPostalCode.Text; 315 Contact.Fields[cfUrlWork] := EditWebWork.Text; 316 317 // Private 318 Contact.Fields[cfHomeAddressPostOfficeBox] := EditAddressHomePostOfficeBox.Text; 319 Contact.Fields[cfHomeAddressStreet] := EditAddressHomeStreet.Text; 320 Contact.Fields[cfHomeAddressStreetExtended] := EditAddressHomeStreetExtended.Text; 321 Contact.Fields[cfHomeAddressCity] := EditAddressHomeCity.Text; 322 Contact.Fields[cfHomeAddressRegion] := EditAddressHomeRegion.Text; 323 Contact.Fields[cfHomeAddressCountry] := EditAddressHomeCountry.Text; 324 Contact.Fields[cfHomeAddressPostalCode] := EditAddressHomePostalCode.Text; 325 Contact.Fields[cfUrlHome] := EditWebHome.Text; 367 Contact.Fields[cfUrlWork] := EditWorkWeb.Text; 368 369 // Others 370 Contact.Fields[cfNote] := MemoNotes.Lines.Text; 326 371 end; 327 372
Note:
See TracChangeset
for help on using the changeset viewer.