put in ignore file
This commit is contained in:
@@ -0,0 +1,6 @@
|
||||
export interface Code {
|
||||
id:number;
|
||||
name:string;
|
||||
status?:string;
|
||||
active?:boolean;
|
||||
}
|
||||
@@ -0,0 +1,16 @@
|
||||
export enum ConfigureUrl
|
||||
{
|
||||
//baseUrl = "http://localhost:61744",
|
||||
loginApiUrl = "api/Users/Login",
|
||||
searchStaffUrl = "api/Users/SearchADStaff",
|
||||
staffUrl = "api/Staff",
|
||||
personUrl = "api/Person",
|
||||
staffWorkUrl = "api/StaffWork",
|
||||
jobUrl ="api/Job",
|
||||
clientUrl ="api/Client",
|
||||
relationShipUrl ="api/RelationShip",
|
||||
logoutUrl ="api/Users/Logout",
|
||||
adminUserUrl = "api/Staff",
|
||||
lookupUrl = "api/Lookup",
|
||||
|
||||
}
|
||||
@@ -0,0 +1,37 @@
|
||||
export const MIMEType = {
|
||||
png: 'image/png',
|
||||
jpg: 'image/jpg',
|
||||
jpeg: 'image/jpeg',
|
||||
gif: 'image/gif',
|
||||
txt: 'text/plain',
|
||||
pdf: 'application/pdf'
|
||||
};
|
||||
|
||||
|
||||
//for status of object 0 no change, 1 changed , -1 is deleted.
|
||||
export enum mState {
|
||||
Delete = -1,
|
||||
NoChange = 0,
|
||||
Modified = 1,
|
||||
New =2,
|
||||
};
|
||||
|
||||
export enum userRole {
|
||||
Normal = 1,
|
||||
Admin = 2,
|
||||
ServiceManager =3,
|
||||
Accounting = 4,
|
||||
WorkShop = 5,
|
||||
|
||||
};
|
||||
|
||||
export enum enumReqStatus {
|
||||
Canel = -1,
|
||||
Decline = -2,
|
||||
NewRequest = 0,
|
||||
Allocate = 1,
|
||||
Arrival = 2,
|
||||
Completed = 3,
|
||||
OnHold = 4,
|
||||
OffHold = 5
|
||||
};
|
||||
@@ -0,0 +1,10 @@
|
||||
export * from './code';
|
||||
export * from './configureUrl';
|
||||
export * from './user';
|
||||
export * from './resultmodel';
|
||||
export * from './enum';
|
||||
export * from './lookup';
|
||||
export * from './staff';
|
||||
export * from './person';
|
||||
export * from './job';
|
||||
export * from './relationship';
|
||||
@@ -0,0 +1,12 @@
|
||||
|
||||
export interface JobSearch {
|
||||
code:string;
|
||||
description:string;
|
||||
}
|
||||
export interface Job {
|
||||
id:number;
|
||||
code:string|null|undefined;
|
||||
description:string |null|undefined;
|
||||
active:boolean |null|undefined;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,16 @@
|
||||
// using for priority and infectionType
|
||||
export interface Lookup {
|
||||
id:number;
|
||||
codeId:string;
|
||||
description:string;
|
||||
|
||||
}
|
||||
|
||||
export interface LookupEdit {
|
||||
id:number;
|
||||
codeId:string;
|
||||
description:string;
|
||||
active:boolean;
|
||||
type:string;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
export interface MyDetail{
|
||||
id:number,
|
||||
login:string,
|
||||
firstname:string,
|
||||
surname:string,
|
||||
jobTitle:string,
|
||||
}
|
||||
@@ -0,0 +1,35 @@
|
||||
import { RelationShip } from "./relationship";
|
||||
|
||||
export interface FamilySearch {
|
||||
email:string|null;
|
||||
phone:string |null;
|
||||
clientname:string |null;
|
||||
}
|
||||
|
||||
export interface Person {
|
||||
|
||||
id: number;
|
||||
title?:string| null| undefined;
|
||||
firstName: string | null|undefined;
|
||||
lastName: string | null|undefined;
|
||||
email: string | null|undefined;
|
||||
phone: string | null|undefined;
|
||||
address?: string | null|undefined;
|
||||
alive: boolean | null|undefined;
|
||||
dob? : string | null|undefined;
|
||||
fatherId?: number| null|undefined;
|
||||
motherId?: number| null|undefined;
|
||||
image?: string|null|undefined;
|
||||
sex?: string|null|undefined;
|
||||
fatherName?:string |null;
|
||||
motherName?:string |null;
|
||||
relationShips?: RelationShip[];
|
||||
}
|
||||
|
||||
export interface PersonContainer
|
||||
{
|
||||
person: Person;
|
||||
formData?:FormData;
|
||||
|
||||
}
|
||||
|
||||
@@ -0,0 +1,27 @@
|
||||
import { mState } from "./enum";
|
||||
|
||||
export interface RelationShip {
|
||||
id: number;
|
||||
relatePersonId: number;
|
||||
personId: number;
|
||||
state: mState;
|
||||
}
|
||||
//relationship id this relatePersonId person has relation with other person
|
||||
// also other person has also has relation with you. look in two way
|
||||
// person id = 1 has to relation id = 90
|
||||
// that means when you edit person 90 their relation ship also be there.
|
||||
// so personid = 1 and relation id = 90 we need to show other way around.
|
||||
//example first name = Smith has partner Jennifer
|
||||
// when we edit Jennifer it should show Smith as her partner too.
|
||||
|
||||
export interface RelationShipView {
|
||||
id: number;
|
||||
relatePersonId:number;
|
||||
personId : number;
|
||||
pfirstName: string |null |undefined;
|
||||
plastName: string |null |undefined;
|
||||
sex:string |null |undefined;
|
||||
state: mState;
|
||||
|
||||
|
||||
}
|
||||
@@ -0,0 +1,5 @@
|
||||
export interface ResultModel<T> {
|
||||
data: T;
|
||||
message: string;
|
||||
statusCode:number;
|
||||
}
|
||||
@@ -0,0 +1,39 @@
|
||||
export interface StaffView {
|
||||
id:number,
|
||||
email:string,
|
||||
firstname:string,
|
||||
lastname:string,
|
||||
active:boolean,
|
||||
}
|
||||
|
||||
export interface ResetPassword{
|
||||
id:number;
|
||||
password:string;
|
||||
}
|
||||
|
||||
export interface Staff {
|
||||
id:number,
|
||||
email:string,
|
||||
firstname:string,
|
||||
lastname:string,
|
||||
phone:string,
|
||||
type:number;
|
||||
active:boolean;
|
||||
roleType: number;
|
||||
password?:string,
|
||||
}
|
||||
|
||||
export interface StaffSearch {
|
||||
email:string;
|
||||
firstName:string;
|
||||
lastName:string;
|
||||
}
|
||||
|
||||
//this use for new user only.
|
||||
export interface AdminUserNew {
|
||||
loginId:number;
|
||||
user: Staff;// first get userid from this table and
|
||||
|
||||
|
||||
}
|
||||
|
||||
@@ -0,0 +1,36 @@
|
||||
export class User {
|
||||
id: number = 0;
|
||||
username: string = '';
|
||||
role: number = -1;
|
||||
firstName: string = '';
|
||||
lastName: string = '';
|
||||
email:string = '';
|
||||
token:string ='';
|
||||
position: string ='';
|
||||
department: string = '';
|
||||
managerEmail:string ='';
|
||||
phone:string='';
|
||||
|
||||
}
|
||||
|
||||
export interface UserAD
|
||||
{
|
||||
id: number,
|
||||
firstName: string,
|
||||
lastName: string,
|
||||
email: string,
|
||||
username: string,
|
||||
department: string,
|
||||
position: string,
|
||||
role: number,
|
||||
phone:string,
|
||||
managerEmail:string
|
||||
}
|
||||
|
||||
export class SecAccessLevel {
|
||||
accessName:string='';
|
||||
request:number=0;
|
||||
report:number=0;
|
||||
admin:number=0;
|
||||
allocation:number=0;
|
||||
}
|
||||
Reference in New Issue
Block a user