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
7e9d731c
Commit
7e9d731c
authored
Feb 17, 2023
by
Yujin Seo
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'feature/contract/sato/1.0.300_51898_look8' into 'contract/sato/1.0.300'
報告で差戻が反映されない不具合を修正 See merge request
!286
parents
612a724b
7e53583d
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
121 additions
and
10 deletions
+121
-10
ABVJE_BL/src/jp/agentec/abook/abv/bl/data/dao/ReportStatusDao.java
+2
-2
ABVJE_BL/src/jp/agentec/abook/abv/bl/dto/TaskReportDto.java
+49
-0
ABVJE_BL/src/jp/agentec/abook/abv/bl/logic/OperationLogic.java
+27
-1
ABVJE_UI_Android/src/jp/agentec/abook/abv/ui/common/activity/ABVContentViewActivity.java
+0
-1
ABVJE_UI_Android/src/jp/agentec/abook/abv/ui/home/activity/DashboardActivity.java
+1
-1
ABVJE_UI_Android/src/jp/agentec/abook/abv/ui/home/activity/OperationListActivity.java
+15
-3
ABVJE_UI_Android/src/jp/agentec/abook/abv/ui/home/helper/ABookCheckWebViewHelper.java
+27
-2
No files found.
ABVJE_BL/src/jp/agentec/abook/abv/bl/data/dao/ReportStatusDao.java
View file @
7e9d731c
...
@@ -79,7 +79,7 @@ public class ReportStatusDao extends AbstractDao {
...
@@ -79,7 +79,7 @@ public class ReportStatusDao extends AbstractDao {
return
sql
;
return
sql
;
}
}
public
List
<
ReportStatusDto
>
get
Untouch
edReport
()
{
public
List
<
ReportStatusDto
>
get
NotStart
edReport
()
{
StringBuilder
sql
=
reportStatusSql
();
StringBuilder
sql
=
reportStatusSql
();
sql
.
append
(
"WHERE t_task_report_status.untouched_flg <> 0"
);
sql
.
append
(
"WHERE t_task_report_status.untouched_flg <> 0"
);
return
rawQueryGetDtoList
(
sql
.
toString
(),
new
String
[]
{},
ReportStatusDto
.
class
);
return
rawQueryGetDtoList
(
sql
.
toString
(),
new
String
[]
{},
ReportStatusDto
.
class
);
...
@@ -238,7 +238,7 @@ public class ReportStatusDao extends AbstractDao {
...
@@ -238,7 +238,7 @@ public class ReportStatusDao extends AbstractDao {
4:期限切れ、5:アラート、
4:期限切れ、5:アラート、
6:差し戻し、7:一時保存
6:差し戻し、7:一時保存
*/
*/
list
.
add
(
makeDto
(
0
,
get
Untouch
edReport
().
size
()));
list
.
add
(
makeDto
(
0
,
get
NotStart
edReport
().
size
()));
list
.
add
(
makeDto
(
1
,
getWorkingReport
().
size
()));
list
.
add
(
makeDto
(
1
,
getWorkingReport
().
size
()));
list
.
add
(
makeDto
(
2
,
getCompleteOkReport
().
size
()));
list
.
add
(
makeDto
(
2
,
getCompleteOkReport
().
size
()));
list
.
add
(
makeDto
(
3
,
getCompleteNgReport
().
size
()));
list
.
add
(
makeDto
(
3
,
getCompleteNgReport
().
size
()));
...
...
ABVJE_BL/src/jp/agentec/abook/abv/bl/dto/TaskReportDto.java
View file @
7e9d731c
...
@@ -49,4 +49,53 @@ public class TaskReportDto extends AbstractDto {
...
@@ -49,4 +49,53 @@ public class TaskReportDto extends AbstractDto {
public
String
[]
getKeyValues
()
{
public
String
[]
getKeyValues
()
{
return
new
String
[]
{
""
+
taskKey
};
return
new
String
[]
{
""
+
taskKey
};
}
}
public
LockInfo
getLockInfo
()
{
return
new
LockInfo
(
reportLockUserId
,
reportLockUserName
,
reportLockTime
);
}
public
static
class
LockInfo
{
public
final
String
reportLockUserId
;
public
final
String
reportLockUserName
;
public
final
Date
reportLockTime
;
public
LockInfo
(
String
reportLockUserId
,
String
reportLockUserName
,
Date
reportLockTime
)
{
this
.
reportLockUserId
=
reportLockUserId
;
this
.
reportLockUserName
=
reportLockUserName
;
this
.
reportLockTime
=
reportLockTime
==
null
?
null
:
new
Date
(
reportLockTime
.
getTime
());
}
}
public
SendBackInfo
getSendBackInfo
()
{
return
new
SendBackInfo
(
sendBackUserId
,
sendBackUserName
,
sendBackComment
);
}
public
static
class
SendBackInfo
{
public
final
String
sendBackUserId
;
public
final
String
sendBackUserName
;
public
final
String
sendBackComment
;
public
SendBackInfo
(
String
sendBackUserId
,
String
sendBackUserName
,
String
sendBackComment
)
{
this
.
sendBackUserId
=
sendBackUserId
;
this
.
sendBackUserName
=
sendBackComment
;
this
.
sendBackComment
=
sendBackComment
;
}
}
}
}
ABVJE_BL/src/jp/agentec/abook/abv/bl/logic/OperationLogic.java
View file @
7e9d731c
...
@@ -367,7 +367,21 @@ public class OperationLogic extends AbstractLogic {
...
@@ -367,7 +367,21 @@ public class OperationLogic extends AbstractLogic {
* @param localSavedFlg
* @param localSavedFlg
* @throws IOException
* @throws IOException
*/
*/
public
void
updateTaskReport
(
String
taskKey
,
long
operationId
,
long
contentId
,
int
taskReportLevel
,
int
enableReport
,
JSONObject
taskReportJson
,
String
localAttachedFileName
,
boolean
attachedChangeFlag
,
boolean
dataSendFlg
,
boolean
localSavedFlg
)
throws
IOException
{
public
void
updateTaskReport
(
String
taskKey
,
long
operationId
,
long
contentId
,
int
taskReportLevel
,
int
enableReport
,
JSONObject
taskReportJson
,
String
localAttachedFileName
,
boolean
attachedChangeFlag
,
boolean
dataSendFlg
,
boolean
localSavedFlg
,
TaskReportDto
.
SendBackInfo
sendBackInfo
,
TaskReportDto
.
LockInfo
lockInfo
,
int
taskStatus
)
throws
IOException
{
TaskReportDto
taskReportDto
=
mTaskReportDao
.
getTaskReport
(
taskKey
,
taskReportLevel
);
TaskReportDto
taskReportDto
=
mTaskReportDao
.
getTaskReport
(
taskKey
,
taskReportLevel
);
if
(
taskReportDto
==
null
)
{
if
(
taskReportDto
==
null
)
{
//TODO error?
//TODO error?
...
@@ -398,6 +412,18 @@ public class OperationLogic extends AbstractLogic {
...
@@ -398,6 +412,18 @@ public class OperationLogic extends AbstractLogic {
taskReportDto
.
localAttachedFileName
=
localAttachedFileName
;
taskReportDto
.
localAttachedFileName
=
localAttachedFileName
;
}
}
if
(
sendBackInfo
!=
null
)
{
taskReportDto
.
sendBackUserId
=
sendBackInfo
.
sendBackUserId
;
taskReportDto
.
sendBackUserName
=
sendBackInfo
.
sendBackUserName
;
taskReportDto
.
sendBackComment
=
sendBackInfo
.
sendBackComment
;
}
if
(
lockInfo
!=
null
)
{
taskReportDto
.
reportLockUserId
=
lockInfo
.
reportLockUserId
;
taskReportDto
.
reportLockUserName
=
lockInfo
.
reportLockUserName
;
taskReportDto
.
reportLockTime
=
lockInfo
.
reportLockTime
;
}
taskReportDto
.
taskStatus
=
taskStatus
;
mTaskReportDao
.
update
(
taskReportDto
);
mTaskReportDao
.
update
(
taskReportDto
);
String
tempDirPath
=
ABVEnvironment
.
getInstance
().
getTempTaskDirPath
(
contentId
,
taskKey
);
String
tempDirPath
=
ABVEnvironment
.
getInstance
().
getTempTaskDirPath
(
contentId
,
taskKey
);
...
...
ABVJE_UI_Android/src/jp/agentec/abook/abv/ui/common/activity/ABVContentViewActivity.java
View file @
7e9d731c
...
@@ -986,7 +986,6 @@ public abstract class ABVContentViewActivity extends ABVAuthenticatedActivity {
...
@@ -986,7 +986,6 @@ public abstract class ABVContentViewActivity extends ABVAuthenticatedActivity {
// データを同期する fixme かなり邪道なことをしているので、非同期処理全体を整理する必要がある
// データを同期する fixme かなり邪道なことをしているので、非同期処理全体を整理する必要がある
ActivityHandlingHelper
helper
=
ActivityHandlingHelper
.
getInstance
();
ActivityHandlingHelper
helper
=
ActivityHandlingHelper
.
getInstance
();
helper
.
getPreviousOperationListActivity
().
syncOperation
(
operationDto
.
operationId
,
operationDto
.
reportType
,
false
);
helper
.
getPreviousOperationListActivity
().
syncOperation
(
operationDto
.
operationId
,
operationDto
.
reportType
,
false
);
ABVEnvironment
env
=
ABVEnvironment
.
getInstance
();
OperationLogic
logic
=
AbstractLogic
.
getLogic
(
OperationLogic
.
class
);
OperationLogic
logic
=
AbstractLogic
.
getLogic
(
OperationLogic
.
class
);
try
{
try
{
logic
.
createJsonForOperationContent
(
operationDto
.
operationId
,
mContentPath
,
operationDto
.
reportType
==
Constant
.
ReportType
.
RoutineTask
);
logic
.
createJsonForOperationContent
(
operationDto
.
operationId
,
mContentPath
,
operationDto
.
reportType
==
Constant
.
ReportType
.
RoutineTask
);
...
...
ABVJE_UI_Android/src/jp/agentec/abook/abv/ui/home/activity/DashboardActivity.java
View file @
7e9d731c
...
@@ -334,7 +334,7 @@ public class DashboardActivity extends OperationActivity {
...
@@ -334,7 +334,7 @@ public class DashboardActivity extends OperationActivity {
List
<
ReportStatusDto
>
reports
=
null
;
List
<
ReportStatusDto
>
reports
=
null
;
switch
(
reportStatusId
)
{
switch
(
reportStatusId
)
{
case
0
:
{
case
0
:
{
reports
=
dao
.
get
Untouch
edReport
();
reports
=
dao
.
get
NotStart
edReport
();
break
;
break
;
}
}
case
1
:
{
case
1
:
{
...
...
ABVJE_UI_Android/src/jp/agentec/abook/abv/ui/home/activity/OperationListActivity.java
View file @
7e9d731c
...
@@ -1056,9 +1056,21 @@ public class OperationListActivity extends OperationActivity {
...
@@ -1056,9 +1056,21 @@ public class OperationListActivity extends OperationActivity {
}
else
{
}
else
{
// 更新
// 更新
// jsonDataが空で入る場合、taskReportJsonをnullで登録
// jsonDataが空で入る場合、taskReportJsonをnullで登録
mOperationLogic
.
updateTaskReport
(
serverTaskDto
.
taskKey
,
operationId
,
operationContentDto
.
contentId
,
mOperationLogic
.
updateTaskReport
(
serverTaskReportDto
.
taskReportLevel
,
serverTaskReportDto
.
enableReport
,
serverTaskDto
.
taskKey
,
taskReportJson
,
attachedFileName
,
false
,
false
,
localTaskReportDto
.
localSavedFlg
);
operationId
,
operationContentDto
.
contentId
,
serverTaskReportDto
.
taskReportLevel
,
serverTaskReportDto
.
enableReport
,
taskReportJson
,
attachedFileName
,
false
,
false
,
localTaskReportDto
.
localSavedFlg
,
serverTaskReportDto
.
getSendBackInfo
(),
serverTaskReportDto
.
getLockInfo
(),
serverTaskReportDto
.
taskStatus
);
}
}
}
}
}
}
...
...
ABVJE_UI_Android/src/jp/agentec/abook/abv/ui/home/helper/ABookCheckWebViewHelper.java
View file @
7e9d731c
...
@@ -370,10 +370,35 @@ public class ABookCheckWebViewHelper extends ABookHelper {
...
@@ -370,10 +370,35 @@ public class ABookCheckWebViewHelper extends ABookHelper {
TaskReportDto
taskReportDto
=
mOperationLogic
.
getTaskReport
(
taskKey
,
taskReportLevel
);
TaskReportDto
taskReportDto
=
mOperationLogic
.
getTaskReport
(
taskKey
,
taskReportLevel
);
if
(
taskReportDto
!=
null
)
{
if
(
taskReportDto
!=
null
)
{
// 更新
// 更新
mOperationLogic
.
updateTaskReport
(
taskReportDto
.
taskKey
,
operationId
,
contentId
,
taskReportLevel
,
Constant
.
EnableEditReport
.
YES
,
taskReportJson
,
null
,
attachedChangeFlag
,
localSavedFlg
?
false
:
true
,
localSavedFlg
);
mOperationLogic
.
updateTaskReport
(
taskReportDto
.
taskKey
,
operationId
,
contentId
,
taskReportLevel
,
Constant
.
EnableEditReport
.
YES
,
taskReportJson
,
null
,
attachedChangeFlag
,
localSavedFlg
?
false
:
true
,
localSavedFlg
,
taskReportDto
.
getSendBackInfo
(),
taskReportDto
.
getLockInfo
(),
taskReportDto
.
taskStatus
);
}
else
{
}
else
{
// 登録
// 登録
mOperationLogic
.
insertTaskReport
(
taskKey
,
operationId
,
contentId
,
taskReportLevel
,
Constant
.
EnableEditReport
.
YES
,
taskReportJson
,
null
,
attachedChangeFlag
,
localSavedFlg
?
false
:
true
,
localSavedFlg
);
mOperationLogic
.
insertTaskReport
(
taskKey
,
operationId
,
contentId
,
taskReportLevel
,
Constant
.
EnableEditReport
.
YES
,
taskReportJson
,
null
,
attachedChangeFlag
,
localSavedFlg
?
false
:
true
,
localSavedFlg
);
}
}
mOperationLogic
.
createJsonForOperationContent
(
operationId
,
contentPath
,
false
);
mOperationLogic
.
createJsonForOperationContent
(
operationId
,
contentPath
,
false
);
copyTaskAttachedMovie
(
operationId
,
contentId
,
taskKey
,
taskReportLevel
);
copyTaskAttachedMovie
(
operationId
,
contentId
,
taskKey
,
taskReportLevel
);
...
...
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