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
7eb6a437
Commit
7eb6a437
authored
Nov 11, 2022
by
Takumi Imai
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
operationLIstを保存したら変更された箇所
parent
82dda087
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
44 additions
and
57 deletions
+44
-57
abweb/js/operationList/operationList.js
+44
-57
No files found.
abweb/js/operationList/operationList.js
View file @
7eb6a437
...
...
@@ -5,21 +5,21 @@
* @since cms:1.4.3.2&1.4.3.3 web:1.0
*/
var
OL
=
{};
var
OL
=
{};
OL
.
operationList
;
//Operation json data
OL
.
operationGroupMaster
;
//category(operationGroupMaster) json data
OL
.
isOperationGroupMaster
=
0
;
//0: category(operationGroupMaster) not exist 1: category(operationGroupMaster) exist
OL
.
operationList
;
//Operation json data
OL
.
operationGroupMaster
;
//category(operationGroupMaster) json data
OL
.
isOperationGroupMaster
=
0
;
//0: category(operationGroupMaster) not exist 1: category(operationGroupMaster) exist
OL
.
sortIndex
;
OL
.
operationGroupMasterId
;
OL
.
REPORT_TYPE
=
{
REPORTONLY
:
0
,
//report only
INSPECT
:
1
,
//rountine
WITHREPLY
:
2
,
// report answer
WORKFLOW
:
3
// continuous
}
REPORTONLY
:
0
,
//report only
INSPECT
:
1
,
//rountine
WITHREPLY
:
2
,
// report answer
WORKFLOW
:
3
,
// continuous
}
;
/**
* process on page load.
...
...
@@ -30,9 +30,9 @@ OL.REPORT_TYPE = {
OL
.
init
=
function
()
{
console
.
log
(
'OperationList start'
);
TEMPLATE
.
loadHearder
(
"#includedHeader"
);
TEMPLATE
.
loadHearder
(
'#includedHeader'
);
TEMPLATE
.
loadMainNavsTitle
(
'#includedMainTitle'
,
'workList'
,
null
,
null
);
TEMPLATE
.
loadConfirmModal
(
"#includedConfirmModal"
);
TEMPLATE
.
loadConfirmModal
(
'#includedConfirmModal'
);
//get all data of operation list scene
OL
.
getAllDataWeb
(
sessionStorage
.
OL_searchKeyWord
,
sessionStorage
.
OL_sortIndex
,
sessionStorage
.
OL_searchStartDate
,
sessionStorage
.
OL_searchEndDate
,
sessionStorage
.
OL_operationGroupMasterId
);
...
...
@@ -41,7 +41,7 @@ OL.init = function () {
OL
.
createOperationList
(
OL
.
operationList
);
//show category(operationGroupMaster)
$
(
"#includedCategoryModal"
).
load
(
"../common/category-modal.html"
,
function
()
{
$
(
'#includedCategoryModal'
).
load
(
'../common/category-modal.html'
,
function
()
{
OL
.
createCategory
();
I18N
.
initi18n
();
});
...
...
@@ -152,48 +152,41 @@ OL.createOperationList = function (operationList) {
$
(
'#operationCount'
).
text
(
operationList
.
length
);
//create & show
for
(
let
i
=
0
;
i
<
operationList
.
length
;
i
++
)
{
let
classIcon
;
switch
(
operationList
[
i
].
reportType
)
{
let
classIcon
;
switch
(
operationList
[
i
].
reportType
)
{
case
OL
.
REPORT_TYPE
.
REPORTONLY
:
classIcon
=
"report"
;
classIcon
=
'report'
;
break
;
case
OL
.
REPORT_TYPE
.
INSPECT
:
classIcon
=
"inspection"
;
classIcon
=
'inspection'
;
break
;
case
OL
.
REPORT_TYPE
.
WITHREPLY
:
classIcon
=
"questionary"
;
classIcon
=
'questionary'
;
break
;
case
OL
.
REPORT_TYPE
.
WORKFLOW
:
classIcon
=
"proccess"
;
classIcon
=
'proccess'
;
break
;
}
let
messageli
=
$
(
"<li class='card mb-2' name = 'operationId_"
+
operationList
[
i
].
operationId
+
"' ></li>"
);
let
ahrefRequiredFlg
=
$
(
"<a href=
\"
javascript:OL.sendOperation('"
+
operationList
[
i
].
operationId
+
"', '"
+
operationList
[
i
].
operationType
+
"', '"
+
operationList
[
i
].
reportType
+
"', '"
+
operationList
[
i
].
enableAddReport
+
"');
\"
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
divDate
=
"<div class='fs-8 text-secondary text-truncate'>"
+
OL
.
setOperationDate
(
operationList
[
i
].
operationStartDate
)
+
' ~ '
+
OL
.
setOperationDate
(
operationList
[
i
].
operationEndDate
)
+
"</div>"
;
let
divText
=
$
(
"<div class='pl-5 h-100 d-flex align-items-center'>"
+
"<div class='w-100'>"
+
"<div class='fs-12 text-truncate'>"
+
operationList
[
i
].
operationName
+
"</div>"
+
divDate
+
"</div></div>"
);
let
ahrefRequiredFlg
=
$
(
'<a href="javascript:OL.sendOperation(
\'
'
+
operationList
[
i
].
operationId
+
"', '"
+
operationList
[
i
].
operationType
+
"', '"
+
operationList
[
i
].
reportType
+
"', '"
+
operationList
[
i
].
enableAddReport
+
"');
\"
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
divDate
=
"<div class='fs-8 text-secondary text-truncate'>"
+
OL
.
setOperationDate
(
operationList
[
i
].
operationStartDate
)
+
' ~ '
+
OL
.
setOperationDate
(
operationList
[
i
].
operationEndDate
)
+
'</div>'
;
let
divText
=
$
(
"<div class='pl-5 h-100 d-flex align-items-center'>"
+
"<div class='w-100'>"
+
"<div class='fs-12 text-truncate'>"
+
operationList
[
i
].
operationName
+
'</div>'
+
divDate
+
'</div></div>'
,
);
ahrefRequiredFlg
.
append
(
divIcon
);
ahrefRequiredFlg
.
append
(
divText
);
messageli
.
append
(
ahrefRequiredFlg
);
...
...
@@ -278,11 +271,7 @@ OL.createBreadcrumbList = function () {
'</a></li>'
,
);
}
else
{
$
(
'#groupMasterPath'
).
append
(
'<li class="breadcrumb-item active" aria-current="page"><span>'
+
operationGroupMaster
.
operationGroupMasterName
+
'</span></li>'
,
);
$
(
'#groupMasterPath'
).
append
(
'<li class="breadcrumb-item active" aria-current="page"><span>'
+
operationGroupMaster
.
operationGroupMasterName
+
'</span></li>'
);
}
});
}
...
...
@@ -326,9 +315,9 @@ OL.createCategoryList = function () {
if
(
typeof
OL
.
operationGroupMasterId
===
'undefined'
||
OL
.
operationGroupMasterId
==
0
)
{
allChecked
=
' checked'
;
}
const
allCategory
=
$
(
'<ul><li><label><input type="radio" name="category" value="0"'
+
allChecked
+
'><span class="lang" lang="categoryAll">'
+
I18N
.
i18nText
(
'categoryAll'
)
+
'</span></label></li></ul>'
);
const
allCategory
=
$
(
'<ul><li><label><input type="radio" name="category" value="0"'
+
allChecked
+
'><span class="lang" lang="categoryAll">'
+
I18N
.
i18nText
(
'categoryAll'
)
+
'</span></label></li></ul>'
,
);
categoryListElement
.
append
(
allCategory
);
//create category(operationGroupMaster) structure
for
(
let
i
=
0
;
i
<
OL
.
operationGroupMaster
.
length
;
i
++
)
{
...
...
@@ -384,7 +373,7 @@ OL.createCategoryList = function () {
/**
* Handle onclick category selection button
*/
OL
.
onClickCategorySelection
=
function
()
{
OL
.
onClickCategorySelection
=
function
()
{
const
operationGroupMasterId
=
$
(
'input[name="category"]:checked'
).
val
();
$
(
'#category-modal .close'
).
click
();
OL
.
changeOperationGroupMaster
(
operationGroupMasterId
);
...
...
@@ -499,8 +488,7 @@ OL.changeOperationGroupMaster = function (operationGroupMasterId) {
/**
* open the category(OperationGroupMaster)
*/
OL
.
openCategory
=
function
()
{
};
OL
.
openCategory
=
function
()
{};
/**
* reset search
...
...
@@ -564,4 +552,3 @@ OL.createUrlOfOperation = function (enableAddReport, reportType) {
return
baseUrl
+
CONSTANT
.
URL
.
CMS
.
HTML
.
LIST_REPORT_FORM
;
}
};
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