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
2954515b
Commit
2954515b
authored
Nov 21, 2022
by
Kang Donghun
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'feature/1.0_check_web_dev_imai' into 'feature/1.0_check_web_dev'
Feature/1.0 check web dev imai See merge request
!83
parents
60bf6315
15b472cb
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
54 additions
and
78 deletions
+54
-78
abweb/common/json/lang/lang-en.json
+3
-1
abweb/common/json/lang/lang-ja.json
+3
-1
abweb/common/json/lang/lang-ko.json
+3
-1
abweb/js/pickup/pickup.js
+8
-5
abweb/js/reportForm/reportForm.js
+36
-69
abweb/js/template/template.js
+1
-1
No files found.
abweb/common/json/lang/lang-en.json
View file @
2954515b
...
...
@@ -121,5 +121,6 @@
"msgSendPushMessageConfirm"
:
"Do you want to send message?"
,
"close"
:
"Close"
,
"dateError"
:
"Set the start date before the end date."
,
"onlyRfid"
:
"RFID or barcode is set.
\n
Please scan the code."
"onlyRfid"
:
"RFID or barcode is set.
\n
Please scan the code."
,
"errorOccured"
:
"Communication error."
}
\ No newline at end of file
abweb/common/json/lang/lang-ja.json
View file @
2954515b
...
...
@@ -119,5 +119,6 @@
"msgSendPushMessageConfirm"
:
"プッシュメッセージを送信しますか?"
,
"close"
:
"閉じる"
,
"dateError"
:
"開始日は終了日の前に設定してください。"
,
"onlyRfid"
:
"RFID又はバーコードが設定されています。
\n
該当コードを読み込んでください。"
"onlyRfid"
:
"RFID又はバーコードが設定されています。
\n
該当コードを読み込んでください。"
,
"errorOccured"
:
"通信エラーです。"
}
\ No newline at end of file
abweb/common/json/lang/lang-ko.json
View file @
2954515b
...
...
@@ -118,5 +118,6 @@
"msgSendPushMessageConfirm"
:
"Do you want to send message?"
,
"close"
:
"Close"
,
"dateError"
:
"시작일은 종료일 이전에 설정하십시오."
,
"onlyRfid"
:
"RFID또는 바코드가 설정되어있습니다.
\n
해당코드를 스캔해주십시오."
"onlyRfid"
:
"RFID또는 바코드가 설정되어있습니다.
\n
해당코드를 스캔해주십시오."
,
"errorOccured"
:
"통신 오류입니다."
}
\ No newline at end of file
abweb/js/pickup/pickup.js
View file @
2954515b
...
...
@@ -136,7 +136,8 @@ PICKUP.init = function () {
COMMON
.
showLoading
();
COMMON
.
checkAuth
(
false
);
console
.
log
(
'PICKUP.init'
);
sessionStorage
.
removeItem
(
"pickUpType"
);
sessionStorage
.
removeItem
(
'pickUpType'
);
sessionStorage
.
activeHomePage
=
CONSTANT
.
PAGE_TAB
.
DASHBOARD
;
TEMPLATE
.
loadHeader
(
'#includedHeader'
);
TEMPLATE
.
loadConfirmModal
(
'#includedConfirmModal'
);
...
...
@@ -155,7 +156,6 @@ PICKUP.init = function () {
COMMON
.
closeLoading
();
};
/**
* Setting pickup data
*/
...
...
@@ -750,7 +750,8 @@ PICKUP.getInspectDate = function (dateString) {
*/
PICKUP
.
sendReportFormFromNewReport
=
function
(
operationId
)
{
//Transition to the report form or operation list screen
sessionStorage
.
setItem
(
"pickUpType"
,
CONSTANT
.
PICK_UP_TYPE
.
NEW_REPORT
);
sessionStorage
.
setItem
(
'pickUpType'
,
CONSTANT
.
PICK_UP_TYPE
.
NEW_REPORT
);
sessionStorage
.
setItem
(
'operationId'
,
operationId
);
const
url
=
'reportForm.html?operationId='
+
operationId
;
COMMON
.
avwScreenMove
(
url
);
};
...
...
@@ -764,7 +765,8 @@ PICKUP.sendReportFormFromNewReport = function (operationId) {
*/
PICKUP
.
sendReportFormFromContinuousWork
=
function
(
operationId
,
taskKey
,
processKey
,
phaseNo
)
{
//Transition to the report form or operation list screen
sessionStorage
.
setItem
(
"pickUpType"
,
CONSTANT
.
PICK_UP_TYPE
.
CONTINOUS_WORK
);
sessionStorage
.
setItem
(
'pickUpType'
,
CONSTANT
.
PICK_UP_TYPE
.
CONTINOUS_WORK
);
sessionStorage
.
setItem
(
'operationId'
,
operationId
);
const
url
=
'reportForm.html?operationId='
+
operationId
+
'&processKey='
+
processKey
+
'&phaseNo='
+
phaseNo
;
COMMON
.
avwScreenMove
(
url
);
};
...
...
@@ -780,7 +782,8 @@ PICKUP.sendReportFormFromContinuousWork = function (operationId, taskKey, proces
*/
PICKUP
.
sendReportFormFromWarningReport
=
function
(
operationId
,
reportType
,
taskKey
,
processKey
,
phaseNo
,
replyNo
)
{
//Transition to the report form or operation list screen
sessionStorage
.
setItem
(
"pickUpType"
,
CONSTANT
.
PICK_UP_TYPE
.
WARNING_REPORT
);
sessionStorage
.
setItem
(
'pickUpType'
,
CONSTANT
.
PICK_UP_TYPE
.
WARNING_REPORT
);
sessionStorage
.
setItem
(
'operationId'
,
operationId
);
let
url
=
'reportForm.html?operationId='
+
operationId
;
switch
(
reportType
)
{
case
PICKUP
.
REPORT_TYPE
.
REPORTONLY
:
...
...
abweb/js/reportForm/reportForm.js
View file @
2954515b
...
...
@@ -36,81 +36,42 @@ RF.loadCommon = function () {
* create breadcrumb menu on ReportForm
*/
RF
.
initBreadcrumb
=
function
()
{
let
navs
=
[];
const
reportFormBread
=
{
titleLang
:
CONSTANT
.
PAGE_NAME
.
REPORT_FORM
};
const
reportListBread
=
{
titleLang
:
CONSTANT
.
PAGE_NAME
.
REPORT_LIST
,
href
:
CONSTANT
.
URL_TREE_NAME
.
REPORT_LIST
,
};
if
(
sessionStorage
.
activeHomePage
==
CONSTANT
.
PAGE_TAB
.
DASHBOARD
)
{
if
(
sessionStorage
.
getItem
(
'pickUpType'
)
==
CONSTANT
.
PICK_UP_TYPE
.
CONTINOUS_WORK
)
{
navs
=
[
{
const
dashBordBread
=
{
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
,
},
];
};
let
pickupBread
=
{
titleLang
:
CONSTANT
.
PAGE_NAME
.
PICKUP
};
if
(
sessionStorage
.
getItem
(
'pickUpType'
)
==
CONSTANT
.
PICK_UP_TYPE
.
CONTINOUS_WORK
)
{
pickupBread
.
href
=
CONSTANT
.
URL_TREE_NAME
.
PICKUP_CONTINUOS
;
navs
=
[
dashBordBread
,
pickupBread
,
reportFormBread
];
}
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
,
},
];
pickupBread
.
href
=
CONSTANT
.
URL_TREE_NAME
.
PICKUP_WARNING
;
navs
=
[
dashBordBread
,
pickupBread
,
reportFormBread
];
}
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
,
},
];
pickupBread
.
href
=
CONSTANT
.
URL_TREE_NAME
.
PICKUP_NEW
;
navs
=
[
dashBordBread
,
pickupBread
,
reportListBread
,
reportFormBread
];
}
}
else
{
if
(
sessionStorage
.
getItem
(
'pickUpType'
))
sessionStorage
.
removeItem
(
'pickUpType'
);
if
(
RF
.
addReportFlg
&&
RF
.
addReportFlg
==
1
)
{
navs
=
[
{
const
operationListBread
=
{
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
,
},
];
};
const
reportType
=
sessionStorage
.
getItem
(
'reportType'
);
if
((
RF
.
addReportFlg
&&
RF
.
addReportFlg
==
1
)
||
reportType
==
CONSTANT
.
REPORT_TYPE_INT
.
ROUTINE
)
{
navs
=
[
operationListBread
,
reportListBread
,
reportFormBread
];
}
else
{
navs
=
[
{
titleLang
:
CONSTANT
.
PAGE_NAME
.
OPERATION_LIST
,
href
:
CONSTANT
.
URL_TREE_NAME
.
OPERATION_LIST
,
},
{
titleLang
:
CONSTANT
.
PAGE_NAME
.
REPORT_FORM
,
},
];
navs
=
[
operationListBread
,
reportFormBread
];
}
}
TEMPLATE
.
loadMainNavsTitle
(
'#includedMainTitle'
,
CONSTANT
.
PAGE_NAME
.
REPORT_FORM
,
navs
,
RF
.
loadMainTitleCallback
);
...
...
@@ -120,11 +81,16 @@ RF.initBreadcrumb = function () {
* load main title callcack
*/
RF
.
loadMainTitleCallback
=
function
()
{
//add dashboard setting item
var
elmA
=
$
(
'<div class="quickReportBtn" id="quickReportBtn" onclick="submitForm();">'
);
let
elmImg
=
$
(
'<img src="../common/img/icon_pdf.svg" alt="pdf出力" class="p-1 w-40px" data-toggle="tooltip" data-placement="bottom" title="pdfPrint">'
);
const
elmInspect
=
$
(
'<div id ="inspectLabelWeb" style="display: none; margin:0 auto">'
+
'<div><span class=" lang" style="font-size:18px;" lang="periodicInspectionPeriod"></span></div>'
+
'<div><span id="inspectDate"></span></div></div>'
,
);
let
elmA
=
$
(
'<div class="quickReportBtn" id="quickReportBtn" onclick="submitForm();">'
);
const
elmImg
=
$
(
'<img src="../common/img/icon_pdf.svg" alt="pdf出力" class="p-1 w-40px" data-toggle="tooltip" data-placement="bottom" title="pdfPrint">'
);
elmA
.
append
(
elmImg
);
$
(
'#mainTitleHeader'
).
after
(
elmA
);
$
(
'#mainTitleHeader'
).
after
(
elmInspect
);
};
/**
...
...
@@ -166,13 +132,14 @@ RF.initFormView = function () {
*/
RF
.
backPage
=
function
()
{
if
(
sessionStorage
.
activeHomePage
==
CONSTANT
.
PAGE_TAB
.
DASHBOARD
)
{
if
(
addReportFlg
==
1
)
{
if
(
sessionStorage
.
getItem
(
'pickUpType'
)
==
CONSTANT
.
PICK_UP_TYPE
.
NEW_REPORT
)
{
COMMON
.
avwScreenMove
(
'reportList.html'
);
}
else
{
COMMON
.
avwScreenMove
(
'pickup.html'
);
}
}
else
{
if
(
addReportFlg
==
1
)
{
const
reportType
=
sessionStorage
.
getItem
(
'reportType'
);
if
(
addReportFlg
==
1
||
reportType
==
CONSTANT
.
REPORT_TYPE_INT
.
ROUTINE
)
{
COMMON
.
avwScreenMove
(
'reportList.html'
);
}
else
{
COMMON
.
avwScreenMove
(
'index.html'
);
...
...
abweb/js/template/template.js
View file @
2954515b
...
...
@@ -125,9 +125,9 @@ TEMPLATE.loadMainNavsTitle = function (elmentId, titleLang, navs, completeCallba
olElm
.
append
(
liElm
);
}
}
I18N
.
initi18n
();
if
(
completeCallback
)
{
completeCallback
();
}
I18N
.
initi18n
();
});
};
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