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
983574e5
Commit
983574e5
authored
Feb 17, 2023
by
Kazuyuki Hida
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
報告の差戻が反映されていない不具合を修正
parent
612a724b
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
118 additions
and
6 deletions
+118
-6
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/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/dto/TaskReportDto.java
View file @
983574e5
...
...
@@ -49,4 +49,53 @@ public class TaskReportDto extends AbstractDto {
public
String
[]
getKeyValues
()
{
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 @
983574e5
...
...
@@ -367,7 +367,21 @@ public class OperationLogic extends AbstractLogic {
* @param 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
)
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
);
if
(
taskReportDto
==
null
)
{
//TODO error?
...
...
@@ -398,6 +412,18 @@ public class OperationLogic extends AbstractLogic {
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
);
String
tempDirPath
=
ABVEnvironment
.
getInstance
().
getTempTaskDirPath
(
contentId
,
taskKey
);
...
...
ABVJE_UI_Android/src/jp/agentec/abook/abv/ui/home/activity/OperationListActivity.java
View file @
983574e5
...
...
@@ -1056,9 +1056,21 @@ public class OperationListActivity extends OperationActivity {
}
else
{
// 更新
// jsonDataが空で入る場合、taskReportJsonをnullで登録
mOperationLogic
.
updateTaskReport
(
serverTaskDto
.
taskKey
,
operationId
,
operationContentDto
.
contentId
,
serverTaskReportDto
.
taskReportLevel
,
serverTaskReportDto
.
enableReport
,
taskReportJson
,
attachedFileName
,
false
,
false
,
localTaskReportDto
.
localSavedFlg
);
mOperationLogic
.
updateTaskReport
(
serverTaskDto
.
taskKey
,
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 @
983574e5
...
...
@@ -370,10 +370,35 @@ public class ABookCheckWebViewHelper extends ABookHelper {
TaskReportDto
taskReportDto
=
mOperationLogic
.
getTaskReport
(
taskKey
,
taskReportLevel
);
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
{
// 登録
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
);
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