equirment.model.ts 851 Bytes
Newer Older
1 2
import { CategoryModel } from "./itemDetail.model";

3
export class Equirment {
4
    eqId: number;
5
    eqName: string;
6 7 8
    eqDesc: string;
    eqType: string;
    eqPic: string;
9 10
    constructor(init?: Equirment){
        Object.assign(this, init);
11
        this.eqId = 0;
12
        this.eqName = '';
13 14 15
        this.eqDesc = '';
        this.eqType = '';
        this.eqPic = '';
16 17 18 19
    }
}

export interface SearchEquirmentModel {
20 21 22 23
    sDate: string;
    eDate: string;
    sTime: string;
    eTime: string;
24 25 26 27 28
}

export class SearchEquirmentModel {
    constructor(init?: SearchEquirmentModel) {
        Object.assign(this, init);
29 30 31 32
        this.sDate = '',
        this.eDate = '',
        this.sTime = '',
        this.eTime = '';
33 34
    }
}
35 36 37 38 39 40 41 42

interface EquirmentModel {
    id: number;
    name: string;
    desc: string;
    type?: CategoryModel;
    pic: string;
  }