Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
abook_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_android
abook_check
Commits
9ad55880
Commit
9ad55880
authored
Feb 16, 2023
by
Yujin Seo
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'feature/contract/sato/1.0.300_51898_look4' into 'contract/sato/1.0.300'
ロック周りを修正 See merge request
!282
parents
4cc7e141
3d97a019
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
8 additions
and
11 deletions
+8
-11
ABVJE_BL/src/jp/agentec/abook/abv/bl/data/dao/TaskReportDao.java
+1
-1
ABVJE_BL/src/jp/agentec/abook/abv/bl/logic/LockReportLogic.java
+2
-1
ABVJE_UI_Android/src/jp/agentec/abook/abv/ui/common/activity/ABVContentViewActivity.java
+4
-9
ABVJE_UI_Android/src/jp/agentec/abook/abv/ui/home/activity/DashboardActivity.java
+1
-0
No files found.
ABVJE_BL/src/jp/agentec/abook/abv/bl/data/dao/TaskReportDao.java
View file @
9ad55880
...
...
@@ -522,7 +522,7 @@ public class TaskReportDao extends AbstractDao {
int
count
;
StringBuilder
sql
=
new
StringBuilder
();
sql
.
append
(
"SELECT count(*) FROM t_task_report"
);
sql
.
append
(
" WHERE task_
report_info_id > 0
"
);
sql
.
append
(
" WHERE task_
status = 999
"
);
if
(
reportStartDate
==
null
)
{
// 報告
sql
.
append
(
" AND task_key=?"
);
...
...
ABVJE_BL/src/jp/agentec/abook/abv/bl/logic/LockReportLogic.java
View file @
9ad55880
...
...
@@ -13,6 +13,7 @@ import jp.agentec.abook.abv.bl.dto.MemberInfoDto;
import
jp.agentec.adf.util.DateTimeFormat
;
import
jp.agentec.adf.util.DateTimeUtil
;
import
static
java
.
net
.
HttpURLConnection
.
HTTP_NOT_FOUND
;
import
static
java
.
net
.
HttpURLConnection
.
HTTP_OK
;
import
static
jp
.
agentec
.
abook
.
abv
.
bl
.
acms
.
client
.
json
.
OperationDataJSON
.
ReportLockTime
;
import
static
jp
.
agentec
.
abook
.
abv
.
bl
.
acms
.
client
.
json
.
OperationDataJSON
.
ReportLockUserId
;
...
...
@@ -94,7 +95,7 @@ public class LockReportLogic extends AbstractLogic {
static
Result
succsess
(
LockReportJSON
reportJSON
,
Long
taskReportId
,
Date
reportStartDate
)
{
// 成功したとき
Result
result
=
new
Result
();
result
.
result
=
reportJSON
.
httpStatus
==
HTTP_OK
?
0
:
1
;
result
.
result
=
reportJSON
.
httpStatus
==
HTTP_OK
||
reportJSON
.
httpStatus
==
HTTP_NOT_FOUND
?
0
:
1
;
result
.
message
=
""
;
result
.
extParam
=
new
ExtParam
(
reportJSON
.
getReportStatus
(),
...
...
ABVJE_UI_Android/src/jp/agentec/abook/abv/ui/common/activity/ABVContentViewActivity.java
View file @
9ad55880
...
...
@@ -1112,15 +1112,10 @@ public abstract class ABVContentViewActivity extends ABVAuthenticatedActivity {
String
taskKey
=
abookCheckParam
.
get
(
TaskKey
);
Date
startDate
=
dateOrNull
(
abookCheckParam
.
get
(
"reportStartDate"
));
TaskReportDao
dao
=
AbstractDao
.
getDao
(
TaskReportDao
.
class
);
if
(
dao
.
isLocalSaved
(
mTaskKey
,
taskReportId
,
DateTimeUtil
.
toString
(
startDate
,
DateTimeFormat
.
yyyyMMddHHmmss_hyphen
)))
{
// ローカルにしかない場合はロックしない
afterABookCheckApi
(
mCmd
,
mTaskKey
,
0
,
""
,
"{'reportStatus':0}"
);
}
else
{
// ロック
LockReportLogic
.
Result
r
=
LockReportLogic
.
newInstance
().
lock
(
taskKey
,
taskReportId
,
startDate
);
// JSコールバック
afterABookCheckApi
(
mCmd
,
mTaskKey
,
r
.
getResult
(),
r
.
getMessage
(),
r
.
getExtParam
().
json
());
}
// ロック
LockReportLogic
.
Result
r
=
LockReportLogic
.
newInstance
().
lock
(
taskKey
,
taskReportId
,
startDate
);
// JSコールバック
afterABookCheckApi
(
mCmd
,
mTaskKey
,
r
.
getResult
(),
r
.
getMessage
(),
r
.
getExtParam
().
json
());
}
else
if
(
mCmd
.
equals
(
ABookKeys
.
CMD_UNLOCK_REPORT
))
{
String
taskKey
=
abookCheckParam
.
get
(
TaskKey
);
Date
startDate
=
dateOrNull
(
abookCheckParam
.
get
(
"reportStartDate"
));
...
...
ABVJE_UI_Android/src/jp/agentec/abook/abv/ui/home/activity/DashboardActivity.java
View file @
9ad55880
...
...
@@ -184,6 +184,7 @@ public class DashboardActivity extends OperationActivity {
settings
.
setPluginState
(
WebSettings
.
PluginState
.
ON
);
// 「EventHub.removeMessages(int what = 107) is not supported before the WebViewCore is set up.」のエラー対応(あまり効果ない?)
settings
.
setDomStorageEnabled
(
true
);
// WebStorage有効化
settings
.
setAppCacheEnabled
(
false
);
settings
.
setDisplayZoomControls
(
false
);
settings
.
setCacheMode
(
WebSettings
.
LOAD_NO_CACHE
);
settings
.
setAllowFileAccessFromFileURLs
(
true
);
//Android7利用で警告ダイヤログ表示問題対応
//ターゲットバージョン30以上からデフォルトがfalseに設定されている問題対応
...
...
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