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
17d151f1
Commit
17d151f1
authored
Oct 18, 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_kangdh
# Conflicts: # abvw/common/js/constant.js
parents
3279537d
24ef7ad7
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
63 additions
and
13 deletions
+63
-13
abvw/common/js/constant.js
+2
-1
abvw/js/operationList/operationList.js
+61
-12
No files found.
abvw/common/js/constant.js
View file @
17d151f1
...
...
@@ -58,7 +58,8 @@ CONSTANT.URL = {
},
},
WEB
:
{
BASE
:
'abvw/html/'
,
BASE
:
'http://127.0.0.1:5500/abvw/html/'
,
OPERATION_LIST
:
'index'
,
},
};
...
...
abvw/js/operationList/operationList.js
View file @
17d151f1
...
...
@@ -10,7 +10,6 @@ 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
.
operationSearchCriteria
;
OL
.
sortIndex
;
OL
.
operationGroupMasterId
;
...
...
@@ -25,7 +24,7 @@ OL.init = function () {
console
.
log
(
'OperationList start'
);
//get all data of operation list scene
OL
.
getAllDataWeb
();
OL
.
getAllDataWeb
(
sessionStorage
.
OL_searchKeyWord
,
sessionStorage
.
OL_sortIndex
,
sessionStorage
.
OL_searchStartDate
,
sessionStorage
.
OL_searchEndDate
,
sessionStorage
.
OL_operationGroupMasterId
);
//show operation list
OL
.
createOperationList
(
OL
.
operationList
);
...
...
@@ -45,34 +44,83 @@ OL.init = function () {
* @param {String} searchEndDate
* @param {Number} operationGroupMasterId
*/
OL
.
getAllDataWeb
=
function
(
searchKey
w
ord
,
sortIndex
,
searchStartDate
,
searchEndDate
,
operationGroupMasterId
)
{
OL
.
getAllDataWeb
=
function
(
searchKey
W
ord
,
sortIndex
,
searchStartDate
,
searchEndDate
,
operationGroupMasterId
)
{
let
param
=
{};
param
.
sid
=
COMMON
.
getSid
();
param
.
operationName
=
searchKeyword
;
if
(
typeof
searchKeyWord
!==
'undefined'
)
{
param
.
operationName
=
searchKeyWord
;
}
if
(
typeof
sortIndex
!==
'undefined'
)
{
param
.
sort
=
sortIndex
;
}
if
(
typeof
searchStartDate
!==
'undefined'
)
{
param
.
startDate
=
searchStartDate
;
}
if
(
typeof
searchEndDate
!==
'undefined'
)
{
param
.
endDate
=
searchEndDate
;
}
if
(
typeof
operationGroupMasterId
!==
'undefined'
)
{
param
.
operationGroupMasterId
=
operationGroupMasterId
;
}
const
url
=
CONSTANT
.
URL
.
CMS
.
BASE
+
ClientData
.
userInfo_accountPath
()
+
CONSTANT
.
URL
.
CMS
.
API
.
BASE
+
CONSTANT
.
URL
.
CMS
.
API
.
ALL_OPERATION_LIST
;
COMMON
.
cmsAjax
(
url
,
param
,
false
,
function
(
json
)
{
OL
.
saveSearchKeyWord
(
searchKeyWord
,
sortIndex
,
searchStartDate
,
searchEndDate
,
operationGroupMasterId
);
OL
.
setSearchInfoWeb
();
OL
.
operationList
=
json
.
operationList
;
OL
.
operationGroupMaster
=
json
.
operationGroupMasterList
;
OL
.
isOperationGroupMaster
=
json
.
isOperationGroupMaster
;
OL
.
operationSearchCriteria
=
json
.
operationSearchCriteria
;
OL
.
setSearchInfoWeb
();
});
};
/**
* Transfer search criteria to session.
* Keep value after page move.
*
* @param {String} searchKeyword
* @param {String} sortIndex
* @param {String} searchStartDate
* @param {String} searchEndDate
* @param {String} operationGroupMasterId
*/
OL
.
saveSearchKeyWord
=
function
(
searchKeyword
,
sortIndex
,
searchStartDate
,
searchEndDate
,
operationGroupMasterId
)
{
if
(
typeof
searchKeyword
!==
'undefined'
)
{
sessionStorage
.
OL_searchKeyWord
=
searchKeyword
;
}
if
(
typeof
sortIndex
!==
'undefined'
)
{
sessionStorage
.
OL_sortIndex
=
sortIndex
;
}
if
(
typeof
searchStartDate
!==
'undefined'
)
{
sessionStorage
.
OL_searchStartDate
=
searchStartDate
;
}
if
(
typeof
searchEndDate
!==
'undefined'
)
{
sessionStorage
.
OL_searchEndDate
=
searchEndDate
;
}
if
(
typeof
operationGroupMasterId
!==
'undefined'
)
{
sessionStorage
.
OL_operationGroupMasterId
=
operationGroupMasterId
;
}
};
/**
* set search criteria when Initial display.
*/
OL
.
setSearchInfoWeb
=
function
()
{
OL
.
sortIndex
=
OL
.
operationSearchCriteria
.
sort
;
$
(
'#searchTaskName'
).
val
(
OL
.
operationSearchCriteria
.
operationName
);
$
(
'#searchStartDate'
).
val
(
OL
.
operationSearchCriteria
.
startDate
);
$
(
'#searchEndDate'
).
val
(
OL
.
operationSearchCriteria
.
endDate
);
OL
.
operationGroupMasterId
=
OL
.
operationSearchCriteria
.
operationGroupMasterId
;
if
(
sessionStorage
.
OL_sortIndex
)
{
OL
.
sortIndex
=
sessionStorage
.
OL_sortIndex
;
}
if
(
sessionStorage
.
OL_searchKeyWord
)
{
$
(
'#searchTaskName'
).
val
(
sessionStorage
.
OL_searchKeyWord
);
}
if
(
sessionStorage
.
OL_searchStartDate
)
{
$
(
'#searchStartDate'
).
val
(
sessionStorage
.
OL_searchStartDate
);
}
if
(
sessionStorage
.
OL_searchEndDate
)
{
$
(
'#searchEndDate'
).
val
(
sessionStorage
.
OL_searchEndDate
);
}
if
(
sessionStorage
.
OL_operationGroupMasterId
)
{
OL
.
operationGroupMasterId
=
sessionStorage
.
OL_operationGroupMasterId
;
}
};
/**
...
...
@@ -199,7 +247,7 @@ OL.createBreadcrumbList = function () {
}
$
(
'#groupMasterPath'
).
empty
();
if
(
typeof
OL
.
operationGroupMasterId
==
'undefined'
||
OL
.
operationGroupMasterId
==
0
)
{
if
(
typeof
OL
.
operationGroupMasterId
==
=
'undefined'
||
OL
.
operationGroupMasterId
==
0
)
{
$
(
'#groupMasterPath'
).
append
(
'<li class="breadcrumb-item"><a href="#" class="text-decoration-none text-dark">'
+
COMMON
.
getMsg
(
'all'
)
+
'</a></li>'
);
}
else
{
let
treeList
=
[];
...
...
@@ -462,6 +510,7 @@ OL.sendOperation = function (operationId, operationType, reportType, enableAddRe
let
params
=
{};
params
.
sid
=
COMMON
.
getSid
();
params
.
operationId
=
operationId
;
params
.
returnUrl
=
CONSTANT
.
URL
.
WEB
.
BASE
+
CONSTANT
.
URL
.
WEB
.
OPERATION_LIST
;
const
url
=
OL
.
createUrlOfOperation
(
enableAddReport
,
reportType
);
COMMON
.
postCommunication
(
url
,
params
);
};
...
...
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