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
059911bc
Commit
059911bc
authored
Dec 27, 2022
by
Kazuyuki Hida
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
taskStatusの型を間違えていたのを修正。
parent
d5c8f4b3
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
32 additions
and
5 deletions
+32
-5
ABVJE_BL/src/jp/agentec/abook/abv/bl/acms/client/json/OperationDataJSON.java
+28
-1
ABVJE_BL/src/jp/agentec/abook/abv/bl/data/dao/TaskReportDao.java
+1
-1
ABVJE_BL/src/jp/agentec/abook/abv/bl/data/tables/TTaskReport.java
+2
-2
ABVJE_BL/src/jp/agentec/abook/abv/bl/dto/TaskReportDto.java
+1
-1
No files found.
ABVJE_BL/src/jp/agentec/abook/abv/bl/acms/client/json/OperationDataJSON.java
View file @
059911bc
...
...
@@ -27,7 +27,6 @@ public class OperationDataJSON extends AcmsCommonJSON {
public
static
final
String
TaskStatus
=
"taskStatus"
;
public
static
final
String
TaskHotspotInfo
=
"taskHotspotInfo"
;
public
static
final
String
Task
=
"task"
;
// 1.0.1で追加
public
static
final
String
TaskReportId
=
"taskReportId"
;
// 作業報告書ID ※定期点検のみ
public
static
final
String
TaskReportList
=
"taskReportList"
;
// 作業報告詳細リスト
...
...
@@ -39,6 +38,13 @@ public class OperationDataJSON extends AcmsCommonJSON {
public
static
final
String
TaskReportKey
=
"taskReportKey"
;
// 作業報告キー
public
static
final
String
TaskReportInfo
=
"taskReportInfo"
;
// 作業報告データ
public
static
final
String
ReportLockUserId
=
"reportLockUserId"
;
// 報告ロックユーザId
public
static
final
String
ReportLockUserName
=
"reportLockUserName"
;
// 報告ロックユーザ名
public
static
final
String
ReportLockTime
=
"reportLockTime"
;
// 報告ロック日時
public
static
final
String
SendBackUserId
=
"sendBackUserId"
;
// 差し戻しユーザId 差し戻された場合のみ
public
static
final
String
SendBackUserName
=
"sendBackUserName"
;
// 差し戻しユーザ名 差し戻された場合のみ
public
static
final
String
SendBackComment
=
"sendBackComment"
;
// 確認コメント 差し戻された場合のみ
public
List
<
TaskDto
>
taskDtoList
;
public
Date
lastEditDate
;
...
...
@@ -115,6 +121,27 @@ public class OperationDataJSON extends AcmsCommonJSON {
}
else
{
taskReportDto
.
jsonData
=
""
;
}
if
(
taskReportJson
.
has
(
ReportLockUserId
))
{
taskReportDto
.
reportLockUserId
=
taskReportJson
.
getString
(
ReportLockUserId
);
}
if
(
taskReportJson
.
has
(
ReportLockUserName
))
{
taskReportDto
.
reportLockUserName
=
taskReportJson
.
getString
(
ReportLockUserName
);
}
if
(
taskReportJson
.
has
(
ReportLockTime
))
{
taskReportDto
.
reportLockTime
=
DateTimeUtil
.
toDate
(
taskReportJson
.
getString
(
ReportLockTime
),
DateTimeFormat
.
yyyyMMddHHmmss_hyphen
);
}
if
(
taskReportJson
.
has
(
SendBackUserId
))
{
taskReportDto
.
sendBackUserId
=
taskReportJson
.
getString
(
SendBackUserId
);
}
if
(
taskReportJson
.
has
(
SendBackUserName
))
{
taskReportDto
.
sendBackUserName
=
taskReportJson
.
getString
(
SendBackUserName
);
}
if
(
taskReportJson
.
has
(
SendBackComment
))
{
taskReportDto
.
sendBackComment
=
taskReportJson
.
getString
(
SendBackComment
);
}
if
(
taskReportJson
.
has
(
TaskStatus
))
{
taskReportDto
.
taskStatus
=
taskReportJson
.
getInt
(
TaskStatus
);
}
dto
.
taskReportDtoList
.
add
(
taskReportDto
);
}
taskDtoList
.
add
(
dto
);
...
...
ABVJE_BL/src/jp/agentec/abook/abv/bl/data/dao/TaskReportDao.java
View file @
059911bc
...
...
@@ -128,7 +128,7 @@ public class TaskReportDao extends AbstractDao {
}
column
=
cursor
.
getColumnIndex
(
"task_status"
);
if
(
column
!=
-
1
)
{
dto
.
taskStatus
=
cursor
.
get
String
(
column
);
dto
.
taskStatus
=
cursor
.
get
Int
(
column
);
}
column
=
cursor
.
getColumnIndex
(
"report_status"
);
if
(
column
!=
-
1
)
{
...
...
ABVJE_BL/src/jp/agentec/abook/abv/bl/data/tables/TTaskReport.java
View file @
059911bc
...
...
@@ -42,7 +42,7 @@ public class TTaskReport extends SQLiteTableScript {
sql
.
append
(
" , send_back_user_name TEXT "
);
// 差し戻しユーザ名 差し戻された場合のみ
sql
.
append
(
" , send_back_comment TEXT "
);
// 確認コメント 差し戻された場合のみ
sql
.
append
(
" , report_status INTEGER NOT NULL DEFAULT 0 "
);
// 0:ロック成功、1:ロック中、2:承認中、999:その他エラー
sql
.
append
(
" , task_status
TEXT
"
);
// 状況 0:未実施、1:作業中、999:作業完了
sql
.
append
(
" , task_status
INTEGER NOT NULL DEFAULT 0
"
);
// 状況 0:未実施、1:作業中、999:作業完了
sql
.
append
(
" ) "
);
ddl
.
add
(
sql
.
toString
());
...
...
@@ -60,7 +60,7 @@ public class TTaskReport extends SQLiteTableScript {
ddl
.
add
(
" ALTER TABLE t_task_report ADD COLUMN send_back_user_id TEXT"
);
// 差し戻しユーザId 差し戻された場合のみ" +
ddl
.
add
(
" ALTER TABLE t_task_report ADD COLUMN send_back_user_name TEXT"
);
// 差し戻しユーザ名 差し戻された場合のみ
ddl
.
add
(
" ALTER TABLE t_task_report ADD COLUMN send_back_comment TEXT"
);
// 確認コメント 差し戻された場合のみ
ddl
.
add
(
" ALTER TABLE t_task_report ADD COLUMN task_status
TEXT
"
);
// 状況 0:未実施、1:作業中、999:作業完了
ddl
.
add
(
" ALTER TABLE t_task_report ADD COLUMN task_status
INTEGER NOT NULL DEFAULT 0
"
);
// 状況 0:未実施、1:作業中、999:作業完了
}
if
(
oldVersion
<
DatabaseVersions
.
Ver1_0_6
)
{
ddl
.
add
(
" ALTER TABLE t_task_report ADD COLUMN report_status INTEGER NOT NULL DEFAULT 0"
);
// 0:ロック成功、1:ロック中、2:承認中、999:その他エラー
...
...
ABVJE_BL/src/jp/agentec/abook/abv/bl/dto/TaskReportDto.java
View file @
059911bc
...
...
@@ -32,7 +32,7 @@ public class TaskReportDto extends AbstractDto {
public
String
sendBackUserId
=
"差戻ユーザID"
;
// 差し戻しユーザId 差し戻された場合のみ
public
String
sendBackUserName
=
"差戻ユーザ名"
;
// 差し戻しユーザ名 差し戻された場合のみ
public
String
sendBackComment
=
"確認コメント"
;
// 確認コメント 差し戻された場合のみ
public
String
taskStatus
=
"状況:0"
;
// 状況 0:未実施、1:作業中、999:作業完了
public
int
taskStatus
=
0
;
// 状況 0:未実施、1:作業中、999:作業完了
public
int
reportStatus
=
0
;
@Override
...
...
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