Commit e241614f by hoangson

fix message date format, add language ko

parent 39622b8b
var CHK_MessageDetail = {}; var CHK_MessageDetail = {};
msgMap.messageDetailTopTitle = {ja:"プッシュメッセージ詳細", ko:"Push Message Detail", en:"Push Message Detail"}; msgMap.messageDetailTopTitle = {ja:"プッシュメッセージ詳細", ko:"푸시 메시지 상세", en:"Push message details"};
msgMap.messageDetailHeaderTitle = {ja:"メッセージ詳細", ko:"Message List", en:"Message Detail"}; msgMap.messageDetailHeaderTitle = {ja:"メッセージ詳細", ko:"메시지 상세", en:"Message Details"};
msgMap.messageDetailContentTitle = {ja:"内容", ko:"Content", en:"Content"}; msgMap.messageDetailContentTitle = {ja:"内容", ko:"내용", en:"Content"};
msgMap.messageDetailSendDateTitle = {ja:"日時", ko:"Send Date", en:"Send Date"}; msgMap.messageDetailSendDateTitle = {ja:"日時", ko:"일시", en:"Send Date"};
msgMap.messageDetailWorkingNameTitle = {ja:"作業名", ko:"Working Name", en:"Working Name"}; msgMap.messageDetailWorkingNameTitle = {ja:"作業名", ko:"작업명", en:"Operation Name"};
msgMap.messageDetailSenderTitle = {ja:"送信者", ko:"Sender", en:"Sender"}; msgMap.messageDetailSenderTitle = {ja:"送信者", ko:"송신자", en:"Sender"};
CHK_MessageDetail.init = function() { CHK_MessageDetail.init = function() {
CHK.initCommon(); CHK.initCommon();
...@@ -42,7 +42,12 @@ CHK_MessageDetail.init = function() { ...@@ -42,7 +42,12 @@ CHK_MessageDetail.init = function() {
CHK_MessageDetail.showMessage = function(message) { CHK_MessageDetail.showMessage = function(message) {
$('#messageDetail #message').text(message.pushMessage); $('#messageDetail #message').text(message.pushMessage);
$('#messageDetail #sendDate').text(message.pushSendDate); var mDate = message.pushSendDate;
if (CHK.isAndroid)
{
mDate = CHK.getFormatDate(new Date(message.pushSendDate));
}
$('#messageDetail #sendDate').text(mDate);
$('#messageDetail #operationName').text(message.operationName); $('#messageDetail #operationName').text(message.operationName);
$('#messageDetail #sender').text(message.pushSendLoginId); $('#messageDetail #sender').text(message.pushSendLoginId);
} }
......
var CHK_MessageList = {}; var CHK_MessageList = {};
msgMap.messageListTopTitle = {ja:"プッシュメッセージ一覧", ko:"Push Message List", en:"Push Message List"}; msgMap.messageListTopTitle = {ja:"プッシュメッセージ一覧", ko:"푸시 메시지 일람", en:"Push Message List"};
msgMap.messageListHeaderTitle = {ja:"メッセージ一覧", ko:"Message List", en:"Message List"}; msgMap.messageListHeaderTitle = {ja:"メッセージ一覧", ko:"메시지 일람", en:"Message List"};
msgMap.messageListEmptyTitle = {ja:"該当する作業がありません。", ko:"There is no applicable work", en:"There is no applicable work"}; msgMap.messageListEmptyTitle = {ja:"該当する作業がありません。", ko:"해당 작업이 없습니다.", en:"There is no applicable work"};
CHK_MessageList.init = function() { CHK_MessageList.init = function() {
CHK.initCommon(); CHK.initCommon();
...@@ -42,6 +42,10 @@ CHK_MessageList.createMessageList = function(messageList) { ...@@ -42,6 +42,10 @@ CHK_MessageList.createMessageList = function(messageList) {
var messageId = message.pushMessageId; var messageId = message.pushMessageId;
var mTitle = message.pushMessage; var mTitle = message.pushMessage;
var mDate = message.pushSendDate; var mDate = message.pushSendDate;
if (CHK.isAndroid)
{
mDate = CHK.getFormatDate(new Date(message.pushSendDate));
}
var mSubtitle = message.operationName; var mSubtitle = message.operationName;
var unread = !message.readingFlg; var unread = !message.readingFlg;
var messageLi = $('<li class="item list-unstyled rounded border mb-2" id="pushMessageId_' + messageId + '"/>'); var messageLi = $('<li class="item list-unstyled rounded border mb-2" id="pushMessageId_' + messageId + '"/>');
......
...@@ -588,7 +588,7 @@ CHK.loadDashboardBatch = function(operationList) { ...@@ -588,7 +588,7 @@ CHK.loadDashboardBatch = function(operationList) {
if (process.phaseList && process.phaseList.length > 0) { if (process.phaseList && process.phaseList.length > 0) {
for (var k = 0; k < process.phaseList.length; k++) { for (var k = 0; k < process.phaseList.length; k++) {
let phase = process.phaseList[k]; let phase = process.phaseList[k];
if (phase.phaseStatus && phase.phaseStatus != 999) { if (phase.phaseStatus != 999) {
CHK.dashboardBatch.continousWork += 1; CHK.dashboardBatch.continousWork += 1;
} }
} }
...@@ -3457,6 +3457,11 @@ CHK.sendAppCommand = function (command, param) { ...@@ -3457,6 +3457,11 @@ CHK.sendAppCommand = function (command, param) {
CHK.sendABookCheckApi(apiParam); CHK.sendABookCheckApi(apiParam);
} }
CHK.getFormatDate = function(date) {
return date.getFullYear() + "-" + ("0" + (date.getMonth() + 1)).slice(-2) + "-" + ("0" + date.getDate()).slice(-2) + " "
+ ("0" + date.getHours()).slice(-2) + ":" + ("0" + date.getMinutes()).slice(-2);
}
$(document).ready(function () { $(document).ready(function () {
var urlParam = CHK.getUrlParameter(); var urlParam = CHK.getUrlParameter();
if (typeof urlParam !== 'undefined' && typeof urlParam.lang !== 'undefined') { if (typeof urlParam !== 'undefined' && typeof urlParam.lang !== 'undefined') {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment