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
3d97a019
Commit
3d97a019
authored
Feb 15, 2023
by
Kazuyuki Hida
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
一時保存でもロック要求を出すようにした。
parent
042e2846
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
6 deletions
+3
-6
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
+0
-5
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/logic/LockReportLogic.java
View file @
3d97a019
...
...
@@ -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 @
3d97a019
...
...
@@ -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
());
}
}
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 @
3d97a019
...
...
@@ -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