import { Equirment } from "./equirment.model";

export class ItemDetail {
    id?: number;
    equirment : Equirment;
    userName: string;
    sDate: string;
    eDate: string;
    sTime: string;
    eTime: string;
    eStatus: number;
    Quantity: string;
    eTelephone: string;
    email: string;
    remark: string;
    allDay: boolean;
    returnItem : boolean;
    constructor(init?: ItemDetail) {
        Object.assign(this, init);
        this.id = 1;
        this.equirment = this.equirment;
        this.userName = '';
        this.sDate = '';
        this.eDate = '';
        this.eStatus = 0;
        this.Quantity = '';
        this.eTelephone = '';
        this.email = '';
        this.remark = '';
        this.allDay = true;
        this.returnItem = false;
    }
}

export interface SearchItemDetailModel {
    sDate: string;
    eDate: string;
    sTime: string;
    eTime: string;
}

export class SearchItemDetailModel {
    constructor(init?: SearchItemDetailModel) {
        Object.assign(this, init);
        this.sDate = '',
            this.eDate = '',
            this.sTime = '',
            this.eTime = '';
    }
}

