Commit f937c21e by Yujin Seo

Merge branch 'feature/contract/sato/1.0.300_51898_look10' into 'contract/sato/1.0.300'

他の端末で登録された報告が未実施扱いになっている不具合を修正

See merge request !288
parents 3572db68 b0efa4e7
...@@ -295,7 +295,19 @@ public class OperationLogic extends AbstractLogic { ...@@ -295,7 +295,19 @@ public class OperationLogic extends AbstractLogic {
* @param localSavedFlg * @param localSavedFlg
* @throws IOException * @throws IOException
*/ */
public void insertTaskReport(String taskKey, long operationId, long contentId, int reportLevel, int enableReport, JSONObject taskReportJson, String localAttachedFileName, boolean attachedChangeFlag, boolean dataSendFlg, boolean localSavedFlg) throws IOException { public void insertTaskReport(
String taskKey,
long operationId,
long contentId,
int reportLevel,
int enableReport,
JSONObject taskReportJson,
String localAttachedFileName,
boolean attachedChangeFlag,
boolean dataSendFlg,
boolean localSavedFlg,
int taskStatus
) throws IOException {
TaskDto taskDto = mTaskDao.getTaskByTaskKey(taskKey); TaskDto taskDto = mTaskDao.getTaskByTaskKey(taskKey);
if (taskDto == null) { if (taskDto == null) {
//TODO error //TODO error
...@@ -325,6 +337,7 @@ public class OperationLogic extends AbstractLogic { ...@@ -325,6 +337,7 @@ public class OperationLogic extends AbstractLogic {
if (localAttachedFileName != null) { if (localAttachedFileName != null) {
taskReportDto.localAttachedFileName = localAttachedFileName; taskReportDto.localAttachedFileName = localAttachedFileName;
} }
taskReportDto.taskStatus = taskStatus;
mTaskReportDao.insert(taskReportDto); mTaskReportDao.insert(taskReportDto);
......
...@@ -1050,9 +1050,18 @@ public class OperationListActivity extends OperationActivity { ...@@ -1050,9 +1050,18 @@ public class OperationListActivity extends OperationActivity {
} }
if (localTaskReportDto == null) { if (localTaskReportDto == null) {
// 登録 // 登録
mOperationLogic.insertTaskReport(serverTaskDto.taskKey, operationId, operationContentDto.contentId, mOperationLogic.insertTaskReport(
serverTaskReportDto.taskReportLevel, serverTaskReportDto.enableReport, serverTaskDto.taskKey,
taskReportJson, attachedFileName, false, false, false); operationId,
operationContentDto.contentId,
serverTaskReportDto.taskReportLevel,
serverTaskReportDto.enableReport,
taskReportJson,
attachedFileName,
false,
false,
false,
serverTaskDto.taskStatus);
} else { } else {
// 更新 // 更新
// jsonDataが空で入る場合、taskReportJsonをnullで登録 // jsonDataが空で入る場合、taskReportJsonをnullで登録
......
...@@ -397,7 +397,8 @@ public class ABookCheckWebViewHelper extends ABookHelper { ...@@ -397,7 +397,8 @@ public class ABookCheckWebViewHelper extends ABookHelper {
null, null,
attachedChangeFlag, attachedChangeFlag,
localSavedFlg ? false : true, localSavedFlg ? false : true,
localSavedFlg localSavedFlg,
0
); );
} }
mOperationLogic.createJsonForOperationContent(operationId, contentPath, false); mOperationLogic.createJsonForOperationContent(operationId, contentPath, false);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment