Options
All
  • Public
  • Public/Protected
  • All
Menu

Class UtilsService

Utils service

Hierarchy

  • UtilsService

Index

Constructors

  • Creates an instance of utils service.

    Returns UtilsService

Methods

  • getAssets(url: string): string
  • Gets assets

    Parameters

    • url: string

    Returns string

  • getDate(date?: string | Date, format?: string): string
  • Gets date

    Parameters

    • Optional date: string | Date
    • Optional format: string

    Returns string

  • getDateAddDay(date?: string | Date, addDay?: number, format?: string): string
  • Gets date add day

    Parameters

    • Optional date: string | Date
    • Optional addDay: number
    • Optional format: string

    Returns string

  • getDateObject(date?: string | Date): Date
  • Gets date object

    Parameters

    • Optional date: string | Date

    Returns Date

    date of date object

  • getDatePass(date?: string | Date): string
  • Gets date

    Parameters

    • Optional date: string | Date

    Returns string

  • getDonghsno(dong?: string, hsno?: string): string
  • Gets donghsno

    Parameters

    • Optional dong: string
    • Optional hsno: string

    Returns string

  • getJobTypeNm(lJobType?: string, mJobType?: string, sJobType?: string): string
  • Gets donghsno

    Parameters

    • Optional lJobType: string
    • Optional mJobType: string
    • Optional sJobType: string

    Returns string

  • getNl2Br(text?: string): string
  • Gets nl2 br

    Parameters

    • Optional text: string

    Returns string

    nl2 br

  • getText2Html(text?: string): string
  • Gets text2 html

    Parameters

    • Optional text: string

    Returns string

  • getWorkWkiSend(workWkiPushYn?: string, workWkiSmsYn?: string): boolean
  • Gets work wki send

    Parameters

    • Optional workWkiPushYn: string
    • Optional workWkiSmsYn: string

    Returns boolean

  • isNotNull(input: any): boolean
  • Determines whether not null is

    Parameters

    • input: any

    Returns boolean

    true if not null

  • isNull(input: any): boolean
  • Determines whether null is

    Parameters

    • input: any

    Returns boolean

    true if null

  • parseTel(tel: string): string
  • Parses tel

    Parameters

    • tel: string

    Returns string

  • showDate(date: string, def?: string): string
  • Shows date

    Parameters

    • date: string
    • def: string = '___-__-__'

    Returns string

  • showDateRange(from: string, to: string): string
  • Shows date range

    Parameters

    • from: string
    • to: string

    Returns string

  • showTextJoin(delimiter?: string, ...data: string[]): string
  • Shows text join

    Parameters

    • delimiter: string = ' - '
    • Rest ...data: string[]

    Returns string

  • showTime(from: string, to?: string): string
  • Shows time

    Parameters

    • from: string
    • Optional to: string

    Returns string

  • Gets instance

    Returns UtilsService

    instance

Generated using TypeDoc