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
a3a9290c
Commit
a3a9290c
authored
Nov 16, 2022
by
Kang Donghun
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'feature/1.0_check_web_dev' into feature/1.0_check_web_dev_kdh_2
parents
ec547922
e511043b
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
30 additions
and
47 deletions
+30
-47
abweb/common/js/common.js
+4
-27
abweb/common/js/header.js
+4
-4
abweb/js/dashboard/dashboard.js
+12
-6
abweb/js/operationList/operationList.js
+1
-1
abweb/js/pdfPrint/pdfPrint.js
+1
-1
abweb/js/pickup/pickup.js
+1
-1
abweb/js/reportList/reportList.js
+3
-3
abweb/js/setting/settings.js
+4
-4
No files found.
abweb/common/js/common.js
View file @
a3a9290c
...
...
@@ -166,29 +166,6 @@ COMMON.showAlert = function (messageCode, options = {}) {
};
/**
* show alert
*
* @param {String} msgCode
*/
COMMON
.
displayAlert
=
function
(
msgCode
,
isError
)
{
$
(
'#msgModel'
).
html
(
I18N
.
i18nText
(
msgCode
));
$
(
'#confirmYes'
).
hide
();
$
(
'#confirmNo'
).
text
(
I18N
.
i18nText
(
"confirmation"
));
if
(
isError
)
{
$
(
'#modalTitle'
).
text
(
I18N
.
i18nText
(
"error"
));
}
// $('.alert-overlay').removeClass('d-none');
// $('.alert-area').removeClass('d-none');
// const positionY = $(document).scrollTop() + screen.height / 8;
// const height = screen.height / 4;
// $('.alert-overlay').css('height', screen.height);
// $('.alert-area').css('top', positionY);
// $('.alert-area').css('min-height', height);
// $('body').css('overflow', 'hidden');
};
/**
* close alert
*/
COMMON
.
alertClose
=
function
()
{
...
...
@@ -286,10 +263,10 @@ COMMON.cmsAjax = function (url, param, async = true, callback, errorCallback, ty
COMMON
.
goUrlWithCurrentParams
(
CONSTANT
.
PAGE_NAME
.
LOGIN
);
}
else
if
(
result
.
httpStatus
==
'403'
)
{
COMMON
.
closeLoading
();
COMMON
.
display
Alert
(
'errorOccurred'
);
COMMON
.
show
Alert
(
'errorOccurred'
);
}
else
{
COMMON
.
closeLoading
();
COMMON
.
display
Alert
(
result
.
message
);
COMMON
.
show
Alert
(
result
.
message
);
}
},
error
:
function
(
XMLHttpRequest
,
textStatus
,
errorThrown
)
{
...
...
@@ -297,7 +274,7 @@ COMMON.cmsAjax = function (url, param, async = true, callback, errorCallback, ty
errorCallback
(
XMLHttpRequest
,
textStatus
,
errorThrown
);
}
else
{
COMMON
.
closeLoading
();
COMMON
.
display
Alert
(
'errorCommunicationFailed'
);
COMMON
.
show
Alert
(
'errorCommunicationFailed'
);
}
},
});
...
...
@@ -306,7 +283,7 @@ COMMON.cmsAjax = function (url, param, async = true, callback, errorCallback, ty
errorCallback
();
}
else
{
COMMON
.
closeLoading
();
COMMON
.
display
Alert
(
'errorOccurred'
);
COMMON
.
show
Alert
(
'errorOccurred'
);
}
}
};
...
...
abweb/common/js/header.js
View file @
a3a9290c
...
...
@@ -66,17 +66,17 @@ HEADER.processLogout = function () {
COMMON
.
goUrlWithCurrentParams
(
CONSTANT
.
PAGE_NAME
.
LOGIN
);
}
else
{
if
(
data
.
errorMessage
)
{
COMMON
.
display
Alert
(
data
.
errorMessage
);
COMMON
.
show
Alert
(
data
.
errorMessage
);
}
else
{
COMMON
.
display
Alert
(
'errorOccured'
);
COMMON
.
show
Alert
(
'errorOccured'
);
}
}
},
function
(
xmlHttpRequest
,
txtStatus
,
errorThrown
)
{
if
(
xmlHttpRequest
.
errorMessage
)
{
COMMON
.
display
Alert
(
xmlHttpRequest
.
errorMessage
);
COMMON
.
show
Alert
(
xmlHttpRequest
.
errorMessage
);
}
else
{
COMMON
.
display
Alert
(
'errorOccured'
);
COMMON
.
show
Alert
(
'errorOccured'
);
}
},
);
...
...
abweb/js/dashboard/dashboard.js
View file @
a3a9290c
...
...
@@ -19,10 +19,13 @@ DASHBOARD.communicationItems = [
/** Default dashboard setting data */
DASHBOARD
.
defaultDashboard
=
{
newReport
:
0
,
continousWork
:
0
,
warningReport
:
0
,
pushMesage
:
0
,
dashboard
:
{
newReport
:
0
,
continousWork
:
0
,
warningReport
:
0
,
pushMesage
:
0
}
};
DASHBOARD
.
getDataApiUrl
=
COMMON
.
format
(
ClientData
.
conf_checkApiUrl
(),
ClientData
.
userInfo_accountPath
())
+
CONSTANT
.
URL
.
CMS
.
API
.
DASHBOARD
;
...
...
@@ -33,7 +36,7 @@ DASHBOARD.getDataApiUrl = COMMON.format(ClientData.conf_checkApiUrl(), ClientDat
*/
DASHBOARD
.
getDashboardData
=
function
(
callback
)
{
let
param
=
{
sid
:
COMMON
.
getSid
()
,
sid
:
COMMON
.
getSid
()
};
COMMON
.
cmsAjax
(
DASHBOARD
.
getDataApiUrl
,
...
...
@@ -132,7 +135,10 @@ DASHBOARD.init = function () {
sessionStorage
.
removeItem
(
"RL_searchWord"
);
DASHBOARD
.
loadCommon
();
DashboardSetting
.
getSettingData
(
function
(
settings
)
{
DASHBOARD
.
getDashboardData
(
function
(
dataDashboard
)
{
DASHBOARD
.
getDashboardData
(
function
(
dataDashboard
)
{
if
(
!
dataDashboard
.
dashboard
||
jQuery
.
isEmptyObject
(
dataDashboard
.
dashboard
)
)
dataDashboard
.
dashboard
=
DASHBOARD
.
defaultDashboard
.
dashboard
;
DASHBOARD
.
updateDataPickups
(
settings
,
dataDashboard
);
DASHBOARD
.
initPickups
();
DASHBOARD
.
updateDataCommunications
(
dataDashboard
);
...
...
abweb/js/operationList/operationList.js
View file @
a3a9290c
...
...
@@ -460,7 +460,7 @@ OL.search = function () {
if
(
searchStartDate
&&
searchEndDate
&&
searchStartDate
>
searchEndDate
)
{
COMMON
.
closeLoading
();
COMMON
.
display
Alert
(
'dateError'
);
COMMON
.
show
Alert
(
'dateError'
);
return
;
}
...
...
abweb/js/pdfPrint/pdfPrint.js
View file @
a3a9290c
...
...
@@ -54,7 +54,7 @@ PP.initPdfList = function () {
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
);
}
else
{
COMMON
.
display
Alert
(
'error'
);
COMMON
.
show
Alert
(
'error'
);
COMMON
.
avwScreenMove
(
'reportList.html'
);
}
};
abweb/js/pickup/pickup.js
View file @
a3a9290c
...
...
@@ -431,7 +431,7 @@ PICKUP.createContinousWorkList = function (operationListOld) {
let
ahrefRequiredFlg
;
if
(
operationList
[
i
].
permitCodeRequiredFlg
==
1
)
{
ahrefRequiredFlg
=
$
(
"<a href=
\"
javascript:C
HK.display
Alert('onlyRfid');
\"
class='h-100 d-block px-3 py-2 text-decoration-none text-dark position-relative'></a>"
);
ahrefRequiredFlg
=
$
(
"<a href=
\"
javascript:C
OMMON.show
Alert('onlyRfid');
\"
class='h-100 d-block px-3 py-2 text-decoration-none text-dark position-relative'></a>"
);
}
else
{
ahrefRequiredFlg
=
$
(
'<a href="javascript:PICKUP.sendReportFormFromContinuousWork (
\'
'
+
...
...
abweb/js/reportList/reportList.js
View file @
a3a9290c
...
...
@@ -82,12 +82,12 @@ RL.checkQuickReport = function () {
RL
.
isQuickReport
=
result
.
isQuickReport
;
},
function
()
{
COMMON
.
display
Alert
(
'msgOperationEmpty'
);
COMMON
.
show
Alert
(
'msgOperationEmpty'
);
COMMON
.
avwScreenMove
(
'index.html'
);
},
);
}
else
{
COMMON
.
display
Alert
(
'error'
);
COMMON
.
show
Alert
(
'error'
);
COMMON
.
avwScreenMove
(
'index.html'
);
}
};
...
...
@@ -105,7 +105,7 @@ RL.initTaskReportList = function () {
COMMON
.
closeLoading
();
});
}
else
{
COMMON
.
display
Alert
(
'error'
);
COMMON
.
show
Alert
(
'error'
);
COMMON
.
avwScreenMove
(
'index.html'
);
}
};
...
...
abweb/js/setting/settings.js
View file @
a3a9290c
...
...
@@ -28,14 +28,14 @@ SETTINGS.getToken = function () {
if
(
data
.
token
)
{
$
(
'#getToken'
).
val
(
data
.
token
);
}
else
{
COMMON
.
display
Alert
(
"token error.."
,
true
);
COMMON
.
show
Alert
(
"token error.."
,
true
);
}
},
function
(
data
)
{
if
(
data
.
errorMessage
)
{
COMMON
.
display
Alert
(
data
.
errorMessage
);
COMMON
.
show
Alert
(
data
.
errorMessage
);
}
else
{
COMMON
.
display
Alert
(
'msgPwdChangeNG'
);
COMMON
.
show
Alert
(
'msgPwdChangeNG'
);
}
});
};
...
...
@@ -134,7 +134,7 @@ SETTINGS.avwCmsApi_passwordChange_success = function (data) {
$
(
'#txtPwdNew'
).
val
(
''
);
$
(
'#txtPwdNewRe'
).
val
(
''
);
/* show messages */
COMMON
.
display
Alert
(
'msgPwdChangeOK'
);
COMMON
.
show
Alert
(
'msgPwdChangeOK'
);
}
};
...
...
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