Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
check
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
abook_web
check
Commits
88a663f9
Commit
88a663f9
authored
Nov 15, 2022
by
Kang Donghun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
パンくずボタン修正
parent
e70749f2
Hide whitespace changes
Inline
Side-by-side
Showing
13 changed files
with
411 additions
and
118 deletions
+411
-118
abweb/common/js/constant.js
+18
-1
abweb/common/js/header.js
+180
-74
abweb/js/dashboard/dashboard.js
+1
-0
abweb/js/operationList/operationList.js
+3
-2
abweb/js/pdfPrint/pdfPrint.js
+16
-4
abweb/js/pickup/pickup.js
+20
-5
abweb/js/pushMessageDetail/pushMessageDetail.js
+14
-1
abweb/js/pushMessageList/pushMessageList.js
+10
-1
abweb/js/reportForm/reportForm.js
+84
-1
abweb/js/reportList/reportList.js
+37
-8
abweb/js/sendMessage/sendMessage.js
+10
-1
abweb/js/setting/settings.js
+14
-1
abweb/js/template/template.js
+4
-19
No files found.
abweb/common/js/constant.js
View file @
88a663f9
...
@@ -20,7 +20,14 @@ CONSTANT.PAGE_NAME = {
...
@@ -20,7 +20,14 @@ CONSTANT.PAGE_NAME = {
DASHBOARD
:
'dashboard'
,
DASHBOARD
:
'dashboard'
,
OPERATION_LIST
:
'workList'
,
OPERATION_LIST
:
'workList'
,
REPORT_LIST
:
'reportList'
,
REPORT_LIST
:
'reportList'
,
DEFAULT
:
'index.html'
,
REPORT_FORM
:
'reportForm'
,
MESSAGE_DETAIL
:
'pushMessageDetail'
,
MESSAGE_LIST
:
'pushMessageList'
,
SEND_MESSAGE
:
'sendMessage'
,
SETTING
:
'accountSetting'
,
PICKUP
:
'pickup'
,
PDF_PRINT
:
'pdfPrint'
,
DEFAULT
:
'index'
,
LOGIN
:
'./login.html'
,
LOGIN
:
'./login.html'
,
};
};
...
@@ -34,15 +41,25 @@ CONSTANT.URL_TREE_NAME = {
...
@@ -34,15 +41,25 @@ CONSTANT.URL_TREE_NAME = {
SEND_MESSAGE
:
'sendMessage.html'
,
SEND_MESSAGE
:
'sendMessage.html'
,
SETTING
:
'accountSetting.html'
,
SETTING
:
'accountSetting.html'
,
PICKUP
:
'pickup.html'
,
PICKUP
:
'pickup.html'
,
PICKUP_NEW
:
'pickup.html?pickupActive=newReport'
,
PICKUP_CONTINUOS
:
'pickup.html?pickupActive=continousWork'
,
PICKUP_WARNING
:
'pickup.html?pickupActive=warningReport'
,
PDF_PRINT
:
'pdfPrint.html'
,
PDF_PRINT
:
'pdfPrint.html'
,
};
};
CONSTANT
.
PICK_UP_TYPE
=
{
NEW_REPORT
:
'newReport'
,
CONTINOUS_WORK
:
'continousWork'
,
WARNING_REPORT
:
'warningReport'
,
}
CONSTANT
.
URL_TREE_PASS
=
{
CONSTANT
.
URL_TREE_PASS
=
{
1
:
[
CONSTANT
.
URL_TREE_NAME
.
DASHBOARD
,
CONSTANT
.
URL_TREE_NAME
.
PICKUP
,
CONSTANT
.
URL_TREE_NAME
.
REPORT_LIST
,
CONSTANT
.
URL_TREE_NAME
.
REPORT_FORM
],
1
:
[
CONSTANT
.
URL_TREE_NAME
.
DASHBOARD
,
CONSTANT
.
URL_TREE_NAME
.
PICKUP
,
CONSTANT
.
URL_TREE_NAME
.
REPORT_LIST
,
CONSTANT
.
URL_TREE_NAME
.
REPORT_FORM
],
2
:
[
CONSTANT
.
URL_TREE_NAME
.
DASHBOARD
,
CONSTANT
.
URL_TREE_NAME
.
PICKUP
,
CONSTANT
.
URL_TREE_NAME
.
REPORT_FORM
],
2
:
[
CONSTANT
.
URL_TREE_NAME
.
DASHBOARD
,
CONSTANT
.
URL_TREE_NAME
.
PICKUP
,
CONSTANT
.
URL_TREE_NAME
.
REPORT_FORM
],
3
:
[
CONSTANT
.
URL_TREE_NAME
.
DASHBOARD
,
CONSTANT
.
URL_TREE_NAME
.
MESSAGE_LIST
,
CONSTANT
.
URL_TREE_NAME
.
MESSAGE_DETAIL
],
3
:
[
CONSTANT
.
URL_TREE_NAME
.
DASHBOARD
,
CONSTANT
.
URL_TREE_NAME
.
MESSAGE_LIST
,
CONSTANT
.
URL_TREE_NAME
.
MESSAGE_DETAIL
],
4
:
[
CONSTANT
.
URL_TREE_NAME
.
DASHBOARD
,
CONSTANT
.
URL_TREE_NAME
.
SEND_MESSAGE
],
4
:
[
CONSTANT
.
URL_TREE_NAME
.
DASHBOARD
,
CONSTANT
.
URL_TREE_NAME
.
SEND_MESSAGE
],
5
:
[
CONSTANT
.
URL_TREE_NAME
.
OPERATION_LIST
,
CONSTANT
.
URL_TREE_NAME
.
REPORT_LIST
,
CONSTANT
.
URL_TREE_NAME
.
REPORT_FORM
],
5
:
[
CONSTANT
.
URL_TREE_NAME
.
OPERATION_LIST
,
CONSTANT
.
URL_TREE_NAME
.
REPORT_LIST
,
CONSTANT
.
URL_TREE_NAME
.
REPORT_FORM
],
5
:
[
CONSTANT
.
URL_TREE_NAME
.
OPERATION_LIST
,
CONSTANT
.
URL_TREE_NAME
.
REPORT_FORM
],
6
:
[
CONSTANT
.
URL_TREE_NAME
.
OPERATION_LIST
,
CONSTANT
.
URL_TREE_NAME
.
REPORT_LIST
,
CONSTANT
.
URL_TREE_NAME
.
PDF_PRINT
],
6
:
[
CONSTANT
.
URL_TREE_NAME
.
OPERATION_LIST
,
CONSTANT
.
URL_TREE_NAME
.
REPORT_LIST
,
CONSTANT
.
URL_TREE_NAME
.
PDF_PRINT
],
};
};
...
...
abweb/common/js/header.js
View file @
88a663f9
...
@@ -19,85 +19,191 @@ HEADER.init = function () {
...
@@ -19,85 +19,191 @@ HEADER.init = function () {
/**
/**
* create url tree & show breadcrumbs list
* create url tree & show breadcrumbs list
*/
*/
HEADER
.
urlTree
=
function
()
{
// HEADER.urlTree = function () {
const
pathName
=
location
.
pathname
;
// const pathUrl = location.pathname;
const
htmlName
=
pathName
.
substring
(
pathName
.
lastIndexOf
(
'/'
)
+
1
);
// const htmlName = pathUrl.substring(pathUrl.lastIndexOf('/') + 1);
// let pageName = urlPath.substring(0, urlPath.indexOf(".html"));
// if (pageName == CONSTANT.URL.WEB.OPERATION_LIST) pageName = CONSTANT.PAGE_NAME.OPERATION_LIST;
// check auth
// // session reset
let
authFlg
=
false
;
// if ((htmlName == CONSTANT.URL_TREE_NAME.OPERATION_LIST) || (htmlName == CONSTANT.URL_TREE_NAME.DASHBOARD)) {
if
((
htmlName
==
CONSTANT
.
URL_TREE_NAME
.
OPERATION_LIST
)
||
(
htmlName
==
CONSTANT
.
URL_TREE_NAME
.
DASHBOARD
))
{
// sessionStorage.pickUpParams = null;
authFlg
=
true
;
// }
sessionStorage
.
urlTree
=
null
;
}
//now url tree
const
urlTree
=
sessionStorage
.
urlTree
?
JSON
.
parse
(
sessionStorage
.
urlTree
)
:
sessionStorage
.
urlTree
;
// return;
if
(
urlTree
)
{
urlList
:
for
(
var
i
=
0
;
i
<
urlTree
.
length
;
i
++
)
{
const
urlHtmlUrl
=
urlTree
[
i
].
href
;
const
urlHtmlHref
=
urlHtmlUrl
.
includes
(
'?'
)
?
urlHtmlUrl
.
substring
(
0
,
urlHtmlUrl
.
indexOf
(
'?'
))
:
urlHtmlUrl
;
for
(
var
v
in
CONSTANT
.
URL_TREE_PASS
)
{
findUrl
:
for
(
var
k
in
CONSTANT
.
URL_TREE_PASS
[
v
])
{
if
(
urlHtmlHref
==
CONSTANT
.
URL_TREE_PASS
[
v
][
k
])
{
if
(
htmlName
==
CONSTANT
.
URL_TREE_PASS
[
v
][
k
])
{
authFlg
=
true
;
break
urlList
;
}
continue
;
}
else
if
((
urlHtmlHref
!=
CONSTANT
.
URL_TREE_PASS
[
v
][
k
])
&&
(
htmlName
==
CONSTANT
.
URL_TREE_PASS
[
v
][
k
]))
{
authFlg
=
true
;
break
urlList
;
}
else
{
break
findUrl
;
}
// let navs;
}
// switch (htmlName) {
}
// case CONSTANT.URL_TREE_NAME.DASHBOARD:
}
// case CONSTANT.URL_TREE_NAME.OPERATION_LIST:
}
// if (sessionStorage.urlTree) sessionStorage.urlTree = null;
// if (sessionStorage.pickUpType) sessionStorage.pickUpType = null;
// break;
// case CONSTANT.URL_TREE_NAME.PICKUP :
// navs = [
// {
// titleLang: CONSTANT.PAGE_NAME.DASHBOARD,
// href: CONSTANT.URL_TREE_NAME.DASHBOARD,
// },
// {
// titleLang: CONSTANT.PAGE_NAME.PICKUP,
// },
// ];
// break;
// case CONSTANT.URL_TREE_NAME.REPORT_LIST:
// if (sessionStorage.activeHomePage == CONSTANT.PAGE_TAB.DASHBOARD) {
// if (sessionStorage.pickUpType) {
// if (sessionStorage.pickUpType == CONSTANT.PICK_UP_TYPE.CONTINOUS_WORK) {
// navs = [
// {
// titleLang: CONSTANT.PAGE_NAME.DASHBOARD,
// href: CONSTANT.URL_TREE_NAME.DASHBOARD,
// },
// {
// titleLang: CONSTANT.PAGE_NAME.PICKUP,
// href: CONSTANT.URL_TREE_NAME.PICKUP_CONTINUOS,
// },
// {
// titleLang: CONSTANT.PAGE_NAME.REPORT_LIST,
// },
// ]
// } else if (sessionStorage.pickUpType == CONSTANT.PICK_UP_TYPE.WARNING_REPORT) {
// navs = [
// {
// titleLang: CONSTANT.PAGE_NAME.DASHBOARD,
// href: CONSTANT.URL_TREE_NAME.DASHBOARD,
// },
// {
// titleLang: CONSTANT.PAGE_NAME.PICKUP,
// href: CONSTANT.URL_TREE_NAME.PICKUP_WARNING,
// },
// {
// titleLang: CONSTANT.PAGE_NAME.REPORT_LIST,
// },
// ]
// } else {
// navs = [
// {
// titleLang: CONSTANT.PAGE_NAME.DASHBOARD,
// href: CONSTANT.URL_TREE_NAME.DASHBOARD,
// },
// {
// titleLang: CONSTANT.PAGE_NAME.PICKUP,
// href: CONSTANT.URL_TREE_NAME.PICKUP_NEW,
// },
// {
// titleLang: CONSTANT.PAGE_NAME.REPORT_LIST,
// },
// ]
// }
// } else {
// navs = [
// {
// titleLang: CONSTANT.PAGE_NAME.DASHBOARD,
// href: CONSTANT.URL_TREE_NAME.DASHBOARD,
// },
// {
// titleLang: CONSTANT.PAGE_NAME.PICKUP,
// href: CONSTANT.URL_TREE_NAME.PICKUP,
// },
// {
// titleLang: CONSTANT.PAGE_NAME.REPORT_LIST,
// },
// ]
// }
// } else {
// if (sessionStorage.pickUpType) sessionStorage.pickUpType = null;
// navs = [
// {
// titleLang: CONSTANT.PAGE_NAME.OPERATION_LIST,
// href: CONSTANT.URL_TREE_NAME.OPERATION_LIST,
// },
// {
// titleLang: CONSTANT.PAGE_NAME.REPORT_LIST,
// },
// ]
// }
// break;
// case CONSTANT.URL_TREE_NAME.REPORT_FORM:
// break;
// }
// CONSTANT.URL_TREE_PASS = {
// 1: [CONSTANT.URL_TREE_NAME.DASHBOARD, CONSTANT.URL_TREE_NAME.PICKUP, CONSTANT.URL_TREE_NAME.REPORT_LIST, CONSTANT.URL_TREE_NAME.REPORT_FORM],
// 2: [CONSTANT.URL_TREE_NAME.DASHBOARD, CONSTANT.URL_TREE_NAME.PICKUP, CONSTANT.URL_TREE_NAME.REPORT_FORM],
// 3: [CONSTANT.URL_TREE_NAME.DASHBOARD, CONSTANT.URL_TREE_NAME.MESSAGE_LIST, CONSTANT.URL_TREE_NAME.MESSAGE_DETAIL],
// 4: [CONSTANT.URL_TREE_NAME.DASHBOARD, CONSTANT.URL_TREE_NAME.SEND_MESSAGE],
// 5: [CONSTANT.URL_TREE_NAME.OPERATION_LIST, CONSTANT.URL_TREE_NAME.REPORT_LIST, CONSTANT.URL_TREE_NAME.REPORT_FORM],
// 6: [CONSTANT.URL_TREE_NAME.OPERATION_LIST, CONSTANT.URL_TREE_NAME.REPORT_LIST, CONSTANT.URL_TREE_NAME.PDF_PRINT],
// };
// //now url tree
// // const urlTree = sessionStorage.urlTree ? JSON.parse(sessionStorage.urlTree) : sessionStorage.urlTree;
// // console.log("kdh check urlTree : " + urlTree);
// // // return;
// // if (urlTree) {
// // urlList: for (var i = 0; i < urlTree.length; i++) {
// // const urlHtmlUrl = urlTree[i].href;
// // const urlHtmlHref = urlHtmlUrl.includes('?') ? urlHtmlUrl.substring(0, urlHtmlUrl.indexOf('?')) : urlHtmlUrl;
// // for (var v in CONSTANT.URL_TREE_PASS) {
// // findUrl: for (var k in CONSTANT.URL_TREE_PASS[v]) {
// // if (urlHtmlHref == CONSTANT.URL_TREE_PASS[v][k]) {
// // if (htmlName == CONSTANT.URL_TREE_PASS[v][k]) {
// // authFlg = true;
// // break urlList;
// // }
// // continue;
// // } else if ((urlHtmlHref != CONSTANT.URL_TREE_PASS[v][k]) && (htmlName == CONSTANT.URL_TREE_PASS[v][k])) {
// // authFlg = true;
// // break urlList;
// // } else {
// // break findUrl;
// // }
// // }
// // }
// // }
// // }
if
(
authFlg
)
{
// //
if (authFlg) {
const
urlPath
=
htmlName
+
location
.
search
;
// //
const urlPath = htmlName + location.search;
let
pageName
=
urlPath
.
substring
(
0
,
urlPath
.
indexOf
(
".html"
));
// //
let pageName = urlPath.substring(0, urlPath.indexOf(".html"));
if
(
pageName
==
CONSTANT
.
URL
.
WEB
.
OPERATION_LIST
)
pageName
=
CONSTANT
.
PAGE_NAME
.
OPERATION_LIST
;
// //
if (pageName == CONSTANT.URL.WEB.OPERATION_LIST) pageName = CONSTANT.PAGE_NAME.OPERATION_LIST;
let
addReportFlg
=
"0"
// //
let addReportFlg = "0"
if
(
urlPath
.
includes
(
CONSTANT
.
URL_TREE_NAME
.
REPORT_FORM
)
&&
urlPath
.
includes
(
"addReport"
))
{
// //
if (urlPath.includes(CONSTANT.URL_TREE_NAME.REPORT_FORM) && urlPath.includes("addReport")) {
addReportFlg
=
urlPath
.
substring
(
urlPath
.
indexOf
(
"addReport="
)
+
10
);
// //
addReportFlg = urlPath.substring(urlPath.indexOf("addReport=") + 10);
}
// //
}
let
newUrlTree
=
[];
// //
let newUrlTree = [];
if
(
urlTree
)
{
// //
if (urlTree) {
let
isAdd
=
false
;
// //
let isAdd = false;
for
(
var
i
=
0
;
i
<
urlTree
.
length
;
i
++
)
{
// //
for (var i = 0; i < urlTree.length; i++) {
const
sessionUrl
=
urlTree
[
i
].
href
.
includes
(
'?'
)
?
urlTree
[
i
].
href
.
substring
(
0
,
urlTree
[
i
].
href
.
indexOf
(
'?'
))
:
urlTree
[
i
].
href
;
// //
const sessionUrl = urlTree[i].href.includes('?') ? urlTree[i].href.substring(0, urlTree[i].href.indexOf('?')) : urlTree[i].href;
const
urlHtmlName
=
urlPath
.
includes
(
'?'
)
?
urlPath
.
substring
(
0
,
urlPath
.
indexOf
(
'?'
))
:
urlPath
;
// //
const urlHtmlName = urlPath.includes('?') ? urlPath.substring(0, urlPath.indexOf('?')) : urlPath;
if
(
sessionUrl
==
urlHtmlName
)
{
// //
if (sessionUrl == urlHtmlName) {
if
(
addReportFlg
==
"1"
)
{
// //
if (addReportFlg == "1") {
var
nav
=
{
titleLang
:
CONSTANT
.
PAGE_NAME
.
REPORT_LIST
,
href
:
CONSTANT
.
URL_TREE_NAME
.
REPORT_LIST
};
// //
var nav = {titleLang : CONSTANT.PAGE_NAME.REPORT_LIST , href : CONSTANT.URL_TREE_NAME.REPORT_LIST};
newUrlTree
.
push
(
nav
);
// //
newUrlTree.push(nav);
};
// //
};
var
nav
=
{
titleLang
:
pageName
,
href
:
urlPath
};
// //
var nav = {titleLang : pageName , href : urlPath};
newUrlTree
.
push
(
nav
);
// //
newUrlTree.push(nav);
isAdd
=
true
;
// //
isAdd = true;
break
;
// //
break;
}
else
{
// //
} else {
newUrlTree
.
push
(
urlTree
[
i
]);
// //
newUrlTree.push(urlTree[i]);
};
// //
};
};
// //
};
if
(
!
isAdd
)
{
// //
if (!isAdd) {
const
nav
=
{
titleLang
:
pageName
,
href
:
urlPath
};
// //
const nav = {titleLang : pageName , href : urlPath};
newUrlTree
.
push
(
nav
);
// //
newUrlTree.push(nav);
}
// //
}
}
else
{
// //
} else {
const
nav
=
{
titleLang
:
pageName
,
href
:
urlPath
};
// //
const nav = {titleLang : pageName , href : urlPath};
newUrlTree
.
push
(
nav
);
// //
newUrlTree.push(nav);
}
// //
}
sessionStorage
.
urlTree
=
JSON
.
stringify
(
newUrlTree
);
// //
sessionStorage.urlTree = JSON.stringify(newUrlTree);
}
else
{
// // } else {
COMMON
.
avwScreenMove
(
'index.html'
);
// // console.log("kdh check go index");
}
// // // COMMON.avwScreenMove('index.html');
};
// // }
// };
HEADER
.
init
=
function
()
{
HEADER
.
init
=
function
()
{
$
(
"#dspLoginId"
).
text
(
ClientData
.
userInfo_loginId
());
$
(
"#dspLoginId"
).
text
(
ClientData
.
userInfo_loginId
());
...
...
abweb/js/dashboard/dashboard.js
View file @
88a663f9
...
@@ -128,6 +128,7 @@ DASHBOARD.init = function () {
...
@@ -128,6 +128,7 @@ DASHBOARD.init = function () {
COMMON
.
checkAuth
(
false
);
COMMON
.
checkAuth
(
false
);
sessionStorage
.
activeHomePage
=
CONSTANT
.
PAGE_TAB
.
DASHBOARD
;
sessionStorage
.
activeHomePage
=
CONSTANT
.
PAGE_TAB
.
DASHBOARD
;
sessionStorage
.
removeItem
(
"operationId"
);
DASHBOARD
.
loadCommon
();
DASHBOARD
.
loadCommon
();
DashboardSetting
.
getSettingData
(
function
(
settings
)
{
DashboardSetting
.
getSettingData
(
function
(
settings
)
{
DASHBOARD
.
getDashboardData
(
function
(
dataDashboard
)
{
DASHBOARD
.
getDashboardData
(
function
(
dataDashboard
)
{
...
...
abweb/js/operationList/operationList.js
View file @
88a663f9
...
@@ -23,6 +23,7 @@ OL.operationGroupMasterId;
...
@@ -23,6 +23,7 @@ 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"
);
TEMPLATE
.
loadHeader
(
'#includedHeader'
);
TEMPLATE
.
loadHeader
(
'#includedHeader'
);
TEMPLATE
.
loadMainNavsTitle
(
'#includedMainTitle'
,
'workList'
,
true
,
null
);
TEMPLATE
.
loadMainNavsTitle
(
'#includedMainTitle'
,
'workList'
,
true
,
null
);
...
@@ -504,11 +505,11 @@ OL.sendOperation = function (operationId, operationType, reportType, enableAddRe
...
@@ -504,11 +505,11 @@ OL.sendOperation = function (operationId, operationType, reportType, enableAddRe
//save operation logs. needed for sorting
//save operation logs. needed for sorting
OL
.
saveOperationReadingLog
(
operationId
,
operationType
,
reportType
);
OL
.
saveOperationReadingLog
(
operationId
,
operationType
,
reportType
);
//Transition to the report form or operation list screen
//Transition to the report form or operation list screen
sessionStorage
.
setItem
(
"operationId"
,
operationId
);
if
(
enableAddReport
==
'1'
||
reportType
==
CONSTANT
.
REPORT_TYPE
.
ROUTINE
)
{
if
(
enableAddReport
==
'1'
||
reportType
==
CONSTANT
.
REPORT_TYPE
.
ROUTINE
)
{
sessionStorage
.
OL_operationId
=
operationId
;
COMMON
.
avwScreenMove
(
'reportList.html'
);
COMMON
.
avwScreenMove
(
'reportList.html'
);
}
else
{
}
else
{
const
url
=
'reportForm.html?operationId='
+
operationId
;
const
url
=
'reportForm.html?operationId='
+
operationId
+
"&addReport="
+
enableAddReport
;
COMMON
.
avwScreenMove
(
url
);
COMMON
.
avwScreenMove
(
url
);
}
}
};
};
...
...
abweb/js/pdfPrint/pdfPrint.js
View file @
88a663f9
...
@@ -27,18 +27,30 @@ PP.init = function () {
...
@@ -27,18 +27,30 @@ PP.init = function () {
PP
.
loadCommon
=
function
()
{
PP
.
loadCommon
=
function
()
{
TEMPLATE
.
loadHeader
(
'#includedHeader'
);
TEMPLATE
.
loadHeader
(
'#includedHeader'
);
TEMPLATE
.
loadConfirmModal
(
'#includedConfirmModal'
);
TEMPLATE
.
loadConfirmModal
(
'#includedConfirmModal'
);
TEMPLATE
.
loadMainNavsTitle
(
'#includedMainTitle'
,
'pdfPrint'
,
true
,
null
);
let
navs
=
[
{
titleLang
:
CONSTANT
.
PAGE_NAME
.
OPERATION_LIST
,
href
:
CONSTANT
.
URL_TREE_NAME
.
OPERATION_LIST
,
},
{
titleLang
:
CONSTANT
.
PAGE_NAME
.
REPORT_LIST
,
href
:
CONSTANT
.
URL_TREE_NAME
.
OPERATION_LIST
,
},
{
titleLang
:
CONSTANT
.
PAGE_NAME
.
PDF_PRINT
,
}
];
TEMPLATE
.
loadMainNavsTitle
(
'#includedMainTitle'
,
CONSTANT
.
PAGE_NAME
.
PDF_PRINT
,
navs
,
null
);
};
};
/**
/**
* init pdf list
* init pdf list
*/
*/
PP
.
initPdfList
=
function
()
{
PP
.
initPdfList
=
function
()
{
if
(
sessionStorage
.
OL_operationId
)
{
if
(
sessionStorage
.
getItem
(
"operationId"
)
)
{
let
params
=
{};
let
params
=
{};
params
.
sid
=
COMMON
.
getSid
();
params
.
sid
=
COMMON
.
getSid
();
params
.
operationId
=
sessionStorage
.
OL_operationId
;
params
.
operationId
=
sessionStorage
.
getItem
(
"operationId"
);
params
.
returnUrl
=
CONSTANT
.
URL
.
WEB
.
BASE
+
CONSTANT
.
URL
.
WEB
.
OPERATION_LIST
;
let
url
=
COMMON
.
format
(
ClientData
.
conf_checkApiUrl
(),
ClientData
.
userInfo_accountPath
())
+
CONSTANT
.
URL
.
CMS
.
HTML
.
BASE
+
CONSTANT
.
URL
.
CMS
.
HTML
.
QUICK_REPORT_PRINT
;
let
url
=
COMMON
.
format
(
ClientData
.
conf_checkApiUrl
(),
ClientData
.
userInfo_accountPath
())
+
CONSTANT
.
URL
.
CMS
.
HTML
.
BASE
+
CONSTANT
.
URL
.
CMS
.
HTML
.
QUICK_REPORT_PRINT
;
$
(
'#pdfPrintDiv'
).
load
(
url
,
params
);
$
(
'#pdfPrintDiv'
).
load
(
url
,
params
);
}
else
{
}
else
{
...
...
abweb/js/pickup/pickup.js
View file @
88a663f9
...
@@ -134,16 +134,28 @@ PICKUP.getReportWithWarningsListData = function (callback) {
...
@@ -134,16 +134,28 @@ PICKUP.getReportWithWarningsListData = function (callback) {
PICKUP
.
init
=
function
()
{
PICKUP
.
init
=
function
()
{
//Check if user is logged in
//Check if user is logged in
COMMON
.
checkAuth
(
false
);
COMMON
.
checkAuth
(
false
);
console
.
log
(
'PICKUP.init'
);
console
.
log
(
'PICKUP.init'
);
sessionStorage
.
removeItem
(
"pickUpType"
);
// sessionStorage.pickUpType = null;
sessionStorage
.
activeHomePage
=
CONSTANT
.
PAGE_TAB
.
DASHBOARD
;
sessionStorage
.
activeHomePage
=
CONSTANT
.
PAGE_TAB
.
DASHBOARD
;
TEMPLATE
.
loadHeader
(
'#includedHeader'
);
TEMPLATE
.
loadHeader
(
'#includedHeader'
);
TEMPLATE
.
loadConfirmModal
(
'#includedConfirmModal'
);
TEMPLATE
.
loadConfirmModal
(
'#includedConfirmModal'
);
TEMPLATE
.
loadMainNavsTitle
(
'#includedMainTitle'
,
'pickup'
,
true
,
null
);
navs
=
[
{
titleLang
:
CONSTANT
.
PAGE_NAME
.
DASHBOARD
,
href
:
CONSTANT
.
URL_TREE_NAME
.
DASHBOARD
,
},
{
titleLang
:
CONSTANT
.
PAGE_NAME
.
PICKUP
,
},
];
TEMPLATE
.
loadMainNavsTitle
(
'#includedMainTitle'
,
'pickup'
,
navs
,
null
);
PICKUP
.
initSettingActivePickup
();
PICKUP
.
initSettingActivePickup
();
PICKUP
.
settingPickup
();
PICKUP
.
settingPickup
();
COMMON
.
closeLoading
();
COMMON
.
closeLoading
();
};
};
/**
/**
* Setting pickup data
* Setting pickup data
*/
*/
...
@@ -315,7 +327,7 @@ PICKUP.createNewReportList = function (operationListOld) {
...
@@ -315,7 +327,7 @@ PICKUP.createNewReportList = function (operationListOld) {
}
}
let
messageli
=
$
(
"<li class='card mb-2' name = 'operationId_"
+
operationList
[
i
].
operationId
+
"' ></li>"
);
let
messageli
=
$
(
"<li class='card mb-2' name = 'operationId_"
+
operationList
[
i
].
operationId
+
"' ></li>"
);
let
ahrefRequiredFlg
=
$
(
let
ahrefRequiredFlg
=
$
(
'<a href="javascript:PICKUP.sendReportFormFromNewReport (
\'
'
+
operationList
[
i
].
operationId
+
"
,"
+
operationList
[
i
].
addReport
+
"
');
\"
class='h-100 d-block px-3 py-2 text-decoration-none text-dark position-relative'></a>"
,
'<a href="javascript:PICKUP.sendReportFormFromNewReport (
\'
'
+
operationList
[
i
].
operationId
+
"');
\"
class='h-100 d-block px-3 py-2 text-decoration-none text-dark position-relative'></a>"
,
);
);
let
divIcon
=
$
(
"<div class='position-absolute translate-middle top-50 left-0 ml-3'>"
+
"<div class='type-icon'>"
+
"<span class='"
+
classIcon
+
"'></span>"
+
'</div></div>'
);
let
divIcon
=
$
(
"<div class='position-absolute translate-middle top-50 left-0 ml-3'>"
+
"<div class='type-icon'>"
+
"<span class='"
+
classIcon
+
"'></span>"
+
'</div></div>'
);
...
@@ -736,9 +748,10 @@ PICKUP.getInspectDate = function (dateString) {
...
@@ -736,9 +748,10 @@ PICKUP.getInspectDate = function (dateString) {
* @param operarionId
* @param operarionId
* @returns
* @returns
*/
*/
PICKUP
.
sendReportFormFromNewReport
=
function
(
operationId
,
addReport
)
{
PICKUP
.
sendReportFormFromNewReport
=
function
(
operationId
)
{
//Transition to the report form or operation list screen
//Transition to the report form or operation list screen
const
url
=
'reportForm.html?operationId='
+
operationId
+
"&addReport="
+
addReport
;
sessionStorage
.
setItem
(
"pickUpType"
,
CONSTANT
.
PICK_UP_TYPE
.
NEW_REPORT
);
const
url
=
'reportForm.html?operationId='
+
operationId
;
COMMON
.
avwScreenMove
(
url
);
COMMON
.
avwScreenMove
(
url
);
};
};
...
@@ -751,6 +764,7 @@ PICKUP.sendReportFormFromNewReport = function (operationId, addReport) {
...
@@ -751,6 +764,7 @@ PICKUP.sendReportFormFromNewReport = function (operationId, addReport) {
*/
*/
PICKUP
.
sendReportFormFromContinuousWork
=
function
(
operationId
,
taskKey
,
processKey
,
phaseNo
)
{
PICKUP
.
sendReportFormFromContinuousWork
=
function
(
operationId
,
taskKey
,
processKey
,
phaseNo
)
{
//Transition to the report form or operation list screen
//Transition to the report form or operation list screen
sessionStorage
.
setItem
(
"pickUpType"
,
CONSTANT
.
PICK_UP_TYPE
.
CONTINOUS_WORK
);
const
url
=
'reportForm.html?operationId='
+
operationId
+
'&processKey='
+
processKey
+
'&phaseNo='
+
phaseNo
;
const
url
=
'reportForm.html?operationId='
+
operationId
+
'&processKey='
+
processKey
+
'&phaseNo='
+
phaseNo
;
COMMON
.
avwScreenMove
(
url
);
COMMON
.
avwScreenMove
(
url
);
};
};
...
@@ -766,6 +780,7 @@ PICKUP.sendReportFormFromContinuousWork = function (operationId, taskKey, proces
...
@@ -766,6 +780,7 @@ PICKUP.sendReportFormFromContinuousWork = function (operationId, taskKey, proces
*/
*/
PICKUP
.
sendReportFormFromWarningReport
=
function
(
operationId
,
reportType
,
taskKey
,
processKey
,
phaseNo
,
replyNo
)
{
PICKUP
.
sendReportFormFromWarningReport
=
function
(
operationId
,
reportType
,
taskKey
,
processKey
,
phaseNo
,
replyNo
)
{
//Transition to the report form or operation list screen
//Transition to the report form or operation list screen
sessionStorage
.
setItem
(
"pickUpType"
,
CONSTANT
.
PICK_UP_TYPE
.
WARNING_REPORT
);
let
url
=
'reportForm.html?operationId='
+
operationId
;
let
url
=
'reportForm.html?operationId='
+
operationId
;
switch
(
reportType
)
{
switch
(
reportType
)
{
case
PICKUP
.
REPORT_TYPE
.
REPORTONLY
:
case
PICKUP
.
REPORT_TYPE
.
REPORTONLY
:
...
...
abweb/js/pushMessageDetail/pushMessageDetail.js
View file @
88a663f9
...
@@ -26,7 +26,20 @@ PushMessageDetail.init = function () {
...
@@ -26,7 +26,20 @@ PushMessageDetail.init = function () {
COMMON
.
checkAuth
(
false
);
COMMON
.
checkAuth
(
false
);
//load common html
//load common html
TEMPLATE
.
loadHeader
(
'#includedHeader'
);
TEMPLATE
.
loadHeader
(
'#includedHeader'
);
TEMPLATE
.
loadMainNavsTitle
(
'#includedMainTitle'
,
'messageDetail'
,
true
,
null
);
const
navs
=
[
{
titleLang
:
'dashboard'
,
href
:
'dashboard.html'
,
},
{
titleLang
:
'messageListTitle'
,
href
:
'pushMessageList.html'
,
},
{
titleLang
:
'messageDetail'
,
},
];
TEMPLATE
.
loadMainNavsTitle
(
'#includedMainTitle'
,
'messageDetail'
,
navs
,
null
);
//request message detail data
//request message detail data
let
urlParam
=
COMMON
.
getUrlParameter
();
let
urlParam
=
COMMON
.
getUrlParameter
();
if
(
typeof
urlParam
!==
'object'
||
typeof
urlParam
.
pushMessageId
===
'undefined'
)
{
if
(
typeof
urlParam
!==
'object'
||
typeof
urlParam
.
pushMessageId
===
'undefined'
)
{
...
...
abweb/js/pushMessageList/pushMessageList.js
View file @
88a663f9
...
@@ -12,7 +12,16 @@ PushMessageList.init = function () {
...
@@ -12,7 +12,16 @@ PushMessageList.init = function () {
//Check if user is logged in
//Check if user is logged in
COMMON
.
checkAuth
(
false
);
COMMON
.
checkAuth
(
false
);
TEMPLATE
.
loadHeader
(
'#includedHeader'
);
TEMPLATE
.
loadHeader
(
'#includedHeader'
);
TEMPLATE
.
loadMainNavsTitle
(
'#includedMainTitle'
,
'pushMessageList'
,
true
,
null
);
const
navs
=
[
{
titleLang
:
'dashboard'
,
href
:
'dashboard.html'
,
},
{
titleLang
:
'messageListTitle'
,
},
];
TEMPLATE
.
loadMainNavsTitle
(
'#includedMainTitle'
,
'pushMessageList'
,
navs
,
null
);
PushMessageList
.
getMessageList
(
function
(
messageList
)
{
PushMessageList
.
getMessageList
(
function
(
messageList
)
{
PushMessageList
.
generateMessageListHtml
(
messageList
.
pushMessageList
);
PushMessageList
.
generateMessageListHtml
(
messageList
.
pushMessageList
);
});
});
...
...
abweb/js/reportForm/reportForm.js
View file @
88a663f9
...
@@ -23,8 +23,91 @@ RF.init = function () {
...
@@ -23,8 +23,91 @@ RF.init = function () {
RF
.
loadCommon
=
function
()
{
RF
.
loadCommon
=
function
()
{
TEMPLATE
.
loadHeader
(
'#includedHeader'
);
TEMPLATE
.
loadHeader
(
'#includedHeader'
);
TEMPLATE
.
loadConfirmModal
(
'#includedConfirmModal'
);
TEMPLATE
.
loadConfirmModal
(
'#includedConfirmModal'
);
RF
.
initBreadcrumb
();
};
};
RF
.
initBreadcrumb
=
function
()
{
if
(
sessionStorage
.
activeHomePage
==
CONSTANT
.
PAGE_TAB
.
DASHBOARD
)
{
if
(
sessionStorage
.
getItem
(
"pickUpType"
)
==
CONSTANT
.
PICK_UP_TYPE
.
CONTINOUS_WORK
)
{
navs
=
[
{
titleLang
:
CONSTANT
.
PAGE_NAME
.
DASHBOARD
,
href
:
CONSTANT
.
URL_TREE_NAME
.
DASHBOARD
,
},
{
titleLang
:
CONSTANT
.
PAGE_NAME
.
PICKUP
,
href
:
CONSTANT
.
URL_TREE_NAME
.
PICKUP_CONTINUOS
,
},
{
titleLang
:
CONSTANT
.
PAGE_NAME
.
REPORT_FORM
},
]
}
else
if
(
sessionStorage
.
getItem
(
"pickUpType"
)
==
CONSTANT
.
PICK_UP_TYPE
.
WARNING_REPORT
)
{
navs
=
[
{
titleLang
:
CONSTANT
.
PAGE_NAME
.
DASHBOARD
,
href
:
CONSTANT
.
URL_TREE_NAME
.
DASHBOARD
,
},
{
titleLang
:
CONSTANT
.
PAGE_NAME
.
PICKUP
,
href
:
CONSTANT
.
URL_TREE_NAME
.
PICKUP_WARNING
,
},
{
titleLang
:
CONSTANT
.
PAGE_NAME
.
REPORT_FORM
},
]
}
else
{
navs
=
[
{
titleLang
:
CONSTANT
.
PAGE_NAME
.
DASHBOARD
,
href
:
CONSTANT
.
URL_TREE_NAME
.
DASHBOARD
,
},
{
titleLang
:
CONSTANT
.
PAGE_NAME
.
PICKUP
,
href
:
CONSTANT
.
URL_TREE_NAME
.
PICKUP_NEW
,
},
{
titleLang
:
CONSTANT
.
PAGE_NAME
.
REPORT_LIST
,
href
:
CONSTANT
.
URL_TREE_NAME
.
REPORT_LIST
},
{
titleLang
:
CONSTANT
.
PAGE_NAME
.
REPORT_FORM
},
]
}
}
else
{
if
(
sessionStorage
.
getItem
(
"pickUpType"
))
sessionStorage
.
removeItem
(
"pickUpType"
);
const
urlParam
=
COMMON
.
getUrlParameter
();
let
addReportFlg
=
urlParam
[
"addReport"
];
if
(
addReportFlg
==
"1"
)
{
navs
=
[
{
titleLang
:
CONSTANT
.
PAGE_NAME
.
OPERATION_LIST
,
href
:
CONSTANT
.
URL_TREE_NAME
.
OPERATION_LIST
,
},
{
titleLang
:
CONSTANT
.
PAGE_NAME
.
REPORT_LIST
,
href
:
CONSTANT
.
URL_TREE_NAME
.
REPORT_LIST
},
{
titleLang
:
CONSTANT
.
PAGE_NAME
.
REPORT_FORM
},
]
}
else
{
navs
=
[
{
titleLang
:
CONSTANT
.
PAGE_NAME
.
OPERATION_LIST
,
href
:
CONSTANT
.
URL_TREE_NAME
.
OPERATION_LIST
,
},
{
titleLang
:
CONSTANT
.
PAGE_NAME
.
REPORT_FORM
},
]
}
}
TEMPLATE
.
loadMainNavsTitle
(
'#includedMainTitle'
,
CONSTANT
.
PAGE_NAME
.
REPORT_FORM
,
navs
,
null
);
}
/**
/**
* iinit form view
* iinit form view
*/
*/
...
@@ -49,7 +132,7 @@ RF.initFormView = function () {
...
@@ -49,7 +132,7 @@ RF.initFormView = function () {
const
url
=
COMMON
.
format
(
ClientData
.
conf_checkApiUrl
(),
ClientData
.
userInfo_accountPath
())
+
CONSTANT
.
URL
.
CMS
.
HTML
.
BASE
+
CONSTANT
.
URL
.
CMS
.
HTML
.
LIST_REPORT_FORM
;
const
url
=
COMMON
.
format
(
ClientData
.
conf_checkApiUrl
(),
ClientData
.
userInfo_accountPath
())
+
CONSTANT
.
URL
.
CMS
.
HTML
.
BASE
+
CONSTANT
.
URL
.
CMS
.
HTML
.
LIST_REPORT_FORM
;
$
(
'#report-form'
).
load
(
url
,
params
,
function
()
{
$
(
'#report-form'
).
load
(
url
,
params
,
function
()
{
initPageLoad
();
initPageLoad
();
COMMON
.
closeLoading
();
//
COMMON.closeLoading();
});
});
}
else
{
}
else
{
COMMON
.
avwScreenMove
(
'index.html'
);
COMMON
.
avwScreenMove
(
'index.html'
);
...
...
abweb/js/reportList/reportList.js
View file @
88a663f9
...
@@ -16,7 +16,7 @@ RL.init = function () {
...
@@ -16,7 +16,7 @@ RL.init = function () {
RL
.
checkQuickReport
();
RL
.
checkQuickReport
();
RL
.
loadCommon
();
RL
.
loadCommon
();
RL
.
initTaskReportList
();
RL
.
initTaskReportList
();
COMMON
.
closeLoading
();
//
COMMON.closeLoading();
};
};
/**
/**
...
@@ -25,20 +25,50 @@ RL.init = function () {
...
@@ -25,20 +25,50 @@ RL.init = function () {
RL
.
loadCommon
=
function
()
{
RL
.
loadCommon
=
function
()
{
TEMPLATE
.
loadHeader
(
'#includedHeader'
);
TEMPLATE
.
loadHeader
(
'#includedHeader'
);
TEMPLATE
.
loadConfirmModal
(
'#includedConfirmModal'
);
TEMPLATE
.
loadConfirmModal
(
'#includedConfirmModal'
);
TEMPLATE
.
loadMainNavsTitle
(
'#includedMainTitle'
,
'reportList'
,
true
,
RL
.
loadMainTitleCallback
);
RL
.
initBreadcrumb
();
};
};
RL
.
initBreadcrumb
=
function
()
{
if
(
sessionStorage
.
activeHomePage
==
CONSTANT
.
PAGE_TAB
.
DASHBOARD
)
{
navs
=
[
{
titleLang
:
CONSTANT
.
PAGE_NAME
.
DASHBOARD
,
href
:
CONSTANT
.
URL_TREE_NAME
.
DASHBOARD
,
},
{
titleLang
:
CONSTANT
.
PAGE_NAME
.
PICKUP
,
href
:
CONSTANT
.
URL_TREE_NAME
.
PICKUP_NEW
,
},
{
titleLang
:
CONSTANT
.
PAGE_NAME
.
REPORT_LIST
,
},
]
}
else
{
if
(
sessionStorage
.
getItem
(
"pickUpType"
))
sessionStorage
.
removeItem
(
"pickUpType"
);
navs
=
[
{
titleLang
:
CONSTANT
.
PAGE_NAME
.
OPERATION_LIST
,
href
:
CONSTANT
.
URL_TREE_NAME
.
OPERATION_LIST
,
},
{
titleLang
:
CONSTANT
.
PAGE_NAME
.
REPORT_LIST
,
},
]
}
TEMPLATE
.
loadMainNavsTitle
(
'#includedMainTitle'
,
CONSTANT
.
PAGE_NAME
.
REPORT_LIST
,
navs
,
RL
.
loadMainTitleCallback
);
}
RL
.
isQuickReport
;
RL
.
isQuickReport
;
/**
/**
* check quick report
* check quick report
*/
*/
RL
.
checkQuickReport
=
function
()
{
RL
.
checkQuickReport
=
function
()
{
if
(
sessionStorage
.
OL_operationId
)
{
if
(
sessionStorage
.
getItem
(
"operationId"
)
)
{
let
params
=
{};
let
params
=
{};
params
.
sid
=
COMMON
.
getSid
();
params
.
sid
=
COMMON
.
getSid
();
params
.
operationId
=
sessionStorage
.
OL_operationId
;
params
.
operationId
=
sessionStorage
.
getItem
(
"operationId"
);
params
.
returnUrl
=
CONSTANT
.
URL
.
WEB
.
BASE
+
CONSTANT
.
URL
.
WEB
.
OPERATION_LIST
;
let
url
=
COMMON
.
format
(
ClientData
.
conf_checkApiUrl
(),
ClientData
.
userInfo_accountPath
())
+
CONSTANT
.
URL
.
CMS
.
API
.
IS_QUICK_REPORT
;
let
url
=
COMMON
.
format
(
ClientData
.
conf_checkApiUrl
(),
ClientData
.
userInfo_accountPath
())
+
CONSTANT
.
URL
.
CMS
.
API
.
IS_QUICK_REPORT
;
COMMON
.
cmsAjax
(
COMMON
.
cmsAjax
(
url
,
url
,
...
@@ -62,11 +92,10 @@ RL.checkQuickReport = function () {
...
@@ -62,11 +92,10 @@ RL.checkQuickReport = function () {
* init task report list
* init task report list
*/
*/
RL
.
initTaskReportList
=
function
()
{
RL
.
initTaskReportList
=
function
()
{
if
(
sessionStorage
.
OL_operationId
)
{
if
(
sessionStorage
.
getItem
(
"operationId"
)
)
{
let
params
=
{};
let
params
=
{};
params
.
sid
=
COMMON
.
getSid
();
params
.
sid
=
COMMON
.
getSid
();
params
.
operationId
=
sessionStorage
.
OL_operationId
;
params
.
operationId
=
sessionStorage
.
getItem
(
"operationId"
);
params
.
returnUrl
=
CONSTANT
.
URL
.
WEB
.
BASE
+
CONSTANT
.
URL
.
WEB
.
OPERATION_LIST
;
let
url
=
COMMON
.
format
(
ClientData
.
conf_checkApiUrl
(),
ClientData
.
userInfo_accountPath
())
+
CONSTANT
.
URL
.
CMS
.
HTML
.
BASE
+
CONSTANT
.
URL
.
CMS
.
HTML
.
TASK_REPORT_LIST
;
let
url
=
COMMON
.
format
(
ClientData
.
conf_checkApiUrl
(),
ClientData
.
userInfo_accountPath
())
+
CONSTANT
.
URL
.
CMS
.
HTML
.
BASE
+
CONSTANT
.
URL
.
CMS
.
HTML
.
TASK_REPORT_LIST
;
$
(
'#reportList'
).
load
(
url
,
params
);
$
(
'#reportList'
).
load
(
url
,
params
);
}
else
{
}
else
{
...
...
abweb/js/sendMessage/sendMessage.js
View file @
88a663f9
...
@@ -121,7 +121,16 @@ SendMessage.init = function () {
...
@@ -121,7 +121,16 @@ SendMessage.init = function () {
//Check if user is logged in
//Check if user is logged in
COMMON
.
checkAuth
(
false
);
COMMON
.
checkAuth
(
false
);
TEMPLATE
.
loadHeader
(
'#includedHeader'
);
TEMPLATE
.
loadHeader
(
'#includedHeader'
);
TEMPLATE
.
loadMainNavsTitle
(
'#includedMainTitle'
,
'sendMessage'
,
true
,
null
);
const
navs
=
[
{
titleLang
:
'dashboard'
,
href
:
'dashboard.html'
,
},
{
titleLang
:
'sendMessageTitle'
,
},
];
TEMPLATE
.
loadMainNavsTitle
(
'#includedMainTitle'
,
'sendMessage'
,
navs
,
null
);
TEMPLATE
.
loadOperationSelect
(
'#includeOperationSelect'
,
SendMessage
.
operationSelectedCallback
);
TEMPLATE
.
loadOperationSelect
(
'#includeOperationSelect'
,
SendMessage
.
operationSelectedCallback
);
TEMPLATE
.
loadNotificationSelect
(
'#includeTemplateModal'
,
SendMessage
.
templateSelectedCallback
);
TEMPLATE
.
loadNotificationSelect
(
'#includeTemplateModal'
,
SendMessage
.
templateSelectedCallback
);
$
(
'#messageContent'
).
attr
(
'maxlength'
,
SendMessage
.
contentMaxLength
);
$
(
'#messageContent'
).
attr
(
'maxlength'
,
SendMessage
.
contentMaxLength
);
...
...
abweb/js/setting/settings.js
View file @
88a663f9
...
@@ -4,10 +4,12 @@
...
@@ -4,10 +4,12 @@
**/
**/
var
SETTINGS
=
{};
var
SETTINGS
=
{};
// SETTINGS.TOKEN_VALUE = "";
// Init function of page
// Init function of page
$
(
document
).
ready
(
function
()
{
$
(
document
).
ready
(
function
()
{
//Check if user is logged in
//Check if user is logged in
// SETTINGS.TOKEN_VALUE = random;
COMMON
.
checkAuth
(
false
);
COMMON
.
checkAuth
(
false
);
SETTINGS
.
initScreen
();
SETTINGS
.
initScreen
();
$
(
'#dspPwdUpd1'
).
click
(
SETTINGS
.
dspPwdUpd1_Click
);
$
(
'#dspPwdUpd1'
).
click
(
SETTINGS
.
dspPwdUpd1_Click
);
...
@@ -19,6 +21,7 @@ $(document).ready(function () {
...
@@ -19,6 +21,7 @@ $(document).ready(function () {
* @param {*} e
* @param {*} e
*/
*/
SETTINGS
.
dspPwdUpd1_Click
=
function
(
e
)
{
SETTINGS
.
dspPwdUpd1_Click
=
function
(
e
)
{
// const tokenVal = $('#tokenVal').val();
e
.
preventDefault
();
e
.
preventDefault
();
var
isOK
=
true
;
var
isOK
=
true
;
var
msgError
=
$
(
'#main-error-message'
);
var
msgError
=
$
(
'#main-error-message'
);
...
@@ -80,6 +83,7 @@ SETTINGS.dspPwdUpd1_Click = function (e) {
...
@@ -80,6 +83,7 @@ SETTINGS.dspPwdUpd1_Click = function (e) {
password
:
SETTINGS
.
getCurrentPassword
(),
password
:
SETTINGS
.
getCurrentPassword
(),
newPassword
:
SETTINGS
.
getNewPassword
(),
newPassword
:
SETTINGS
.
getNewPassword
(),
language
:
I18N
.
getCurrentLanguage
(),
language
:
I18N
.
getCurrentLanguage
(),
token
:
""
,
appId
:
4
,
appId
:
4
,
};
};
const
url
=
COMMON
.
format
(
ClientData
.
conf_checkApiUrl
(),
ClientData
.
userInfo_accountPath
())
+
CONSTANT
.
URL
.
CMS
.
API
.
PASSWORD_CHANGE
;
const
url
=
COMMON
.
format
(
ClientData
.
conf_checkApiUrl
(),
ClientData
.
userInfo_accountPath
())
+
CONSTANT
.
URL
.
CMS
.
API
.
PASSWORD_CHANGE
;
...
@@ -150,7 +154,16 @@ SETTINGS.getNewPasswordRe = function () {
...
@@ -150,7 +154,16 @@ SETTINGS.getNewPasswordRe = function () {
SETTINGS
.
initScreen
=
function
()
{
SETTINGS
.
initScreen
=
function
()
{
TEMPLATE
.
loadHeader
(
'#includedHeader'
);
TEMPLATE
.
loadHeader
(
'#includedHeader'
);
TEMPLATE
.
loadConfirmModal
(
'#includedConfirmModal'
);
TEMPLATE
.
loadConfirmModal
(
'#includedConfirmModal'
);
TEMPLATE
.
loadMainNavsTitle
(
'#includedMainTitle'
,
'accountSetting'
,
true
,
null
);
const
navs
=
[
{
titleLang
:
'txtTooltipBack'
,
href
:
'javascript:history.back();'
,
},
{
titleLang
:
'accountSetting'
,
},
]
TEMPLATE
.
loadMainNavsTitle
(
'#includedMainTitle'
,
'accountSetting'
,
navs
,
null
);
// Login ID
// Login ID
$
(
'#txtLoginId'
).
text
(
ClientData
.
userInfo_loginId_session
());
$
(
'#txtLoginId'
).
text
(
ClientData
.
userInfo_loginId_session
());
// Account Path
// Account Path
...
...
abweb/js/template/template.js
View file @
88a663f9
...
@@ -81,14 +81,10 @@ TEMPLATE.loadNotificationSelect = function (elmentId, selectCallback) {
...
@@ -81,14 +81,10 @@ TEMPLATE.loadNotificationSelect = function (elmentId, selectCallback) {
* @param {string} titleLang - lang of title
* @param {string} titleLang - lang of title
* @param {Array} navs - array nav items (titleLang, href)
* @param {Array} navs - array nav items (titleLang, href)
*/
*/
TEMPLATE
.
loadMainNavsTitle
=
function
(
elmentId
,
titleLang
,
isNav
,
completeCallback
)
{
TEMPLATE
.
loadMainNavsTitle
=
function
(
elmentId
,
titleLang
,
navs
,
completeCallback
)
{
var
titleHtmlPath
=
'../common/html/mainTitle.html'
;
var
titleHtmlPath
=
'../common/html/mainTitle.html'
;
if
(
navs
)
{
HEADER
.
urlTree
();
var
navs
;
if
(
isNav
)
{
titleHtmlPath
=
'../common/html/mainNavTitle.html'
;
titleHtmlPath
=
'../common/html/mainNavTitle.html'
;
navs
=
sessionStorage
.
urlTree
?
JSON
.
parse
(
sessionStorage
.
urlTree
)
:
null
;
}
}
$
(
elmentId
).
load
(
titleHtmlPath
,
function
(
data
)
{
$
(
elmentId
).
load
(
titleHtmlPath
,
function
(
data
)
{
...
@@ -96,23 +92,12 @@ TEMPLATE.loadMainNavsTitle = function (elmentId, titleLang, isNav, completeCallb
...
@@ -96,23 +92,12 @@ TEMPLATE.loadMainNavsTitle = function (elmentId, titleLang, isNav, completeCallb
if
(
titleLang
)
{
if
(
titleLang
)
{
$
(
'#mainTitleHeader'
).
attr
(
'lang'
,
titleLang
);
$
(
'#mainTitleHeader'
).
attr
(
'lang'
,
titleLang
);
}
}
if
(
isNav
)
{
if
(
navs
)
{
if
(
titleLang
==
"accountSetting"
)
{
navs
=
[
{
titleLang
:
'txtTooltipBack'
,
href
:
'javascript:history.back();'
,
},
{
titleLang
:
'accountSetting'
,
},
];
}
var
olElm
=
$
(
'#mainTitleNavs ol'
);
var
olElm
=
$
(
'#mainTitleNavs ol'
);
for
(
var
i
=
0
;
i
<
navs
.
length
;
i
++
)
{
for
(
var
i
=
0
;
i
<
navs
.
length
;
i
++
)
{
const
nav
=
navs
[
i
];
const
nav
=
navs
[
i
];
var
liElm
=
$
(
'<li class="breadcrumb-item" />'
);
var
liElm
=
$
(
'<li class="breadcrumb-item" />'
);
if
(
nav
.
href
&&
i
!=
navs
.
length
-
1
)
{
if
(
nav
.
href
)
{
var
aElm
=
$
(
'<a class="text-decoration-none text-underline lang" />'
);
var
aElm
=
$
(
'<a class="text-decoration-none text-underline lang" />'
);
aElm
.
attr
(
'href'
,
nav
.
href
);
aElm
.
attr
(
'href'
,
nav
.
href
);
if
(
nav
.
titleLang
)
{
if
(
nav
.
titleLang
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment