Commit 898f6c23 by Takumi Imai

リファクタリング

parent 6e7014de
......@@ -123,5 +123,6 @@
"dateError": "Set the start date before the end date.",
"onlyRfid":"RFID or barcode is set.\nPlease scan the code.",
"errorOccured": "Communication error.",
"selectData": "Choice"
"selectData": "Choice",
"errorSendMsg": "Send failed."
}
\ No newline at end of file
......@@ -121,5 +121,6 @@
"dateError": "開始日は終了日の前に設定してください。",
"onlyRfid":"RFID又はバーコードが設定されています。\n該当コードを読み込んでください。",
"errorOccured": "通信エラーです。",
"selectData": "選択"
"selectData": "選択",
"errorSendMsg": "送信に失敗しました。"
}
\ No newline at end of file
......@@ -120,5 +120,6 @@
"dateError": "시작일은 종료일 이전에 설정하십시오.",
"onlyRfid":"RFID또는 바코드가 설정되어있습니다.\n해당코드를 스캔해주십시오.",
"errorOccured": "통신 오류입니다.",
"selectData": "선택"
"selectData": "선택",
"errorSendMsg": "전송에 실패했습니다."
}
\ No newline at end of file
......@@ -36,7 +36,7 @@ OL.init = function () {
OL.createOperationList(OL.operationList);
//show category(operationGroupMaster)
$('#includedCategoryModal').load('../common/category-modal.html', function () {
$('#includedCategoryModal').load('../common/html/category-modal.html', function () {
OL.createCategory();
I18N.initi18n();
});
......@@ -507,11 +507,11 @@ OL.sendOperation = function (operationId, operationType, reportType, enableAddRe
//save operation logs. needed for sorting
OL.saveOperationReadingLog(operationId, operationType, reportType);
//Transition to the report form or operation list screen
sessionStorage.setItem("operationId", operationId);
sessionStorage.setItem('operationId', operationId);
if (enableAddReport == '1' || reportType == CONSTANT.REPORT_TYPE.ROUTINE) {
COMMON.avwScreenMove('reportList.html');
} else {
const url = 'reportForm.html?operationId=' + operationId + "&addReport=" + enableAddReport;
const url = 'reportForm.html?operationId=' + operationId + '&addReport=' + enableAddReport;
COMMON.avwScreenMove(url);
}
};
......
......@@ -69,7 +69,7 @@ SendMessage.onClickSend = function () {
const message = SendMessage.getCurrentMessageContent();
const operationId = SendMessage.getCurrentOperationId();
const sendType = SendMessage.getCurrentSendType();
COMMON.showConfirm('msgSendPushMessageConfirm', function() {
COMMON.showConfirm('msgSendPushMessageConfirm', function () {
SendMessage.postMessage(message, operationId, sendType);
});
};
......@@ -97,8 +97,8 @@ SendMessage.postMessage = function (message, operationId, sendType) {
COMMON.showAlert('msgSendPushMessageSuccess', 'success');
},
function () {
console.log('SendMessage.postMessage error');
COMMON.closeLoading();
COMMON.showAlert('errorSendMsg');
},
);
};
......
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