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
0457bca1
Commit
0457bca1
authored
Nov 11, 2022
by
Takumi Imai
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ファイルコメント追加
parent
f4b02a86
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
121 additions
and
77 deletions
+121
-77
abweb/js/dashboardSetting/dashboardSetting.js
+36
-24
abweb/js/login/login.js
+0
-0
abweb/js/notificationContent/notificationContent.js
+35
-27
abweb/js/operationSelect/operationSelect.js
+26
-21
abweb/js/pdfPrint/pdfPrint.js
+5
-1
abweb/js/pushMessageDetail/pushMessageDetail.js
+5
-0
abweb/js/reportForm/reportForm.js
+4
-1
abweb/js/reportList/reportList.js
+5
-1
abweb/js/sendMessage/sendMessage.js
+1
-1
abweb/js/setting/settings.js
+4
-1
No files found.
abweb/js/dashboardSetting/dashboardSetting.js
View file @
0457bca1
/**
* Dashboard Setting js in dashboard.html
*
* @since
1.0 check web
* @since
cms:1.4.3.2&1.4.3.3 web:1.0
*/
var
DashboardSetting
=
{};
DashboardSetting
.
changeSettingCallback
=
function
()
{};
DashboardSetting
.
changeSettingCallback
=
function
()
{};
/**
* Html element array, map with json key from setting data API
...
...
@@ -27,33 +27,33 @@ DashboardSetting.defaultSetting = {
continousWork
:
1
,
warningReport
:
1
,
dashboardHome
:
0
,
}
}
;
/** dummy setting json reponse */
DashboardSetting
.
dummySettingJson
=
{
dashboardSettingList
:
[
{
"id"
:
1
,
"settingName"
:
"New Report"
,
"settingValue"
:
1
id
:
1
,
settingName
:
'New Report'
,
settingValue
:
1
,
},
{
"id"
:
2
,
"settingName"
:
"Continous Work"
,
"settingValue"
:
1
id
:
2
,
settingName
:
'Continous Work'
,
settingValue
:
1
,
},
{
"id"
:
3
,
"settingName"
:
"Warning Report"
,
"settingValue"
:
1
id
:
3
,
settingName
:
'Warning Report'
,
settingValue
:
1
,
},
{
"id"
:
4
,
"settingName"
:
"Dashboard Home"
,
"settingValue"
:
0
}
id
:
4
,
settingName
:
'Dashboard Home'
,
settingValue
:
0
,
}
,
],
}
}
;
/**
* get setting data from cms
...
...
@@ -64,14 +64,18 @@ DashboardSetting.getSettingData = function (callback) {
sid
:
COMMON
.
getSid
(),
};
const
url
=
DashboardSetting
.
baseApiUrl
;
COMMON
.
cmsAjax
(
url
,
param
,
false
,
function
(
json
)
{
COMMON
.
cmsAjax
(
url
,
param
,
false
,
function
(
json
)
{
let
settings
=
{};
//map id with key when save setting
const
mapKeys
=
{
1
:
'newReport'
,
2
:
'continousWork'
,
3
:
'warningReport'
,
4
:
'dashboardHome'
4
:
'dashboardHome'
,
};
if
(
json
&&
json
.
dashboardSettingList
)
{
for
(
const
item
of
json
.
dashboardSettingList
)
{
...
...
@@ -84,9 +88,11 @@ DashboardSetting.getSettingData = function (callback) {
if
(
callback
)
{
callback
(
settings
);
}
},
function
()
{
},
function
()
{
console
.
log
(
'DashboardSetting.getSettingData error'
);
});
},
);
};
/**
...
...
@@ -123,15 +129,21 @@ DashboardSetting.saveSetting = function () {
param
[
key
]
=
element
.
enabled
?
1
:
0
;
}
const
url
=
COMMON
.
format
(
ClientData
.
conf_checkApiUrl
(),
ClientData
.
userInfo_accountPath
())
+
CONSTANT
.
URL
.
CMS
.
API
.
SAVE_DASHBOARD_SETTING
;
COMMON
.
cmsAjax
(
url
,
param
,
false
,
function
(
json
)
{
COMMON
.
cmsAjax
(
url
,
param
,
false
,
function
(
json
)
{
DashboardSetting
.
closeModal
();
if
(
DashboardSetting
.
changeSettingCallback
&&
typeof
DashboardSetting
.
changeSettingCallback
===
'function'
)
{
DashboardSetting
.
changeSettingCallback
();
}
},
function
()
{
},
function
()
{
console
.
log
(
'DashboardSetting.saveSetting error'
);
DashboardSetting
.
closeModal
();
});
},
);
};
/**
...
...
abweb/js/login/login.js
View file @
0457bca1
This diff is collapsed.
Click to expand it.
abweb/js/notificationContent/notificationContent.js
View file @
0457bca1
/**
* Operation Select js in operationSelect.html
*
* @since
1.0 check web
* @since
cms:1.4.3.2&1.4.3.3 web:1.0
*/
var
NotificationSelect
=
{};
NotificationSelect
.
nameSelected
=
""
;
NotificationSelect
.
valueSelected
=
""
;
NotificationSelect
.
nameSelected
=
''
;
NotificationSelect
.
valueSelected
=
''
;
/**
* default operation select data JSON
*/
...
...
@@ -21,16 +21,22 @@ NotificationSelect.getNotificationSelectData = function (callback) {
sid
:
COMMON
.
getSid
(),
};
const
url
=
COMMON
.
format
(
ClientData
.
conf_checkApiUrl
(),
ClientData
.
userInfo_accountPath
())
+
CONSTANT
.
URL
.
CMS
.
API
.
PUSH_MESSAGE_TEMPLATE
;
COMMON
.
cmsAjax
(
url
,
param
,
false
,
function
(
json
)
{
COMMON
.
cmsAjax
(
url
,
param
,
false
,
function
(
json
)
{
if
(
callback
)
{
callback
(
json
);
}
},
function
()
{
},
function
()
{
console
.
log
(
'NotificationSelect.getNotificationSelectData error'
);
if
(
callback
)
{
callback
(
NotificationSelect
.
defaultNotificationSelectJson
);
}
});
},
);
};
/**
...
...
@@ -48,7 +54,7 @@ NotificationSelect.selectOperationClick = function () {
/**
* init data, action when screen onload
*/
NotificationSelect
.
init
=
function
(
selectedCallback
)
{
NotificationSelect
.
init
=
function
(
selectedCallback
)
{
NotificationSelect
.
getNotificationSelectData
(
function
(
data
)
{
if
(
typeof
data
===
'undefined'
||
data
==
null
)
return
;
NotificationSelect
.
createNotificationSelectList
(
data
.
pushMessageTemplate
);
...
...
@@ -61,24 +67,29 @@ NotificationSelect.selectOperationClick = function () {
* Implement notification select html
* @returns
*/
NotificationSelect
.
createNotificationSelectList
=
function
(
pushMessageTemplate
)
{
$
(
"#notificationSelectList"
).
empty
();
NotificationSelect
.
createNotificationSelectList
=
function
(
pushMessageTemplate
)
{
$
(
'#notificationSelectList'
).
empty
();
if
(
typeof
pushMessageTemplate
===
'undefined'
||
pushMessageTemplate
.
length
<
1
)
return
;
let
classSelected
=
"selected"
;
let
classSelected
=
'selected'
;
for
(
let
i
=
0
;
i
<
pushMessageTemplate
.
length
;
i
++
)
{
let
divName
=
$
(
"<div class='pl-5 py-3 h-100 w-100 align-self-center select-label'>"
+
pushMessageTemplate
[
i
].
name
+
"</div>"
);
let
divIcon
=
$
(
"<div class='flex-shrink-1 mx-3 align-self-center'>"
+
"<button class='btn btn-link border collapsed' type='button' data-toggle='collapse' data-target='#collapse"
+
i
+
"' aria-expanded='true' aria-controls='collapse"
+
i
+
"'>"
+
"<div class='arrow-icon'></div>"
+
"</button></div>"
);
let
divName
=
$
(
"<div class='pl-5 py-3 h-100 w-100 align-self-center select-label'>"
+
pushMessageTemplate
[
i
].
name
+
'</div>'
);
let
divIcon
=
$
(
"<div class='flex-shrink-1 mx-3 align-self-center'>"
+
"<button class='btn btn-link border collapsed' type='button' data-toggle='collapse' data-target='#collapse"
+
i
+
"' aria-expanded='true' aria-controls='collapse"
+
i
+
"'>"
+
"<div class='arrow-icon'></div>"
+
'</button></div>'
,
);
let
ahrefName
=
$
(
"<a href='#' class='d-flex text-decoration-none'></a>"
);
let
divParentName
=
$
(
"<div class='card mb-2 "
+
classSelected
+
"' id='heading"
+
i
+
"'></div>"
);
classSelected
=
""
;
classSelected
=
''
;
let
divValue
=
$
(
"<div id='collapse"
+
i
+
"' class='collapse' aria-labelledby='heading"
+
i
+
"' data-parent='#accordion"
+
i
+
"'></div>"
);
let
divBodyValue
=
$
(
"<div class='card-body'>"
+
pushMessageTemplate
[
i
].
value
+
"</div>"
);
let
divBodyValue
=
$
(
"<div class='card-body'>"
+
pushMessageTemplate
[
i
].
value
+
'</div>'
);
let
messageli
=
$
(
"<li class='accordion' id='accordion"
+
i
+
"'></li>"
);
...
...
@@ -88,28 +99,25 @@ NotificationSelect.selectOperationClick = function () {
divValue
.
append
(
divBodyValue
);
messageli
.
append
(
divParentName
);
messageli
.
append
(
divValue
);
if
(
i
==
0
)
{
if
(
i
==
0
)
{
NotificationSelect
.
nameSelected
=
pushMessageTemplate
[
i
].
name
;
NotificationSelect
.
valueSelected
=
pushMessageTemplate
[
i
].
value
;
}
$
(
"#notificationSelectList"
).
append
(
messageli
);
$
(
'#notificationSelectList'
).
append
(
messageli
);
}
}
};
/**
* handle click event of select button
*/
NotificationSelect
.
onClickTempalte
=
function
()
{
NotificationSelect
.
onClickTempalte
=
function
()
{
NotificationSelect
.
chooseTemplate
();
};
/**
* Get operation select and call back function in main page
*/
NotificationSelect
.
chooseTemplate
=
function
()
{
NotificationSelect
.
chooseTemplate
=
function
()
{
let
param
=
{};
param
.
nameSelected
=
NotificationSelect
.
nameSelected
;
param
.
valueSelected
=
NotificationSelect
.
valueSelected
;
...
...
@@ -122,6 +130,6 @@ NotificationSelect.selectOperationClick = function () {
/**
* close setting dialog
*/
NotificationSelect
.
closeModal
=
function
()
{
NotificationSelect
.
closeModal
=
function
()
{
$
(
'#select-template-modal .close'
).
click
();
};
abweb/js/operationSelect/operationSelect.js
View file @
0457bca1
/**
* Operation Select js in operationSelect.html
*
* @since
1.0 check web
* @since
cms:1.4.3.2&1.4.3.3 web:1.0
*/
var
OperationSelect
=
{};
OperationSelect
.
changeSelectCallback
=
function
()
{};
OperationSelect
.
changeSelectCallback
=
function
()
{};
OperationSelect
.
operationIdSelected
=
""
;
OperationSelect
.
operationNameSelected
=
""
;
OperationSelect
.
operationIdSelected
=
''
;
OperationSelect
.
operationNameSelected
=
''
;
/**
* default operation select data JSON
...
...
@@ -23,16 +23,22 @@ OperationSelect.getOperationSelectData = function (callback) {
sid
:
COMMON
.
getSid
(),
};
const
url
=
COMMON
.
format
(
ClientData
.
conf_checkApiUrl
(),
ClientData
.
userInfo_accountPath
())
+
CONSTANT
.
URL
.
CMS
.
API
.
OPERATION_SELECT
;
COMMON
.
cmsAjax
(
url
,
param
,
false
,
function
(
json
)
{
COMMON
.
cmsAjax
(
url
,
param
,
false
,
function
(
json
)
{
if
(
callback
)
{
callback
(
json
);
}
},
function
()
{
},
function
()
{
console
.
log
(
'OperationSelect.getOperationSelectData error'
);
if
(
callback
)
{
callback
(
OperationSelect
.
defaultOperationSelectJson
);
}
});
},
);
};
/**
...
...
@@ -63,48 +69,47 @@ OperationSelect.init = function (selectedCallback) {
* Implement operation select html
* @returns
*/
OperationSelect
.
createOperationSelectList
=
function
(
operationList
)
{
$
(
"#operationSelectList"
).
empty
();
OperationSelect
.
createOperationSelectList
=
function
(
operationList
)
{
$
(
'#operationSelectList'
).
empty
();
if
(
typeof
operationList
===
'undefined'
||
operationList
.
length
<
1
)
return
;
for
(
let
i
=
0
;
i
<
operationList
.
length
;
i
++
)
{
let
messageli
=
$
(
"<li class='card mb-2' name = 'operationId_"
+
operationList
[
i
].
operationId
+
"' ></li>"
);
let
ahrefRequiredFlg
=
$
(
"<a href='#' class='d-block px-5 py-3 text-decoration-none select-label' data-key='"
+
operationList
[
i
].
operationId
+
"' data-name='"
+
operationList
[
i
].
operationName
+
"' ></a>"
);
let
divText
=
$
(
"<div class='fs-12 text-truncate d-block'>"
+
operationList
[
i
].
operationName
+
"</div>"
);
let
ahrefRequiredFlg
=
$
(
"<a href='#' class='d-block px-5 py-3 text-decoration-none select-label' data-key='"
+
operationList
[
i
].
operationId
+
"' data-name='"
+
operationList
[
i
].
operationName
+
"' ></a>"
,
);
let
divText
=
$
(
"<div class='fs-12 text-truncate d-block'>"
+
operationList
[
i
].
operationName
+
'</div>'
);
ahrefRequiredFlg
.
append
(
divText
);
messageli
.
append
(
ahrefRequiredFlg
);
$
(
"#operationSelectList"
).
append
(
messageli
);
$
(
'#operationSelectList'
).
append
(
messageli
);
}
$
(
"#operationSelectList :first-child"
).
addClass
(
"selected"
);
}
$
(
'#operationSelectList :first-child'
).
addClass
(
'selected'
);
};
/**
* handle click event of select button
*/
OperationSelect
.
onClickSelect
=
function
()
{
OperationSelect
.
onClickSelect
=
function
()
{
OperationSelect
.
chooseOperationSelect
();
};
/**
* Get operation select and call back function in main page
*/
OperationSelect
.
chooseOperationSelect
=
function
()
{
OperationSelect
.
chooseOperationSelect
=
function
()
{
let
param
=
{};
param
.
operationIdSelected
=
OperationSelect
.
operationIdSelected
;
param
.
operationNameSelected
=
OperationSelect
.
operationNameSelected
;
OperationSelect
.
closeModal
();
if
(
OperationSelect
.
changeSelectCallback
&&
typeof
OperationSelect
.
changeSelectCallback
===
'function'
)
{
OperationSelect
.
changeSelectCallback
(
param
.
operationIdSelected
,
param
.
operationNameSelected
);
OperationSelect
.
changeSelectCallback
(
param
.
operationIdSelected
,
param
.
operationNameSelected
);
}
};
/**
* close setting dialog
*/
OperationSelect
.
closeModal
=
function
()
{
OperationSelect
.
closeModal
=
function
()
{
$
(
'#task-list-modal .close'
).
click
();
};
abweb/js/pdfPrint/pdfPrint.js
View file @
0457bca1
// PDF PRINT function js
/**
* PDF PRINT function js
*
* @since cms:1.4.3.2&1.4.3.3 web:1.0
**/
var
PP
=
{};
...
...
abweb/js/pushMessageDetail/pushMessageDetail.js
View file @
0457bca1
/**
* js for pushing detailed messages
* @since cms:1.4.3.2&1.4.3.3 web:1.0
*/
var
PushMessageDetail
=
{};
PushMessageDetail
.
baseApiUrl
=
COMMON
.
format
(
ClientData
.
conf_checkApiUrl
(),
ClientData
.
userInfo_accountPath
())
+
CONSTANT
.
URL
.
CMS
.
API
.
PUSH_MESSAGE_DETAIL
;
...
...
abweb/js/reportForm/reportForm.js
View file @
0457bca1
// ReportForm function js
/**
* ReportForm function js
* @since cms:1.4.3.2&1.4.3.3 web:1.0
*/
var
RF
=
{};
...
...
abweb/js/reportList/reportList.js
View file @
0457bca1
// ReportList function js
/**
* ReportList function js
*
* @since cms:1.4.3.2&1.4.3.3 web:1.0
**/
var
RL
=
{};
...
...
abweb/js/sendMessage/sendMessage.js
View file @
0457bca1
/**
* Send Message js in sendMessage.html
*
* @since
1.0 check web
* @since
cms:1.4.3.2&1.4.3.3 web:1.0
*/
var
SendMessage
=
{};
...
...
abweb/js/setting/settings.js
View file @
0457bca1
/// Account Settings function js
/**
* Account Settings function js
* @since cms:1.4.3.2&1.4.3.3 web:1.0
**/
var
SETTINGS
=
{};
...
...
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