projects/wms-framework/src/lib/models/controls/test/Person.ts
Properties |
|
Accessors |
constructor(name?: string, bdate?: Date, bdateNoInfo?: Date)
|
Private _birthDate |
Type : Date
|
Private _birthDateWithoutInfo |
Type : Date
|
Private _name |
Type : string
|
name | ||||||
getname()
|
||||||
setname(v: string)
|
||||||
Parameters :
Returns :
void
|
birthDate | ||||||
getbirthDate()
|
||||||
setbirthDate(v: Date)
|
||||||
Parameters :
Returns :
void
|
birthDateWithoutInfo | ||||||
getbirthDateWithoutInfo()
|
||||||
setbirthDateWithoutInfo(v: Date)
|
||||||
Parameters :
Returns :
void
|
import { propertyInfo } from '../../../baseframework/ReflectionSupport';
import { ClassInfo } from '../../../decorators/ClassInfo';
@ClassInfo({
classId: 'Person',
})
export class Person {
private _name: string;
constructor(name?: string, bdate?: Date, bdateNoInfo?: Date) {
if (name && bdate) {
this.name = name;
this.birthDate = bdate;
}
if (bdateNoInfo) {
this.birthDateWithoutInfo = bdateNoInfo;
}
}
@propertyInfo()
public get name(): string {
return this._name;
}
public set name(v: string) {
this._name = v;
}
private _birthDate: Date;
@propertyInfo()
public get birthDate(): Date {
return this._birthDate;
}
public set birthDate(v: Date) {
this._birthDate = v;
}
private _birthDateWithoutInfo: Date;
public get birthDateWithoutInfo(): Date {
return this._birthDateWithoutInfo;
}
public set birthDateWithoutInfo(v: Date) {
this._birthDateWithoutInfo = v;
}
}