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;
    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.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;
}