fixed the program.cs and run in VC code

This commit is contained in:
2026-07-30 17:23:48 +10:00
parent ce2b3ba8c9
commit 5d2e989ee9
112 changed files with 17313 additions and 17245 deletions
+6 -6
View File
@@ -1,6 +1,6 @@
export interface Code {
id:number;
name:string;
status?:string;
active?:boolean;
}
export interface Code {
id:number;
name:string;
status?:string;
active?:boolean;
}
+16 -16
View File
@@ -1,17 +1,17 @@
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",
FileUploadUrl = "api/FileUpload",
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",
FileUploadUrl = "api/FileUpload",
}
+37 -37
View File
@@ -1,37 +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
};
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
};
+10 -10
View File
@@ -1,11 +1,11 @@
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';
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';
export * from './personphotodto';
+12 -12
View File
@@ -1,12 +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;
}
export interface JobSearch {
code:string;
description:string;
}
export interface Job {
id:number;
code:string|null|undefined;
description:string |null|undefined;
active:boolean |null|undefined;
}
+15 -15
View File
@@ -1,16 +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;
// 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;
}
+6 -6
View File
@@ -1,7 +1,7 @@
export interface MyDetail{
id:number,
login:string,
firstname:string,
surname:string,
jobTitle:string,
export interface MyDetail{
id:number,
login:string,
firstname:string,
surname:string,
jobTitle:string,
}
+37 -37
View File
@@ -1,37 +1,37 @@
import { PersonPhotoDto } from "./personphotodto";
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[];
personPhotos?: PersonPhotoDto[];
}
export interface PersonContainer
{
person: Person;
formData?:FormData;
}
import { PersonPhotoDto } from "./personphotodto";
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[];
personPhotos?: PersonPhotoDto[];
}
export interface PersonContainer
{
person: Person;
formData?:FormData;
}
+5 -5
View File
@@ -1,6 +1,6 @@
export interface PersonPhotoDto {
id: number;
photo:string|null | undefined;
photoType:string |null | undefined;
file: File | null | undefined;
export interface PersonPhotoDto {
id: number;
photo:string|null | undefined;
photoType:string |null | undefined;
file: File | null | undefined;
}
+26 -26
View File
@@ -1,27 +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;
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;
}
+4 -4
View File
@@ -1,5 +1,5 @@
export interface ResultModel<T> {
data: T;
message: string;
statusCode:number;
export interface ResultModel<T> {
data: T;
message: string;
statusCode:number;
}
+39 -39
View File
@@ -1,39 +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
}
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
}
+36 -36
View File
@@ -1,36 +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;
}
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;
}