itemDetail.model.ts 1.12 KB
Newer Older
1 2
import { Equirment } from "./equirment.model";

3
export class ItemDetail {
4
    id?: number;
5 6 7 8
    equirment : Equirment;
    userName: string;
    sDate: string;
    eDate: string;
9 10
    sTime: string;
    eTime: string;
11
    eStatus: number;
12
    Quantity: string;
13 14
    eTelephone: string;
    email: string;
15
    remark: string;
16
    allDay: boolean;
17
    returnItem : boolean;
18
    constructor(init?: ItemDetail) {
19
        Object.assign(this, init);
20
        this.id = 1;
21 22 23 24
        this.equirment = this.equirment;
        this.userName = '';
        this.sDate = '';
        this.eDate = '';
25
        this.eStatus = 0;
26
        this.Quantity = '';
27 28
        this.eTelephone = '';
        this.email = '';
29
        this.remark = '';
30
        this.allDay = true;
31
        this.returnItem = false;
32 33 34
    }
}

35
export interface SearchItemDetailModel {
36 37 38 39 40 41
    sDate: string;
    eDate: string;
    sTime: string;
    eTime: string;
}

42 43
export class SearchItemDetailModel {
    constructor(init?: SearchItemDetailModel) {
44 45 46 47 48 49
        Object.assign(this, init);
        this.sDate = '',
            this.eDate = '',
            this.sTime = '',
            this.eTime = '';
    }
50 51
}