Commit 1c84e4cb by Kazuyuki Hida

一時保存時にtaskStatusを設問に含まれる情報から取り出すようにした。

parent 02b212b1
......@@ -16,9 +16,9 @@ import java.io.FileOutputStream;
import java.io.IOException;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.Iterator;
import java.util.List;
import java.util.Map;
import java.util.Objects;
import jp.agentec.abook.abv.bl.common.ABVEnvironment;
import jp.agentec.abook.abv.bl.common.Callback;
......@@ -373,6 +373,18 @@ public class ABookCheckWebViewHelper extends ABookHelper {
// task登録・更新処理
mOperationLogic.registTaskData(taskKey, operationId, hotSpotInfo, taskJson);
int taskStatus = 0;
if (localSavedFlg) {
// 一時保存の場合、q_3_???の値でtaskStatusを取り出す
Iterator<String> keys = taskJson.keys();
while (keys.hasNext()) {
String key = keys.next();
if (key.startsWith("q_3_")) {
taskStatus = taskJson.getInt(key);
}
}
}
TaskReportDto taskReportDto = mOperationLogic.getTaskReport(taskKey, taskReportLevel);
if (taskReportDto != null) {
// 更新
......@@ -389,7 +401,7 @@ public class ABookCheckWebViewHelper extends ABookHelper {
localSavedFlg,
taskReportDto.getSendBackInfo(),
taskReportDto.getLockInfo(),
taskReportDto.taskStatus
taskStatus
);
} else {
// 登録
......@@ -406,7 +418,7 @@ public class ABookCheckWebViewHelper extends ABookHelper {
localSavedFlg,
null,
null,
0
taskStatus
);
}
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