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
c203b456
Commit
c203b456
authored
Feb 14, 2023
by
Kazuyuki Hida
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
一時保存時のロックの処理を修正。
parent
c7d8013b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
2 deletions
+7
-2
ABVJE_UI_Android/src/jp/agentec/abook/abv/ui/common/activity/ABVContentViewActivity.java
+7
-2
No files found.
ABVJE_UI_Android/src/jp/agentec/abook/abv/ui/common/activity/ABVContentViewActivity.java
View file @
c203b456
...
...
@@ -1110,7 +1110,7 @@ public abstract class ABVContentViewActivity extends ABVAuthenticatedActivity {
TaskReportDao
dao
=
AbstractDao
.
getDao
(
TaskReportDao
.
class
);
if
(
dao
.
isLocalSaved
(
mTaskKey
,
taskReportId
,
DateTimeUtil
.
toString
(
startDate
,
DateTimeFormat
.
yyyyMMddHHmmss_hyphen
)))
{
// ローカルにしかない場合はロックしない
afterABookCheckApi
(
mCmd
,
mTaskKey
,
0
,
""
,
null
);
afterABookCheckApi
(
mCmd
,
mTaskKey
,
0
,
""
,
"{'reportStatus':0}"
);
}
else
{
// ロック
LockReportLogic
.
Result
r
=
LockReportLogic
.
newInstance
().
lock
(
taskKey
,
taskReportId
,
startDate
);
...
...
@@ -1123,7 +1123,12 @@ public abstract class ABVContentViewActivity extends ABVAuthenticatedActivity {
// アンロック
UnlockReportLogic
.
Result
r
=
UnlockReportLogic
.
newInstance
().
unlock
(
taskKey
,
taskReportId
,
startDate
);
// JSコールバック
afterABookCheckApi
(
mCmd
,
mTaskKey
,
r
.
getResult
(),
r
.
getMessage
(),
r
.
getExtParam
().
json
());
if
(
r
.
getMessage
().
length
()
>
0
)
{
// アンロックの失敗は無視
afterABookCheckApi
(
mCmd
,
mTaskKey
,
0
,
""
,
"{'reportStatus':0}"
);
}
else
{
afterABookCheckApi
(
mCmd
,
mTaskKey
,
r
.
getResult
(),
r
.
getMessage
(),
r
.
getExtParam
().
json
());
}
}
}
...
...
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