Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
D
design
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
abookCheck
design
Commits
622c433e
Commit
622c433e
authored
Aug 31, 2022
by
NGO THI HONG
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
#19120 Update direct page
parent
dfbfc4fc
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
63 additions
and
42 deletions
+63
-42
app/script/check.js
+2
-3
app/script/check_pu.js
+61
-39
No files found.
app/script/check.js
View file @
622c433e
...
...
@@ -3148,8 +3148,7 @@ CHK.createOperationList = function(operationList, isSearched = false) {
}
else
{
operationNameTd
=
$
(
"<td class='operationId_"
+
operationList
[
i
].
operationId
+
"'><a href=
\"
javascript:CHK_L.sendAppCommand('goOperation', '"
+
operationList
[
i
].
operationId
+
"', '"
+
operationList
[
i
].
contentId
+
"');
\"
class='d-block text-black text-decoration-none mb-1'>"
+
operationList
[
i
].
operationName
+
operationList
[
i
].
operationId
+
"', '"
+
operationList
[
i
].
contentId
+
" ', null ,'REPORT_LIST' ,'REPORT_LIST',null);
\"
class='d-block text-black text-decoration-none mb-1'>"
+
operationList
[
i
].
operationName
+
"</a><div class='fa-sm mobile_operation_date'><i class='far fa-clock fa-blue' style='color:blue;margin-right:10px'></i>"
+
setOperationDate
(
operationList
[
i
].
operationStartDate
)
+
" ~ "
+
setOperationDate
(
operationList
[
i
].
operationEndDate
)
+
"</div></td>"
);
...
...
@@ -3325,7 +3324,7 @@ CHK.scanResult = function(scannedCode, scanType) {
return
operation
.
permitCode
==
resultCode
;
})[
0
];
if
(
scannedOperation
!=
null
)
{
CHK
.
sendScanResult
(
'goOperation'
,
scannedOperation
.
operationId
,
scannedOperation
.
contentId
,
scanType
);
CHK
.
sendScanResult
(
'goOperation'
,
scannedOperation
.
operationId
,
scannedOperation
.
contentId
,
scanType
,
'REPORT_LIST'
,
'REPORT_LIST'
,
null
);
}
else
{
CHK
.
displayAlert
(
"notExistCode"
);
}
...
...
app/script/check_pu.js
View file @
622c433e
...
...
@@ -94,20 +94,27 @@ CHK_pu.settingActivePickup = function(pickupActive) {
$
(
'#liTabContinousWork'
).
removeClass
(
'on'
);
$
(
'#liTabReportWithWarning'
).
removeClass
(
'on'
);
$
(
'#tab-content-NewReport'
).
removeClass
(
'on'
);
$
(
'#tab-content-ContinousWork'
).
removeClass
(
'on'
);
$
(
'#tab-content-ReportWithWarning'
).
removeClass
(
'on'
);
if
(
pickupActive
==
"newReport"
)
{
$
(
'#liTabNewReport'
).
addClass
(
'on'
);
$
(
'#tab-content-NewReport'
).
addClass
(
'on'
);
return
;
}
if
(
pickupActive
==
"continousWork"
)
{
$
(
'#liTabContinousWork'
).
addClass
(
'on'
);
$
(
'#tab-content-ContinousWork'
).
addClass
(
'on'
);
return
;
}
if
(
pickupActive
==
"reportWarning"
)
{
$
(
'#liTabReportWithWarning'
).
addClass
(
'on'
);
$
(
'#tab-content-ReportWithWarning'
).
addClass
(
'on'
);
return
;
}
}
...
...
@@ -120,8 +127,20 @@ CHK_pu.goBack = function() {
CHK_pu
.
setCountElementInPickup
=
function
()
{
console
.
log
(
"setCountElementInPickup"
,
CHK_pu
.
countNewReportList
,
CHK_pu
.
countContinousWorkReport
,
CHK_pu
.
countReportWithWarning
);
$
(
"#count-NewReport"
)[
0
].
innerHTML
=
CHK_pu
.
countNewReportList
;
$
(
"#count-ContinousWork"
)[
0
].
innerHTML
=
CHK_pu
.
countContinousWorkReport
;
if
(
$
(
"#count-NewReport"
))
{
$
(
"#count-NewReport"
)[
0
].
innerHTML
=
CHK_pu
.
countNewReportList
;
}
if
(
$
(
"#count-ContinousWork"
))
{
$
(
"#count-ContinousWork"
)[
0
].
innerHTML
=
CHK_pu
.
countContinousWorkReport
;
}
if
(
$
(
"#count-NewReport"
))
{
$
(
"#count-NewReport"
)[
0
].
innerHTML
=
CHK_pu
.
countNewReportList
;
}
$
(
"#count-ReportWithWarning"
)[
0
].
innerHTML
=
CHK_pu
.
countReportWithWarning
;
}
...
...
@@ -147,7 +166,7 @@ CHK_pu.createNewReportList = function(operationList, isSearched = false) {
}
else
{
ahrefRequiredFlg
=
$
(
"<a href=
\"
javascript:CHK_L.sendAppCommand('goOperation', '"
+
operationList
[
i
].
operationId
+
"', '"
+
operationList
[
i
].
contentId
+
"
'
);
\"
class='d-block px-3 py-3 text-decoration-none text-dark'></a>"
);
ahrefRequiredFlg
=
$
(
"<a href=
\"
javascript:CHK_L.sendAppCommand('goOperation', '"
+
operationList
[
i
].
operationId
+
"', '"
+
operationList
[
i
].
contentId
+
"
', null ,'NEW_FORM_INPUT' ,'REPORT_LIST',null
);
\"
class='d-block px-3 py-3 text-decoration-none text-dark'></a>"
);
}
var
divTitle
=
$
(
"<div class='title'>"
+
operationList
[
i
].
operationName
+
"</div>"
);
var
iIcon
=
$
(
"<i class='fas fa-chevron-right fs-12'></i>"
);
...
...
@@ -181,33 +200,36 @@ CHK_pu.createContinousWorkList = function(operationList, isSearched = false) {
{
if
(
!
operationList
[
i
].
processList
||
operationList
[
i
].
processList
.
length
==
0
)
continue
;
//TODO aタグlist.html 転移処理
var
messageli
=
$
(
"<li class='item list-unstyled rounded border mb-2' name = 'operationId_"
+
operationList
[
i
].
operationId
+
"'></li>"
)
;
var
ahrefRequiredFlg
;
if
(
operationList
[
i
].
permitCodeRequiredFlg
==
1
)
{
ahrefRequiredFlg
=
$
(
"<a href=
\"
javascript:CHK.displayAlert('onlyRfid');
\"
class='d-block px-3 py-3 text-decoration-none text-dark'></a>"
);
}
else
{
ahrefRequiredFlg
=
$
(
"<a href=
\"
javascript:CHK_L.sendAppCommand('goOperation', '"
+
operationList
[
i
].
operationId
+
"', '"
+
operationList
[
i
].
contentId
+
"');
\"
class='d-block px-3 py-2 text-decoration-none text-dark'></a>"
);
for
(
var
j
=
0
;
j
<
operationList
[
i
].
processList
.
length
;
j
++
)
{
var
messageli
=
$
(
"<li class='item list-unstyled rounded border mb-2' id = 'list_"
+
operationList
[
i
].
processList
[
j
].
processKey
+
"'></li>"
)
;
var
ahrefRequiredFlg
;
if
(
operationList
[
i
].
permitCodeRequiredFlg
==
1
)
{
ahrefRequiredFlg
=
$
(
"<a href=
\"
javascript:CHK.displayAlert('onlyRfid');
\"
class='d-block px-3 py-3 text-decoration-none text-dark'></a>"
);
}
else
{
ahrefRequiredFlg
=
$
(
"<a href=
\"
javascript:CHK_L.sendAppCommand('goOperation', '"
+
operationList
[
i
].
operationId
+
"', '"
+
operationList
[
i
].
contentId
+
" ', null ,'DETAIL_FORM_INPUT' ,'CONTINOUS_WORK',"
+
operationList
[
i
].
processList
[
j
].
processKey
+
");
\"
class='d-block px-3 py-2 text-decoration-none text-dark'></a>"
);
}
var
divProccess
=
$
(
"<div class='tag fs-8 text-secondary px-2 py-1 mr-2 rounded border mb-1'>"
+
operationList
[
i
].
processList
[
0
].
processName
+
"</div>"
);
var
divTitle
=
$
(
"<div class='title'>"
+
operationList
[
i
].
operationName
+
"</div>"
);
var
divSubTitleWrap
=
$
(
"<div class='sub-title-wrap'> </div>"
);
var
divCode
=
$
(
" <div class='fs-8 text-secondary mr-2'><div class='data'>"
+
"code-0001"
+
"</div></div>"
);
var
divSubTitle
=
$
(
"<div class='sub-title'>"
+
operationList
[
i
].
operationName
+
"</div>"
);
var
iIcon
=
$
(
"<i class='fas fa-chevron-right fs-12''></i>"
);
divSubTitleWrap
.
append
(
divCode
);
ahrefRequiredFlg
.
append
(
divProccess
);
ahrefRequiredFlg
.
append
(
divTitle
);
ahrefRequiredFlg
.
append
(
divSubTitleWrap
);
ahrefRequiredFlg
.
append
(
divSubTitle
);
ahrefRequiredFlg
.
append
(
iIcon
);
messageli
.
append
(
ahrefRequiredFlg
);
$
(
"#continousWork-list"
).
append
(
messageli
);
CHK_pu
.
countContinousWorkReport
=
CHK_pu
.
countContinousWorkReport
+
1
;
}
var
divProccess
=
$
(
"<div class='tag fs-8 text-secondary px-2 py-1 mr-2 rounded border mb-1'>"
+
operationList
[
i
].
processList
[
0
].
processName
+
"</div>"
);
var
divTitle
=
$
(
"<div class='title'>"
+
operationList
[
i
].
operationName
+
"</div>"
);
var
divSubTitleWrap
=
$
(
"<div class='sub-title-wrap'> </div>"
);
var
divCode
=
$
(
" <div class='fs-8 text-secondary mr-2'><div class='data'>"
+
"code-0001"
+
"</div></div>"
);
var
divSubTitle
=
$
(
"<div class='sub-title'>"
+
operationList
[
i
].
operationName
+
"</div>"
);
var
iIcon
=
$
(
"<i class='fas fa-chevron-right fs-12''></i>"
);
divSubTitleWrap
.
append
(
divCode
);
ahrefRequiredFlg
.
append
(
divProccess
);
ahrefRequiredFlg
.
append
(
divTitle
);
ahrefRequiredFlg
.
append
(
divSubTitleWrap
);
ahrefRequiredFlg
.
append
(
divSubTitle
);
ahrefRequiredFlg
.
append
(
iIcon
);
messageli
.
append
(
ahrefRequiredFlg
);
$
(
"#continousWork-list"
).
append
(
messageli
);
CHK_pu
.
countContinousWorkReport
=
CHK_pu
.
countContinousWorkReport
+
1
;
}
}
...
...
@@ -243,35 +265,35 @@ CHK_pu.createReportWithWarning = function(operationList, isSearched = false) {
switch
(
operationList
[
i
].
reportType
)
{
case
0
:
operationNameLi
=
$
(
"<li class='item list-unstyled rounded border mb-2'
name = 'taskkey
_"
+
operationList
[
i
].
warningReportList
[
j
].
taskKey
+
"'><a href=
\"
javascript:CHK_L.sendAppCommand('goOperation', '"
+
operationList
[
i
].
warningReportList
[
j
].
taskKey
+
"');
\"
class='d-block px-3 py-2 text-decoration-none text-dark'>"
operationNameLi
=
$
(
"<li class='item list-unstyled rounded border mb-2'
id = 'list
_"
+
operationList
[
i
].
warningReportList
[
j
].
taskKey
+
"'><a href=
\"
javascript:CHK_L.sendAppCommand('goOperation', '"
+
operationList
[
i
].
operationId
+
"', '"
+
operationList
[
i
].
contentId
+
"
', null ,'DETAIL_FORM_INPUT' ,'REPORT_WARNING','"
+
operationList
[
i
].
warningReportList
[
j
].
taskKey
+
"
');
\"
class='d-block px-3 py-2 text-decoration-none text-dark'>"
+
"<div class='tag fs-8 text-secondary px-2 py-1 mr-2 rounded border mb-1'>"
+
operationList
[
i
].
operationName
+
"</div> <div class='sub-title-wrap'> <div class='fs-8 text-secondary mr-2'><div class='data'>"
+
operationList
[
i
].
warningReportList
[
j
].
taskCode
+
"</div></div> <div class='sub-title'>"
+
operationList
[
i
].
warningReportList
[
j
].
taskName
+
"</div></div> <i class='fas fa-chevron-right fs-12''></i> </a></li>"
);
break
;
case
1
:
operationNameLi
=
$
(
"<li class='item list-unstyled rounded border mb-2'
name = 'taskkey
_"
+
operationList
[
i
].
warningReportList
[
j
].
taskKey
+
"'><a href=
\"
javascript:CHK_L.sendAppCommand('goOperation', '"
+
operationList
[
i
].
warningReportList
[
j
].
taskKey
+
"');
\"
class='d-block px-3 py-2 text-decoration-none text-dark'>"
operationNameLi
=
$
(
"<li class='item list-unstyled rounded border mb-2'
id = 'list
_"
+
operationList
[
i
].
warningReportList
[
j
].
taskKey
+
"'><a href=
\"
javascript:CHK_L.sendAppCommand('goOperation', '"
+
operationList
[
i
].
operationId
+
"', '"
+
operationList
[
i
].
contentId
+
"
', null ,'DETAIL_FORM_INPUT' ,'REPORT_WARNING','"
+
operationList
[
i
].
warningReportList
[
j
].
taskKey
+
"
');
\"
class='d-block px-3 py-2 text-decoration-none text-dark'>"
+
"<div class='tag fs-8 text-secondary px-2 py-1 mr-2 rounded border mb-1'>"
+
operationList
[
i
].
operationName
+
"</div> <div class='sub-title-wrap'> <div class='fs-8 text-secondary mr-2'><div class='data'>"
+
operationList
[
i
].
operationStartDate
+
" / "
+
operationList
[
i
].
operationEndDate
+
"</div></div> </div> <i class='fas fa-chevron-right fs-12''></i> </a></li>"
);
break
;
case
2
:
operationNameLi
=
$
(
"<li class='item list-unstyled rounded border mb-2'
name = 'taskkey
_"
+
operationList
[
i
].
warningReportList
[
j
].
taskKey
+
"'><a href=
\"
javascript:CHK_L.sendAppCommand('goOperation', '"
+
operationList
[
i
].
warningReportList
[
j
].
taskKey
+
"');
\"
class='d-block px-3 py-2 text-decoration-none text-dark'>"
operationNameLi
=
$
(
"<li class='item list-unstyled rounded border mb-2'
id = 'list
_"
+
operationList
[
i
].
warningReportList
[
j
].
taskKey
+
"'><a href=
\"
javascript:CHK_L.sendAppCommand('goOperation', '"
+
operationList
[
i
].
operationId
+
"', '"
+
operationList
[
i
].
contentId
+
"
', null ,'DETAIL_FORM_INPUT' ,'REPORT_WARNING','"
+
operationList
[
i
].
warningReportList
[
j
].
taskKey
+
"
');
\"
class='d-block px-3 py-2 text-decoration-none text-dark'>"
+
"<div class='tag fs-8 text-secondary px-2 py-1 mr-2 rounded border mb-1'>"
+
operationList
[
i
].
operationName
+
"</div> <div class='sub-title-wrap'> <div class='fs-8 text-secondary mr-2'><div class='data'>"
+
operationList
[
i
].
warningReportList
[
j
].
taskCode
+
"</div></div> <div class='sub-title'>"
+
operationList
[
i
].
warningReportList
[
j
].
taskName
+
"</div></div> <i class='fas fa-chevron-right fs-12''></i> </a></li>"
);
break
;
case
3
:
operationNameLi
=
$
(
"<li class='item list-unstyled rounded border mb-2'
name = 'operationId_"
+
operationList
[
i
].
operationId
operationNameLi
=
$
(
"<li class='item list-unstyled rounded border mb-2'
id = 'list_"
+
operationList
[
i
].
warningReportList
[
j
].
taskKey
+
"'><a href=
\"
javascript:CHK_L.sendAppCommand('goOperation', '"
+
operationList
[
i
].
operationId
+
"', '"
+
operationList
[
i
].
contentId
+
"');
\"
class='d-block px-3 py-2 text-decoration-none text-dark'>"
+
" ', null ,'DETAIL_FORM_INPUT' ,'REPORT_WARNING','"
+
operationList
[
i
].
warningReportList
[
j
].
taskKey
+
"');
\"
class='d-block px-3 py-2 text-decoration-none text-dark'>"
+
"<div class='tag fs-8 text-secondary px-2 py-1 mr-2 rounded border mb-1'>"
+
operationList
[
i
].
processList
[
0
].
processName
+
"</div> <div class='title'>"
+
operationList
[
i
].
operationName
+
"</div> <div class='sub-title-wrap'> <div class='fs-8 text-secondary mr-2'><div class='data'>"
+
operationList
[
i
].
warningReportList
[
j
].
taskCode
...
...
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