151 lines
3.1 KiB
TypeScript
151 lines
3.1 KiB
TypeScript
export class SubsidiaryDTO {
|
|
id?: string;
|
|
companyId?: string;
|
|
companyName?: string;
|
|
code?: string;
|
|
name?: string;
|
|
officeNo?: string;
|
|
street?: string;
|
|
locality?: string;
|
|
cityId?: string;
|
|
stateId?: string;
|
|
cityName?: string;
|
|
stateName?: string;
|
|
pinCode?: string;
|
|
emailId?: string;
|
|
contactNo?: string;
|
|
contactPerson?: string;
|
|
panNo?: string;
|
|
cinNo?: string;
|
|
msmeNo?: string;
|
|
updatedAt?: Date;
|
|
updatedBy?: string;
|
|
updatedUser?: string;
|
|
active?: boolean;
|
|
|
|
constructor(init?: Partial<SubsidiaryDTO>) {
|
|
Object.assign(this, init);
|
|
if (init?.updatedAt) {
|
|
this.updatedAt = new Date(init.updatedAt);
|
|
}
|
|
}
|
|
}
|
|
|
|
export interface DepartmentDTO {
|
|
id: string;
|
|
companyId: string;
|
|
department: string;
|
|
parentDepartment?: string;
|
|
parentDepartmentName?: string;
|
|
createdUser: string;
|
|
updatedAt: string;
|
|
updatedUser: string;
|
|
active: boolean;
|
|
}
|
|
|
|
export interface CompanyVerifierModel {
|
|
pkId?: number;
|
|
id?: string;
|
|
companyId: string;
|
|
employeeId?: string;
|
|
verifierCode: string;
|
|
verifierType: string;
|
|
fullName: string;
|
|
mobileNo: string;
|
|
emailId: string;
|
|
allocationDate?: string;
|
|
appActive: boolean;
|
|
photoMandatory: boolean;
|
|
createdAt?: string;
|
|
createdBy?: number;
|
|
createdUser?: string;
|
|
updatedAt?: string;
|
|
updatedBy?: number;
|
|
updatedUser?: string;
|
|
active: boolean;
|
|
}
|
|
|
|
export interface DesignationDTO {
|
|
id: string;
|
|
companyId: string;
|
|
departmentId: string;
|
|
departmentName: string;
|
|
designation: string;
|
|
createdUser: string;
|
|
updatedAt: string;
|
|
updatedUser: string;
|
|
active: boolean;
|
|
hod: boolean;
|
|
payGrade?: string;
|
|
}
|
|
|
|
export interface EmployeeDTO {
|
|
id: string;
|
|
subsidiaryId: string;
|
|
departmentId: string;
|
|
designationId: string;
|
|
subsidiaryName: string;
|
|
department: string;
|
|
designation: string;
|
|
employeeId?: string;
|
|
joiningDate?: string;
|
|
fullName: string;
|
|
fatherName?: string;
|
|
gender?: string;
|
|
dob?: string;
|
|
residenceAddress?: string;
|
|
residenceCityId?: string;
|
|
residenceStateId?: string;
|
|
residenceCityName?: string;
|
|
residenceStateName?: string;
|
|
permanentAddress?: string;
|
|
permanentCityId?: string;
|
|
permanentStateId?: string;
|
|
permanentCityName?: string;
|
|
permanentStateName?: string;
|
|
contactNo: string;
|
|
alternateNo?: string;
|
|
emailId: string;
|
|
createdUser: string;
|
|
updatedAt: string;
|
|
updatedUser: string;
|
|
active: boolean;
|
|
}
|
|
|
|
export interface VendorBranchDTO {
|
|
id?: string;
|
|
fkVendorId?: string;
|
|
branchCode: string;
|
|
branchName: string;
|
|
officeNo?: string;
|
|
street?: string;
|
|
locality?: string;
|
|
cityId?: string;
|
|
stateId?: string;
|
|
stateName?: string;
|
|
cityName?: string;
|
|
pinCode?: string;
|
|
emailId?: string;
|
|
contactNo?: string;
|
|
contactPerson?: string;
|
|
gstNo?: string;
|
|
createdUser?: string;
|
|
updatedAt?: string;
|
|
updatedUser?: string;
|
|
active: boolean;
|
|
}
|
|
|
|
export interface VendorDTO {
|
|
id?: string;
|
|
companyId?: string;
|
|
code: string;
|
|
name: string;
|
|
panNo?: string;
|
|
cinNo?: string;
|
|
msmeNo?: string;
|
|
createdUser?: string;
|
|
updatedAt?: string;
|
|
updatedUser?: string;
|
|
active: boolean;
|
|
branches?: VendorBranchDTO[];
|
|
} |