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
ceb59f42
Commit
ceb59f42
authored
Feb 07, 2023
by
Kazuyuki Hida
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ダッシュボードからの画面遷移を実装。報告書含む
parent
e1cb2064
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
5 deletions
+10
-5
ABVJE_BL/src/jp/agentec/abook/abv/bl/data/dao/ReportStatusDao.java
+4
-1
ABVJE_BL/src/jp/agentec/abook/abv/bl/dto/ReportStatusDto.java
+4
-2
ABVJE_UI_Android/src/jp/agentec/abook/abv/ui/home/activity/DashboardActivity.java
+2
-2
No files found.
ABVJE_BL/src/jp/agentec/abook/abv/bl/data/dao/ReportStatusDao.java
View file @
ceb59f42
...
...
@@ -157,7 +157,10 @@ public class ReportStatusDao extends AbstractDao {
dto
.
operationName
=
stringOrEmpty
(
cursor
,
"operation_name"
);
dto
.
taskKey
=
stringOrEmpty
(
cursor
,
"task_key"
);
dto
.
taskCode
=
stringOrNull
(
cursor
,
"task_code"
);
dto
.
taskReportInfo
=
stringOrEmpty
(
cursor
,
"json_data"
);
String
jsonData
=
stringOrEmpty
(
cursor
,
"json_data"
).
trim
();
if
(
jsonData
.
startsWith
(
"{"
)
&&
jsonData
.
endsWith
(
"}"
))
{
dto
.
taskReportInfo
=
new
JSONObject
(
jsonData
);
}
dto
.
taskReportId
=
longOrNull
(
cursor
,
"task_report_id"
);
dto
.
reportStartDate
=
dateOrNull
(
cursor
,
"report_start_date"
);
dto
.
reportLockUserId
=
stringOrNull
(
cursor
,
"report_lock_user_id"
);
...
...
ABVJE_BL/src/jp/agentec/abook/abv/bl/dto/ReportStatusDto.java
View file @
ceb59f42
package
jp
.
agentec
.
abook
.
abv
.
bl
.
dto
;
import
org.json.adf.JSONObject
;
import
java.util.Date
;
import
jp.agentec.adf.util.DateTimeFormat
;
...
...
@@ -12,7 +14,7 @@ public class ReportStatusDto extends AbstractDto {
public
String
operationName
;
public
String
taskKey
;
public
String
taskCode
;
public
String
taskReportInfo
;
public
JSONObject
taskReportInfo
;
public
Long
taskReportId
;
public
Date
reportStartDate
;
public
String
reportLockUserId
;
...
...
@@ -53,7 +55,7 @@ public class ReportStatusDto extends AbstractDto {
return
taskCode
;
}
public
String
getTaskReportInfo
()
{
public
JSONObject
getTaskReportInfo
()
{
return
taskReportInfo
;
}
...
...
ABVJE_UI_Android/src/jp/agentec/abook/abv/ui/home/activity/DashboardActivity.java
View file @
ceb59f42
...
...
@@ -294,8 +294,8 @@ public class DashboardActivity extends OperationActivity {
}
case
CMD_LOCK_REPORT:
{
String
taskKey
=
json
.
getString
(
TaskKey
);
long
taskReportId
=
json
.
getLong
(
TaskReportId
)
;
Date
reportStartDate
=
getDateOrNull
(
json
.
getString
(
ReportStartDate
))
;
long
taskReportId
=
json
.
has
(
TaskReportId
)
?
json
.
getLong
(
TaskReportId
)
:
0
;
Date
reportStartDate
=
json
.
has
(
ReportStartDate
)
?
getDateOrNull
(
json
.
getString
(
ReportStartDate
))
:
null
;
lockReport
(
taskKey
,
taskReportId
,
reportStartDate
);
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