import { EN_AppEntities } from '@app_consts';
import { AppBaseEntity } from './generic/app.baseentity';
import { AppBaseFilter } from './generic/app.baseentityfilter';

export class DocumentArtToDepartment extends AppBaseEntity {
  typeName = EN_AppEntities.DocumentArtToDepartment;
  documentArtToDepartmentId: number;
  documentArtId: number;
  departmentId: number;
  isActive: boolean;
  useGlobix: boolean;

  documentArtName: string;
  documentArtShortname: string;
  documentArtFolder: string;

  public get entityId() {
    return this.documentArtToDepartmentId;
  }
  public set entityId(value) {
    this.documentArtToDepartmentId = value;
  }

  public clear() {
    this.isActive = true;
    this.useGlobix = false;
  }
}


export class DocumentArtToDepartmentFilter extends AppBaseFilter {
  documentArtId: number;
}
