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
1237a499
Commit
1237a499
authored
Feb 24, 2023
by
Kazuyuki Hida
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ダッシュボードのロックが表示されない不具合に対応。
parent
980f4d72
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
42 additions
and
3 deletions
+42
-3
ABVJE_UI_Android/src/jp/agentec/abook/abv/ui/home/activity/DashboardActivity.java
+42
-3
No files found.
ABVJE_UI_Android/src/jp/agentec/abook/abv/ui/home/activity/DashboardActivity.java
View file @
1237a499
...
@@ -25,20 +25,28 @@ import java.util.Collections;
...
@@ -25,20 +25,28 @@ import java.util.Collections;
import
java.util.Date
;
import
java.util.Date
;
import
java.util.List
;
import
java.util.List
;
import
jp.agentec.abook.abv.bl.acms.client.AcmsClient
;
import
jp.agentec.abook.abv.bl.acms.client.json.OperationDataJSON
;
import
jp.agentec.abook.abv.bl.acms.client.parameters.GetOperationDataParameters
;
import
jp.agentec.abook.abv.bl.acms.type.OperationType
;
import
jp.agentec.abook.abv.bl.acms.type.OperationType
;
import
jp.agentec.abook.abv.bl.common.ABVEnvironment
;
import
jp.agentec.abook.abv.bl.common.ABVEnvironment
;
import
jp.agentec.abook.abv.bl.common.Constant
;
import
jp.agentec.abook.abv.bl.common.Constant
;
import
jp.agentec.abook.abv.bl.common.constant.ABookKeys
;
import
jp.agentec.abook.abv.bl.common.constant.ABookKeys
;
import
jp.agentec.abook.abv.bl.common.log.Logger
;
import
jp.agentec.abook.abv.bl.common.log.Logger
;
import
jp.agentec.abook.abv.bl.common.nw.NetworkAdapter
;
import
jp.agentec.abook.abv.bl.data.ABVDataCache
;
import
jp.agentec.abook.abv.bl.data.dao.AbstractDao
;
import
jp.agentec.abook.abv.bl.data.dao.AbstractDao
;
import
jp.agentec.abook.abv.bl.data.dao.OperationContentDao
;
import
jp.agentec.abook.abv.bl.data.dao.OperationContentDao
;
import
jp.agentec.abook.abv.bl.data.dao.OperationDao
;
import
jp.agentec.abook.abv.bl.data.dao.OperationDao
;
import
jp.agentec.abook.abv.bl.data.dao.ReportStatusDao
;
import
jp.agentec.abook.abv.bl.data.dao.ReportStatusDao
;
import
jp.agentec.abook.abv.bl.data.dao.TaskReportDao
;
import
jp.agentec.abook.abv.bl.download.ContentFileExtractor
;
import
jp.agentec.abook.abv.bl.download.ContentFileExtractor
;
import
jp.agentec.abook.abv.bl.dto.ContentDto
;
import
jp.agentec.abook.abv.bl.dto.ContentDto
;
import
jp.agentec.abook.abv.bl.dto.OperationContentDto
;
import
jp.agentec.abook.abv.bl.dto.OperationContentDto
;
import
jp.agentec.abook.abv.bl.dto.OperationDto
;
import
jp.agentec.abook.abv.bl.dto.OperationDto
;
import
jp.agentec.abook.abv.bl.dto.ReportStatusDto
;
import
jp.agentec.abook.abv.bl.dto.ReportStatusDto
;
import
jp.agentec.abook.abv.bl.dto.TaskDto
;
import
jp.agentec.abook.abv.bl.dto.TaskReportDto
;
import
jp.agentec.abook.abv.bl.dto.comparator.ReportStatusCompalator
;
import
jp.agentec.abook.abv.bl.dto.comparator.ReportStatusCompalator
;
import
jp.agentec.abook.abv.bl.logic.AbstractLogic
;
import
jp.agentec.abook.abv.bl.logic.AbstractLogic
;
import
jp.agentec.abook.abv.bl.logic.LockReportLogic
;
import
jp.agentec.abook.abv.bl.logic.LockReportLogic
;
...
@@ -120,6 +128,7 @@ public class DashboardActivity extends OperationActivity {
...
@@ -120,6 +128,7 @@ public class DashboardActivity extends OperationActivity {
protected
void
onResume
()
{
protected
void
onResume
()
{
super
.
onResume
();
super
.
onResume
();
try
{
try
{
loadAllOperationTask
();
ReportStatusLogic
logic
=
new
ReportStatusLogic
();
ReportStatusLogic
logic
=
new
ReportStatusLogic
();
logic
.
loadReportStatus
();
logic
.
loadReportStatus
();
getReportStatusCount
();
getReportStatusCount
();
...
@@ -142,6 +151,36 @@ public class DashboardActivity extends OperationActivity {
...
@@ -142,6 +151,36 @@ public class DashboardActivity extends OperationActivity {
mDashboardButton
.
setEnabled
(
false
);
mDashboardButton
.
setEnabled
(
false
);
}
}
private
void
loadAllOperationTask
()
{
try
{
String
path
=
ABVDataCache
.
getInstance
().
getUrlPath
();
NetworkAdapter
networkAdapter
=
ABVEnvironment
.
getInstance
().
networkAdapter
;
OperationDao
operationDao
=
AbstractDao
.
getDao
(
OperationDao
.
class
);
TaskReportDao
taskReportDao
=
AbstractDao
.
getDao
(
TaskReportDao
.
class
);
String
sid
=
ABVDataCache
.
getInstance
().
getMemberInfo
().
sid
;
for
(
OperationDto
operation:
operationDao
.
getAllOperation
())
{
GetOperationDataParameters
param
=
new
GetOperationDataParameters
(
sid
,
operation
.
operationId
);
OperationDataJSON
json
=
AcmsClient
.
getInstance
(
path
,
networkAdapter
).
getOpereationData
(
param
);
for
(
TaskDto
task
:
json
.
taskDtoList
)
{
for
(
TaskReportDto
report
:
task
.
taskReportDtoList
)
{
taskReportDao
.
updateReportLock
(
report
.
taskKey
,
(
long
)
report
.
taskReportId
,
report
.
reportStartDate
,
report
.
reportStatus
,
report
.
reportLockUserId
,
report
.
reportLockUserName
,
report
.
reportLockTime
);
}
}
}
}
catch
(
Exception
e
)
{
e
.
printStackTrace
();
}
}
@SuppressLint
(
"SetJavaScriptEnabled"
)
@SuppressLint
(
"SetJavaScriptEnabled"
)
private
void
createWebView
()
{
private
void
createWebView
()
{
webView
=
new
CheckFormWebview
(
this
,
new
CheckFormWebview
.
KeyActionCallback
()
{
webView
=
new
CheckFormWebview
(
this
,
new
CheckFormWebview
.
KeyActionCallback
()
{
...
@@ -314,9 +353,9 @@ public class DashboardActivity extends OperationActivity {
...
@@ -314,9 +353,9 @@ public class DashboardActivity extends OperationActivity {
break
;
break
;
}
}
case
CMD_UNLOCK_REPORT:
{
case
CMD_UNLOCK_REPORT:
{
String
taskKey
=
json
.
getString
(
TaskKey
)
;
String
taskKey
=
json
.
has
(
TaskKey
)
?
json
.
getString
(
TaskKey
)
:
""
;
long
taskReportId
=
json
.
getLong
(
TaskReportId
)
;
long
taskReportId
=
json
.
has
(
TaskReportId
)
?
json
.
getLong
(
TaskReportId
)
:
0
;
Date
reportStartDate
=
getDateOrNull
(
json
.
getString
(
ReportStartDate
))
;
Date
reportStartDate
=
json
.
has
(
ReportStartDate
)
?
getDateOrNull
(
json
.
getString
(
ReportStartDate
))
:
null
;
unlockReport
(
taskKey
,
taskReportId
,
reportStartDate
);
unlockReport
(
taskKey
,
taskReportId
,
reportStartDate
);
break
;
break
;
}
}
...
...
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