[대상향] 업무상태 표시를 위한 데이터 선작업 >? 디자인 완료되면 마저 작업필요.
This commit is contained in:
parent
6e44f69c0f
commit
35f868c25c
|
@ -17,6 +17,7 @@ import { EventType, Info, EventJson } from '@ucap-webmessenger/protocol-event';
|
|||
import { VersionInfo2Response } from '@ucap-webmessenger/api-public';
|
||||
import { StatusCode as ApiStatusCode } from '@ucap-webmessenger/api';
|
||||
import { StatusCode } from '@ucap-webmessenger/core';
|
||||
import { WorkStatusType } from 'projects/ucap-webmessenger-protocol-status/src/lib/types/work-status.type';
|
||||
|
||||
@Component({
|
||||
selector: 'app-template.page',
|
||||
|
@ -73,7 +74,8 @@ export const status: StatusBulkInfo = {
|
|||
// 단말상태정보(s)
|
||||
terminalStatus: TerminalStatusInfo.Idle,
|
||||
// 단말상태번호(n)
|
||||
terminalStatusNumber: TerminalStatusNumber.Idle
|
||||
terminalStatusNumber: TerminalStatusNumber.Idle,
|
||||
workstatus: WorkStatusType.Work
|
||||
};
|
||||
export const buddyData: UserInfo = {
|
||||
seq: 15,
|
||||
|
|
|
@ -11,6 +11,7 @@ import {
|
|||
UserInfoSS,
|
||||
DataUserResponse
|
||||
} from '@ucap-webmessenger/protocol-query';
|
||||
import { WorkStatusType } from 'projects/ucap-webmessenger-protocol-status/src/lib/types/work-status.type';
|
||||
|
||||
// export interface UserInfoSSForDaesang extends UserInfoSS {
|
||||
// /****** For daesang ******/
|
||||
|
@ -69,7 +70,7 @@ export const decodeDataUser: ProtocolDecoder<DataUserResponse> = (
|
|||
// [daesang]
|
||||
companyName: info[29],
|
||||
responsibilities: info[30],
|
||||
workstatus: info[31],
|
||||
workstatus: info[31] as WorkStatusType,
|
||||
job: info[32],
|
||||
customerInfo: info[33],
|
||||
workplace: info[34]
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
import { RoleCode } from '@ucap-webmessenger/protocol-authentication';
|
||||
import { CallMode } from '@ucap-webmessenger/core';
|
||||
import { EmployeeType } from '@ucap-webmessenger/protocol-room';
|
||||
import { WorkStatusType } from 'projects/ucap-webmessenger-protocol-status/src/lib/types/work-status.type';
|
||||
|
||||
export interface UserInfoSS {
|
||||
/** 사용자SEQ */
|
||||
|
@ -67,7 +68,7 @@ export interface UserInfoSS {
|
|||
/** 담당업무 */
|
||||
responsibilities?: string;
|
||||
/** 업무 상태 */
|
||||
workstatus?: string;
|
||||
workstatus?: WorkStatusType;
|
||||
/** SC직무 */
|
||||
job?: string;
|
||||
/** 거래처정보 */
|
||||
|
|
|
@ -3,6 +3,7 @@ import {
|
|||
TerminalStatusInfo,
|
||||
TerminalStatusNumber
|
||||
} from '../types/terminal-status.type';
|
||||
import { WorkStatusType } from '../types/work-status.type';
|
||||
|
||||
export interface StatusBulkInfo extends StatusInfo {
|
||||
// 사용자SEQ
|
||||
|
@ -18,4 +19,7 @@ export interface StatusBulkInfo extends StatusInfo {
|
|||
terminalStatus: TerminalStatusInfo;
|
||||
/** 단말상태번호(n) */
|
||||
terminalStatusNumber: TerminalStatusNumber;
|
||||
|
||||
/** 업무상태정보(s) */
|
||||
workstatus: WorkStatusType;
|
||||
}
|
||||
|
|
|
@ -1,20 +1,24 @@
|
|||
import { StatusCode } from '@ucap-webmessenger/core';
|
||||
import { WorkStatusType } from '../types/work-status.type';
|
||||
|
||||
export interface StatusInfo {
|
||||
// 사용자SEQ
|
||||
/** 사용자SEQ */
|
||||
userSeq: number;
|
||||
// 상태코드(PC)
|
||||
/** 상태코드(PC) */
|
||||
pcStatus: StatusCode;
|
||||
// 상태코드(통화)
|
||||
/** 상태코드(통화) */
|
||||
phoneStatus: StatusCode;
|
||||
// 상태코드(모바일)
|
||||
/** 상태코드(모바일) */
|
||||
mobileStatus: StatusCode;
|
||||
// 상태코드(PC화상)
|
||||
/** 상태코드(PC화상) */
|
||||
conferenceStatus: StatusCode;
|
||||
// 상태메시지
|
||||
/** 상태메시지 */
|
||||
statusMessage: string;
|
||||
// 상태코드(Mobile화상)
|
||||
/** 상태코드(Mobile화상) */
|
||||
mobileConferenceStatus: StatusCode;
|
||||
// 상태코드(iMessenger)
|
||||
/** 상태코드(iMessenger) */
|
||||
imessengerStatus: StatusCode;
|
||||
|
||||
/** 업무상태 */
|
||||
workstatus?: WorkStatusType;
|
||||
}
|
||||
|
|
|
@ -17,6 +17,7 @@ import {
|
|||
} from '../types/terminal-status.type';
|
||||
import { StatusInfo } from '../models/status-info';
|
||||
import { StatusBulkInfo } from '../models/status-bulk-info';
|
||||
import { WorkStatusType } from '../types/work-status.type';
|
||||
|
||||
export interface BulkInfoRequest extends ProtocolRequest {
|
||||
/** DivCD(s) */
|
||||
|
@ -72,7 +73,8 @@ export const decodeBulkInfoData: ProtocolDecoder<BulkInfoData> = (
|
|||
mobileConferenceStatus: info[6] as StatusCode,
|
||||
imessengerStatus: info[7] as StatusCode,
|
||||
terminalStatus: info[8] as TerminalStatusInfo,
|
||||
terminalStatusNumber: Number(info[9]) as TerminalStatusNumber
|
||||
terminalStatusNumber: Number(info[9]) as TerminalStatusNumber,
|
||||
workstatus: info[10] as WorkStatusType
|
||||
});
|
||||
});
|
||||
return decodeProtocolMessage(message, {
|
||||
|
|
|
@ -12,6 +12,7 @@ import {
|
|||
} from '@ucap-webmessenger/protocol';
|
||||
import { StatusType, StatusCode } from '@ucap-webmessenger/core';
|
||||
import { StatusInfo } from '../models/status-info';
|
||||
import { WorkStatusType } from '../types/work-status.type';
|
||||
|
||||
export interface StatusRequest extends ProtocolRequest {
|
||||
// 상태타입(s)
|
||||
|
@ -74,6 +75,7 @@ export const decodeStatusNotification: ProtocolDecoder<StatusNotification> = (
|
|||
conferenceStatus: info[4] as StatusCode,
|
||||
statusMessage: info[5],
|
||||
mobileConferenceStatus: info[6] as StatusCode,
|
||||
imessengerStatus: info[7] as StatusCode
|
||||
imessengerStatus: info[7] as StatusCode,
|
||||
workstatus: info[8] as WorkStatusType
|
||||
} as StatusNotification);
|
||||
};
|
||||
|
|
|
@ -0,0 +1,41 @@
|
|||
export enum WorkStatusType {
|
||||
/** 근무중 */
|
||||
Work = 'W01',
|
||||
|
||||
/** 휴가 */
|
||||
/** 오전 */
|
||||
VacationAM = 'V01',
|
||||
/** 오후 */
|
||||
VacationPM = 'V02',
|
||||
/** 휴가 */
|
||||
VacationAll = 'V03',
|
||||
/** 휴직 */
|
||||
LeaveOfAbsence = 'V04',
|
||||
/** 장기 리프레쉬 */
|
||||
LongtermRefresh = 'V05'
|
||||
// /** 교육 */
|
||||
// /** 오전교육 */
|
||||
// EducationAm = 'E01',
|
||||
// /** 오후교육 */
|
||||
// EducationPm = 'E02',
|
||||
// /** 종일교육 */
|
||||
// EducationAll = 'E03',
|
||||
// /** 장기교육 */
|
||||
// EducationLongterm = 'E04',
|
||||
// /** 휴직 */
|
||||
// /** 일반휴직 */
|
||||
// LTRNormal = 'R01',
|
||||
// /** 육아휴직 */
|
||||
// LTRBaby = 'R02',
|
||||
// /** 기타휴직 */
|
||||
// LTREtc = 'R03',
|
||||
// /** 일반출장 */
|
||||
// /** 출장 */
|
||||
// BusinessTrip = 'T01',
|
||||
// /** 해외출장 */
|
||||
// BusinessTripOverseas = 'T02',
|
||||
// /** 국내출장 */
|
||||
// BusinessTripLocal = 'T03',
|
||||
// /** 장기출장 */
|
||||
// BusinessLongterm = 'T04',
|
||||
}
|
|
@ -16,6 +16,7 @@ import { FormControl } from '@angular/forms';
|
|||
import { SmsUtils } from '@ucap-webmessenger/daesang';
|
||||
import { SessionStorageService } from '@ucap-webmessenger/web-storage';
|
||||
import { NativeService, UCAP_NATIVE_SERVICE } from '@ucap-webmessenger/native';
|
||||
import { WorkStatusType } from 'projects/ucap-webmessenger-protocol-status/src/lib/types/work-status.type';
|
||||
|
||||
@Component({
|
||||
selector: 'ucap-profile-profile',
|
||||
|
@ -138,20 +139,20 @@ export class ProfileComponent implements OnInit {
|
|||
let workstatus = '';
|
||||
if (!!userInfo && !!userInfo.workstatus) {
|
||||
switch (userInfo.workstatus) {
|
||||
case 'V01':
|
||||
workstatus = '오전휴가';
|
||||
case WorkStatusType.VacationAM:
|
||||
workstatus = '오전';
|
||||
break;
|
||||
case 'V02':
|
||||
workstatus = '오후휴가';
|
||||
case WorkStatusType.VacationPM:
|
||||
workstatus = '오후';
|
||||
break;
|
||||
case 'V03':
|
||||
workstatus = '종일휴가';
|
||||
case WorkStatusType.VacationAll:
|
||||
workstatus = '휴가';
|
||||
break;
|
||||
case 'V04':
|
||||
workstatus = '장기휴가';
|
||||
case WorkStatusType.LeaveOfAbsence:
|
||||
workstatus = '휴직';
|
||||
break;
|
||||
case 'V05':
|
||||
workstatus = '장기 리프레쉬';
|
||||
case WorkStatusType.LongtermRefresh:
|
||||
workstatus = '장기';
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user