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
611a9940
Commit
611a9940
authored
Nov 18, 2022
by
Kang Donghun
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'feature/1.0_check_web_dev_imai' into 'feature/1.0_check_web_dev'
Feature/1.0 check web dev imai See merge request
!78
parents
0639f7a5
8c4ec6ae
Hide whitespace changes
Inline
Side-by-side
Showing
12 changed files
with
1756 additions
and
1697 deletions
+1756
-1697
abweb/common/js/common.js
+1331
-1320
abweb/html/accountSetting.html
+58
-56
abweb/html/dashboard.html
+24
-21
abweb/html/index.html
+81
-79
abweb/html/pdfPrint.html
+8
-6
abweb/html/pickup.html
+94
-92
abweb/html/pushMessageDetail.html
+34
-32
abweb/html/pushMessageList.html
+18
-16
abweb/html/reportForm.html
+16
-6
abweb/html/reportList.html
+7
-5
abweb/html/sendMessage.html
+44
-42
abweb/js/reportForm/reportForm.js
+41
-22
No files found.
abweb/common/js/common.js
View file @
611a9940
...
@@ -11,1108 +11,1121 @@
...
@@ -11,1108 +11,1121 @@
*
*
* @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
COMMON
=
{};
var
COMMON
=
{};
COMMON
.
loginCheckPageList
=
[
CONSTANT
.
PAGE_NAME
.
DEFAULT
,
CONSTANT
.
PAGE_NAME
.
DASHBOARD
,
CONSTANT
.
PAGE_NAME
.
REPORT_LIST
,
CONSTANT
.
PAGE_NAME
.
REPORT_FORM
,
COMMON
.
loginCheckPageList
=
[
CONSTANT
.
PAGE_NAME
.
MESSAGE_DETAIL
,
CONSTANT
.
PAGE_NAME
.
MESSAGE_LIST
,
CONSTANT
.
PAGE_NAME
.
SEND_MESSAGE
,
CONSTANT
.
PAGE_NAME
.
SETTING
,
CONSTANT
.
PAGE_NAME
.
DEFAULT
,
CONSTANT
.
PAGE_NAME
.
PICKUP
,
CONSTANT
.
PAGE_NAME
.
PDF_PRINT
];
CONSTANT
.
PAGE_NAME
.
DASHBOARD
,
CONSTANT
.
PAGE_NAME
.
REPORT_LIST
,
COMMON
.
hasErrorKey
=
'AVW_HASERR'
;
CONSTANT
.
PAGE_NAME
.
REPORT_FORM
,
$
(
document
).
ready
(
function
()
{
CONSTANT
.
PAGE_NAME
.
MESSAGE_DETAIL
,
const
checkUrl
=
location
.
href
.
substring
(
location
.
href
.
lastIndexOf
(
'/'
)
+
1
,
location
.
href
.
lastIndexOf
(
".html"
));
CONSTANT
.
PAGE_NAME
.
MESSAGE_LIST
,
if
(
COMMON
.
loginCheckPageList
.
includes
(
checkUrl
))
{
CONSTANT
.
PAGE_NAME
.
SEND_MESSAGE
,
if
(
!
COMMON
.
checkLogin
(
CONSTANT
.
PAGE_NAME
.
LOGIN
)){
CONSTANT
.
PAGE_NAME
.
SETTING
,
return
;
CONSTANT
.
PAGE_NAME
.
PICKUP
,
}
CONSTANT
.
PAGE_NAME
.
PDF_PRINT
,
}
];
})
/**
COMMON
.
hasErrorKey
=
'AVW_HASERR'
;
* page transition without outputting a warning message
$
(
document
).
ready
(
function
()
{
* @param {*} url
const
checkUrl
=
location
.
href
.
substring
(
location
.
href
.
lastIndexOf
(
'/'
)
+
1
,
location
.
href
.
lastIndexOf
(
'.html'
));
*/
if
(
COMMON
.
loginCheckPageList
.
includes
(
checkUrl
))
{
COMMON
.
avwScreenMove
=
function
(
url
)
{
if
(
!
COMMON
.
checkLogin
(
CONSTANT
.
PAGE_NAME
.
LOGIN
))
{
COMMON
.
showLoading
();
return
;
window
.
onbeforeunload
=
null
;
}
window
.
location
=
url
;
}
};
});
/**
/**
* page transition without outputting a warning message
* show loading dialog
* @param {*} url
* show msg by key
*/
*
COMMON
.
avwScreenMove
=
function
(
url
)
{
* @param {String} key
COMMON
.
showLoading
();
*/
window
.
onbeforeunload
=
null
;
COMMON
.
showLoading
=
function
()
{
window
.
location
=
url
;
console
.
log
(
"kdh check showLoading"
);
};
$
(
'#loader'
).
css
(
{
'width'
:
$
(
window
).
width
(),
/**
'height'
:
$
(
window
).
height
()
* show loading dialog
});
* show msg by key
document
.
getElementById
(
'loader'
).
style
.
display
=
'block'
;
*
};
* @param {String} key
*/
/**
COMMON
.
showLoading
=
function
()
{
* close loading
console
.
log
(
'kdh check showLoading'
);
*/
$
(
'#loader'
).
css
({
COMMON
.
closeLoading
=
function
()
{
width
:
$
(
window
).
width
(),
setTimeout
(
function
(){
height
:
$
(
window
).
height
(),
document
.
getElementById
(
'loader'
).
style
.
display
=
'none'
;
});
},
1000
);
document
.
getElementById
(
'loader'
).
style
.
display
=
'block'
;
};
};
/**
/**
* show confirm modal with yes, no buttons
* close loading
* @param {Object} data - Object with {title, message, confirmYes, confirmNo}
*/
* @param {callback} confirmCallback - The callback that handles the confirm button clicked
COMMON
.
closeLoading
=
function
()
{
*/
setTimeout
(
function
()
{
COMMON
.
showConfirmModal
=
function
(
data
,
confirmCallback
)
{
document
.
getElementById
(
'loader'
).
style
.
display
=
'none'
;
if
(
data
)
{
$
(
'#loadingNone'
).
show
();
let
title
=
''
;
},
1000
);
if
(
data
.
title
)
{
};
title
=
data
.
title
;
}
/**
$
(
'#confirm-modal .modal-title'
).
text
(
title
);
* show confirm modal with yes, no buttons
let
message
=
''
;
* @param {Object} data - Object with {title, message, confirmYes, confirmNo}
if
(
data
.
message
)
{
* @param {callback} confirmCallback - The callback that handles the confirm button clicked
message
=
data
.
message
;
*/
}
COMMON
.
showConfirmModal
=
function
(
data
,
confirmCallback
)
{
$
(
'#confirm-modal #msgModel'
).
text
(
message
);
if
(
data
)
{
if
(
data
.
confirmYes
)
{
let
title
=
''
;
$
(
'#confirm-modal #confirmYes'
).
text
(
data
.
confirmYes
);
if
(
data
.
title
)
{
$
(
'#confirm-modal #confirmYes'
).
removeClass
(
'd-none'
);
title
=
data
.
title
;
$
(
'#confirm-modal #confirmYes'
).
off
(
'click'
);
//remove all old click handlers
}
$
(
'#confirm-modal #confirmYes'
).
click
(
function
()
{
$
(
'#confirm-modal .modal-title'
).
text
(
title
);
$
(
'#confirm-modal .close'
).
click
();
let
message
=
''
;
if
(
confirmCallback
)
{
if
(
data
.
message
)
{
//timeout for animation modal close
message
=
data
.
message
;
setTimeout
(
function
()
{
}
confirmCallback
();
$
(
'#confirm-modal #msgModel'
).
text
(
message
);
},
500
);
if
(
data
.
confirmYes
)
{
}
$
(
'#confirm-modal #confirmYes'
).
text
(
data
.
confirmYes
);
});
$
(
'#confirm-modal #confirmYes'
).
removeClass
(
'd-none'
);
}
else
{
$
(
'#confirm-modal #confirmYes'
).
off
(
'click'
);
//remove all old click handlers
$
(
'#confirm-modal #confirmYes'
).
addClass
(
'd-none'
);
$
(
'#confirm-modal #confirmYes'
).
click
(
function
()
{
}
$
(
'#confirm-modal .close'
).
click
();
if
(
data
.
confirmNo
)
{
if
(
confirmCallback
)
{
$
(
'#confirm-modal #confirmNo'
).
text
(
data
.
confirmNo
);
//timeout for animation modal close
$
(
'#confirm-modal #confirmNo'
).
removeClass
(
'd-none'
);
setTimeout
(
function
()
{
}
else
{
confirmCallback
();
$
(
'#confirm-modal #confirmNo'
).
addClass
(
'd-none'
);
},
500
);
}
}
}
});
$
(
'#showConfirmModalButton'
).
click
();
}
else
{
};
$
(
'#confirm-modal #confirmYes'
).
addClass
(
'd-none'
);
}
/**
if
(
data
.
confirmNo
)
{
* Show confirm modal with defaults: title, yes, no
$
(
'#confirm-modal #confirmNo'
).
text
(
data
.
confirmNo
);
* @param {string} messageCode
$
(
'#confirm-modal #confirmNo'
).
removeClass
(
'd-none'
);
* @param {callback} confirmCallback - The callback that handles the confirm button clicked
}
else
{
* @param {Object} options - Object with {titleCode, message, confirmYesCode, confirmNoCode}
$
(
'#confirm-modal #confirmNo'
).
addClass
(
'd-none'
);
*/
}
COMMON
.
showConfirm
=
function
(
messageCode
,
confirmCallback
,
options
=
{})
{
}
const
defaultParams
=
{
$
(
'#showConfirmModalButton'
).
click
();
titleCode
:
'confirmation'
,
};
confirmYesCode
:
'confirmYes'
,
confirmNoCode
:
'confirmNo'
/**
}
* Show confirm modal with defaults: title, yes, no
const
params
=
Object
.
assign
(
defaultParams
,
options
);
* @param {string} messageCode
let
message
=
''
;
* @param {callback} confirmCallback - The callback that handles the confirm button clicked
if
(
messageCode
)
{
* @param {Object} options - Object with {titleCode, message, confirmYesCode, confirmNoCode}
message
=
I18N
.
i18nText
(
messageCode
);
*/
if
(
typeof
message
===
'undefined'
)
{
COMMON
.
showConfirm
=
function
(
messageCode
,
confirmCallback
,
options
=
{})
{
//lang of messageCode undefined, use message or messageCode
const
defaultParams
=
{
if
(
params
.
message
)
{
titleCode
:
'confirmation'
,
message
=
params
.
message
;
confirmYesCode
:
'confirmYes'
,
}
else
{
confirmNoCode
:
'confirmNo'
,
message
=
messageCode
;
};
}
const
params
=
Object
.
assign
(
defaultParams
,
options
);
}
let
message
=
''
;
}
else
if
(
params
.
message
)
{
if
(
messageCode
)
{
message
=
params
.
message
;
message
=
I18N
.
i18nText
(
messageCode
);
}
if
(
typeof
message
===
'undefined'
)
{
let
title
=
I18N
.
i18nText
(
params
.
titleCode
);
//lang of messageCode undefined, use message or messageCode
if
(
params
.
title
)
{
if
(
params
.
message
)
{
title
=
params
.
title
;
message
=
params
.
message
;
}
}
else
{
COMMON
.
showConfirmModal
({
message
=
messageCode
;
message
:
message
,
}
title
:
title
,
}
confirmYes
:
I18N
.
i18nText
(
params
.
confirmYesCode
),
}
else
if
(
params
.
message
)
{
confirmNo
:
I18N
.
i18nText
(
params
.
confirmNoCode
)
message
=
params
.
message
;
},
confirmCallback
);
}
};
let
title
=
I18N
.
i18nText
(
params
.
titleCode
);
if
(
params
.
title
)
{
/**
title
=
params
.
title
;
* show alert message by confirm modal html
}
* @param {String} messageCode
COMMON
.
showConfirmModal
(
* @param {string} titleCode
{
* @param {Object} options - Data Options {message, titleCode, confirmNoCode}
message
:
message
,
*/
title
:
title
,
COMMON
.
showAlert
=
function
(
messageCode
,
titleCode
=
'error'
,
options
=
{})
{
confirmYes
:
I18N
.
i18nText
(
params
.
confirmYesCode
),
const
defaultParams
=
{
confirmNo
:
I18N
.
i18nText
(
params
.
confirmNoCode
),
titleCode
:
titleCode
?
titleCode
:
'error'
,
},
confirmYesCode
:
null
,
confirmCallback
,
confirmNoCode
:
'close'
,
);
}
};
const
params
=
Object
.
assign
(
defaultParams
,
options
);
COMMON
.
showConfirm
(
messageCode
,
null
,
params
);
/**
};
* show alert message by confirm modal html
* @param {String} messageCode
/**
* @param {string} titleCode
* close alert
* @param {Object} options - Data Options {message, titleCode, confirmNoCode}
*/
*/
COMMON
.
alertClose
=
function
()
{
COMMON
.
showAlert
=
function
(
messageCode
,
titleCode
=
'error'
,
options
=
{})
{
$
(
'.alert-overlay'
).
addClass
(
'd-none'
);
const
defaultParams
=
{
$
(
'.alert-area'
).
addClass
(
'd-none'
);
titleCode
:
titleCode
?
titleCode
:
'error'
,
$
(
'body'
).
css
(
'overflow'
,
'visible'
);
confirmYesCode
:
null
,
};
confirmNoCode
:
'close'
,
};
/**
const
params
=
Object
.
assign
(
defaultParams
,
options
);
* go Url page With Current Params
COMMON
.
showConfirm
(
messageCode
,
null
,
params
);
*
};
* ios will remove all web types data when reopen webview
* need add common parameters: app, lang, debug, mobile_flg, isChat, ...
/**
*
* close alert
* @param {String} url
*/
* @param {Object} params
COMMON
.
alertClose
=
function
()
{
*/
$
(
'.alert-overlay'
).
addClass
(
'd-none'
);
COMMON
.
goUrlWithCurrentParams
=
function
(
url
,
params
)
{
$
(
'.alert-area'
).
addClass
(
'd-none'
);
if
(
!
params
)
{
$
(
'body'
).
css
(
'overflow'
,
'visible'
);
location
.
href
=
CONSTANT
.
URL
.
WEB
.
BASE
+
url
;
};
}
/**
const
mixParams
=
Object
.
assign
(
COMMON
.
getUrlParameter
(),
params
);
* go Url page With Current Params
if
(
url
.
includes
(
'?'
))
{
*
location
.
href
=
url
+
'&'
+
new
URLSearchParams
(
mixParams
);
* ios will remove all web types data when reopen webview
}
else
{
* need add common parameters: app, lang, debug, mobile_flg, isChat, ...
location
.
href
=
url
+
'?'
+
new
URLSearchParams
(
mixParams
);
*
}
* @param {String} url
};
* @param {Object} params
*/
/**
COMMON
.
goUrlWithCurrentParams
=
function
(
url
,
params
)
{
* get url parameter
if
(
!
params
)
{
*
location
.
href
=
CONSTANT
.
URL
.
WEB
.
BASE
+
url
;
*/
}
COMMON
.
getUrlParameter
=
function
()
{
var
ret
=
{};
const
mixParams
=
Object
.
assign
(
COMMON
.
getUrlParameter
(),
params
);
if
(
location
.
search
)
{
if
(
url
.
includes
(
'?'
))
{
var
param
=
{};
location
.
href
=
url
+
'&'
+
new
URLSearchParams
(
mixParams
);
location
.
search
}
else
{
.
substring
(
1
)
location
.
href
=
url
+
'?'
+
new
URLSearchParams
(
mixParams
);
.
split
(
'&'
)
}
.
forEach
(
function
(
val
)
{
};
var
kv
=
val
.
split
(
'='
);
param
[
kv
[
0
]]
=
kv
[
1
];
/**
});
* get url parameter
ret
=
param
;
*
}
*/
console
.
log
({
ret
:
ret
});
COMMON
.
getUrlParameter
=
function
()
{
return
ret
;
var
ret
=
{};
};
if
(
location
.
search
)
{
var
param
=
{};
/**
location
.
search
* get sid in local Storage
.
substring
(
1
)
*
.
split
(
'&'
)
*/
.
forEach
(
function
(
val
)
{
COMMON
.
getSid
=
function
()
{
var
kv
=
val
.
split
(
'='
);
return
ClientData
.
userInfo_sid
();
param
[
kv
[
0
]]
=
kv
[
1
];
};
});
ret
=
param
;
/**
}
* cms communication
console
.
log
({
ret
:
ret
});
*
return
ret
;
* @param {String} url
};
* @param {Json} param
* @param {boolean} async
/**
* @param {Object} callback
* get sid in local Storage
* @param {Object} errorCallback
*
* @param {number} type
*/
*/
COMMON
.
getSid
=
function
()
{
COMMON
.
cmsAjax
=
function
(
url
,
param
,
async
=
true
,
callback
,
errorCallback
,
type
)
{
return
ClientData
.
userInfo_sid
();
var
sysSettings
=
new
COMMON
.
sysSetting
();
};
if
(
url
)
{
$
.
ajax
({
/**
type
:
'post'
,
* cms communication
url
:
url
,
*
data
:
param
,
* @param {String} url
dataType
:
type
?
type
:
'json'
,
* @param {Json} param
cache
:
false
,
* @param {boolean} async
async
:
async
,
* @param {Object} callback
crossDomain
:
true
,
* @param {Object} errorCallback
beforeSend
:
function
(
xhr
)
{
* @param {number} type
xhr
.
setRequestHeader
(
'X-AGT-AppId'
,
sysSettings
.
appName
);
*/
xhr
.
setRequestHeader
(
'X-AGT-AppVersion'
,
sysSettings
.
appVersion
);
COMMON
.
cmsAjax
=
function
(
url
,
param
,
async
=
true
,
callback
,
errorCallback
,
type
)
{
},
var
sysSettings
=
new
COMMON
.
sysSetting
();
success
:
function
(
result
)
{
if
(
url
)
{
if
(
type
==
'text'
)
{
$
.
ajax
({
if
(
callback
)
callback
(
result
);
type
:
'post'
,
return
;
url
:
url
,
}
data
:
param
,
if
(
result
.
httpStatus
==
'200'
)
{
dataType
:
type
?
type
:
'json'
,
if
(
callback
)
callback
(
result
);
cache
:
false
,
}
else
if
(
errorCallback
)
{
async
:
async
,
errorCallback
(
result
);
crossDomain
:
true
,
}
else
if
(
result
.
httpStatus
==
'401'
)
{
beforeSend
:
function
(
xhr
)
{
COMMON
.
goUrlWithCurrentParams
(
CONSTANT
.
PAGE_NAME
.
LOGIN
);
xhr
.
setRequestHeader
(
'X-AGT-AppId'
,
sysSettings
.
appName
);
}
else
if
(
result
.
httpStatus
==
'403'
)
{
xhr
.
setRequestHeader
(
'X-AGT-AppVersion'
,
sysSettings
.
appVersion
);
COMMON
.
closeLoading
();
},
COMMON
.
showAlert
(
'errorOccurred'
);
success
:
function
(
result
)
{
}
else
{
if
(
type
==
'text'
)
{
COMMON
.
closeLoading
();
if
(
callback
)
callback
(
result
);
COMMON
.
showAlert
(
result
.
message
);
return
;
}
}
},
if
(
result
.
httpStatus
==
'200'
)
{
error
:
function
(
XMLHttpRequest
,
textStatus
,
errorThrown
)
{
if
(
callback
)
callback
(
result
);
if
(
errorCallback
)
{
}
else
if
(
errorCallback
)
{
errorCallback
(
XMLHttpRequest
,
textStatus
,
errorThrown
);
errorCallback
(
result
);
}
else
{
}
else
if
(
result
.
httpStatus
==
'401'
)
{
COMMON
.
closeLoading
();
COMMON
.
goUrlWithCurrentParams
(
CONSTANT
.
PAGE_NAME
.
LOGIN
);
COMMON
.
showAlert
(
'errorCommunicationFailed'
);
}
else
if
(
result
.
httpStatus
==
'403'
)
{
}
COMMON
.
closeLoading
();
},
COMMON
.
showAlert
(
'errorOccurred'
);
});
}
else
{
}
else
{
COMMON
.
closeLoading
();
if
(
errorCallback
)
{
COMMON
.
showAlert
(
result
.
message
);
errorCallback
();
}
}
else
{
},
COMMON
.
closeLoading
();
error
:
function
(
XMLHttpRequest
,
textStatus
,
errorThrown
)
{
COMMON
.
showAlert
(
'errorOccurred'
);
if
(
errorCallback
)
{
}
errorCallback
(
XMLHttpRequest
,
textStatus
,
errorThrown
);
}
}
else
{
};
COMMON
.
closeLoading
();
COMMON
.
showAlert
(
'errorCommunicationFailed'
);
/**
}
* Check if user is logged in
},
*
});
* @param {boolean} async
}
else
{
*/
if
(
errorCallback
)
{
COMMON
.
checkAuth
=
function
(
async
=
true
)
{
errorCallback
();
let
params
=
{};
}
else
{
console
.
log
(
"kdh check"
);
COMMON
.
closeLoading
();
params
.
sid
=
COMMON
.
getSid
;
COMMON
.
showAlert
(
'errorOccurred'
);
const
url
=
COMMON
.
format
(
ClientData
.
conf_checkApiUrl
(),
ClientData
.
userInfo_accountPath
())
+
CONSTANT
.
URL
.
CMS
.
API
.
AUTH_SESSION
;
}
COMMON
.
cmsAjax
(
url
,
params
,
async
,
null
,
function
()
{
}
COMMON
.
goUrlWithCurrentParams
(
CONSTANT
.
PAGE_NAME
.
LOGIN
);
};
});
};
/**
* Check if user is logged in
var
ClientData
=
{
*
// Local :userInfo_account path:String
* @param {boolean} async
userInfo_accountPath
:
function
(
data
)
{
*/
if
(
arguments
.
length
>
0
)
{
COMMON
.
checkAuth
=
function
(
async
=
true
)
{
COMMON
.
userSetting
().
set
(
CONSTANT
.
KEYS
.
userInfo_accountPath
,
data
);
let
params
=
{};
}
else
{
console
.
log
(
'kdh check'
);
return
COMMON
.
userSetting
().
get
(
CONSTANT
.
KEYS
.
userInfo_accountPath
);
params
.
sid
=
COMMON
.
getSid
;
}
const
url
=
COMMON
.
format
(
ClientData
.
conf_checkApiUrl
(),
ClientData
.
userInfo_accountPath
())
+
CONSTANT
.
URL
.
CMS
.
API
.
AUTH_SESSION
;
},
COMMON
.
cmsAjax
(
url
,
params
,
async
,
null
,
function
()
{
COMMON
.
goUrlWithCurrentParams
(
CONSTANT
.
PAGE_NAME
.
LOGIN
);
// Local :userInfo_loginID:String
});
userInfo_loginId
:
function
(
data
)
{
};
if
(
arguments
.
length
>
0
)
{
COMMON
.
userSetting
().
set
(
CONSTANT
.
KEYS
.
userInfo_loginId
,
data
);
var
ClientData
=
{
}
else
{
// Local :userInfo_account path:String
return
COMMON
.
userSetting
().
get
(
CONSTANT
.
KEYS
.
userInfo_loginId
);
userInfo_accountPath
:
function
(
data
)
{
}
if
(
arguments
.
length
>
0
)
{
},
COMMON
.
userSetting
().
set
(
CONSTANT
.
KEYS
.
userInfo_accountPath
,
data
);
}
else
{
// Local :userInfo_Account Information Storage Flag:Char(Y:Available, N:Not Available)
return
COMMON
.
userSetting
().
get
(
CONSTANT
.
KEYS
.
userInfo_accountPath
);
userInfo_rememberLogin
:
function
(
data
)
{
}
if
(
arguments
.
length
>
0
)
{
},
COMMON
.
userSetting
().
set
(
CONSTANT
.
KEYS
.
userInfo_rememberLogin
,
data
);
}
else
{
// Local :userInfo_loginID:String
return
COMMON
.
userSetting
().
get
(
CONSTANT
.
KEYS
.
userInfo_rememberLogin
);
userInfo_loginId
:
function
(
data
)
{
}
if
(
arguments
.
length
>
0
)
{
},
COMMON
.
userSetting
().
set
(
CONSTANT
.
KEYS
.
userInfo_loginId
,
data
);
}
else
{
// Session :userInfo_loginID:String
return
COMMON
.
userSetting
().
get
(
CONSTANT
.
KEYS
.
userInfo_loginId
);
userInfo_loginId_session
:
function
(
data
)
{
}
if
(
arguments
.
length
>
0
)
{
},
SessionStorageUtils
.
set
(
CONSTANT
.
KEYS
.
userInfo_loginId
,
data
);
}
else
{
// Local :userInfo_Account Information Storage Flag:Char(Y:Available, N:Not Available)
return
SessionStorageUtils
.
get
(
CONSTANT
.
KEYS
.
userInfo_loginId
);
userInfo_rememberLogin
:
function
(
data
)
{
}
if
(
arguments
.
length
>
0
)
{
},
COMMON
.
userSetting
().
set
(
CONSTANT
.
KEYS
.
userInfo_rememberLogin
,
data
);
}
else
{
// Session :userInfo_account path:String
return
COMMON
.
userSetting
().
get
(
CONSTANT
.
KEYS
.
userInfo_rememberLogin
);
userInfo_accountPath_session
:
function
(
data
)
{
}
if
(
arguments
.
length
>
0
)
{
},
SessionStorageUtils
.
set
(
CONSTANT
.
KEYS
.
userInfo_accountPath
,
data
);
}
else
{
// Session :userInfo_loginID:String
return
SessionStorageUtils
.
get
(
CONSTANT
.
KEYS
.
userInfo_accountPath
);
userInfo_loginId_session
:
function
(
data
)
{
}
if
(
arguments
.
length
>
0
)
{
},
SessionStorageUtils
.
set
(
CONSTANT
.
KEYS
.
userInfo_loginId
,
data
);
}
else
{
// Session
return
SessionStorageUtils
.
get
(
CONSTANT
.
KEYS
.
userInfo_loginId
);
userInfo_userName
:
function
(
data
)
{
}
if
(
arguments
.
length
>
0
)
{
},
SessionStorageUtils
.
set
(
CONSTANT
.
KEYS
.
userInfo_userName
,
data
);
}
else
{
// Session :userInfo_account path:String
return
SessionStorageUtils
.
get
(
CONSTANT
.
KEYS
.
userInfo_userName
);
userInfo_accountPath_session
:
function
(
data
)
{
}
if
(
arguments
.
length
>
0
)
{
},
SessionStorageUtils
.
set
(
CONSTANT
.
KEYS
.
userInfo_accountPath
,
data
);
}
else
{
// Local :userInfo_Last login date and time:Datetime
return
SessionStorageUtils
.
get
(
CONSTANT
.
KEYS
.
userInfo_accountPath
);
userInfo_lastLoginTime
:
function
(
data
)
{
}
if
(
arguments
.
length
>
0
)
{
},
COMMON
.
operateData
(
arguments
,
CONSTANT
.
KEYS
.
userInfo_lastLoginTime
,
undefined
);
}
else
{
// Session
return
COMMON
.
operateData
(
arguments
,
CONSTANT
.
KEYS
.
userInfo_lastLoginTime
,
undefined
);
userInfo_userName
:
function
(
data
)
{
}
if
(
arguments
.
length
>
0
)
{
},
SessionStorageUtils
.
set
(
CONSTANT
.
KEYS
.
userInfo_userName
,
data
);
}
else
{
// Session:userInfo_SessionID:String
return
SessionStorageUtils
.
get
(
CONSTANT
.
KEYS
.
userInfo_userName
);
userInfo_sid
:
function
(
data
)
{
}
if
(
arguments
.
length
>
0
)
{
},
SessionStorageUtils
.
set
(
CONSTANT
.
KEYS
.
userInfo_sid
,
data
);
// COMMON.userSetting().set(CONSTANT.KEYS.userInfo_sid, data);
// Local :userInfo_Last login date and time:Datetime
}
else
{
userInfo_lastLoginTime
:
function
(
data
)
{
// return COMMON.userSetting().get(CONSTANT.KEYS.userInfo_sid);
if
(
arguments
.
length
>
0
)
{
if
(
COMMON
.
userSession
())
{
COMMON
.
operateData
(
arguments
,
CONSTANT
.
KEYS
.
userInfo_lastLoginTime
,
undefined
);
return
SessionStorageUtils
.
get
(
CONSTANT
.
KEYS
.
userInfo_sid
);
}
else
{
}
return
COMMON
.
operateData
(
arguments
,
CONSTANT
.
KEYS
.
userInfo_lastLoginTime
,
undefined
);
return
null
;
}
}
},
},
// Session:userInfo_SessionID:String
// Local: userInfo_SessionID:String
userInfo_sid
:
function
(
data
)
{
userInfo_sid_local
:
function
(
data
)
{
if
(
arguments
.
length
>
0
)
{
if
(
arguments
.
length
>
0
)
{
SessionStorageUtils
.
set
(
CONSTANT
.
KEYS
.
userInfo_sid
,
data
);
COMMON
.
userSetting
().
set
(
CONSTANT
.
KEYS
.
userInfo_sid_local
,
data
);
// COMMON.userSetting().set(CONSTANT.KEYS.userInfo_sid, data);
}
else
{
}
else
{
return
COMMON
.
userSetting
().
get
(
CONSTANT
.
KEYS
.
userInfo_sid_local
);
// return COMMON.userSetting().get(CONSTANT.KEYS.userInfo_sid);
}
if
(
COMMON
.
userSession
())
{
},
return
SessionStorageUtils
.
get
(
CONSTANT
.
KEYS
.
userInfo_sid
);
}
// Local: Session ID backup
return
null
;
userInfo_sid_local_bak
:
function
(
data
)
{
}
if
(
arguments
.
length
>
0
)
{
},
COMMON
.
userSetting
().
set
(
CONSTANT
.
KEYS
.
userInfo_sid_bak
,
data
);
}
else
{
// Local: userInfo_SessionID:String
return
COMMON
.
userSetting
().
get
(
CONSTANT
.
KEYS
.
userInfo_sid_bak
);
userInfo_sid_local
:
function
(
data
)
{
}
if
(
arguments
.
length
>
0
)
{
},
COMMON
.
userSetting
().
set
(
CONSTANT
.
KEYS
.
userInfo_sid_local
,
data
);
}
else
{
// Session :Notification information (pushInfo)_Number of new arrivals:Interger
return
COMMON
.
userSetting
().
get
(
CONSTANT
.
KEYS
.
userInfo_sid_local
);
pushInfo_newMsgNumber
:
function
(
data
)
{
}
if
(
arguments
.
length
>
0
)
{
},
SessionStorageUtils
.
set
(
CONSTANT
.
KEYS
.
pushInfo_newMsgNumber
,
data
);
}
else
{
// Local: Session ID backup
return
SessionStorageUtils
.
get
(
CONSTANT
.
KEYS
.
pushInfo_newMsgNumber
);
userInfo_sid_local_bak
:
function
(
data
)
{
}
if
(
arguments
.
length
>
0
)
{
},
COMMON
.
userSetting
().
set
(
CONSTANT
.
KEYS
.
userInfo_sid_bak
,
data
);
}
else
{
// apiUrl
return
COMMON
.
userSetting
().
get
(
CONSTANT
.
KEYS
.
userInfo_sid_bak
);
conf_apiUrl
:
function
(
data
)
{
}
if
(
arguments
.
length
>
0
)
{
},
SessionStorageUtils
.
set
(
CONSTANT
.
KEYS
.
conf_apiUrl
,
data
);
}
else
{
// Session :Notification information (pushInfo)_Number of new arrivals:Interger
return
SessionStorageUtils
.
get
(
CONSTANT
.
KEYS
.
conf_apiUrl
);
pushInfo_newMsgNumber
:
function
(
data
)
{
}
if
(
arguments
.
length
>
0
)
{
},
SessionStorageUtils
.
set
(
CONSTANT
.
KEYS
.
pushInfo_newMsgNumber
,
data
);
}
else
{
// api login url
return
SessionStorageUtils
.
get
(
CONSTANT
.
KEYS
.
pushInfo_newMsgNumber
);
conf_apiLoginUrl
:
function
(
data
)
{
}
if
(
arguments
.
length
>
0
)
{
},
SessionStorageUtils
.
set
(
CONSTANT
.
KEYS
.
conf_apiLoginUrl
,
data
);
}
else
{
// apiUrl
return
SessionStorageUtils
.
get
(
CONSTANT
.
KEYS
.
conf_apiLoginUrl
);
conf_apiUrl
:
function
(
data
)
{
}
if
(
arguments
.
length
>
0
)
{
},
SessionStorageUtils
.
set
(
CONSTANT
.
KEYS
.
conf_apiUrl
,
data
);
}
else
{
//check api url
return
SessionStorageUtils
.
get
(
CONSTANT
.
KEYS
.
conf_apiUrl
);
conf_checkApiUrl
:
function
(
data
)
{
}
if
(
arguments
.
length
>
0
)
{
},
SessionStorageUtils
.
set
(
CONSTANT
.
KEYS
.
conf_checkApiUrl
,
data
);
}
else
{
// api login url
return
SessionStorageUtils
.
get
(
CONSTANT
.
KEYS
.
conf_checkApiUrl
);
conf_apiLoginUrl
:
function
(
data
)
{
}
if
(
arguments
.
length
>
0
)
{
},
SessionStorageUtils
.
set
(
CONSTANT
.
KEYS
.
conf_apiLoginUrl
,
data
);
}
else
{
// api resorce dl url
return
SessionStorageUtils
.
get
(
CONSTANT
.
KEYS
.
conf_apiLoginUrl
);
conf_apiResourceDlUrl
:
function
(
data
)
{
}
if
(
arguments
.
length
>
0
)
{
},
SessionStorageUtils
.
set
(
CONSTANT
.
KEYS
.
conf_apiResourceDlUrl
,
data
);
}
else
{
//check api url
return
SessionStorageUtils
.
get
(
CONSTANT
.
KEYS
.
conf_apiResourceDlUrl
);
conf_checkApiUrl
:
function
(
data
)
{
}
if
(
arguments
.
length
>
0
)
{
},
SessionStorageUtils
.
set
(
CONSTANT
.
KEYS
.
conf_checkApiUrl
,
data
);
}
else
{
// Local :userInfo_password_skip_datetime:Datetime
return
SessionStorageUtils
.
get
(
CONSTANT
.
KEYS
.
conf_checkApiUrl
);
userInfo_pwdSkipDt
:
function
(
data
)
{
}
if
(
arguments
.
length
>
0
)
{
},
COMMON
.
operateData
(
arguments
,
CONSTANT
.
KEYS
.
userInfo_pwdSkipDt
,
undefined
);
}
else
{
// api resorce dl url
return
COMMON
.
operateData
(
arguments
,
CONSTANT
.
KEYS
.
userInfo_pwdSkipDt
,
undefined
);
conf_apiResourceDlUrl
:
function
(
data
)
{
}
if
(
arguments
.
length
>
0
)
{
},
SessionStorageUtils
.
set
(
CONSTANT
.
KEYS
.
conf_apiResourceDlUrl
,
data
);
}
else
{
// Session :Business Option (serviceOpt)_ABookCheck:Char(Y:Enable, N:Disable)
return
SessionStorageUtils
.
get
(
CONSTANT
.
KEYS
.
conf_apiResourceDlUrl
);
serviceOpt_abook_check
:
function
(
data
)
{
}
if
(
arguments
.
length
>
0
)
{
},
SessionStorageUtils
.
set
(
CONSTANT
.
KEYS
.
serviceOpt_abook_check
,
data
);
}
else
{
// Local :userInfo_password_skip_datetime:Datetime
return
SessionStorageUtils
.
get
(
CONSTANT
.
KEYS
.
serviceOpt_abook_check
);
userInfo_pwdSkipDt
:
function
(
data
)
{
}
if
(
arguments
.
length
>
0
)
{
},
COMMON
.
operateData
(
arguments
,
CONSTANT
.
KEYS
.
userInfo_pwdSkipDt
,
undefined
);
}
else
{
// Session : Tenant Service_Option(serviceOpt)_ChatFunction:Char(Y:Use, N:Unused)
return
COMMON
.
operateData
(
arguments
,
CONSTANT
.
KEYS
.
userInfo_pwdSkipDt
,
undefined
);
serviceOpt_chat_function
:
function
(
data
)
{
}
if
(
arguments
.
length
>
0
)
{
},
SessionStorageUtils
.
set
(
CONSTANT
.
KEYS
.
serviceOpt_abook_check
,
data
);
}
else
{
// Session :Business Option (serviceOpt)_ABookCheck:Char(Y:Enable, N:Disable)
return
SessionStorageUtils
.
get
(
CONSTANT
.
KEYS
.
serviceOpt_abook_check
);
serviceOpt_abook_check
:
function
(
data
)
{
}
if
(
arguments
.
length
>
0
)
{
},
SessionStorageUtils
.
set
(
CONSTANT
.
KEYS
.
serviceOpt_abook_check
,
data
);
}
else
{
// Session :Business Option(serviceOpt)_Forced password change at first login:Integer(0:None, 1:Prompt, 2:Forced)
return
SessionStorageUtils
.
get
(
CONSTANT
.
KEYS
.
serviceOpt_abook_check
);
serviceOpt_force_pw_change_on_login
:
function
(
data
)
{
}
if
(
arguments
.
length
>
0
)
{
},
SessionStorageUtils
.
set
(
CONSTANT
.
KEYS
.
serviceOpt_force_pw_change_on_login
,
data
);
}
else
{
// Session : Tenant Service_Option(serviceOpt)_ChatFunction:Char(Y:Use, N:Unused)
return
SessionStorageUtils
.
get
(
CONSTANT
.
KEYS
.
serviceOpt_force_pw_change_on_login
);
serviceOpt_chat_function
:
function
(
data
)
{
}
if
(
arguments
.
length
>
0
)
{
},
SessionStorageUtils
.
set
(
CONSTANT
.
KEYS
.
serviceOpt_abook_check
,
data
);
}
else
{
// Session :Business Option(serviceOpt)_Forced password change at regular login:Integer(0:None, 1:Prompt, 2:Forced)
return
SessionStorageUtils
.
get
(
CONSTANT
.
KEYS
.
serviceOpt_abook_check
);
serviceOpt_force_pw_change_periodically
:
function
(
data
)
{
}
if
(
arguments
.
length
>
0
)
{
},
SessionStorageUtils
.
set
(
CONSTANT
.
KEYS
.
serviceOpt_force_pw_change_periodically
,
data
);
}
else
{
// Session :Business Option(serviceOpt)_Forced password change at first login:Integer(0:None, 1:Prompt, 2:Forced)
return
SessionStorageUtils
.
get
(
CONSTANT
.
KEYS
.
serviceOpt_force_pw_change_periodically
);
serviceOpt_force_pw_change_on_login
:
function
(
data
)
{
}
if
(
arguments
.
length
>
0
)
{
},
SessionStorageUtils
.
set
(
CONSTANT
.
KEYS
.
serviceOpt_force_pw_change_on_login
,
data
);
}
else
{
// Session :Business option (serviceOpt)_arbitrary push message:Char(Y:possible, N:not possible)
return
SessionStorageUtils
.
get
(
CONSTANT
.
KEYS
.
serviceOpt_force_pw_change_on_login
);
serviceOpt_usable_push_message
:
function
(
data
)
{
}
if
(
arguments
.
length
>
0
)
{
},
SessionStorageUtils
.
set
(
CONSTANT
.
KEYS
.
serviceOpt_usable_push_message
,
data
);
}
else
{
// Session :Business Option(serviceOpt)_Forced password change at regular login:Integer(0:None, 1:Prompt, 2:Forced)
return
SessionStorageUtils
.
get
(
CONSTANT
.
KEYS
.
serviceOpt_usable_push_message
);
serviceOpt_force_pw_change_periodically
:
function
(
data
)
{
}
if
(
arguments
.
length
>
0
)
{
},
SessionStorageUtils
.
set
(
CONSTANT
.
KEYS
.
serviceOpt_force_pw_change_periodically
,
data
);
}
else
{
// Local
return
SessionStorageUtils
.
get
(
CONSTANT
.
KEYS
.
serviceOpt_force_pw_change_periodically
);
JumpQueue
:
function
(
data
)
{
}
if
(
arguments
.
length
>
0
)
{
},
COMMON
.
operateData
(
arguments
,
CONSTANT
.
KEYS
.
JumpQueue
,
[]);
}
else
{
// Session :Business option (serviceOpt)_arbitrary push message:Char(Y:possible, N:not possible)
return
COMMON
.
operateData
(
arguments
,
CONSTANT
.
KEYS
.
JumpQueue
,
[]);
serviceOpt_usable_push_message
:
function
(
data
)
{
}
if
(
arguments
.
length
>
0
)
{
},
SessionStorageUtils
.
set
(
CONSTANT
.
KEYS
.
serviceOpt_usable_push_message
,
data
);
}
else
{
// Local
return
SessionStorageUtils
.
get
(
CONSTANT
.
KEYS
.
serviceOpt_usable_push_message
);
IsJumpBack
:
function
(
data
)
{
}
if
(
arguments
.
length
>
0
)
{
},
COMMON
.
operateData
(
arguments
,
CONSTANT
.
KEYS
.
IsJumpBack
,
undefined
);
}
else
{
// Local
return
COMMON
.
operateData
(
arguments
,
CONSTANT
.
KEYS
.
IsJumpBack
,
undefined
);
JumpQueue
:
function
(
data
)
{
}
if
(
arguments
.
length
>
0
)
{
},
COMMON
.
operateData
(
arguments
,
CONSTANT
.
KEYS
.
JumpQueue
,
[]);
};
}
else
{
return
COMMON
.
operateData
(
arguments
,
CONSTANT
.
KEYS
.
JumpQueue
,
[]);
/*
}
* Variables
},
*/
COMMON
.
userSessionObj
=
null
;
// Local
COMMON
.
userSettingObj
=
null
;
IsJumpBack
:
function
(
data
)
{
COMMON
.
sysSettingObj
=
null
;
if
(
arguments
.
length
>
0
)
{
COMMON
.
operateData
(
arguments
,
CONSTANT
.
KEYS
.
IsJumpBack
,
undefined
);
/*
}
else
{
* User Settings Class Definition
return
COMMON
.
operateData
(
arguments
,
CONSTANT
.
KEYS
.
IsJumpBack
,
undefined
);
*/
}
var
UserSetting
=
function
()
{
},
this
.
US_KEY
=
'AVWUS'
;
};
this
.
userSetting
=
this
.
load
();
};
/*
/* get user setting from localStorage */
* Variables
UserSetting
.
prototype
.
load
=
function
()
{
*/
var
storage
=
window
.
localStorage
;
COMMON
.
userSessionObj
=
null
;
var
value
=
null
;
COMMON
.
userSettingObj
=
null
;
var
js
=
null
;
COMMON
.
sysSettingObj
=
null
;
if
(
storage
)
{
var
value
=
storage
.
getItem
(
this
.
US_KEY
);
/*
if
(
!
value
)
{
* User Settings Class Definition
value
=
'{}'
;
// empty JSON string
*/
}
var
UserSetting
=
function
()
{
js
=
JSON
.
parse
(
value
);
this
.
US_KEY
=
'AVWUS'
;
}
this
.
userSetting
=
this
.
load
();
return
js
;
};
};
/* get user setting from localStorage */
UserSetting
.
prototype
.
load
=
function
()
{
/**
var
storage
=
window
.
localStorage
;
* store user setting
var
value
=
null
;
* @param {*} key
var
js
=
null
;
* @param {*} value
if
(
storage
)
{
*/
var
value
=
storage
.
getItem
(
this
.
US_KEY
);
UserSetting
.
prototype
.
set
=
function
(
key
,
value
)
{
if
(
!
value
)
{
this
.
userSetting
=
this
.
load
();
value
=
'{}'
;
// empty JSON string
var
values
=
this
.
userSetting
;
}
if
(
!
values
)
{
js
=
JSON
.
parse
(
value
);
values
=
{
key
:
value
};
}
}
else
{
return
js
;
values
[
key
]
=
value
;
};
}
var
storage
=
window
.
localStorage
;
/**
if
(
storage
)
{
* store user setting
var
jsonStr
=
JSON
.
stringify
(
values
);
* @param {*} key
storage
.
setItem
(
this
.
US_KEY
,
jsonStr
);
* @param {*} value
}
*/
this
.
userSetting
=
values
;
UserSetting
.
prototype
.
set
=
function
(
key
,
value
)
{
};
this
.
userSetting
=
this
.
load
();
var
values
=
this
.
userSetting
;
/**
if
(
!
values
)
{
* grab user setting
values
=
{
key
:
value
};
* @param {*} key
}
else
{
* @returns
values
[
key
]
=
value
;
*/
}
UserSetting
.
prototype
.
get
=
function
(
key
)
{
var
storage
=
window
.
localStorage
;
this
.
userSetting
=
this
.
load
();
if
(
storage
)
{
var
values
=
this
.
userSetting
;
var
jsonStr
=
JSON
.
stringify
(
values
);
if
(
values
)
{
storage
.
setItem
(
this
.
US_KEY
,
jsonStr
);
return
values
[
key
];
}
}
this
.
userSetting
=
values
;
return
null
;
};
};
/**
/**
* grab user setting
* show user setting object list
* @param {*} key
* @param {*} elmid
* @returns
*/
*/
UserSetting
.
prototype
.
show
=
function
(
elmid
)
{
UserSetting
.
prototype
.
get
=
function
(
key
)
{
var
storage
=
window
.
localStorage
;
this
.
userSetting
=
this
.
load
();
var
tags
=
'<p>'
;
var
values
=
this
.
userSetting
;
if
(
storage
)
{
if
(
values
)
{
var
value
=
storage
.
getItem
(
this
.
US_KEY
);
return
values
[
key
];
if
(
value
)
{
}
var
js
=
JSON
.
parse
(
value
);
return
null
;
$
.
each
(
js
,
function
(
k
,
v
)
{
};
tags
=
tags
+
'<b>'
+
k
+
'</b>:'
+
v
+
'<br />'
;
});
/**
}
* show user setting object list
tags
=
tags
+
'</p>'
;
* @param {*} elmid
$
(
elmid
).
html
(
tags
);
*/
}
UserSetting
.
prototype
.
show
=
function
(
elmid
)
{
};
var
storage
=
window
.
localStorage
;
/* Retrieve a list of user-set keys */
var
tags
=
'<p>'
;
UserSetting
.
prototype
.
keys
=
function
()
{
if
(
storage
)
{
var
storage
=
window
.
localStorage
;
var
value
=
storage
.
getItem
(
this
.
US_KEY
);
var
keyList
=
[];
if
(
value
)
{
if
(
storage
)
{
var
js
=
JSON
.
parse
(
value
);
var
value
=
storage
.
getItem
(
this
.
US_KEY
);
$
.
each
(
js
,
function
(
k
,
v
)
{
if
(
value
)
{
tags
=
tags
+
'<b>'
+
k
+
'</b>:'
+
v
+
'<br />'
;
var
js
=
JSON
.
parse
(
value
);
});
var
i
=
0
;
}
$
.
each
(
js
,
function
(
k
,
v
)
{
tags
=
tags
+
'</p>'
;
keyList
[
i
++
]
=
k
;
$
(
elmid
).
html
(
tags
);
});
}
}
};
return
keyList
;
/* Retrieve a list of user-set keys */
}
UserSetting
.
prototype
.
keys
=
function
()
{
return
null
;
var
storage
=
window
.
localStorage
;
};
var
keyList
=
[];
if
(
storage
)
{
/**
var
value
=
storage
.
getItem
(
this
.
US_KEY
);
* Delete user settings
if
(
value
)
{
* @param {*} key
var
js
=
JSON
.
parse
(
value
);
*/
var
i
=
0
;
UserSetting
.
prototype
.
remove
=
function
(
key
)
{
$
.
each
(
js
,
function
(
k
,
v
)
{
var
storage
=
window
.
localStorage
;
keyList
[
i
++
]
=
k
;
if
(
storage
)
{
});
var
value
=
storage
.
getItem
(
this
.
US_KEY
);
}
if
(
value
)
{
return
keyList
;
var
js
=
JSON
.
parse
(
value
);
}
if
(
js
)
{
return
null
;
delete
js
[
key
];
};
storage
.
setItem
(
this
.
US_KEY
,
JSON
.
stringify
(
js
));
}
/**
}
* Delete user settings
}
* @param {*} key
};
*/
/* Delete all user settings */
UserSetting
.
prototype
.
remove
=
function
(
key
)
{
UserSetting
.
prototype
.
removeAll
=
function
()
{
var
storage
=
window
.
localStorage
;
var
storage
=
window
.
localStorage
;
if
(
storage
)
{
if
(
storage
)
{
var
value
=
storage
.
getItem
(
this
.
US_KEY
);
storage
.
remove
(
this
.
US_KEY
);
if
(
value
)
{
}
var
js
=
JSON
.
parse
(
value
);
};
if
(
js
)
{
delete
js
[
key
];
/*
storage
.
setItem
(
this
.
US_KEY
,
JSON
.
stringify
(
js
));
* User Session Class Definition
}
*/
}
var
UserSession
=
function
()
{
}
this
.
available
=
false
;
};
};
/* Delete all user settings */
UserSetting
.
prototype
.
removeAll
=
function
()
{
/**
var
storage
=
window
.
localStorage
;
* Initialize User Session
if
(
storage
)
{
* @param {*} option
storage
.
remove
(
this
.
US_KEY
);
*/
}
UserSession
.
prototype
.
init
=
function
(
option
)
{
};
this
.
available
=
false
;
if
(
option
==
'restore'
)
{
/*
var
value
=
null
;
* User Session Class Definition
try
{
*/
value
=
this
.
_get
(
'init'
);
var
UserSession
=
function
()
{
}
catch
(
e
)
{
this
.
available
=
false
;
value
=
null
;
};
}
finally
{
if
(
value
)
{
/**
this
.
available
=
true
;
* Initialize User Session
}
* @param {*} option
}
*/
}
else
{
UserSession
.
prototype
.
init
=
function
(
option
)
{
this
.
set
(
'init'
,
new
Date
().
toLocaleString
());
this
.
available
=
false
;
this
.
available
=
true
;
if
(
option
==
'restore'
)
{
}
var
value
=
null
;
};
try
{
value
=
this
.
_get
(
'init'
);
/**
}
catch
(
e
)
{
* store key, value item to user session
value
=
null
;
* @param {*} key
}
finally
{
* @param {*} value
if
(
value
)
{
*/
this
.
available
=
true
;
UserSession
.
prototype
.
set
=
function
(
key
,
value
)
{
}
var
storage
=
window
.
sessionStorage
;
}
if
(
storage
)
{
}
else
{
if
(
this
.
available
==
false
)
{
this
.
set
(
'init'
,
new
Date
().
toLocaleString
());
if
(
key
==
'init'
)
{
this
.
available
=
true
;
storage
.
setItem
(
'AVWS_'
+
key
,
value
);
}
}
else
{
};
throw
new
Error
(
'Session destoryed.'
);
}
/**
}
else
{
* store key, value item to user session
storage
.
setItem
(
'AVWS_'
+
key
,
value
);
* @param {*} key
}
* @param {*} value
}
*/
};
UserSession
.
prototype
.
set
=
function
(
key
,
value
)
{
var
storage
=
window
.
sessionStorage
;
/**
if
(
storage
)
{
* get session item value
if
(
this
.
available
==
false
)
{
* @param {*} key
if
(
key
==
'init'
)
{
* @returns
storage
.
setItem
(
'AVWS_'
+
key
,
value
);
*/
}
else
{
UserSession
.
prototype
.
get
=
function
(
key
)
{
throw
new
Error
(
'Session destoryed.'
);
var
value
=
null
;
}
if
(
this
.
available
)
{
}
else
{
value
=
this
.
_get
(
key
);
storage
.
setItem
(
'AVWS_'
+
key
,
value
);
}
else
{
}
throw
new
Error
(
'Session Destroyed.'
);
}
}
};
return
value
;
};
/**
* get session item value
/**
* @param {*} key
* get item value from session storage
* @returns
* @param {*} key
*/
* @returns
UserSession
.
prototype
.
get
=
function
(
key
)
{
*/
var
value
=
null
;
UserSession
.
prototype
.
_get
=
function
(
key
)
{
if
(
this
.
available
)
{
var
storage
=
window
.
sessionStorage
;
value
=
this
.
_get
(
key
);
var
value
=
null
;
}
else
{
if
(
storage
)
{
throw
new
Error
(
'Session Destroyed.'
);
value
=
storage
.
getItem
(
'AVWS_'
+
key
);
}
}
return
value
;
return
value
;
};
};
/* destroy user session */
/**
UserSession
.
prototype
.
destroy
=
function
()
{
* get item value from session storage
var
storage
=
window
.
sessionStorage
;
* @param {*} key
if
(
storage
)
{
* @returns
storage
.
clear
();
*/
this
.
available
=
false
;
UserSession
.
prototype
.
_get
=
function
(
key
)
{
}
var
storage
=
window
.
sessionStorage
;
};
var
value
=
null
;
if
(
storage
)
{
/**
value
=
storage
.
getItem
(
'AVWS_'
+
key
);
* show user session object list
}
* @param {*} elmid
return
value
;
*/
};
UserSession
.
prototype
.
show
=
function
(
elmid
)
{
/* destroy user session */
var
storage
=
window
.
sessionStorage
;
UserSession
.
prototype
.
destroy
=
function
()
{
var
tags
=
'<p>'
;
var
storage
=
window
.
sessionStorage
;
if
(
storage
)
{
if
(
storage
)
{
for
(
var
i
=
0
;
i
<
storage
.
length
;
i
++
)
{
storage
.
clear
();
var
key
=
storage
.
key
(
i
);
this
.
available
=
false
;
var
value
=
storage
.
getItem
(
key
);
}
tags
=
tags
+
'<b>'
+
key
+
'</b>:'
+
value
+
'<br />'
;
};
}
tags
=
tags
+
'</p>'
;
$
(
elmid
).
html
(
tags
);
}
};
/* Initialize system */
$
(
function
()
{
// Determine the path where the system configuration files are located
var
location
=
window
.
location
.
toString
().
toLowerCase
();
var
sysFile
=
''
;
if
(
location
.
indexOf
(
'/abweb'
)
<
0
)
{
sysFile
=
'../abweb/common/json/sys/conf.json'
;
}
else
{
sysFile
=
'../common/json/sys/conf.json'
;
}
// Read the system configuration file
$
.
ajax
({
url
:
sysFile
,
async
:
false
,
cache
:
false
,
dataType
:
'json'
,
success
:
function
(
data
)
{
COMMON
.
sysSettingObj
=
data
;
},
error
:
function
(
xmlHttpRequest
,
txtStatus
,
errorThrown
)
{
var
error
=
'Could not load the system configuration file. Please check it.'
;
error
+=
'
\
n'
+
xmlHttpRequest
.
status
+
' '
+
txtStatus
+
' '
+
errorThrown
+
' : '
+
sysFile
;
alert
(
error
);
},
});
// Clear error conditions once at load time.
COMMON
.
clearError
();
//#31919 [Investigation] Business meeting support system GoogleChrome does not work with Bitch in/out.
navigator
.
pointerEnabled
=
navigator
.
maxTouchPoints
>
0
;
// Edge 17 touch support workaround
document
.
documentElement
.
ontouchstart
=
navigator
.
maxTouchPoints
>
0
?
function
()
{}
:
undefined
;
// Chrome 70 touch support workaround
});
// Hide the locking layout
COMMON
.
unlockLayout
=
function
()
{
$
(
'#avw-sys-modal'
).
hide
();
};
// Show the locking layout
COMMON
.
lockLayout
=
function
()
{
if
(
document
.
getElementById
(
'avw-sys-modal'
))
{
$
(
'#avw-sys-modal'
).
show
();
}
else
{
var
tags
=
'<div id="avw-sys-modal"></div>'
;
$
(
'body'
).
prepend
(
tags
);
$
(
'#avw-sys-modal'
).
css
({
opacity
:
0.7
,
position
:
'fixed'
,
top
:
'0'
,
left
:
'0'
,
width
:
$
(
window
).
width
(),
height
:
$
(
window
).
height
(),
background
:
'#999'
,
'z-index'
:
100
,
});
// resize error page
$
(
window
).
resize
(
function
()
{
$
(
'#avw-sys-modal'
).
css
({
width
:
$
(
window
).
width
(),
height
:
$
(
window
).
height
(),
});
});
}
};
/* Clear error condition */
COMMON
.
clearError
=
function
()
{
var
session
=
window
.
sessionStorage
;
if
(
session
)
{
session
.
setItem
(
COMMON
.
hasErrorKey
,
false
);
}
};
/* Get error status */
COMMON
.
hasError
=
function
()
{
var
session
=
window
.
sessionStorage
;
var
isError
=
false
;
if
(
session
)
{
isError
=
session
.
getItem
(
COMMON
.
hasErrorKey
);
}
return
isError
==
'true'
;
};
/* Set to error condition */
COMMON
.
setErrorState
=
function
()
{
var
session
=
window
.
sessionStorage
;
if
(
session
)
{
session
.
setItem
(
COMMON
.
hasErrorKey
,
true
);
}
};
/* get user session object */
COMMON
.
userSession
=
function
()
{
if
(
!
COMMON
.
userSessionObj
)
{
var
obj
=
new
UserSession
();
obj
.
init
(
'restore'
);
if
(
obj
.
available
)
{
COMMON
.
userSessionObj
=
obj
;
return
COMMON
.
userSessionObj
;
}
else
{
return
null
;
}
}
return
COMMON
.
userSessionObj
;
};
/* create user session object */
COMMON
.
createUserSession
=
function
()
{
if
(
COMMON
.
userSessionObj
)
{
COMMON
.
userSessionObj
.
destroy
();
}
else
{
COMMON
.
userSessionObj
=
new
UserSession
();
COMMON
.
userSessionObj
.
init
();
}
return
COMMON
.
userSessionObj
;
};
/* get user setting object */
COMMON
.
userSetting
=
function
()
{
if
(
COMMON
.
userSettingObj
==
null
)
{
COMMON
.
userSettingObj
=
new
UserSetting
();
}
return
COMMON
.
userSettingObj
;
};
/* get system setting object */
COMMON
.
sysSetting
=
function
()
{
return
COMMON
.
sysSettingObj
;
};
/*
* Operations for session storage [start]
*/
var
SessionStorageUtils
=
{
login
:
function
()
{
if
(
COMMON
.
userSession
())
{
// Skip this case
}
else
{
COMMON
.
avwCreateUserSession
();
}
},
get
:
function
(
strKey
)
{
return
COMMON
.
userSession
().
get
(
strKey
);
},
set
:
function
(
strKey
,
objValue
)
{
COMMON
.
userSession
().
set
(
strKey
,
objValue
);
},
clear
:
function
()
{
if
(
COMMON
.
userSession
())
{
COMMON
.
userSession
().
destroy
();
}
},
remove
:
function
(
strKey
)
{
COMMON
.
userSession
().
set
(
strKey
,
null
);
},
};
/*
* Operations for local storage
*/
var
LocalStorageUtils
=
{
getUniqueId
:
function
()
{
var
uniqueId
=
''
;
if
(
COMMON
.
userSetting
().
get
(
CONSTANT
.
KEYS
.
userInfo_accountPath
))
{
uniqueId
+=
COMMON
.
userSetting
().
get
(
CONSTANT
.
KEYS
.
userInfo_accountPath
);
}
if
(
COMMON
.
userSetting
().
get
(
CONSTANT
.
KEYS
.
userInfo_loginId
))
{
uniqueId
+=
'.'
+
COMMON
.
userSetting
().
get
(
CONSTANT
.
KEYS
.
userInfo_loginId
);
}
if
(
uniqueId
!=
''
)
{
uniqueId
+=
'.'
;
}
return
uniqueId
;
},
get
:
function
(
strKey
)
{
var
key
=
this
.
getUniqueId
()
+
strKey
;
return
COMMON
.
userSetting
().
get
(
key
);
},
set
:
function
(
strKey
,
objValue
)
{
var
key
=
this
.
getUniqueId
()
+
strKey
;
COMMON
.
userSetting
().
set
(
key
,
objValue
);
},
remove
:
function
(
strKey
)
{
var
key
=
this
.
getUniqueId
()
+
strKey
;
COMMON
.
userSetting
().
remove
(
key
);
SessionStorageUtils
.
remove
(
strKey
);
},
clear
:
function
()
{
var
localStorageKeys
=
COMMON
.
userSetting
().
keys
();
for
(
var
nIndex
=
0
;
nIndex
<
localStorageKeys
.
length
;
nIndex
++
)
{
var
strKey
=
localStorageKeys
[
nIndex
];
if
((
strKey
+
''
).
contains
(
this
.
getUniqueId
()))
{
COMMON
.
userSetting
().
remove
(
strKey
);
}
}
},
existKey
:
function
(
strKey
)
{
var
keys
=
COMMON
.
userSetting
().
keys
();
var
findKey
=
this
.
getUniqueId
()
+
strKey
;
var
isExisted
=
false
;
if
(
keys
!=
null
&&
keys
!=
undefined
)
{
for
(
var
nIndex
=
0
;
nIndex
<
keys
.
length
;
nIndex
++
)
{
if
(
keys
[
nIndex
]
==
findKey
)
{
isExisted
=
true
;
break
;
}
}
}
return
isExisted
;
},
};
/**
* String.format function def.
* @param {*} fmt
* @returns
*/
COMMON
.
format
=
function
(
fmt
)
{
for
(
var
i
=
1
;
i
<
arguments
.
length
;
i
++
)
{
var
reg
=
new
RegExp
(
'
\\
{'
+
(
i
-
1
)
+
'
\\
}'
,
'g'
);
fmt
=
fmt
.
replace
(
reg
,
arguments
[
i
]);
}
return
fmt
;
};
/**
* Get param url
* @param {*} name
* @param {*} url
* @returns
*/
COMMON
.
getUrlParam
=
function
(
name
,
url
)
{
if
(
!
url
)
{
url
=
window
.
location
.
href
;
}
name
=
name
.
replace
(
/
[\[]
/
,
'
\\
['
).
replace
(
/
[\]]
/
,
'
\\
]'
);
var
regexS
=
'[
\\
?&]'
+
name
+
'=([^&#]*)'
;
var
regex
=
new
RegExp
(
regexS
);
var
results
=
regex
.
exec
(
url
);
if
(
results
==
null
)
{
return
''
;
}
else
{
return
results
[
1
];
}
};
// Toogle Logout Nortice
COMMON
.
ToogleLogoutNortice
=
function
()
{
window
.
onbeforeunload
=
function
(
event
)
{
var
message
=
I18N
.
i18nText
(
'sysInfoWithoutLogout'
);
var
e
=
event
||
window
.
event
;
if
(
e
)
{
e
.
returnValue
=
message
;
}
return
message
;
};
};
/**
* * Get data from localstorage and sessionstorage synchronization If has any
* param (args.length > 0) -> setter If has not param (args.length = 0) ->
* getter . Get from session: + if it existed and key existed in localstorage ->
* return result + else: set value from local to sessionstorage -> return value
* of sessionstorage if value is not empty, otherwise, return default result.
* @param {*} args
* @param {*} strKey
* @param {*} returnDefaultData
* @returns
*/
COMMON
.
operateData
=
function
(
args
,
strKey
,
returnDefaultData
)
{
if
(
args
.
length
>
0
)
{
var
data
=
args
[
0
];
LocalStorageUtils
.
set
(
strKey
,
data
);
SessionStorageUtils
.
set
(
strKey
,
JSON
.
stringify
(
data
));
}
else
{
if
(
SessionStorageUtils
.
get
(
strKey
)
!=
'undefined'
&&
SessionStorageUtils
.
get
(
strKey
)
!=
undefined
&&
SessionStorageUtils
.
get
(
strKey
)
!=
''
&&
SessionStorageUtils
.
get
(
strKey
)
!=
null
&&
SessionStorageUtils
.
get
(
strKey
)
!=
'null'
)
{
if
(
LocalStorageUtils
.
existKey
(
strKey
)
==
true
)
{
return
JSON
.
parse
(
SessionStorageUtils
.
get
(
strKey
));
}
else
{
return
returnDefaultData
;
}
}
else
{
if
(
LocalStorageUtils
.
existKey
(
strKey
)
==
true
)
{
SessionStorageUtils
.
set
(
strKey
,
JSON
.
stringify
(
LocalStorageUtils
.
get
(
strKey
)));
return
JSON
.
parse
(
SessionStorageUtils
.
get
(
strKey
));
}
return
returnDefaultData
;
}
}
};
/**
* UTC current Time (millisecond)
*
* @returns UTC time
*/
COMMON
.
currentTime
=
function
()
{
return
Date
.
now
();
};
/**
* check login information in window.sessionStorage
*
* @returns boolean
*/
COMMON
.
checkLogin
=
function
(
option
)
{
var
userSession
=
COMMON
.
userSession
();
if
(
!
userSession
)
{
/* エラー画面を表示 */
var
tags
=
'<div id="avw-auth-error">'
+
'<div style="display:table; width:100%; height:100%;">'
+
'<div style="display:table-cell; text-align:center; vertical-align:middle;">'
+
'<p><h4>Authentication error</h4>Please use it after login.</p>'
+
'<div><button id="avw-unauth-ok">OK</button></div>'
+
'</div></div></div>'
;
$
(
'body'
).
prepend
(
tags
);
$
(
'#avw-auth-error'
).
css
({
'opacity'
:
1
,
'position'
:
'fixed'
,
'top'
:
'0'
,
'left'
:
'0'
,
'background'
:
"#ffffff"
,
'width'
:
$
(
window
).
width
(),
'height'
:
$
(
window
).
height
(),
'zIndex'
:
'10000'
});
// resize error page
$
(
window
).
resize
(
function
()
{
$
(
'#avw-auth-error'
).
css
(
{
'width'
:
$
(
window
).
width
(),
'height'
:
$
(
window
).
height
()
});
});
var
returnPage
;
if
(
option
)
{
returnPage
=
option
}
else
{
var
sysSetting
=
COMMON
.
sysSetting
();
returnPage
=
sysSetting
.
loginPage
;
}
/* ログイン画面に戻る */
$
(
'#avw-unauth-ok'
).
click
(
function
()
{
window
.
location
=
returnPage
;
});
return
false
;
}
return
true
;
}
/**
/**
* check quick report
* show user session object list
*/
* @param {*} elmid
*/
UserSession
.
prototype
.
show
=
function
(
elmid
)
{
var
storage
=
window
.
sessionStorage
;
var
tags
=
'<p>'
;
if
(
storage
)
{
for
(
var
i
=
0
;
i
<
storage
.
length
;
i
++
)
{
var
key
=
storage
.
key
(
i
);
var
value
=
storage
.
getItem
(
key
);
tags
=
tags
+
'<b>'
+
key
+
'</b>:'
+
value
+
'<br />'
;
}
tags
=
tags
+
'</p>'
;
$
(
elmid
).
html
(
tags
);
}
};
/* Initialize system */
$
(
function
()
{
// Determine the path where the system configuration files are located
var
location
=
window
.
location
.
toString
().
toLowerCase
();
var
sysFile
=
''
;
if
(
location
.
indexOf
(
'/abweb'
)
<
0
)
{
sysFile
=
'../abweb/common/json/sys/conf.json'
;
}
else
{
sysFile
=
'../common/json/sys/conf.json'
;
}
// Read the system configuration file
$
.
ajax
({
url
:
sysFile
,
async
:
false
,
cache
:
false
,
dataType
:
'json'
,
success
:
function
(
data
)
{
COMMON
.
sysSettingObj
=
data
;
},
error
:
function
(
xmlHttpRequest
,
txtStatus
,
errorThrown
)
{
var
error
=
'Could not load the system configuration file. Please check it.'
;
error
+=
'
\
n'
+
xmlHttpRequest
.
status
+
' '
+
txtStatus
+
' '
+
errorThrown
+
' : '
+
sysFile
;
alert
(
error
);
},
});
// Clear error conditions once at load time.
COMMON
.
clearError
();
//#31919 [Investigation] Business meeting support system GoogleChrome does not work with Bitch in/out.
navigator
.
pointerEnabled
=
navigator
.
maxTouchPoints
>
0
;
// Edge 17 touch support workaround
document
.
documentElement
.
ontouchstart
=
navigator
.
maxTouchPoints
>
0
?
function
()
{}
:
undefined
;
// Chrome 70 touch support workaround
});
// Hide the locking layout
COMMON
.
unlockLayout
=
function
()
{
$
(
'#avw-sys-modal'
).
hide
();
};
// Show the locking layout
COMMON
.
lockLayout
=
function
()
{
if
(
document
.
getElementById
(
'avw-sys-modal'
))
{
$
(
'#avw-sys-modal'
).
show
();
}
else
{
var
tags
=
'<div id="avw-sys-modal"></div>'
;
$
(
'body'
).
prepend
(
tags
);
$
(
'#avw-sys-modal'
).
css
({
opacity
:
0.7
,
position
:
'fixed'
,
top
:
'0'
,
left
:
'0'
,
width
:
$
(
window
).
width
(),
height
:
$
(
window
).
height
(),
background
:
'#999'
,
'z-index'
:
100
,
});
// resize error page
$
(
window
).
resize
(
function
()
{
$
(
'#avw-sys-modal'
).
css
({
width
:
$
(
window
).
width
(),
height
:
$
(
window
).
height
(),
});
});
}
};
/* Clear error condition */
COMMON
.
clearError
=
function
()
{
var
session
=
window
.
sessionStorage
;
if
(
session
)
{
session
.
setItem
(
COMMON
.
hasErrorKey
,
false
);
}
};
/* Get error status */
COMMON
.
hasError
=
function
()
{
var
session
=
window
.
sessionStorage
;
var
isError
=
false
;
if
(
session
)
{
isError
=
session
.
getItem
(
COMMON
.
hasErrorKey
);
}
return
isError
==
'true'
;
};
/* Set to error condition */
COMMON
.
setErrorState
=
function
()
{
var
session
=
window
.
sessionStorage
;
if
(
session
)
{
session
.
setItem
(
COMMON
.
hasErrorKey
,
true
);
}
};
/* get user session object */
COMMON
.
userSession
=
function
()
{
if
(
!
COMMON
.
userSessionObj
)
{
var
obj
=
new
UserSession
();
obj
.
init
(
'restore'
);
if
(
obj
.
available
)
{
COMMON
.
userSessionObj
=
obj
;
return
COMMON
.
userSessionObj
;
}
else
{
return
null
;
}
}
return
COMMON
.
userSessionObj
;
};
/* create user session object */
COMMON
.
createUserSession
=
function
()
{
if
(
COMMON
.
userSessionObj
)
{
COMMON
.
userSessionObj
.
destroy
();
}
else
{
COMMON
.
userSessionObj
=
new
UserSession
();
COMMON
.
userSessionObj
.
init
();
}
return
COMMON
.
userSessionObj
;
};
/* get user setting object */
COMMON
.
userSetting
=
function
()
{
if
(
COMMON
.
userSettingObj
==
null
)
{
COMMON
.
userSettingObj
=
new
UserSetting
();
}
return
COMMON
.
userSettingObj
;
};
/* get system setting object */
COMMON
.
sysSetting
=
function
()
{
return
COMMON
.
sysSettingObj
;
};
/*
* Operations for session storage [start]
*/
var
SessionStorageUtils
=
{
login
:
function
()
{
if
(
COMMON
.
userSession
())
{
// Skip this case
}
else
{
COMMON
.
avwCreateUserSession
();
}
},
get
:
function
(
strKey
)
{
return
COMMON
.
userSession
().
get
(
strKey
);
},
set
:
function
(
strKey
,
objValue
)
{
COMMON
.
userSession
().
set
(
strKey
,
objValue
);
},
clear
:
function
()
{
if
(
COMMON
.
userSession
())
{
COMMON
.
userSession
().
destroy
();
}
},
remove
:
function
(
strKey
)
{
COMMON
.
userSession
().
set
(
strKey
,
null
);
},
};
/*
* Operations for local storage
*/
var
LocalStorageUtils
=
{
getUniqueId
:
function
()
{
var
uniqueId
=
''
;
if
(
COMMON
.
userSetting
().
get
(
CONSTANT
.
KEYS
.
userInfo_accountPath
))
{
uniqueId
+=
COMMON
.
userSetting
().
get
(
CONSTANT
.
KEYS
.
userInfo_accountPath
);
}
if
(
COMMON
.
userSetting
().
get
(
CONSTANT
.
KEYS
.
userInfo_loginId
))
{
uniqueId
+=
'.'
+
COMMON
.
userSetting
().
get
(
CONSTANT
.
KEYS
.
userInfo_loginId
);
}
if
(
uniqueId
!=
''
)
{
uniqueId
+=
'.'
;
}
return
uniqueId
;
},
get
:
function
(
strKey
)
{
var
key
=
this
.
getUniqueId
()
+
strKey
;
return
COMMON
.
userSetting
().
get
(
key
);
},
set
:
function
(
strKey
,
objValue
)
{
var
key
=
this
.
getUniqueId
()
+
strKey
;
COMMON
.
userSetting
().
set
(
key
,
objValue
);
},
remove
:
function
(
strKey
)
{
var
key
=
this
.
getUniqueId
()
+
strKey
;
COMMON
.
userSetting
().
remove
(
key
);
SessionStorageUtils
.
remove
(
strKey
);
},
clear
:
function
()
{
var
localStorageKeys
=
COMMON
.
userSetting
().
keys
();
for
(
var
nIndex
=
0
;
nIndex
<
localStorageKeys
.
length
;
nIndex
++
)
{
var
strKey
=
localStorageKeys
[
nIndex
];
if
((
strKey
+
''
).
contains
(
this
.
getUniqueId
()))
{
COMMON
.
userSetting
().
remove
(
strKey
);
}
}
},
existKey
:
function
(
strKey
)
{
var
keys
=
COMMON
.
userSetting
().
keys
();
var
findKey
=
this
.
getUniqueId
()
+
strKey
;
var
isExisted
=
false
;
if
(
keys
!=
null
&&
keys
!=
undefined
)
{
for
(
var
nIndex
=
0
;
nIndex
<
keys
.
length
;
nIndex
++
)
{
if
(
keys
[
nIndex
]
==
findKey
)
{
isExisted
=
true
;
break
;
}
}
}
return
isExisted
;
},
};
/**
* String.format function def.
* @param {*} fmt
* @returns
*/
COMMON
.
format
=
function
(
fmt
)
{
for
(
var
i
=
1
;
i
<
arguments
.
length
;
i
++
)
{
var
reg
=
new
RegExp
(
'
\\
{'
+
(
i
-
1
)
+
'
\\
}'
,
'g'
);
fmt
=
fmt
.
replace
(
reg
,
arguments
[
i
]);
}
return
fmt
;
};
/**
* Get param url
* @param {*} name
* @param {*} url
* @returns
*/
COMMON
.
getUrlParam
=
function
(
name
,
url
)
{
if
(
!
url
)
{
url
=
window
.
location
.
href
;
}
name
=
name
.
replace
(
/
[\[]
/
,
'
\\
['
).
replace
(
/
[\]]
/
,
'
\\
]'
);
var
regexS
=
'[
\\
?&]'
+
name
+
'=([^&#]*)'
;
var
regex
=
new
RegExp
(
regexS
);
var
results
=
regex
.
exec
(
url
);
if
(
results
==
null
)
{
return
''
;
}
else
{
return
results
[
1
];
}
};
// Toogle Logout Nortice
COMMON
.
ToogleLogoutNortice
=
function
()
{
window
.
onbeforeunload
=
function
(
event
)
{
var
message
=
I18N
.
i18nText
(
'sysInfoWithoutLogout'
);
var
e
=
event
||
window
.
event
;
if
(
e
)
{
e
.
returnValue
=
message
;
}
return
message
;
};
};
/**
* * Get data from localstorage and sessionstorage synchronization If has any
* param (args.length > 0) -> setter If has not param (args.length = 0) ->
* getter . Get from session: + if it existed and key existed in localstorage ->
* return result + else: set value from local to sessionstorage -> return value
* of sessionstorage if value is not empty, otherwise, return default result.
* @param {*} args
* @param {*} strKey
* @param {*} returnDefaultData
* @returns
*/
COMMON
.
operateData
=
function
(
args
,
strKey
,
returnDefaultData
)
{
if
(
args
.
length
>
0
)
{
var
data
=
args
[
0
];
LocalStorageUtils
.
set
(
strKey
,
data
);
SessionStorageUtils
.
set
(
strKey
,
JSON
.
stringify
(
data
));
}
else
{
if
(
SessionStorageUtils
.
get
(
strKey
)
!=
'undefined'
&&
SessionStorageUtils
.
get
(
strKey
)
!=
undefined
&&
SessionStorageUtils
.
get
(
strKey
)
!=
''
&&
SessionStorageUtils
.
get
(
strKey
)
!=
null
&&
SessionStorageUtils
.
get
(
strKey
)
!=
'null'
)
{
if
(
LocalStorageUtils
.
existKey
(
strKey
)
==
true
)
{
return
JSON
.
parse
(
SessionStorageUtils
.
get
(
strKey
));
}
else
{
return
returnDefaultData
;
}
}
else
{
if
(
LocalStorageUtils
.
existKey
(
strKey
)
==
true
)
{
SessionStorageUtils
.
set
(
strKey
,
JSON
.
stringify
(
LocalStorageUtils
.
get
(
strKey
)));
return
JSON
.
parse
(
SessionStorageUtils
.
get
(
strKey
));
}
return
returnDefaultData
;
}
}
};
/**
* UTC current Time (millisecond)
*
* @returns UTC time
*/
COMMON
.
currentTime
=
function
()
{
return
Date
.
now
();
};
/**
* check login information in window.sessionStorage
*
* @returns boolean
*/
COMMON
.
checkLogin
=
function
(
option
)
{
var
userSession
=
COMMON
.
userSession
();
if
(
!
userSession
)
{
/* エラー画面を表示 */
var
tags
=
'<div id="avw-auth-error">'
+
'<div style="display:table; width:100%; height:100%;">'
+
'<div style="display:table-cell; text-align:center; vertical-align:middle;">'
+
'<p><h4>Authentication error</h4>Please use it after login.</p>'
+
'<div><button id="avw-unauth-ok">OK</button></div>'
+
'</div></div></div>'
;
$
(
'body'
).
prepend
(
tags
);
$
(
'#avw-auth-error'
).
css
({
opacity
:
1
,
position
:
'fixed'
,
top
:
'0'
,
left
:
'0'
,
background
:
'#ffffff'
,
width
:
$
(
window
).
width
(),
height
:
$
(
window
).
height
(),
zIndex
:
'10000'
,
});
// resize error page
$
(
window
).
resize
(
function
()
{
$
(
'#avw-auth-error'
).
css
({
width
:
$
(
window
).
width
(),
height
:
$
(
window
).
height
(),
});
});
var
returnPage
;
if
(
option
)
{
returnPage
=
option
;
}
else
{
var
sysSetting
=
COMMON
.
sysSetting
();
returnPage
=
sysSetting
.
loginPage
;
}
/* ログイン画面に戻る */
$
(
'#avw-unauth-ok'
).
click
(
function
()
{
window
.
location
=
returnPage
;
});
return
false
;
}
return
true
;
};
/**
* check quick report
*/
COMMON
.
checkQuickReport
=
function
(
callback
)
{
COMMON
.
checkQuickReport
=
function
(
callback
)
{
if
(
sessionStorage
.
getItem
(
"operationId"
))
{
if
(
sessionStorage
.
getItem
(
'operationId'
))
{
let
params
=
{};
let
params
=
{};
params
.
sid
=
COMMON
.
getSid
();
params
.
sid
=
COMMON
.
getSid
();
params
.
operationId
=
sessionStorage
.
getItem
(
"operationId"
);
params
.
operationId
=
sessionStorage
.
getItem
(
'operationId'
);
let
url
=
COMMON
.
format
(
ClientData
.
conf_checkApiUrl
(),
ClientData
.
userInfo_accountPath
())
+
CONSTANT
.
URL
.
CMS
.
API
.
IS_QUICK_REPORT
;
let
url
=
COMMON
.
format
(
ClientData
.
conf_checkApiUrl
(),
ClientData
.
userInfo_accountPath
())
+
CONSTANT
.
URL
.
CMS
.
API
.
IS_QUICK_REPORT
;
COMMON
.
cmsAjax
(
COMMON
.
cmsAjax
(
url
,
url
,
...
@@ -1132,224 +1145,223 @@ COMMON.checkQuickReport = function (callback) {
...
@@ -1132,224 +1145,223 @@ COMMON.checkQuickReport = function (callback) {
}
}
};
};
/*
/*
* Operations for session storage [ end ]
* Operations for session storage [ end ]
*/
*/
// =============================================================================================
// =============================================================================================
// Utils for string, date, number [start]
// Utils for string, date, number [start]
// =============================================================================================
// =============================================================================================
/*
/*
* Convert date to JP format date time [start]
* Convert date to JP format date time [start]
*/
*/
/*
/*
* YYYY/MM/DD HH:MM:SS
* YYYY/MM/DD HH:MM:SS
*/
*/
Date
.
prototype
.
jpDateTimeString
=
function
()
{
Date
.
prototype
.
jpDateTimeString
=
function
()
{
var
strResult
=
''
;
var
strResult
=
''
;
var
strYear
=
this
.
getFullYear
()
+
''
;
var
strYear
=
this
.
getFullYear
()
+
''
;
var
strMonth
=
this
.
getMonth
()
+
1
+
''
;
var
strMonth
=
this
.
getMonth
()
+
1
+
''
;
var
strDayInMonth
=
this
.
getDate
()
+
''
;
var
strDayInMonth
=
this
.
getDate
()
+
''
;
var
strHour
=
this
.
getHours
()
+
''
;
var
strHour
=
this
.
getHours
()
+
''
;
var
strMinute
=
this
.
getMinutes
()
+
''
;
var
strMinute
=
this
.
getMinutes
()
+
''
;
var
strSecond
=
this
.
getSeconds
()
+
''
;
var
strSecond
=
this
.
getSeconds
()
+
''
;
strResult
+=
strYear
.
padLeft
(
'0'
,
4
)
+
'/'
+
strMonth
.
padLeft
(
'0'
,
2
)
+
'/'
+
strDayInMonth
.
padLeft
(
'0'
,
2
);
strResult
+=
strYear
.
padLeft
(
'0'
,
4
)
+
'/'
+
strMonth
.
padLeft
(
'0'
,
2
)
+
'/'
+
strDayInMonth
.
padLeft
(
'0'
,
2
);
strResult
+=
' '
+
strHour
.
padLeft
(
'0'
,
2
)
+
':'
+
strMinute
.
padLeft
(
'0'
,
2
)
+
':'
+
strSecond
.
padLeft
(
'0'
,
2
);
strResult
+=
' '
+
strHour
.
padLeft
(
'0'
,
2
)
+
':'
+
strMinute
.
padLeft
(
'0'
,
2
)
+
':'
+
strSecond
.
padLeft
(
'0'
,
2
);
return
strResult
;
return
strResult
;
};
};
/*
/*
* YYYY-MM-DD HH:MM:SS
* YYYY-MM-DD HH:MM:SS
*/
*/
Date
.
prototype
.
jpDateTimeString1
=
function
()
{
Date
.
prototype
.
jpDateTimeString1
=
function
()
{
var
strResult
=
''
;
var
strResult
=
''
;
var
strYear
=
this
.
getFullYear
()
+
''
;
var
strYear
=
this
.
getFullYear
()
+
''
;
var
strMonth
=
this
.
getMonth
()
+
1
+
''
;
var
strMonth
=
this
.
getMonth
()
+
1
+
''
;
var
strDayInMonth
=
this
.
getDate
()
+
''
;
var
strDayInMonth
=
this
.
getDate
()
+
''
;
var
strHour
=
this
.
getHours
()
+
''
;
var
strHour
=
this
.
getHours
()
+
''
;
var
strMinute
=
this
.
getMinutes
()
+
''
;
var
strMinute
=
this
.
getMinutes
()
+
''
;
var
strSecond
=
this
.
getSeconds
()
+
''
;
var
strSecond
=
this
.
getSeconds
()
+
''
;
strResult
+=
strYear
.
padLeft
(
'0'
,
4
)
+
'-'
+
strMonth
.
padLeft
(
'0'
,
2
)
+
'-'
+
strDayInMonth
.
padLeft
(
'0'
,
2
);
strResult
+=
strYear
.
padLeft
(
'0'
,
4
)
+
'-'
+
strMonth
.
padLeft
(
'0'
,
2
)
+
'-'
+
strDayInMonth
.
padLeft
(
'0'
,
2
);
strResult
+=
' '
+
strHour
.
padLeft
(
'0'
,
2
)
+
':'
+
strMinute
.
padLeft
(
'0'
,
2
)
+
':'
+
strSecond
.
padLeft
(
'0'
,
2
);
strResult
+=
' '
+
strHour
.
padLeft
(
'0'
,
2
)
+
':'
+
strMinute
.
padLeft
(
'0'
,
2
)
+
':'
+
strSecond
.
padLeft
(
'0'
,
2
);
return
strResult
;
return
strResult
;
};
};
/*
/*
* yyyy/MM/dd
* yyyy/MM/dd
*/
*/
Date
.
prototype
.
jpDateString
=
function
()
{
Date
.
prototype
.
jpDateString
=
function
()
{
var
strResult
=
''
;
var
strResult
=
''
;
var
strYear
=
this
.
getFullYear
()
+
''
;
var
strYear
=
this
.
getFullYear
()
+
''
;
var
strMonth
=
this
.
getMonth
()
+
1
+
''
;
var
strMonth
=
this
.
getMonth
()
+
1
+
''
;
var
strDayInMonth
=
this
.
getDate
()
+
''
;
var
strDayInMonth
=
this
.
getDate
()
+
''
;
strResult
+=
strYear
.
padLeft
(
'0'
,
4
)
+
'/'
+
strMonth
.
padLeft
(
'0'
,
2
)
+
'/'
+
strDayInMonth
.
padLeft
(
'0'
,
2
);
strResult
+=
strYear
.
padLeft
(
'0'
,
4
)
+
'/'
+
strMonth
.
padLeft
(
'0'
,
2
)
+
'/'
+
strDayInMonth
.
padLeft
(
'0'
,
2
);
return
strResult
;
return
strResult
;
};
};
/*
/*
* HH:mm:ss
* HH:mm:ss
*/
*/
Date
.
prototype
.
jpTimeString
=
function
()
{
Date
.
prototype
.
jpTimeString
=
function
()
{
var
strResult
=
''
;
var
strResult
=
''
;
var
strHour
=
this
.
getHours
()
+
''
;
var
strHour
=
this
.
getHours
()
+
''
;
var
strMinute
=
this
.
getMinutes
()
+
''
;
var
strMinute
=
this
.
getMinutes
()
+
''
;
var
strSecond
=
this
.
getSeconds
()
+
''
;
var
strSecond
=
this
.
getSeconds
()
+
''
;
strResult
+=
' '
+
strHour
.
padLeft
(
'0'
,
2
)
+
':'
+
strMinute
.
padLeft
(
'0'
,
2
)
+
':'
+
strSecond
.
padLeft
(
'0'
,
2
);
strResult
+=
' '
+
strHour
.
padLeft
(
'0'
,
2
)
+
':'
+
strMinute
.
padLeft
(
'0'
,
2
)
+
':'
+
strSecond
.
padLeft
(
'0'
,
2
);
return
strResult
;
return
strResult
;
};
};
/*
/*
* HH:mm
* HH:mm
*/
*/
Date
.
prototype
.
jpShortTimeString
=
function
()
{
Date
.
prototype
.
jpShortTimeString
=
function
()
{
var
strResult
=
''
;
var
strResult
=
''
;
var
strHour
=
this
.
getHours
()
+
''
;
var
strHour
=
this
.
getHours
()
+
''
;
var
strMinute
=
this
.
getMinutes
()
+
''
;
var
strMinute
=
this
.
getMinutes
()
+
''
;
var
strSecond
=
this
.
getSeconds
()
+
''
;
var
strSecond
=
this
.
getSeconds
()
+
''
;
strResult
+=
' '
+
strHour
.
padLeft
(
'0'
,
2
)
+
':'
+
strMinute
.
padLeft
(
'0'
,
2
);
strResult
+=
' '
+
strHour
.
padLeft
(
'0'
,
2
)
+
':'
+
strMinute
.
padLeft
(
'0'
,
2
);
return
strResult
;
return
strResult
;
};
};
/*
/*
* yyyyMMddHHmmss
* yyyyMMddHHmmss
*/
*/
Date
.
prototype
.
toIdString
=
function
()
{
Date
.
prototype
.
toIdString
=
function
()
{
var
strResult
=
''
;
var
strResult
=
''
;
var
strYear
=
this
.
getFullYear
()
+
''
;
var
strYear
=
this
.
getFullYear
()
+
''
;
var
strMonth
=
this
.
getMonth
()
+
1
+
''
;
var
strMonth
=
this
.
getMonth
()
+
1
+
''
;
var
strDayInMonth
=
this
.
getDate
()
+
''
;
var
strDayInMonth
=
this
.
getDate
()
+
''
;
var
strHour
=
this
.
getHours
()
+
''
;
var
strHour
=
this
.
getHours
()
+
''
;
var
strMinute
=
this
.
getMinutes
()
+
''
;
var
strMinute
=
this
.
getMinutes
()
+
''
;
var
strSecond
=
this
.
getSeconds
()
+
''
;
var
strSecond
=
this
.
getSeconds
()
+
''
;
var
strMilisecond
=
this
.
getMilliseconds
()
+
''
;
var
strMilisecond
=
this
.
getMilliseconds
()
+
''
;
strResult
+=
strYear
.
padLeft
(
'0'
,
4
)
+
strMonth
.
padLeft
(
'0'
,
2
)
+
strDayInMonth
.
padLeft
(
'0'
,
2
);
strResult
+=
strYear
.
padLeft
(
'0'
,
4
)
+
strMonth
.
padLeft
(
'0'
,
2
)
+
strDayInMonth
.
padLeft
(
'0'
,
2
);
strResult
+=
strHour
.
padLeft
(
'0'
,
2
)
+
strMinute
.
padLeft
(
'0'
,
2
)
+
strSecond
.
padLeft
(
'0'
,
2
)
+
strMilisecond
.
padLeft
(
'0'
,
3
);
strResult
+=
strHour
.
padLeft
(
'0'
,
2
)
+
strMinute
.
padLeft
(
'0'
,
2
)
+
strSecond
.
padLeft
(
'0'
,
2
)
+
strMilisecond
.
padLeft
(
'0'
,
3
);
return
strResult
;
return
strResult
;
};
};
/**
/**
* Subtract date to get days
* Subtract date to get days
* @param {*} targetDate
* @param {*} targetDate
* @returns
* @returns
*/
*/
Date
.
prototype
.
subtractByDays
=
function
(
targetDate
)
{
Date
.
prototype
.
subtractByDays
=
function
(
targetDate
)
{
var
milis
=
Math
.
abs
(
this
-
targetDate
);
var
milis
=
Math
.
abs
(
this
-
targetDate
);
var
days
=
Math
.
floor
(
milis
/
(
60
*
60
*
24
*
1000
));
var
days
=
Math
.
floor
(
milis
/
(
60
*
60
*
24
*
1000
));
return
days
;
return
days
;
};
};
/**
/**
* add seconds
* add seconds
* @param {*} plusSeconds
* @param {*} plusSeconds
* @returns
* @returns
*/
*/
Date
.
prototype
.
addSeconds
=
function
(
plusSeconds
)
{
Date
.
prototype
.
addSeconds
=
function
(
plusSeconds
)
{
var
newDate
=
new
Date
(
this
.
getTime
()
+
plusSeconds
*
1000
);
var
newDate
=
new
Date
(
this
.
getTime
()
+
plusSeconds
*
1000
);
return
newDate
;
return
newDate
;
};
};
/**
/**
* Subtract date to get days
* Subtract date to get days
* @param {*} targetDate
* @param {*} targetDate
* @returns
* @returns
*/
*/
Date
.
prototype
.
subtractBySeconds
=
function
(
targetDate
)
{
Date
.
prototype
.
subtractBySeconds
=
function
(
targetDate
)
{
var
milis
=
Math
.
abs
(
this
-
targetDate
);
var
milis
=
Math
.
abs
(
this
-
targetDate
);
var
days
=
Math
.
floor
(
milis
/
1000
);
var
days
=
Math
.
floor
(
milis
/
1000
);
return
days
;
return
days
;
};
};
/*
/*
* Convert date to JP format date time [ end ]
* Convert date to JP format date time [ end ]
*/
*/
// trimming space from both side of the string
// trimming space from both side of the string
String
.
prototype
.
trim
=
function
()
{
String
.
prototype
.
trim
=
function
()
{
return
this
.
replace
(
/^
\s
+|
\s
+$/g
,
''
);
return
this
.
replace
(
/^
\s
+|
\s
+$/g
,
''
);
};
};
// trimming space from left side of the string
// trimming space from left side of the string
String
.
prototype
.
trimLeft
=
function
()
{
String
.
prototype
.
trimLeft
=
function
()
{
return
this
.
replace
(
/^
\s
+/
,
''
);
return
this
.
replace
(
/^
\s
+/
,
''
);
};
};
// trimming space from right side of the string
// trimming space from right side of the string
String
.
prototype
.
trimRight
=
function
()
{
String
.
prototype
.
trimRight
=
function
()
{
return
this
.
replace
(
/
\s
+$/
,
''
);
return
this
.
replace
(
/
\s
+$/
,
''
);
};
};
/**
/**
* String: pads left
* String: pads left
* @param {*} padString
* @param {*} padString
* @param {*} length
* @param {*} length
* @returns
* @returns
*/
*/
String
.
prototype
.
padLeft
=
function
(
padString
,
length
)
{
String
.
prototype
.
padLeft
=
function
(
padString
,
length
)
{
var
str
=
this
;
var
str
=
this
;
while
(
str
.
length
<
length
)
str
=
padString
+
str
;
while
(
str
.
length
<
length
)
str
=
padString
+
str
;
return
str
;
return
str
;
};
};
/**
/**
* String: pads right
* String: pads right
* @param {*} padString
* @param {*} padString
* @param {*} length
* @param {*} length
* @returns
* @returns
*/
*/
String
.
prototype
.
padRight
=
function
(
padString
,
length
)
{
String
.
prototype
.
padRight
=
function
(
padString
,
length
)
{
var
str
=
this
;
var
str
=
this
;
while
(
str
.
length
<
length
)
str
=
str
+
padString
;
while
(
str
.
length
<
length
)
str
=
str
+
padString
;
return
str
;
return
str
;
};
};
/**
/**
* Check contain string
* Check contain string
* @param {*} string
* @param {*} string
* @returns
* @returns
*/
*/
String
.
prototype
.
contains
=
function
(
string
)
{
String
.
prototype
.
contains
=
function
(
string
)
{
if
(
this
.
indexOf
(
string
)
!=
-
1
)
{
if
(
this
.
indexOf
(
string
)
!=
-
1
)
{
return
true
;
return
true
;
}
}
return
false
;
return
false
;
};
};
/**
/**
* Number: pads left
* Number: pads left
* @param {*} padString
* @param {*} padString
* @param {*} length
* @param {*} length
* @returns
* @returns
*/
*/
Number
.
prototype
.
padLeft
=
function
(
padString
,
length
)
{
Number
.
prototype
.
padLeft
=
function
(
padString
,
length
)
{
var
str
=
this
+
''
;
var
str
=
this
+
''
;
return
str
.
padLeft
(
padString
,
length
);
return
str
.
padLeft
(
padString
,
length
);
};
};
/**
/**
* Number: pads right
* Number: pads right
* @param {*} padString
* @param {*} padString
* @param {*} length
* @param {*} length
* @returns
* @returns
*/
*/
Number
.
prototype
.
padRight
=
function
(
padString
,
length
)
{
Number
.
prototype
.
padRight
=
function
(
padString
,
length
)
{
var
str
=
this
+
''
;
var
str
=
this
+
''
;
return
str
.
padRight
(
padString
,
length
);
return
str
.
padRight
(
padString
,
length
);
};
};
// Clear data of array
// Clear data of array
Array
.
prototype
.
clear
=
function
()
{
Array
.
prototype
.
clear
=
function
()
{
this
.
splice
(
0
,
this
.
length
);
this
.
splice
(
0
,
this
.
length
);
};
};
// Function to set position of object to center
// Function to set position of object to center
jQuery
.
fn
.
center
=
function
()
{
jQuery
.
fn
.
center
=
function
()
{
this
.
css
(
'position'
,
'fixed'
);
this
.
css
(
'position'
,
'fixed'
);
this
.
css
(
'top'
,
(
$
(
window
).
height
()
-
this
.
height
())
/
2
+
'px'
);
this
.
css
(
'top'
,
(
$
(
window
).
height
()
-
this
.
height
())
/
2
+
'px'
);
this
.
css
(
'left'
,
(
$
(
window
).
width
()
-
this
.
width
())
/
2
+
'px'
);
this
.
css
(
'left'
,
(
$
(
window
).
width
()
-
this
.
width
())
/
2
+
'px'
);
return
this
;
return
this
;
};
};
\ No newline at end of file
abweb/html/accountSetting.html
View file @
611a9940
...
@@ -35,68 +35,70 @@
...
@@ -35,68 +35,70 @@
<div
id=
"includedHeader"
></div>
<div
id=
"includedHeader"
></div>
<!-- account setting -->
<!-- account setting -->
<div
id=
"includedMainTitle"
></div>
<div
id=
"includedMainTitle"
></div>
<main
id=
"main"
>
<div
id=
"loadingNone"
style=
"display:none;"
>
<div
class=
"container-wrap"
>
<main
id=
"main"
>
<!-- content -->
<div
class=
"container-wrap"
>
<div
class=
"row"
>
<!-- content -->
<div
class=
"col-md-6 col-12 mb-4"
>
<div
class=
"row"
>
<div
class=
"card p-4"
>
<div
class=
"col-md-6 col-12 mb-4"
>
<h2
class=
"fs-10 font-weight-bold mb-3 lang"
lang=
"accountSetting"
></h2>
<div
class=
"card p-4"
>
<table>
<h2
class=
"fs-10 font-weight-bold mb-3 lang"
lang=
"accountSetting"
></h2>
<colgroup>
<table>
<col
span=
"1"
class=
"w-120px"
>
<colgroup>
</colgroup>
<col
span=
"1"
class=
"w-120px"
>
<tbody>
</colgroup>
<tr
class=
"border-bottom"
>
<tbody>
<th
class=
"fs-9 p-2 text-secondary lang"
lang=
"txtLoginId"
>
ログインID
</th>
<tr
class=
"border-bottom"
>
<td
class=
"p-2"
lang=
"txtLoginId"
id=
"txtLoginId"
>
login-idlogin-idlogin-id
</td>
<th
class=
"fs-9 p-2 text-secondary lang"
lang=
"txtLoginId"
>
ログインID
</th>
</tr>
<td
class=
"p-2"
lang=
"txtLoginId"
id=
"txtLoginId"
>
login-idlogin-idlogin-id
</td>
<tr
class=
"border-bottom"
>
</tr>
<th
class=
"fs-9 p-2 text-secondary lang"
lang=
"txtLoginAccPath"
>
アカウントパス
</th>
<tr
class=
"border-bottom"
>
<td
class=
"p-2"
lang=
"txtLoginAccPath"
id=
"txtLoginAccPath"
>
account-textaccount
</td>
<th
class=
"fs-9 p-2 text-secondary lang"
lang=
"txtLoginAccPath"
>
アカウントパス
</th>
</tr>
<td
class=
"p-2"
lang=
"txtLoginAccPath"
id=
"txtLoginAccPath"
>
account-textaccount
</td>
<tr
class=
"border-bottom"
>
</tr>
<th
class=
"fs-9 p-2 text-secondary lang"
lang=
"txtLoginDate"
>
ログイン日時
</th>
<tr
class=
"border-bottom"
>
<td
class=
"p-2"
lang=
"txtLastLoginTime"
id=
"txtLastLoginTime"
>
2022/09/30 12:00:00
</td>
<th
class=
"fs-9 p-2 text-secondary lang"
lang=
"txtLoginDate"
>
ログイン日時
</th>
</tr>
<td
class=
"p-2"
lang=
"txtLastLoginTime"
id=
"txtLastLoginTime"
>
2022/09/30 12:00:00
</td>
</tbody>
</tr>
</table>
</tbody>
</table>
</div>
</div>
</div>
</div
>
<div
class=
"col-md-6 col-12 mb-4"
>
<div
class=
"col-md-6 col-12 mb-4
"
>
<div
class=
"card p-4 password
"
>
<div
class=
"card p-4 password"
>
<h2
class=
"fs-10 font-weight-bold mb-3 lang"
lang=
"dspPwdUpd"
>
パスワード変更
</h2
>
<h2
class=
"fs-10 font-weight-bold mb-3 lang"
lang=
"dspPwdUpd"
>
パスワード変更
</h2
>
<form
>
<form
>
<div
class=
"form-group mb-3"
>
<div
class=
"form-group mb-3"
>
<label
id=
"lblPwdCur"
class=
"lang"
lang=
"txtPwdCurr"
>
現在のパスワード
</label
>
<label
id=
"lblPwdCur"
class=
"lang"
lang=
"txtPwdCurr"
>
現在のパスワード
</label
>
<input
type=
"password"
class=
"form-control"
id=
"txtPwdCur"
maxlength=
"16"
aria-describedby=
"current"
>
<
input
type=
"password"
class=
"form-control"
id=
"txtPwdCur"
maxlength=
"16"
aria-describedby=
"current"
>
<
/div
>
</div
>
<div
class=
"form-group mb-3"
>
<div
class=
"form-group mb-3"
>
<label
id=
"lblPwdNew"
class=
"lang"
lang=
"txtPwdNew"
>
新しいパスワード
</label
>
<label
id=
"lblPwdNew"
class=
"lang"
lang=
"txtPwdNew"
>
新しいパスワード
</label
>
<input
type=
"password"
class=
"form-control"
id=
"txtPwdNew"
maxlength=
"16"
aria-describedby=
"new"
>
<
input
type=
"password"
class=
"form-control"
id=
"txtPwdNew"
maxlength=
"16"
aria-describedby=
"new"
>
<
/div
>
</div
>
<div
class=
"form-group mb-4"
>
<div
class=
"form-group mb-4"
>
<label
id=
"lblPwdNewRe"
class=
"lang"
lang=
"txtPwdNewRe"
>
新しいパスワード
</label
>
<label
id=
"lblPwdNewRe"
class=
"lang"
lang=
"txtPwdNewRe"
>
新しいパスワード
</label
>
<input
type=
"password"
class=
"form-control"
id=
"txtPwdNewRe"
maxlength=
"16"
aria-describedby=
"confirm"
>
<
input
type=
"password"
class=
"form-control"
id=
"txtPwdNewRe"
maxlength=
"16"
aria-describedby=
"confirm"
>
<
/div
>
</div
>
<p
class=
"error lang"
id=
"main-error-message"
style=
"display:none;"
>
パスワードまたはIDに誤りがあります
</p
>
<p
class=
"error lang"
id=
"main-error-message"
style=
"display:none;"
>
パスワードまたはIDに誤りがあります
</p
>
<button
type=
"submit"
class=
"btn btn-primary lang"
lang=
"dspChange"
id=
"dspPwdUpd1"
>
変更
</button
>
<
button
type=
"submit"
class=
"btn btn-primary lang"
lang=
"dspChange"
id=
"dspPwdUpd1"
>
変更
</button
>
<
/form
>
</
form
>
</
div
>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</main>
</main>
<!-- alert -->
<!-- alert -->
<div
class=
"alert-overlay d-none"
></div>
<div
class=
"alert-overlay d-none"
></div>
<div
class=
"alert-area d-none"
>
<div
class=
"alert-area d-none"
>
<i
class=
"text-right fas fa-times fa-2x loading-close"
onclick=
"COMMON.alertClose();"
></i>
<i
class=
"text-right fas fa-times fa-2x loading-close"
onclick=
"COMMON.alertClose();"
></i>
<div
class=
"fs-13 mt-4 text-left"
style=
"padding: 15px;"
id=
"alertMsg"
></div>
<div
class=
"fs-13 mt-4 text-left"
style=
"padding: 15px;"
id=
"alertMsg"
></div>
</div>
<input
type=
"hidden"
id=
"getToken"
>
<!-- confirm -->
<div
id=
"includedConfirmModal"
></div>
</div>
</div>
<input
type=
"hidden"
id=
"getToken"
>
<!-- confirm -->
<div
id=
"includedConfirmModal"
></div>
<script
type=
"text/javascript"
src=
"../common/js/app.js?__UPDATEID__"
></script>
<script
type=
"text/javascript"
src=
"../common/js/app.js?__UPDATEID__"
></script>
<script
src=
"../common/js/event.js?__UPDATEID__"
></script>
<script
src=
"../common/js/event.js?__UPDATEID__"
></script>
</body>
</body>
...
...
abweb/html/dashboard.html
View file @
611a9940
...
@@ -41,32 +41,35 @@
...
@@ -41,32 +41,35 @@
<div
id=
"loader"
></div>
<div
id=
"loader"
></div>
<!-- header -->
<!-- header -->
<div
id=
"includedHeader"
></div>
<div
id=
"includedHeader"
></div>
<!-- dashboard -->
<div
id=
"loadingNone"
style=
"display:none;"
>
<main>
<div
class=
"container-wrap"
>
<!-- dashboard -->
<div
id=
"includedMainTitle"
></div>
<main>
<div
class=
"container-wrap"
>
<!-- sub title -->
<div
id=
"includedMainTitle"
></div>
<h2
class=
"fs-8 font-weight-bold lang"
id=
"pickupHeader"
lang=
"pickup"
></h2>
<!-- sub title -->
<h2
class=
"fs-8 font-weight-bold lang"
id=
"pickupHeader"
lang=
"pickup"
></h2>
<!-- card -->
<!-- card -->
<ul
class=
"dashboard-menu p-0 mt-3 d-grid col-gap-10 grid-col-md-4 grid-col-2"
id =
"pickupItems"
>
<ul
class=
"dashboard-menu p-0 mt-3 d-grid col-gap-10 grid-col-md-4 grid-col-2"
id =
"pickupItems"
>
</ul>
</ul>
<!-- sub title -->
<!-- sub title -->
<h2
class=
"fs-8 font-weight-bold lang"
lang=
"communication"
></h2>
<h2
class=
"fs-8 font-weight-bold lang"
lang=
"communication"
></h2>
<!-- card -->
<!-- card -->
<ul
class=
"dashboard-menu p-0 mt-3 d-grid col-gap-10 grid-col-md-4 grid-col-2"
id=
"communicationItems"
>
<ul
class=
"dashboard-menu p-0 mt-3 d-grid col-gap-10 grid-col-md-4 grid-col-2"
id=
"communicationItems"
>
</ul>
</ul>
</div>
</div>
</main>
</main>
<!-- dashboard setting model -->
<!-- dashboard setting model -->
<div
id=
"includedDashboardSetting"
></div>
<div
id=
"includedDashboardSetting"
></div>
<!-- confirm -->
<!-- confirm -->
<div
id=
"includedConfirmModal"
></div>
<div
id=
"includedConfirmModal"
></div>
</div>
<script
type=
"text/javascript"
src=
"../common/js/app.js?__UPDATEID__"
></script>
<script
type=
"text/javascript"
src=
"../common/js/app.js?__UPDATEID__"
></script>
<script
src=
"../common/js/event.js?__UPDATEID__"
></script>
<script
src=
"../common/js/event.js?__UPDATEID__"
></script>
</body>
</body>
...
...
abweb/html/index.html
View file @
611a9940
...
@@ -35,102 +35,104 @@
...
@@ -35,102 +35,104 @@
<div
id=
"loader"
></div>
<div
id=
"loader"
></div>
<!-- header -->
<!-- header -->
<div
id=
"includedHeader"
></div>
<div
id=
"includedHeader"
></div>
<!-- task list -->
<div
id=
"loadingNone"
style=
"display:none;"
>
<main>
<!-- task list -->
<div
class=
"container-wrap"
>
<main>
<div
id=
"includedMainTitle"
></div>
<div
class=
"container-wrap"
>
<!-- search condition -->
<div
id=
"includedMainTitle"
></div>
<nav
aria-label=
"search"
class=
"search search-condition"
>
<!-- search condition -->
<div
class=
"d-flex align-items-center"
>
<nav
aria-label=
"search"
class=
"search search-condition"
>
<div
class=
"search-form mr-1"
>
<div
class=
"d-flex align-items-center"
>
<input
type=
"text"
class=
"form-control lang"
lang=
"operationListSearchPlacehoder"
placeholder=
""
id=
"searchTaskName"
>
<div
class=
"search-form mr-1"
>
<a
href=
"#"
class=
"search-form-btn"
>
<input
type=
"text"
class=
"form-control lang"
lang=
"operationListSearchPlacehoder"
placeholder=
""
id=
"searchTaskName"
>
<img
src=
"../common/img/icon_search.svg"
type=
"image"
alt=
""
class=
"lang"
lang=
"searchIcon"
onclick=
"OL.search();"
>
<a
href=
"#"
class=
"search-form-btn"
>
</a>
<img
src=
"../common/img/icon_search.svg"
type=
"image"
alt=
""
class=
"lang"
lang=
"searchIcon"
onclick=
"OL.search();"
>
</div>
<a
href=
"#"
class=
"mx-1 d-none"
id=
"operationGroupMasterButton"
data-toggle=
"modal"
data-target=
"#category-modal"
>
<img
class=
"serarch-icon lang"
lang=
"category"
src=
"../common/img/icon_folder.svg"
type=
"image"
alt=
""
data-toggle=
"tooltip"
data-placement=
"bottom"
title=
""
onclick=
"OL.openCategory();"
>
</a>
<div
class=
"c-dropdown"
>
<a
href=
"#"
class=
"mx-1"
>
<img
class=
"serarch-icon c-dropdown-trigger lang"
lang=
"term"
id=
"dropdown-term"
src=
"../common/img/icon_calendar.svg"
type=
"image"
alt=
""
data-toggle=
"tooltip"
data-placement=
"bottom"
title=
""
>
</a>
</a>
<div
class=
"c-dropdown-menu dropdown-menu-right"
data-animation=
"true"
data-target=
"dropdown-term"
>
</div>
<div
class=
"form-group p-2 mb-0"
>
<a
href=
"#"
class=
"mx-1 d-none"
id=
"operationGroupMasterButton"
data-toggle=
"modal"
data-target=
"#category-modal"
>
<label
class=
"lang"
lang=
"startDate"
></label>
<img
class=
"serarch-icon lang"
lang=
"category"
src=
"../common/img/icon_folder.svg"
type=
"image"
alt=
""
data-toggle=
"tooltip"
data-placement=
"bottom"
title=
""
onclick=
"OL.openCategory();"
>
<div
class=
"input-group date"
id=
"datetimepicker1"
data-target-input=
"nearest"
>
</a>
<input
type=
"text"
name=
"start"
class=
"form-control form-control-sm datetimepicker-input"
data-target=
"#datetimepicker1"
placeholder=
"選択"
id=
"searchStartDate"
>
<div
class=
"c-dropdown"
>
<div
class=
"input-group-append"
data-target=
"#datetimepicker1"
data-toggle=
"datetimepicker"
>
<a
href=
"#"
class=
"mx-1"
>
<div
class=
"input-group-text py-1 px-2"
>
<img
class=
"serarch-icon c-dropdown-trigger lang"
lang=
"term"
id=
"dropdown-term"
src=
"../common/img/icon_calendar.svg"
type=
"image"
alt=
""
data-toggle=
"tooltip"
data-placement=
"bottom"
title=
""
>
<img
src=
"../common/img/icon_calendar.svg"
type=
"image"
alt=
""
class=
"calendar-icon lang"
lang=
"calendar"
>
</a>
<div
class=
"c-dropdown-menu dropdown-menu-right"
data-animation=
"true"
data-target=
"dropdown-term"
>
<div
class=
"form-group p-2 mb-0"
>
<label
class=
"lang"
lang=
"startDate"
></label>
<div
class=
"input-group date"
id=
"datetimepicker1"
data-target-input=
"nearest"
>
<input
type=
"text"
name=
"start"
class=
"form-control form-control-sm datetimepicker-input"
data-target=
"#datetimepicker1"
placeholder=
"選択"
id=
"searchStartDate"
>
<div
class=
"input-group-append"
data-target=
"#datetimepicker1"
data-toggle=
"datetimepicker"
>
<div
class=
"input-group-text py-1 px-2"
>
<img
src=
"../common/img/icon_calendar.svg"
type=
"image"
alt=
""
class=
"calendar-icon lang"
lang=
"calendar"
>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div
>
<div
class=
"form-group p-2 mb-0"
>
<div
class=
"form-group p-2 mb-0"
>
<label
class=
"lang"
lang=
"endDate"
></label
>
<label
class=
"lang"
lang=
"endDate"
></label
>
<div
class=
"input-group date"
id=
"datetimepicker2"
data-target-input=
"nearest"
>
<div
class=
"input-group date"
id=
"datetimepicker2"
data-target-input=
"nearest
"
>
<input
type=
"text"
name=
"end"
class=
"form-control form-control-sm datetimepicker-input"
data-target=
"#datetimepicker2"
placeholder=
"選択"
id=
"searchEndDate
"
>
<input
type=
"text"
name=
"end"
class=
"form-control form-control-sm datetimepicker-input"
data-target=
"#datetimepicker2"
placeholder=
"選択"
id=
"searchEndDate
"
>
<div
class=
"input-group-append"
data-target=
"#datetimepicker2"
data-toggle=
"datetimepicker
"
>
<div
class=
"input-group-append"
data-target=
"#datetimepicker2"
data-toggle=
"datetimepicker
"
>
<div
class=
"input-group-text py-1 px-2
"
>
<div
class=
"input-group-text py-1 px-2
"
>
<img
src=
"../common/img/icon_calendar.svg"
type=
"image"
alt=
""
class=
"calendar-icon lang"
lang=
"calendar
"
>
<
img
src=
"../common/img/icon_calendar.svg"
type=
"image"
alt=
""
class=
"calendar-icon lang"
lang=
"calendar"
>
<
/div
>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div
class=
"mask hide"
></div>
</div>
</div>
<div
class=
"mask hide"
></div>
<div
class=
"dropdown"
>
</div>
<a
href=
"#"
class=
"mx-1"
id=
"dropdown-term"
data-toggle=
"dropdown"
aria-haspopup=
"true"
aria-expanded=
"false"
data-offset=
"-120, 0"
>
<div
class=
"dropdown"
>
<img
class=
"serarch-icon lang"
lang=
"sortBy"
src=
"../common/img/icon_swap.svg"
type=
"image"
alt=
""
data-toggle=
"tooltip"
data-placement=
"bottom"
title=
""
>
<a
href=
"#"
class=
"mx-1"
id=
"dropdown-term"
data-toggle=
"dropdown"
aria-haspopup=
"true"
aria-expanded=
"false"
data-offset=
"-120, 0"
>
</a>
<img
class=
"serarch-icon lang"
lang=
"sortBy"
src=
"../common/img/icon_swap.svg"
type=
"image"
alt=
""
data-toggle=
"tooltip"
data-placement=
"bottom"
title=
""
>
<div
class=
"dropdown-menu dropdown-menu-right sort"
data-animation=
"true"
aria-labelledby=
"dropdownMenuButton"
>
</a>
<a
class=
"dropdown-item sort-type lang"
lang=
"sortByName"
href=
"#"
data-sort=
"0"
onclick=
"OL.changeSortType(this);"
></a>
<div
class=
"dropdown-menu dropdown-menu-right sort"
data-animation=
"true"
aria-labelledby=
"dropdownMenuButton"
>
<a
class=
"dropdown-item sort-type lang active"
lang=
"sortByStartDate"
href=
"#"
data-sort=
"1"
id=
"defaultSort"
onclick=
"OL.changeSortType(this);"
></a>
<a
class=
"dropdown-item sort-type lang"
lang=
"sortByName"
href=
"#"
data-sort=
"0"
onclick=
"OL.changeSortType(this);"
></a>
<a
class=
"dropdown-item sort-type lang"
lang=
"sortByEndDate"
href=
"#"
data-sort=
"2"
onclick=
"OL.changeSortType(this);"
></a>
<a
class=
"dropdown-item sort-type lang active"
lang=
"sortByStartDate"
href=
"#"
data-sort=
"1"
id=
"defaultSort"
onclick=
"OL.changeSortType(this);"
></a>
<a
class=
"dropdown-item sort-type lang"
lang=
"sortByLastEdit"
href=
"#"
data-sort=
"4"
onclick=
"OL.changeSortType(this);"
></a>
<a
class=
"dropdown-item sort-type lang"
lang=
"sortByEndDate"
href=
"#"
data-sort=
"2"
onclick=
"OL.changeSortType(this);"
></a>
</div>
<a
class=
"dropdown-item sort-type lang"
lang=
"sortByLastEdit"
href=
"#"
data-sort=
"4"
onclick=
"OL.changeSortType(this);"
></a>
</div>
</div>
<a
href=
"javascript:OL.resetSearch();"
class=
"mx-1"
>
<img
class=
"serarch-icon lang"
lang=
"searchClear"
src=
"../common/img/icon_close.svg"
type=
"image"
alt=
""
data-toggle=
"tooltip"
data-placement=
"bottom"
title=
""
>
</a>
</div>
</div>
<a
href=
"javascript:OL.resetSearch();"
class=
"mx-1"
>
</nav>
<img
class=
"serarch-icon lang"
lang=
"searchClear"
src=
"../common/img/icon_close.svg"
type=
"image"
alt=
""
data-toggle=
"tooltip"
data-placement=
"bottom"
title=
""
>
</a>
</div>
</nav>
<!-- category -->
<!-- category -->
<nav
aria-label=
"breadcrumb"
>
<nav
aria-label=
"breadcrumb"
>
<ol
class=
"breadcrumb px-0 pb-0 mb-0"
id=
"groupMasterPath"
>
<ol
class=
"breadcrumb px-0 pb-0 mb-0"
id=
"groupMasterPath"
>
</ol>
</ol>
</nav>
</nav>
<!-- view menu -->
<!-- view menu -->
<nav
aria-label=
"view"
class=
"view-menu mt-2"
>
<nav
aria-label=
"view"
class=
"view-menu mt-2"
>
<div
class=
"d-flex justify-content-between align-items-center"
>
<div
class=
"d-flex justify-content-between align-items-center"
>
<div
class=
"fs-9"
><span
id=
"operationCount"
></span><span
class=
"lang"
lang=
"display"
></span></div>
<div
class=
"fs-9"
><span
id=
"operationCount"
></span><span
class=
"lang"
lang=
"display"
></span></div>
<div
class=
"view"
>
<div
class=
"view"
>
<a
href=
"#"
class=
"text-decoration-none view-btn view-list-btn"
>
<a
href=
"#"
class=
"text-decoration-none view-btn view-list-btn"
>
<img
src=
"../common/img/icon_view_list.svg"
type=
"image"
alt=
""
class=
"list-block-icon mx-1 lang"
lang=
"listDisplay"
data-toggle=
"tooltip"
data-placement=
"bottom"
title=
""
>
<img
src=
"../common/img/icon_view_list.svg"
type=
"image"
alt=
""
class=
"list-block-icon mx-1 lang"
lang=
"listDisplay"
data-toggle=
"tooltip"
data-placement=
"bottom"
title=
""
>
</a>
</a>
<a
href=
"#"
class=
"text-decoration-none view-btn view-block-btn active"
>
<a
href=
"#"
class=
"text-decoration-none view-btn view-block-btn active"
>
<img
src=
"../common/img/icon_view_block.svg"
type=
"image"
alt=
""
class=
"list-block-icon mx-1 lang"
lang=
"gridDisplay"
data-toggle=
"tooltip"
data-placement=
"bottom"
title=
""
>
<img
src=
"../common/img/icon_view_block.svg"
type=
"image"
alt=
""
class=
"list-block-icon mx-1 lang"
lang=
"gridDisplay"
data-toggle=
"tooltip"
data-placement=
"bottom"
title=
""
>
</a>
</a>
</div>
</div>
</div>
</div>
</nav>
</nav>
<!-- task list -->
<!-- task list -->
<ul
class=
"p-0 mt-3 card-list task-list view-content view-block"
id=
"operationTable"
>
<ul
class=
"p-0 mt-3 card-list task-list view-content view-block"
id=
"operationTable"
>
</ul>
</ul>
</div>
</div>
</main>
</main>
<!-- category modal -->
<!-- category modal -->
<div
id=
"includedCategoryModal"
></div>
<div
id=
"includedCategoryModal"
></div>
<!-- confirm -->
<!-- confirm -->
<div
id=
"includedConfirmModal"
></div>
<div
id=
"includedConfirmModal"
></div>
</div>
<script
src=
"../common/js/app.js?__UPDATEID__"
defer
></script>
<script
src=
"../common/js/app.js?__UPDATEID__"
defer
></script>
<script
src=
"../common/js/event.js?__UPDATEID__"
></script>
<script
src=
"../common/js/event.js?__UPDATEID__"
></script>
</body>
</body>
...
...
abweb/html/pdfPrint.html
View file @
611a9940
...
@@ -40,15 +40,17 @@
...
@@ -40,15 +40,17 @@
<div
id=
"loader"
></div>
<div
id=
"loader"
></div>
<!-- header -->
<!-- header -->
<div
id=
"includedHeader"
></div>
<div
id=
"includedHeader"
></div>
<div
id=
"loadingNone"
style=
"display:none;"
>
<!-- title -->
<!-- title -->
<div
id=
"includedMainTitle"
></div>
<div
id=
"includedMainTitle"
></div>
<!-- ↓↓↓ ここから共通HTML ↓↓↓ -->
<!-- ↓↓↓ ここから共通HTML ↓↓↓ -->
<div
class=
"container-wrap mb-5"
id=
"pdfPrintDiv"
></div>
<div
class=
"container-wrap mb-5"
id=
"pdfPrintDiv"
></div>
<!-- confirm -->
<!-- confirm -->
<div
id=
"includedConfirmModal"
></div>
<div
id=
"includedConfirmModal"
></div>
</div>
<script
type=
"text/javascript"
src=
"../common/js/app.js?__UPDATEID__"
></script>
<script
type=
"text/javascript"
src=
"../common/js/app.js?__UPDATEID__"
></script>
<script
src=
"../common/js/event.js?__UPDATEID__"
></script>
<script
src=
"../common/js/event.js?__UPDATEID__"
></script>
</body>
</body>
...
...
abweb/html/pickup.html
View file @
611a9940
...
@@ -44,101 +44,103 @@
...
@@ -44,101 +44,103 @@
<body>
<body>
<div
id=
"loader"
></div>
<div
id=
"loader"
></div>
<div
id=
"includedHeader"
></div>
<div
id=
"includedHeader"
></div>
<!-- pickup -->
<div
id=
"loadingNone"
style=
"display:none;"
>
<main>
<!-- pickup -->
<div
class=
"container-wrap"
>
<main>
<!-- header -->
<div
class=
"container-wrap"
>
<div
id=
"includedMainTitle"
></div>
<!-- header -->
<div
id=
"includedMainTitle"
></div>
<!-- tab -->
<ul
class=
"nav nav-tabs line"
id=
"myTab"
role=
"tablist"
>
<!-- tab -->
<li
class=
"nav-item"
id=
"liTabNewReport"
>
<ul
class=
"nav nav-tabs line"
id=
"myTab"
role=
"tablist"
>
<a
class=
"nav-link active"
data-toggle=
"tab"
href=
"#tab-content-NewReport"
role=
"tab"
aria-controls=
"tab-content-NewReport"
aria-expanded=
"true"
>
<li
class=
"nav-item"
id=
"liTabNewReport"
>
<div
class=
"text-center lang"
lang=
"addNew"
></div>
<a
class=
"nav-link active"
data-toggle=
"tab"
href=
"#tab-content-NewReport"
role=
"tab"
aria-controls=
"tab-content-NewReport"
aria-expanded=
"true"
>
</a>
<div
class=
"text-center lang"
lang=
"addNew"
></div>
</li>
</a>
<li
class=
"nav-item"
id=
"liTabContinousWork"
>
</li>
<a
class=
"nav-link"
data-toggle=
"tab"
href=
"#tab-content-ContinousWork"
role=
"tab"
aria-controls=
"tab-content-ContinousWork"
>
<li
class=
"nav-item"
id=
"liTabContinousWork"
>
<div
class=
"text-center lang"
lang=
"processWorkTitle"
></div>
<a
class=
"nav-link"
data-toggle=
"tab"
href=
"#tab-content-ContinousWork"
role=
"tab"
aria-controls=
"tab-content-ContinousWork"
>
</a>
<div
class=
"text-center lang"
lang=
"processWorkTitle"
></div>
</li>
</a>
<li
class=
"nav-item"
id=
"liTabReportWithWarning"
>
</li>
<a
class=
"nav-link"
data-toggle=
"tab"
href=
"#tab-content-ReportWithWarnings"
role=
"tab"
aria-controls=
"tab-content-ReportWithWarnings"
>
<li
class=
"nav-item"
id=
"liTabReportWithWarning"
>
<div
class=
"text-center lang"
lang=
"reportWarningTitle"
></div>
<a
class=
"nav-link"
data-toggle=
"tab"
href=
"#tab-content-ReportWithWarnings"
role=
"tab"
aria-controls=
"tab-content-ReportWithWarnings"
>
</a>
<div
class=
"text-center lang"
lang=
"reportWarningTitle"
></div>
</li>
</a>
</ul>
</li>
<!-- tab content-->
</ul>
<!-- new -->
<!-- tab content-->
<div
class=
"tab-content"
id=
"myTabContent"
>
<!-- new -->
<div
class=
"tab-pane fade show active"
id=
"tab-content-NewReport"
role=
"tabpanel"
aria-labelledby=
"1-tab"
>
<div
class=
"tab-content"
id=
"myTabContent"
>
<!-- view menu -->
<div
class=
"tab-pane fade show active"
id=
"tab-content-NewReport"
role=
"tabpanel"
aria-labelledby=
"1-tab"
>
<nav
aria-label=
"view"
class=
"view-menu mt-2"
id=
"viewMenuNewReport"
>
<!-- view menu -->
<div
class=
"d-flex justify-content-between align-items-center"
>
<nav
aria-label=
"view"
class=
"view-menu mt-2"
id=
"viewMenuNewReport"
>
<div
class=
"fs-9"
id=
"count-NewReport"
></div>
<div
class=
"d-flex justify-content-between align-items-center"
>
<!-- view display type menu -->
<div
class=
"fs-9"
id=
"count-NewReport"
></div>
<div
class=
"view"
>
<!-- view display type menu -->
<a
href=
"#"
class=
"text-decoration-none view-btn view-list-btn"
>
<div
class=
"view"
>
<img
src=
"../common/img/icon_view_list.svg"
alt=
""
class=
"list-block-icon mx-1 lang"
lang=
"listDisplay"
type=
"image"
data-toggle=
"tooltip"
data-placement=
"bottom"
title=
""
>
<a
href=
"#"
class=
"text-decoration-none view-btn view-list-btn"
>
</a>
<img
src=
"../common/img/icon_view_list.svg"
alt=
""
class=
"list-block-icon mx-1 lang"
lang=
"listDisplay"
type=
"image"
data-toggle=
"tooltip"
data-placement=
"bottom"
title=
""
>
<a
href=
"#"
class=
"text-decoration-none view-btn view-block-btn active"
>
</a>
<img
src=
"../common/img/icon_view_block.svg"
alt=
""
class=
"list-block-icon mx-1 lang"
lang=
"gridDisplay"
type=
"image"
data-toggle=
"tooltip"
data-placement=
"bottom"
title=
""
>
<a
href=
"#"
class=
"text-decoration-none view-btn view-block-btn active"
>
</a>
<img
src=
"../common/img/icon_view_block.svg"
alt=
""
class=
"list-block-icon mx-1 lang"
lang=
"gridDisplay"
type=
"image"
data-toggle=
"tooltip"
data-placement=
"bottom"
title=
""
>
</div>
</a>
</div>
</div>
</nav>
</div>
<!-- task list -->
</nav>
<ul
class=
"p-0 mt-3 card-list task-list view-content view-block"
id=
"newReport-list"
>
<!-- task list -->
</ul>
<ul
class=
"p-0 mt-3 card-list task-list view-content view-block"
id=
"newReport-list"
>
</div>
</ul>
<!-- proccess -->
</div>
<div
class=
"tab-pane fade"
id=
"tab-content-ContinousWork"
role=
"tabpanel"
aria-labelledby=
"2-tab"
>
<!-- proccess -->
<!-- view menu -->
<div
class=
"tab-pane fade"
id=
"tab-content-ContinousWork"
role=
"tabpanel"
aria-labelledby=
"2-tab"
>
<nav
aria-label=
"view"
class=
"view-menu mt-2"
id=
"viewMenuContinuousWork"
>
<!-- view menu -->
<div
class=
"d-flex justify-content-between align-items-center"
>
<nav
aria-label=
"view"
class=
"view-menu mt-2"
id=
"viewMenuContinuousWork"
>
<div
class=
"fs-9"
id=
"count-ContinuousWork"
></div>
<div
class=
"d-flex justify-content-between align-items-center"
>
<!-- view display type menu -->
<div
class=
"fs-9"
id=
"count-ContinuousWork"
></div>
<div
class=
"view"
>
<!-- view display type menu -->
<a
href=
"#"
class=
"text-decoration-none view-btn view-list-btn"
>
<div
class=
"view"
>
<img
src=
"../common/img/icon_view_list.svg"
alt=
""
class=
"list-block-icon mx-1 lang"
lang=
"listDisplay"
type=
"image"
data-toggle=
"tooltip"
data-placement=
"bottom"
title=
""
>
<a
href=
"#"
class=
"text-decoration-none view-btn view-list-btn"
>
</a>
<img
src=
"../common/img/icon_view_list.svg"
alt=
""
class=
"list-block-icon mx-1 lang"
lang=
"listDisplay"
type=
"image"
data-toggle=
"tooltip"
data-placement=
"bottom"
title=
""
>
<a
href=
"#"
class=
"text-decoration-none view-btn view-block-btn active"
>
</a>
<img
src=
"../common/img/icon_view_block.svg"
alt=
""
class=
"list-block-icon mx-1 lang"
lang=
"gridDisplay"
type=
"image"
data-toggle=
"tooltip"
data-placement=
"bottom"
title=
""
>
<a
href=
"#"
class=
"text-decoration-none view-btn view-block-btn active"
>
</a>
<img
src=
"../common/img/icon_view_block.svg"
alt=
""
class=
"list-block-icon mx-1 lang"
lang=
"gridDisplay"
type=
"image"
data-toggle=
"tooltip"
data-placement=
"bottom"
title=
""
>
</div>
</a>
</div>
</div>
</nav>
</div>
<!-- task list -->
</nav>
<ul
class=
"p-0 mt-3 card-list task-list view-content view-block"
id=
"continousWork-list"
>
<!-- task list -->
</ul>
<ul
class=
"p-0 mt-3 card-list task-list view-content view-block"
id=
"continousWork-list"
>
</div>
<!-- alert -->
<div
class=
"tab-pane fade"
id=
"tab-content-ReportWithWarnings"
role=
"tabpanel"
aria-labelledby=
"3-tab"
>
<!-- view menu -->
<nav
aria-label=
"view"
class=
"view-menu mt-2"
id=
"viewMenuReportWithWarnings"
>
<div
class=
"d-flex justify-content-between align-items-center"
>
<div
class=
"fs-9"
id=
"count-ReportWithWarnings"
></div>
<!-- view display type menu -->
<div
class=
"view"
>
<a
href=
"#"
class=
"text-decoration-none view-btn view-list-btn"
>
<img
src=
"../common/img/icon_view_list.svg"
alt=
""
class=
"list-block-icon mx-1 lang"
lang=
"listDisplay"
type=
"image"
data-toggle=
"tooltip"
data-placement=
"bottom"
title=
""
>
</a>
<a
href=
"#"
class=
"text-decoration-none view-btn view-block-btn active"
>
<img
src=
"../common/img/icon_view_block.svg"
alt=
""
class=
"list-block-icon mx-1 lang"
lang=
"gridDisplay"
type=
"image"
data-toggle=
"tooltip"
data-placement=
"bottom"
title=
""
>
</a>
</div>
</div>
</nav>
<!-- task list -->
<ul
class=
"p-0 mt-3 card-list task-list view-content view-block"
id=
"reportWithWarnings-list"
>
</ul>
</ul>
</div>
<!-- alert -->
<div
class=
"tab-pane fade"
id=
"tab-content-ReportWithWarnings"
role=
"tabpanel"
aria-labelledby=
"3-tab"
>
<!-- view menu -->
<nav
aria-label=
"view"
class=
"view-menu mt-2"
id=
"viewMenuReportWithWarnings"
>
<div
class=
"d-flex justify-content-between align-items-center"
>
<div
class=
"fs-9"
id=
"count-ReportWithWarnings"
></div>
<!-- view display type menu -->
<div
class=
"view"
>
<a
href=
"#"
class=
"text-decoration-none view-btn view-list-btn"
>
<img
src=
"../common/img/icon_view_list.svg"
alt=
""
class=
"list-block-icon mx-1 lang"
lang=
"listDisplay"
type=
"image"
data-toggle=
"tooltip"
data-placement=
"bottom"
title=
""
>
</a>
<a
href=
"#"
class=
"text-decoration-none view-btn view-block-btn active"
>
<img
src=
"../common/img/icon_view_block.svg"
alt=
""
class=
"list-block-icon mx-1 lang"
lang=
"gridDisplay"
type=
"image"
data-toggle=
"tooltip"
data-placement=
"bottom"
title=
""
>
</a>
</div>
</div>
</nav>
<!-- task list -->
<ul
class=
"p-0 mt-3 card-list task-list view-content view-block"
id=
"reportWithWarnings-list"
>
</ul>
</div>
</div>
</div>
</div>
</div>
</div>
</main>
</main>
<!-- confirm -->
<!-- confirm -->
<div
id=
"includedConfirmModal"
></div>
<div
id=
"includedConfirmModal"
></div>
</div>
<script
type=
"text/javascript"
src=
"../common/js/app.js?__UPDATEID__"
></script>
<script
type=
"text/javascript"
src=
"../common/js/app.js?__UPDATEID__"
></script>
<script
src=
"../common/js/event.js?__UPDATEID__"
></script>
<script
src=
"../common/js/event.js?__UPDATEID__"
></script>
</body>
</body>
...
...
abweb/html/pushMessageDetail.html
View file @
611a9940
...
@@ -37,41 +37,43 @@
...
@@ -37,41 +37,43 @@
<div
id=
"loader"
></div>
<div
id=
"loader"
></div>
<!-- header -->
<!-- header -->
<div
id=
"includedHeader"
></div>
<div
id=
"includedHeader"
></div>
<!-- message detail -->
<div
id=
"loadingNone"
style=
"display:none;"
>
<main>
<!-- message detail -->
<div
class=
"container-wrap"
>
<main>
<div
id=
"includedMainTitle"
></div>
<div
class=
"container-wrap"
>
<div
class=
"row"
>
<div
id=
"includedMainTitle"
></div>
<div
class=
"col-12"
>
<div
class=
"row"
>
<div
class=
"card p-4"
>
<div
class=
"col-12"
>
<table>
<div
class=
"card p-4"
>
<colgroup>
<table>
<col
span=
"1"
class=
"w-100px"
>
<colgroup>
</colgroup>
<col
span=
"1"
class=
"w-100px"
>
<tbody>
</colgroup>
<tr
class=
"border-bottom"
>
<tbody>
<th
class=
"fs-9 p-2 text-secondary lang"
lang=
"operationName"
></th>
<tr
class=
"border-bottom"
>
<td
class=
"p-2"
id=
"operationName"
></td>
<th
class=
"fs-9 p-2 text-secondary lang"
lang=
"operationName"
></th>
</tr>
<td
class=
"p-2"
id=
"operationName"
></td>
<tr
class=
"border-bottom"
>
</tr>
<th
class=
"fs-9 p-2 text-secondary lang"
lang=
"sendDate"
></th>
<tr
class=
"border-bottom"
>
<td
class=
"p-2"
id=
"sendDate"
></td>
<th
class=
"fs-9 p-2 text-secondary lang"
lang=
"sendDate"
></th>
</tr>
<td
class=
"p-2"
id=
"sendDate"
></td>
<tr
class=
"border-bottom"
>
</tr>
<th
class=
"fs-9 p-2 text-secondary lang"
lang=
"sender"
></th>
<tr
class=
"border-bottom"
>
<td
class=
"p-2"
id=
"sender"
></td>
<th
class=
"fs-9 p-2 text-secondary lang"
lang=
"sender"
></th>
</tr>
<td
class=
"p-2"
id=
"sender"
></td>
<tr
class=
"border-bottom"
>
</tr>
<th
class=
"fs-9 p-2 text-secondary lang"
lang=
"content"
></th>
<tr
class=
"border-bottom"
>
<td
class=
"p-2"
id=
"content"
></td>
<th
class=
"fs-9 p-2 text-secondary lang"
lang=
"content"
></th>
</tr>
<td
class=
"p-2"
id=
"content"
></td>
</tbody>
</tr>
</table>
</tbody>
</table>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</
div
>
</
main
>
</
main
>
</
div
>
<script
type=
"text/javascript"
src=
"../common/js/app.js"
></script>
<script
type=
"text/javascript"
src=
"../common/js/app.js"
></script>
<script
src=
"../common/js/event.js?__UPDATEID__"
></script>
<script
src=
"../common/js/event.js?__UPDATEID__"
></script>
</body>
</body>
...
...
abweb/html/pushMessageList.html
View file @
611a9940
...
@@ -37,22 +37,24 @@
...
@@ -37,22 +37,24 @@
<body>
<body>
<div
id=
"loader"
></div>
<div
id=
"loader"
></div>
<div
id=
"includedHeader"
></div>
<div
id=
"includedHeader"
></div>
<!-- message list -->
<div
id=
"loadingNone"
style=
"display:none;"
>
<main>
<!-- message list -->
<div
class=
"container-wrap"
>
<main>
<!-- header -->
<div
class=
"container-wrap"
>
<div
id=
"includedMainTitle"
></div>
<!-- header -->
<!-- message -->
<div
id=
"includedMainTitle"
></div>
<ul
class=
"card-list message-list p-0"
id=
"messageList"
>
<!-- message -->
<li
class=
"card mb-2 not-found d-none"
>
<ul
class=
"card-list message-list p-0"
id=
"messageList"
>
<div
class=
"text-dark mb-1 px-3 py-5 text-center m-auto"
>
<li
class=
"card mb-2 not-found d-none"
>
<img
src=
"../common/img/icon_not_found.svg"
alt=
"メッセージがありません。"
class=
"not-found-img mb-2"
>
<div
class=
"text-dark mb-1 px-3 py-5 text-center m-auto"
>
<div
class=
"fs-9 text-secondary font-weight-bold lang"
lang=
"messageListEmpty"
></div>
<img
src=
"../common/img/icon_not_found.svg"
alt=
"メッセージがありません。"
class=
"not-found-img mb-2"
>
</div>
<div
class=
"fs-9 text-secondary font-weight-bold lang"
lang=
"messageListEmpty"
></div>
</li>
</div>
</ul>
</li>
</div>
</ul>
</main>
</div>
</main>
</div>
<script
type=
"text/javascript"
src=
"../common/js/app.js"
></script>
<script
type=
"text/javascript"
src=
"../common/js/app.js"
></script>
<script
src=
"../common/js/event.js?__UPDATEID__"
></script>
<script
src=
"../common/js/event.js?__UPDATEID__"
></script>
</body>
</body>
...
...
abweb/html/reportForm.html
View file @
611a9940
...
@@ -32,14 +32,24 @@
...
@@ -32,14 +32,24 @@
<div
id=
"loader"
></div>
<div
id=
"loader"
></div>
<!-- header -->
<!-- header -->
<div
id=
"includedHeader"
></div>
<div
id=
"includedHeader"
></div>
<div
id=
"loadingNone"
style=
"display:none;"
>
<div
id=
"includedMainTitle"
></div>
<div
class=
"quickReportBtn"
id=
"quickReportBtn"
onclick=
"submitForm();"
>
<img
src=
"../common/img/icon_pdf.svg"
alt=
"pdf出力"
class=
"p-1 w-40px"
data-toggle=
"tooltip"
data-placement=
"bottom"
title=
"pdfPrint"
>
</div>
<!-- report list -->
<div
class=
"mb-5"
id=
"report-form"
></div>
<div
id=
"includedMainTitle"
></div>
<div
id=
"includedMainTitle"
></div>
<!-- report list -->
<!-- report list -->
<div
class=
"mb-5"
id=
"report-form"
></div>
<div
class=
"mb-5"
id=
"report-form"
></div>
<!-- confirm -->
<!-- confirm -->
<div
id=
"includedConfirmModal"
></div>
<div
id=
"includedConfirmModal"
></div>
</div>
<script
type=
"text/javascript"
src=
"../common/js/app.js?__UPDATEID__"
></script>
<script
type=
"text/javascript"
src=
"../common/js/app.js?__UPDATEID__"
></script>
<script
src=
"../common/js/event.js?__UPDATEID__"
></script>
<script
src=
"../common/js/event.js?__UPDATEID__"
></script>
</body>
</body>
...
...
abweb/html/reportList.html
View file @
611a9940
...
@@ -40,13 +40,15 @@
...
@@ -40,13 +40,15 @@
<div
id=
"loader"
style=
"display: none;"
></div>
<div
id=
"loader"
style=
"display: none;"
></div>
<!-- header -->
<!-- header -->
<div
id=
"includedHeader"
></div>
<div
id=
"includedHeader"
></div>
<div
id=
"includedMainTitle"
></div>
<div
id=
"loadingNone"
style=
"display:none;"
>
<div
id=
"includedMainTitle"
></div>
<!-- report list -->
<!-- report list -->
<div
class=
"container-wrap mb-5"
id=
"reportList"
></div>
<div
class=
"container-wrap mb-5"
id=
"reportList"
></div>
<!-- confirm -->
<!-- confirm -->
<div
id=
"includedConfirmModal"
></div>
<div
id=
"includedConfirmModal"
></div>
</div>
<script
type=
"text/javascript"
src=
"../common/js/app.js?__UPDATEID__"
></script>
<script
type=
"text/javascript"
src=
"../common/js/app.js?__UPDATEID__"
></script>
<script
src=
"../common/js/event.js?__UPDATEID__"
></script>
<script
src=
"../common/js/event.js?__UPDATEID__"
></script>
</body>
</body>
...
...
abweb/html/sendMessage.html
View file @
611a9940
...
@@ -40,57 +40,59 @@
...
@@ -40,57 +40,59 @@
<body>
<body>
<div
id=
"loader"
></div>
<div
id=
"loader"
></div>
<div
id=
"includedHeader"
></div>
<div
id=
"includedHeader"
></div>
<!-- send message -->
<div
id=
"loadingNone"
style=
"display:none;"
>
<main>
<!-- send message -->
<div
class=
"container-wrap"
>
<main>
<!-- header -->
<div
class=
"container-wrap"
>
<div
id=
"includedMainTitle"
></div>
<!-- header -->
<!-- content -->
<div
id=
"includedMainTitle"
></div>
<div
class=
"py-2"
>
<!-- content -->
<div
class=
"row"
>
<div
class=
"py-2"
>
<div
class=
"col-12"
>
<div
class=
"row"
>
<form
action=
"#"
>
<div
class=
"col-12"
>
<div
class=
"form-group form-row"
>
<form
action=
"#"
>
<div
class=
"col-lg-1 col-md-2 col-3 control-label"
>
<div
class=
"form-group form-row"
>
<button
type=
"button"
class=
"btn btn-sm btn-tertiary lang"
lang=
"buttonOperationSelect"
data-toggle=
"modal"
data-target=
"#task-list-modal"
></button>
<div
class=
"col-lg-1 col-md-2 col-3 control-label"
>
</div>
<button
type=
"button"
class=
"btn btn-sm btn-tertiary lang"
lang=
"buttonOperationSelect"
data-toggle=
"modal"
data-target=
"#task-list-modal"
></button>
<div
class=
"col-lg-11 col-md-10 col-9"
>
</div>
<div
id=
"operationSelected"
data-operation-id=
""
></div>
<div
class=
"col-lg-11 col-md-10 col-9"
>
<div
id=
"operationSelected"
data-operation-id=
""
></div>
</div>
</div>
</div>
</div
>
<div
class=
"form-group form-row"
>
<div
class=
"form-group form-row"
>
<label
for=
"address"
class=
"col-lg-1 col-md-2 col-3 control-label lang"
lang=
"labelSendTypeTitle"
></label
>
<label
for=
"address"
class=
"col-lg-1 col-md-2 col-3 control-label lang"
lang=
"labelSendTypeTitle"
></label
>
<div
class=
"col-lg-11 col-md-10 col-9"
>
<div
class=
"col-lg-11 col-md-10 col-9
"
>
<div
class=
"btn-group btn-group-toggle"
data-toggle=
"buttons
"
>
<div
class=
"btn-group btn-group-toggle"
data-toggle=
"buttons
"
>
<label
class=
"btn btn-sm btn-primary custom active"
for=
"sendTypeGroup
"
>
<label
class=
"btn btn-sm btn-primary custom active"
for=
"sendTypeGroup"
>
<input
type=
"radio"
name=
"sendType"
id=
"sendTypeGroup"
value=
"0"
autocomplete=
"off"
checked
></label
>
<
input
type=
"radio"
name=
"sendType"
id=
"sendTypeGroup"
value=
"0"
autocomplete=
"off"
checked
></label
>
<
label
class=
"btn btn-sm btn-primary custom"
for=
"sendTypeAll"
>
<label
class=
"btn btn-sm btn-primary custom"
for=
"sendTypeAll"
>
<input
type=
"radio"
name=
"sendType"
id=
"sendTypeAll"
value=
"1"
autocomplete=
"off"
></label
>
<input
type=
"radio"
name=
"sendType"
id=
"sendTypeAll"
value=
"1"
autocomplete=
"off"
></label
>
</div
>
</div>
</div>
</div>
</div>
</div>
<div
class=
"form-group mb-4"
>
<div
class=
"form-group mb-4"
>
<div
class=
"d-flex justify-content-between"
>
<div
class=
"d-flex justify-content-between"
>
<label
for=
"message-content"
class=
"lang"
lang=
"txtMessageContent"
></label>
<label
for=
"message-content"
class=
"lang"
lang=
"txtMessageContent"
></label>
<a
href=
"#"
data-toggle=
"modal"
data-target=
"#select-template-modal"
class=
"lang"
lang=
"buttonTemplateSelection"
></a>
<a
href=
"#"
data-toggle=
"modal"
data-target=
"#select-template-modal"
class=
"lang"
lang=
"buttonTemplateSelection"
></a>
</div>
<textarea
name=
"message-content"
class=
"form-control"
id=
"messageContent"
cols=
"30"
rows=
"10"
></textarea>
</div>
</div>
<textarea
name=
"message-content"
class=
"form-control"
id=
"messageContent"
cols=
"30"
rows=
"10"
></textarea>
</form>
</div>
</div>
</form>
</div>
</div>
</div>
<button
type=
"submit"
class=
"btn btn-primary lang"
lang=
"buttonSend"
onclick=
"SendMessage.onClickSend();"
></button>
<button
type=
"submit"
class=
"btn btn-primary lang"
lang=
"buttonSend"
onclick=
"SendMessage.onClickSend();"
></button>
</div>
</div>
</div>
</div>
</main>
</main>
<!-- task list modal -->
<!-- task list modal -->
<div
id=
"includeOperationSelect"
></div>
<div
id=
"includeOperationSelect"
></div>
<!-- select template modal -->
<!-- select template modal -->
<div
id=
"includeTemplateModal"
></div>
<div
id=
"includeTemplateModal"
></div>
</div>
<script
type=
"text/javascript"
src=
"../common/js/app.js"
></script>
<script
type=
"text/javascript"
src=
"../common/js/app.js"
></script>
<script
src=
"../common/js/event.js?__UPDATEID__"
></script>
<script
src=
"../common/js/event.js?__UPDATEID__"
></script>
</body>
</body>
...
...
abweb/js/reportForm/reportForm.js
View file @
611a9940
...
@@ -14,12 +14,12 @@ RF.addReportFlg;
...
@@ -14,12 +14,12 @@ RF.addReportFlg;
RF
.
init
=
function
()
{
RF
.
init
=
function
()
{
//Check if user is logged in
//Check if user is logged in
COMMON
.
checkAuth
(
false
);
COMMON
.
checkAuth
(
false
);
COMMON
.
checkQuickReport
(
function
(
result
)
{
COMMON
.
checkQuickReport
(
function
(
result
)
{
if
(
result
)
{
if
(
result
)
{
result
.
isQuickReport
=
RF
.
isQuickReport
;
result
.
isQuickReport
=
RF
.
isQuickReport
;
result
.
addReportFlg
=
RF
.
addReportFlg
;
result
.
addReportFlg
=
RF
.
addReportFlg
;
}
}
})
})
;
RF
.
loadCommon
();
RF
.
loadCommon
();
RF
.
initFormView
();
RF
.
initFormView
();
};
};
...
@@ -38,7 +38,7 @@ RF.loadCommon = function () {
...
@@ -38,7 +38,7 @@ RF.loadCommon = function () {
*/
*/
RF
.
initBreadcrumb
=
function
()
{
RF
.
initBreadcrumb
=
function
()
{
if
(
sessionStorage
.
activeHomePage
==
CONSTANT
.
PAGE_TAB
.
DASHBOARD
)
{
if
(
sessionStorage
.
activeHomePage
==
CONSTANT
.
PAGE_TAB
.
DASHBOARD
)
{
if
(
sessionStorage
.
getItem
(
"pickUpType"
)
==
CONSTANT
.
PICK_UP_TYPE
.
CONTINOUS_WORK
)
{
if
(
sessionStorage
.
getItem
(
'pickUpType'
)
==
CONSTANT
.
PICK_UP_TYPE
.
CONTINOUS_WORK
)
{
navs
=
[
navs
=
[
{
{
titleLang
:
CONSTANT
.
PAGE_NAME
.
DASHBOARD
,
titleLang
:
CONSTANT
.
PAGE_NAME
.
DASHBOARD
,
...
@@ -49,10 +49,10 @@ RF.initBreadcrumb = function () {
...
@@ -49,10 +49,10 @@ RF.initBreadcrumb = function () {
href
:
CONSTANT
.
URL_TREE_NAME
.
PICKUP_CONTINUOS
,
href
:
CONSTANT
.
URL_TREE_NAME
.
PICKUP_CONTINUOS
,
},
},
{
{
titleLang
:
CONSTANT
.
PAGE_NAME
.
REPORT_FORM
titleLang
:
CONSTANT
.
PAGE_NAME
.
REPORT_FORM
,
},
},
]
]
;
}
else
if
(
sessionStorage
.
getItem
(
"pickUpType"
)
==
CONSTANT
.
PICK_UP_TYPE
.
WARNING_REPORT
)
{
}
else
if
(
sessionStorage
.
getItem
(
'pickUpType'
)
==
CONSTANT
.
PICK_UP_TYPE
.
WARNING_REPORT
)
{
navs
=
[
navs
=
[
{
{
titleLang
:
CONSTANT
.
PAGE_NAME
.
DASHBOARD
,
titleLang
:
CONSTANT
.
PAGE_NAME
.
DASHBOARD
,
...
@@ -63,9 +63,9 @@ RF.initBreadcrumb = function () {
...
@@ -63,9 +63,9 @@ RF.initBreadcrumb = function () {
href
:
CONSTANT
.
URL_TREE_NAME
.
PICKUP_WARNING
,
href
:
CONSTANT
.
URL_TREE_NAME
.
PICKUP_WARNING
,
},
},
{
{
titleLang
:
CONSTANT
.
PAGE_NAME
.
REPORT_FORM
titleLang
:
CONSTANT
.
PAGE_NAME
.
REPORT_FORM
,
},
},
]
]
;
}
else
{
}
else
{
navs
=
[
navs
=
[
{
{
...
@@ -78,17 +78,17 @@ RF.initBreadcrumb = function () {
...
@@ -78,17 +78,17 @@ RF.initBreadcrumb = function () {
},
},
{
{
titleLang
:
CONSTANT
.
PAGE_NAME
.
REPORT_LIST
,
titleLang
:
CONSTANT
.
PAGE_NAME
.
REPORT_LIST
,
href
:
CONSTANT
.
URL_TREE_NAME
.
REPORT_LIST
href
:
CONSTANT
.
URL_TREE_NAME
.
REPORT_LIST
,
},
},
{
{
titleLang
:
CONSTANT
.
PAGE_NAME
.
REPORT_FORM
titleLang
:
CONSTANT
.
PAGE_NAME
.
REPORT_FORM
,
},
},
]
]
;
}
}
}
else
{
}
else
{
if
(
sessionStorage
.
getItem
(
"pickUpType"
))
sessionStorage
.
removeItem
(
"pickUpType"
);
if
(
sessionStorage
.
getItem
(
'pickUpType'
))
sessionStorage
.
removeItem
(
'pickUpType'
);
if
(
(
RF
.
addReportFlg
)
&&
RF
.
addReportFlg
==
1
)
{
if
(
RF
.
addReportFlg
&&
RF
.
addReportFlg
==
1
)
{
navs
=
[
navs
=
[
{
{
titleLang
:
CONSTANT
.
PAGE_NAME
.
OPERATION_LIST
,
titleLang
:
CONSTANT
.
PAGE_NAME
.
OPERATION_LIST
,
...
@@ -96,12 +96,12 @@ RF.initBreadcrumb = function () {
...
@@ -96,12 +96,12 @@ RF.initBreadcrumb = function () {
},
},
{
{
titleLang
:
CONSTANT
.
PAGE_NAME
.
REPORT_LIST
,
titleLang
:
CONSTANT
.
PAGE_NAME
.
REPORT_LIST
,
href
:
CONSTANT
.
URL_TREE_NAME
.
REPORT_LIST
href
:
CONSTANT
.
URL_TREE_NAME
.
REPORT_LIST
,
},
},
{
{
titleLang
:
CONSTANT
.
PAGE_NAME
.
REPORT_FORM
titleLang
:
CONSTANT
.
PAGE_NAME
.
REPORT_FORM
,
},
},
]
]
;
}
else
{
}
else
{
navs
=
[
navs
=
[
{
{
...
@@ -109,17 +109,17 @@ RF.initBreadcrumb = function () {
...
@@ -109,17 +109,17 @@ RF.initBreadcrumb = function () {
href
:
CONSTANT
.
URL_TREE_NAME
.
OPERATION_LIST
,
href
:
CONSTANT
.
URL_TREE_NAME
.
OPERATION_LIST
,
},
},
{
{
titleLang
:
CONSTANT
.
PAGE_NAME
.
REPORT_FORM
titleLang
:
CONSTANT
.
PAGE_NAME
.
REPORT_FORM
,
},
},
]
]
;
}
}
}
}
TEMPLATE
.
loadMainNavsTitle
(
'#includedMainTitle'
,
CONSTANT
.
PAGE_NAME
.
REPORT_FORM
,
navs
,
RF
.
loadMainTitleCallback
);
TEMPLATE
.
loadMainNavsTitle
(
'#includedMainTitle'
,
CONSTANT
.
PAGE_NAME
.
REPORT_FORM
,
navs
,
RF
.
loadMainTitleCallback
);
}
}
;
/**
/**
* load main title callcack
* load main title callcack
*/
*/
RF
.
loadMainTitleCallback
=
function
()
{
RF
.
loadMainTitleCallback
=
function
()
{
//add dashboard setting item
//add dashboard setting item
if
(
RF
.
isQuickReport
)
{
if
(
RF
.
isQuickReport
)
{
...
@@ -163,3 +163,22 @@ RF.initFormView = function () {
...
@@ -163,3 +163,22 @@ RF.initFormView = function () {
COMMON
.
avwScreenMove
(
'index.html'
);
COMMON
.
avwScreenMove
(
'index.html'
);
}
}
};
};
/**
* back page url
*/
RF
.
backPage
=
function
()
{
if
(
sessionStorage
.
activeHomePage
==
CONSTANT
.
PAGE_TAB
.
DASHBOARD
)
{
if
(
addReportFlg
==
1
)
{
COMMON
.
avwScreenMove
(
'reportList.html'
);
}
else
{
COMMON
.
avwScreenMove
(
'pickup.html'
);
}
}
else
{
if
(
addReportFlg
==
1
)
{
COMMON
.
avwScreenMove
(
'reportList.html'
);
}
else
{
COMMON
.
avwScreenMove
(
'index.html'
);
}
}
};
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