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
2 years ago
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 @@
...
@@ -5,21 +5,21 @@
* @since cms:1.4.3.2&1.4.3.3 web:1.0
* @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
.
sortIndex
;
OL
.
operationGroupMasterId
;
OL
.
operationGroupMasterId
;
OL
.
REPORT_TYPE
=
{
OL
.
REPORT_TYPE
=
{
REPORTONLY
:
0
,
//report only
REPORTONLY
:
0
,
//report only
INSPECT
:
1
,
//rountine
INSPECT
:
1
,
//rountine
WITHREPLY
:
2
,
// report answer
WITHREPLY
:
2
,
// report answer
WORKFLOW
:
3
// continuous
WORKFLOW
:
3
,
// continuous
}
}
;
/**
/**
* process on page load.
* process on page load.
...
@@ -30,9 +30,9 @@ OL.REPORT_TYPE = {
...
@@ -30,9 +30,9 @@ OL.REPORT_TYPE = {
OL
.
init
=
function
()
{
OL
.
init
=
function
()
{
console
.
log
(
'OperationList start'
);
console
.
log
(
'OperationList start'
);
TEMPLATE
.
loadHearder
(
"#includedHeader"
);
TEMPLATE
.
loadHearder
(
'#includedHeader'
);
TEMPLATE
.
loadMainNavsTitle
(
'#includedMainTitle'
,
'workList'
,
null
,
null
);
TEMPLATE
.
loadMainNavsTitle
(
'#includedMainTitle'
,
'workList'
,
null
,
null
);
TEMPLATE
.
loadConfirmModal
(
"#includedConfirmModal"
);
TEMPLATE
.
loadConfirmModal
(
'#includedConfirmModal'
);
//get all data of operation list scene
//get all data of operation list scene
OL
.
getAllDataWeb
(
sessionStorage
.
OL_searchKeyWord
,
sessionStorage
.
OL_sortIndex
,
sessionStorage
.
OL_searchStartDate
,
sessionStorage
.
OL_searchEndDate
,
sessionStorage
.
OL_operationGroupMasterId
);
OL
.
getAllDataWeb
(
sessionStorage
.
OL_searchKeyWord
,
sessionStorage
.
OL_sortIndex
,
sessionStorage
.
OL_searchStartDate
,
sessionStorage
.
OL_searchEndDate
,
sessionStorage
.
OL_operationGroupMasterId
);
...
@@ -41,7 +41,7 @@ OL.init = function () {
...
@@ -41,7 +41,7 @@ OL.init = function () {
OL
.
createOperationList
(
OL
.
operationList
);
OL
.
createOperationList
(
OL
.
operationList
);
//show category(operationGroupMaster)
//show category(operationGroupMaster)
$
(
"#includedCategoryModal"
).
load
(
"../common/category-modal.html"
,
function
()
{
$
(
'#includedCategoryModal'
).
load
(
'../common/category-modal.html'
,
function
()
{
OL
.
createCategory
();
OL
.
createCategory
();
I18N
.
initi18n
();
I18N
.
initi18n
();
});
});
...
@@ -152,48 +152,41 @@ OL.createOperationList = function (operationList) {
...
@@ -152,48 +152,41 @@ OL.createOperationList = function (operationList) {
$
(
'#operationCount'
).
text
(
operationList
.
length
);
$
(
'#operationCount'
).
text
(
operationList
.
length
);
//create & show
//create & show
for
(
let
i
=
0
;
i
<
operationList
.
length
;
i
++
)
{
for
(
let
i
=
0
;
i
<
operationList
.
length
;
i
++
)
{
let
classIcon
;
let
classIcon
;
switch
(
operationList
[
i
].
reportType
)
switch
(
operationList
[
i
].
reportType
)
{
{
case
OL
.
REPORT_TYPE
.
REPORTONLY
:
case
OL
.
REPORT_TYPE
.
REPORTONLY
:
classIcon
=
"report"
;
classIcon
=
'report'
;
break
;
break
;
case
OL
.
REPORT_TYPE
.
INSPECT
:
case
OL
.
REPORT_TYPE
.
INSPECT
:
classIcon
=
"inspection"
;
classIcon
=
'inspection'
;
break
;
break
;
case
OL
.
REPORT_TYPE
.
WITHREPLY
:
case
OL
.
REPORT_TYPE
.
WITHREPLY
:
classIcon
=
"questionary"
;
classIcon
=
'questionary'
;
break
;
break
;
case
OL
.
REPORT_TYPE
.
WORKFLOW
:
case
OL
.
REPORT_TYPE
.
WORKFLOW
:
classIcon
=
"proccess"
;
classIcon
=
'proccess'
;
break
;
break
;
}
}
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
=
$
(
"<a href=
\"
javascript:OL.sendOperation('"
let
ahrefRequiredFlg
=
$
(
+
operationList
[
i
].
operationId
'<a href="javascript:OL.sendOperation(
\'
'
+
+
"', '"
operationList
[
i
].
operationId
+
+
operationList
[
i
].
operationType
"', '"
+
+
"', '"
operationList
[
i
].
operationType
+
+
operationList
[
i
].
reportType
"', '"
+
+
"', '"
operationList
[
i
].
reportType
+
+
operationList
[
i
].
enableAddReport
"', '"
+
+
"');
\"
class='h-100 d-block px-3 py-2 text-decoration-none text-dark position-relative'></a>"
);
operationList
[
i
].
enableAddReport
+
let
divIcon
=
$
(
"<div class='position-absolute translate-middle top-50 left-0 ml-3'>"
"');
\"
class='h-100 d-block px-3 py-2 text-decoration-none text-dark position-relative'></a>"
,
+
"<div class='type-icon'>"
);
+
"<span class='"
+
classIcon
+
"'></span>"
let
divIcon
=
$
(
"<div class='position-absolute translate-middle top-50 left-0 ml-3'>"
+
"<div class='type-icon'>"
+
"<span class='"
+
classIcon
+
"'></span>"
+
'</div></div>'
);
+
"</div></div>"
)
let
divDate
=
let
divDate
=
"<div class='fs-8 text-secondary text-truncate'>"
"<div class='fs-8 text-secondary text-truncate'>"
+
OL
.
setOperationDate
(
operationList
[
i
].
operationStartDate
)
+
' ~ '
+
OL
.
setOperationDate
(
operationList
[
i
].
operationEndDate
)
+
'</div>'
;
+
OL
.
setOperationDate
(
operationList
[
i
].
operationStartDate
)
+
' ~ '
let
divText
=
$
(
+
OL
.
setOperationDate
(
operationList
[
i
].
operationEndDate
)
"<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>'
,
+
"</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
(
divIcon
);
ahrefRequiredFlg
.
append
(
divText
);
ahrefRequiredFlg
.
append
(
divText
);
messageli
.
append
(
ahrefRequiredFlg
);
messageli
.
append
(
ahrefRequiredFlg
);
...
@@ -278,11 +271,7 @@ OL.createBreadcrumbList = function () {
...
@@ -278,11 +271,7 @@ OL.createBreadcrumbList = function () {
'</a></li>'
,
'</a></li>'
,
);
);
}
else
{
}
else
{
$
(
'#groupMasterPath'
).
append
(
$
(
'#groupMasterPath'
).
append
(
'<li class="breadcrumb-item active" aria-current="page"><span>'
+
operationGroupMaster
.
operationGroupMasterName
+
'</span></li>'
);
'<li class="breadcrumb-item active" aria-current="page"><span>'
+
operationGroupMaster
.
operationGroupMasterName
+
'</span></li>'
,
);
}
}
});
});
}
}
...
@@ -326,9 +315,9 @@ OL.createCategoryList = function () {
...
@@ -326,9 +315,9 @@ OL.createCategoryList = function () {
if
(
typeof
OL
.
operationGroupMasterId
===
'undefined'
||
OL
.
operationGroupMasterId
==
0
)
{
if
(
typeof
OL
.
operationGroupMasterId
===
'undefined'
||
OL
.
operationGroupMasterId
==
0
)
{
allChecked
=
' checked'
;
allChecked
=
' checked'
;
}
}
const
allCategory
=
$
(
'<ul><li><label><input type="radio" name="category" value="0"'
+
const
allCategory
=
$
(
allChecked
+
'<ul><li><label><input type="radio" name="category" value="0"'
+
allChecked
+
'><span class="lang" lang="categoryAll">'
+
I18N
.
i18nText
(
'categoryAll'
)
+
'</span></label></li></ul>'
,
'><span class="lang" lang="categoryAll">'
+
I18N
.
i18nText
(
'categoryAll'
)
+
'</span></label></li></ul>'
);
);
categoryListElement
.
append
(
allCategory
);
categoryListElement
.
append
(
allCategory
);
//create category(operationGroupMaster) structure
//create category(operationGroupMaster) structure
for
(
let
i
=
0
;
i
<
OL
.
operationGroupMaster
.
length
;
i
++
)
{
for
(
let
i
=
0
;
i
<
OL
.
operationGroupMaster
.
length
;
i
++
)
{
...
@@ -384,7 +373,7 @@ OL.createCategoryList = function () {
...
@@ -384,7 +373,7 @@ OL.createCategoryList = function () {
/**
/**
* Handle onclick category selection button
* Handle onclick category selection button
*/
*/
OL
.
onClickCategorySelection
=
function
()
{
OL
.
onClickCategorySelection
=
function
()
{
const
operationGroupMasterId
=
$
(
'input[name="category"]:checked'
).
val
();
const
operationGroupMasterId
=
$
(
'input[name="category"]:checked'
).
val
();
$
(
'#category-modal .close'
).
click
();
$
(
'#category-modal .close'
).
click
();
OL
.
changeOperationGroupMaster
(
operationGroupMasterId
);
OL
.
changeOperationGroupMaster
(
operationGroupMasterId
);
...
@@ -499,8 +488,7 @@ OL.changeOperationGroupMaster = function (operationGroupMasterId) {
...
@@ -499,8 +488,7 @@ OL.changeOperationGroupMaster = function (operationGroupMasterId) {
/**
/**
* open the category(OperationGroupMaster)
* open the category(OperationGroupMaster)
*/
*/
OL
.
openCategory
=
function
()
{
OL
.
openCategory
=
function
()
{};
};
/**
/**
* reset search
* reset search
...
@@ -564,4 +552,3 @@ OL.createUrlOfOperation = function (enableAddReport, reportType) {
...
@@ -564,4 +552,3 @@ OL.createUrlOfOperation = function (enableAddReport, reportType) {
return
baseUrl
+
CONSTANT
.
URL
.
CMS
.
HTML
.
LIST_REPORT_FORM
;
return
baseUrl
+
CONSTANT
.
URL
.
CMS
.
HTML
.
LIST_REPORT_FORM
;
}
}
};
};
This diff is collapsed.
Click to expand it.
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