2015-12-02 04:14:15 +01:00
|
|
|
unit BOCustomersU;
|
|
|
|
|
|
|
|
interface
|
|
|
|
|
2017-05-25 16:57:49 +02:00
|
|
|
uses MVCFramework.Serializer.Commons, System.Generics.Collections;
|
2015-12-02 04:14:15 +01:00
|
|
|
|
|
|
|
type
|
2017-05-25 16:57:49 +02:00
|
|
|
|
|
|
|
{$M+}
|
|
|
|
|
|
|
|
[MVCNameCase(ncLowerCase)]
|
2015-12-02 04:14:15 +01:00
|
|
|
TCustomer = class
|
|
|
|
private
|
|
|
|
FSurname: string;
|
|
|
|
FMiddleName: string;
|
|
|
|
FFirstName: string;
|
|
|
|
procedure SetFirstName(const Value: string);
|
|
|
|
procedure SetMiddleName(const Value: string);
|
|
|
|
procedure SetSurname(const Value: string);
|
|
|
|
published
|
|
|
|
property FirstName: string read FFirstName write SetFirstName;
|
|
|
|
property MiddleName: string read FMiddleName write SetMiddleName;
|
|
|
|
property Surname: string read FSurname write SetSurname;
|
|
|
|
|
|
|
|
end;
|
|
|
|
|
|
|
|
type
|
|
|
|
TCustomers = TObjectList<TCustomer>;
|
|
|
|
|
|
|
|
implementation
|
|
|
|
|
|
|
|
{ TCustomer }
|
|
|
|
|
|
|
|
procedure TCustomer.SetFirstName(const Value: string);
|
|
|
|
begin
|
|
|
|
FFirstName := Value;
|
|
|
|
end;
|
|
|
|
|
|
|
|
procedure TCustomer.SetMiddleName(const Value: string);
|
|
|
|
begin
|
|
|
|
FMiddleName := Value;
|
|
|
|
end;
|
|
|
|
|
|
|
|
procedure TCustomer.SetSurname(const Value: string);
|
|
|
|
begin
|
|
|
|
FSurname := Value;
|
|
|
|
end;
|
|
|
|
|
|
|
|
end.
|