- catching
All checks were successful
Build Docker Image / Preparing Dependecies (push) Successful in 5s
All checks were successful
Build Docker Image / Preparing Dependecies (push) Successful in 5s
This commit is contained in:
94
ng-ttc-frontend/src/app/interfaces/dashboard.interface.ts
Normal file
94
ng-ttc-frontend/src/app/interfaces/dashboard.interface.ts
Normal file
@@ -0,0 +1,94 @@
|
||||
export interface IStateDrop {
|
||||
income: IDropAct[];
|
||||
expense: IDropAct[];
|
||||
}
|
||||
|
||||
export interface IDropAct {
|
||||
dtlnam?: string,
|
||||
dtlcod?: string
|
||||
}
|
||||
|
||||
export interface IActData {
|
||||
actseq?: number,
|
||||
actnum?: number,
|
||||
acttyp?: string,
|
||||
acttypnam?: string,
|
||||
actcatnam?: string,
|
||||
actqty?: number,
|
||||
actcmt?: string,
|
||||
actacpdtm?: string
|
||||
}
|
||||
export interface IStateResultResponse {
|
||||
data: IStateDrop;
|
||||
}
|
||||
|
||||
export interface IStateResultResponse {
|
||||
data: IStateDrop;
|
||||
}
|
||||
|
||||
|
||||
export interface IActSumData {
|
||||
summary: IActSummary;
|
||||
pie: IActPie;
|
||||
}
|
||||
|
||||
export interface IActSummary {
|
||||
totalIncome: string;
|
||||
totalExpense: string;
|
||||
netProfit: string;
|
||||
profitRate: string;
|
||||
adjustedProfitRate: string;
|
||||
period: string;
|
||||
}
|
||||
|
||||
export interface IActPie {
|
||||
expense: IActCategory[];
|
||||
income: IActCategory[];
|
||||
}
|
||||
|
||||
export interface IActCategory {
|
||||
label: string;
|
||||
value: number;
|
||||
percent: string;
|
||||
color: string;
|
||||
}
|
||||
|
||||
// ข้อมูลสินค้าหลัก
|
||||
// export interface IProduct {
|
||||
// id: string;
|
||||
// name: string;
|
||||
// price: number;
|
||||
// category: string;
|
||||
// inStock: boolean;
|
||||
// description?: string; // optional
|
||||
// imageUrl?: string;
|
||||
// tags: string[];
|
||||
// createdAt: Date;
|
||||
// updatedAt: Date;
|
||||
// }
|
||||
|
||||
// // ข้อมูลสินค้าแบบย่อ (ใช้ในรายการ)
|
||||
// export interface IProductSummary {
|
||||
// id: string;
|
||||
// name: string;
|
||||
// price: number;
|
||||
// imageUrl?: string;
|
||||
// inStock: boolean;
|
||||
// }
|
||||
|
||||
// // ข้อมูลสำหรับฟอร์ม
|
||||
// export interface IProductForm {
|
||||
// name: string;
|
||||
// price: number;
|
||||
// category: string;
|
||||
// description?: string;
|
||||
// inStock: boolean;
|
||||
// }
|
||||
|
||||
// // ข้อมูลการจัดหมวดหมู่
|
||||
// export interface IProductCategory {
|
||||
// id: string;
|
||||
// name: string;
|
||||
// parentId?: string;
|
||||
// productCount: number;
|
||||
// }
|
||||
Reference in New Issue
Block a user