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

export class ItemDetail {
    Id?: number;
    equirment : Equirment;
    userName: string;
    sDate: string;
    eDate: string;
    sTime: {
        hour: number;
        minute: number;
        second: number;
    };
    eTime: {
        hour: number;
        minute: number;
        second: number;
    };
    eStatus: string;
    Quantity: string;
    eTelephone: string;
    email: string;
    Remark: string;
    constructor(init?: ItemDetail) {
        Object.assign(this, init);
        this.Id = 1;
        this.equirment = this.equirment;
        this.userName = '';
        this.sDate = '';
        this.eDate = '';
        this.eStatus = '';
        this.Quantity = '';
        this.eTelephone = undefined;
        this.email = undefined;
        this.Remark = '';
    }
}

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 = '';
    }
}

export class CategoryModel {
    id: number;
    name: string;
}

