Commit 46d74cad by NGUYEN HOANG SON

Merge branch 'feature/1.0_check_web_dev' into feature/1.0_check_web_dev_son

# Conflicts:
#	abweb/common/json/lang/lang-en.json
#	abweb/common/json/lang/lang-ja.json
#	abweb/common/json/lang/lang-ko.json
parents c6de9971 df5d8bd6
...@@ -58,12 +58,10 @@ COMMON.avwScreenMove = function (url) { ...@@ -58,12 +58,10 @@ COMMON.avwScreenMove = function (url) {
* @param {String} key * @param {String} key
*/ */
COMMON.showLoading = function () { COMMON.showLoading = function () {
// $(window).resize(function() {
$('#loader').css( { $('#loader').css( {
'width': $(window).width(), 'width': $(window).width(),
'height': $(window).height() 'height': $(window).height()
}); });
// });
document.getElementById('loader').style.display = 'block'; document.getElementById('loader').style.display = 'block';
}; };
......
...@@ -120,5 +120,6 @@ ...@@ -120,5 +120,6 @@
"error": "Error", "error": "Error",
"msgSendPushMessageConfirm": "Do you want to send message?", "msgSendPushMessageConfirm": "Do you want to send message?",
"close":"Close", "close":"Close",
"success":"Success" "success":"Success",
"dateError": "Set the start date before the end date."
} }
\ No newline at end of file
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
"txtLastLoginTime":"最終ログイン時間:", "txtLastLoginTime":"最終ログイン時間:",
"msgPwdEmpty":"パスワードを入力してください", "msgPwdEmpty":"パスワードを入力してください",
"msgPwdOldWrong":"現在のパスワードに誤りがあります", "msgPwdOldWrong":"現在のパスワードに誤りがあります",
"msgPwdNotMatch":"新しいパスワードと新しいパスワード(確認)が一致しません。", "msgPwdNotMatch":"新しいパスワードと新しいパスワード(確認)が一致しません。",
"msgInvaildLength":"パスワードの長さは6文字以上16文字以下の間でなければいけません。", "msgInvaildLength":"パスワードの長さは6文字以上16文字以下の間でなければいけません。",
"msgHasSeqChar":"新しいパスワードに同じ文字を3文字以上連続して使えません。", "msgHasSeqChar":"新しいパスワードに同じ文字を3文字以上連続して使えません。",
...@@ -118,5 +118,6 @@ ...@@ -118,5 +118,6 @@
"error": "エラー", "error": "エラー",
"msgSendPushMessageConfirm": "プッシュメッセージを送信しますか?", "msgSendPushMessageConfirm": "プッシュメッセージを送信しますか?",
"close":"閉じる", "close":"閉じる",
"success":"成功" "success":"成功",
"dateError": "開始日は終了日の前に設定してください。"
} }
\ No newline at end of file
...@@ -117,5 +117,6 @@ ...@@ -117,5 +117,6 @@
"error": "에러", "error": "에러",
"msgSendPushMessageConfirm": "Do you want to send message?", "msgSendPushMessageConfirm": "Do you want to send message?",
"close":"Close", "close":"Close",
"success":"Success" "success":"Success",
"dateError": "시작일은 종료일 이전에 설정하십시오."
} }
\ No newline at end of file
...@@ -113,45 +113,44 @@ LOGIN.checkDialogValidation = function () { ...@@ -113,45 +113,44 @@ LOGIN.checkDialogValidation = function () {
if (!ValidationUtil.CheckRequiredForText(currentPass)) { if (!ValidationUtil.CheckRequiredForText(currentPass)) {
LOGIN.login_errorMessage = ''; LOGIN.login_errorMessage = '';
msgError.html(COMMON.format(I18N.i18nText('msgEssential'), I18N.i18nText('txtPwdCurr')).toString());
msgError.html(I18N.i18nText('msgPwdEmpty')); msgError.html(I18N.i18nText('msgPwdEmpty'));
msgError.attr('lang', 'msgPwdEmpty');
msgError.show(); msgError.show();
return false; return false;
} else if (!ValidationUtil.CheckRequiredForText(newPass)) { } else if (!ValidationUtil.CheckRequiredForText(newPass)) {
LOGIN.login_errorMessage = ''; LOGIN.login_errorMessage = '';
msgError.html(I18N.i18nText('msgPwdEmpty')); msgError.html(COMMON.format(I18N.i18nText('msgEssential'), I18N.i18nText('txtPwdNew')).toString());
msgError.attr('lang', 'msgPwdEmpty'); msgError.show();
return false;
} else if (!ValidationUtil.CheckRequiredForText(confirmPass)) {
LOGIN.login_errorMessage = '';
msgError.html(COMMON.format(I18N.i18nText('msgEssential'), I18N.i18nText('txtPwdNewRe')).toString());
msgError.show(); msgError.show();
return false; return false;
} else { } else {
if (newPass != confirmPass) { if (newPass != confirmPass) {
LOGIN.login_errorMessage = ''; LOGIN.login_errorMessage = '';
msgError.html(I18N.i18nText('msgPwdNotMatch')); msgError.html(I18N.i18nText('msgPwdNotMatch'));
msgError.attr('lang', 'msgPwdNotMatch');
msgError.show(); msgError.show();
return false; return false;
} else if (!ValidationUtil.CheckMinLengthForByte(newPass, 6)) { } else if (!ValidationUtil.CheckMinLengthForByte(newPass, 6)) {
LOGIN.login_errorMessage = ''; LOGIN.login_errorMessage = '';
msgError.html(I18N.i18nText('msgInvaildLength')); msgError.html(I18N.i18nText('msgInvaildLength'));
msgError.attr('lang', 'msgInvaildLength');
msgError.show(); msgError.show();
return false; return false;
} else if (!ValidationUtil.CheckMaxLengthForByte(newPass, 16)) { } else if (!ValidationUtil.CheckMaxLengthForByte(newPass, 16)) {
LOGIN.login_errorMessage = ''; LOGIN.login_errorMessage = '';
msgError.html(I18N.i18nText('msgInvaildLength')); msgError.html(I18N.i18nText('msgInvaildLength'));
msgError.attr('lang', 'msgInvaildLength');
msgError.show(); msgError.show();
return false; return false;
} else if (ValidationUtil.HasSeqChar(newPass, 3)) { } else if (ValidationUtil.HasSeqChar(newPass, 3)) {
LOGIN.login_errorMessage = ''; LOGIN.login_errorMessage = '';
msgError.html(I18N.i18nText('msgHasSeqChar')); msgError.html(I18N.i18nText('msgHasSeqChar'));
msgError.attr('lang', 'msgHasSeqChar');
msgError.show(); msgError.show();
return false; return false;
} else if (ValidationUtil.ContainSameSeqChar(newPass, currentPass, 4)) { } else if (ValidationUtil.ContainSameSeqChar(newPass, currentPass, 4)) {
LOGIN.login_errorMessage = ''; LOGIN.login_errorMessage = '';
msgError.html(I18N.i18nText('msgContainSameSeqChar')); msgError.html(I18N.i18nText('msgContainSameSeqChar'));
msgError.attr('lang', 'msgContainSameSeqChar');
msgError.show(); msgError.show();
return false; return false;
} else { } else {
......
...@@ -23,8 +23,8 @@ OL.operationGroupMasterId; ...@@ -23,8 +23,8 @@ OL.operationGroupMasterId;
OL.init = function () { OL.init = function () {
console.log('OperationList start'); console.log('OperationList start');
sessionStorage.activeHomePage = CONSTANT.PAGE_TAB.OPERATION_LIST; sessionStorage.activeHomePage = CONSTANT.PAGE_TAB.OPERATION_LIST;
sessionStorage.removeItem("operationId"); sessionStorage.removeItem('operationId');
sessionStorage.removeItem("RL_searchWord"); sessionStorage.removeItem('RL_searchWord');
TEMPLATE.loadHeader('#includedHeader'); TEMPLATE.loadHeader('#includedHeader');
TEMPLATE.loadMainNavsTitle('#includedMainTitle', 'workList', true, null); TEMPLATE.loadMainNavsTitle('#includedMainTitle', 'workList', true, null);
...@@ -311,9 +311,7 @@ OL.createCategoryList = function () { ...@@ -311,9 +311,7 @@ OL.createCategoryList = function () {
if (typeof OL.operationGroupMasterId === 'undefined' || OL.operationGroupMasterId == 0) { if (typeof OL.operationGroupMasterId === 'undefined' || OL.operationGroupMasterId == 0) {
allChecked = ' checked'; allChecked = ' checked';
} }
const allCategory = $( const allCategory = $('<ul><li><label><input type="radio" name="category" value="0"' + allChecked + '> <span>' + I18N.i18nText('categoryAll') + '</span></label></li></ul>');
'<ul><li><label><input type="radio" name="category" value="0"' + allChecked + '> <span>' + I18N.i18nText('categoryAll') + '</span></label></li></ul>',
);
categoryListElement.append(allCategory); categoryListElement.append(allCategory);
//create category(operationGroupMaster) structure //create category(operationGroupMaster) structure
for (let i = 0; i < OL.operationGroupMaster.length; i++) { for (let i = 0; i < OL.operationGroupMaster.length; i++) {
...@@ -329,7 +327,7 @@ OL.createCategoryList = function () { ...@@ -329,7 +327,7 @@ OL.createCategoryList = function () {
inputLabel.append(inputRadio); inputLabel.append(inputRadio);
inputLabel.append(' '); inputLabel.append(' ');
inputLabel.append(groupSpan); inputLabel.append(groupSpan);
const isParent = OL.operationGroupMaster.find(function(child) { const isParent = OL.operationGroupMaster.find(function (child) {
return item.operationGroupMasterId == child.parentOperationGroupMasterId; return item.operationGroupMasterId == child.parentOperationGroupMasterId;
}); });
let parentElement = categoryListElement; let parentElement = categoryListElement;
...@@ -453,7 +451,6 @@ OL.sortOperationList = function (sortNumber) { ...@@ -453,7 +451,6 @@ OL.sortOperationList = function (sortNumber) {
* search operarionList * search operarionList
*/ */
OL.search = function () { OL.search = function () {
COMMON.showLoading();
const searchKeyword = $('#searchTaskName').val(); const searchKeyword = $('#searchTaskName').val();
const searchStartDate = $('#searchStartDate').val(); const searchStartDate = $('#searchStartDate').val();
const searchEndDate = $('#searchEndDate').val(); const searchEndDate = $('#searchEndDate').val();
...@@ -464,6 +461,7 @@ OL.search = function () { ...@@ -464,6 +461,7 @@ OL.search = function () {
return; return;
} }
COMMON.showLoading();
OL.getAllDataWeb(searchKeyword, OL.sortIndex, searchStartDate, searchEndDate, OL.operationGroupMasterId); OL.getAllDataWeb(searchKeyword, OL.sortIndex, searchStartDate, searchEndDate, OL.operationGroupMasterId);
OL.createOperationList(OL.operationList); OL.createOperationList(OL.operationList);
OL.createCategory(); OL.createCategory();
......
...@@ -16,8 +16,6 @@ PP.init = function () { ...@@ -16,8 +16,6 @@ PP.init = function () {
console.log('PP.init'); console.log('PP.init');
PP.loadCommon(); PP.loadCommon();
PP.initPdfList();
COMMON.closeLoading(); COMMON.closeLoading();
}; };
...@@ -40,7 +38,7 @@ PP.loadCommon = function () { ...@@ -40,7 +38,7 @@ PP.loadCommon = function () {
titleLang: CONSTANT.PAGE_NAME.PDF_PRINT, titleLang: CONSTANT.PAGE_NAME.PDF_PRINT,
} }
]; ];
TEMPLATE.loadMainNavsTitle('#includedMainTitle', CONSTANT.PAGE_NAME.PDF_PRINT, navs, null); TEMPLATE.loadMainNavsTitle('#includedMainTitle', CONSTANT.PAGE_NAME.PDF_PRINT, navs, PP.initPdfList);
}; };
/** /**
......
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