88 lines
3.0 KiB
TypeScript
Executable File
88 lines
3.0 KiB
TypeScript
Executable File
export namespace proto {
|
|
|
|
export class Employee {
|
|
emp_id?: number;
|
|
name_prefix?: string;
|
|
first_name?: string;
|
|
middle_initial?: string;
|
|
last_name?: string;
|
|
gender?: number;
|
|
email?: string;
|
|
fathers_name?: string;
|
|
mothers_name?: string;
|
|
mothers_maiden_name?: string;
|
|
birthdate?: string;
|
|
birth_time?: string;
|
|
weight_kg?: number;
|
|
joining_date?: string;
|
|
joining_quarter?: number;
|
|
joining_half?: number;
|
|
joining_year?: number;
|
|
joining_month?: number;
|
|
joining_month_name?: number;
|
|
joining_month_name_short?: number;
|
|
joining_month_day?: number;
|
|
joining_week_day?: number;
|
|
joining_week_day_short?: number;
|
|
years_of_service?: number;
|
|
salary?: number;
|
|
latest_hike_percentage?: string;
|
|
ssn?: string;
|
|
phone_number?: string;
|
|
place_name?: string;
|
|
county?: string;
|
|
city?: string;
|
|
state?: string;
|
|
zip?: number;
|
|
region?: string;
|
|
username?: string;
|
|
password?: string;
|
|
|
|
static createFrom(source: any = {}) {
|
|
return new Employee(source);
|
|
}
|
|
|
|
constructor(source: any = {}) {
|
|
if ('string' === typeof source) source = JSON.parse(source);
|
|
this.emp_id = source["emp_id"];
|
|
this.name_prefix = source["name_prefix"];
|
|
this.first_name = source["first_name"];
|
|
this.middle_initial = source["middle_initial"];
|
|
this.last_name = source["last_name"];
|
|
this.gender = source["gender"];
|
|
this.email = source["email"];
|
|
this.fathers_name = source["fathers_name"];
|
|
this.mothers_name = source["mothers_name"];
|
|
this.mothers_maiden_name = source["mothers_maiden_name"];
|
|
this.birthdate = source["birthdate"];
|
|
this.birth_time = source["birth_time"];
|
|
this.weight_kg = source["weight_kg"];
|
|
this.joining_date = source["joining_date"];
|
|
this.joining_quarter = source["joining_quarter"];
|
|
this.joining_half = source["joining_half"];
|
|
this.joining_year = source["joining_year"];
|
|
this.joining_month = source["joining_month"];
|
|
this.joining_month_name = source["joining_month_name"];
|
|
this.joining_month_name_short = source["joining_month_name_short"];
|
|
this.joining_month_day = source["joining_month_day"];
|
|
this.joining_week_day = source["joining_week_day"];
|
|
this.joining_week_day_short = source["joining_week_day_short"];
|
|
this.years_of_service = source["years_of_service"];
|
|
this.salary = source["salary"];
|
|
this.latest_hike_percentage = source["latest_hike_percentage"];
|
|
this.ssn = source["ssn"];
|
|
this.phone_number = source["phone_number"];
|
|
this.place_name = source["place_name"];
|
|
this.county = source["county"];
|
|
this.city = source["city"];
|
|
this.state = source["state"];
|
|
this.zip = source["zip"];
|
|
this.region = source["region"];
|
|
this.username = source["username"];
|
|
this.password = source["password"];
|
|
}
|
|
}
|
|
|
|
}
|
|
|