Commit 3b01df38 by Kazuyuki Hida

ダッシュボードからの画面遷移を実装。報告書については試せていない

parent b10a77da
...@@ -66,6 +66,7 @@ import static jp.agentec.abook.abv.bl.acms.client.json.OperationDataJSON.TaskRep ...@@ -66,6 +66,7 @@ import static jp.agentec.abook.abv.bl.acms.client.json.OperationDataJSON.TaskRep
import static jp.agentec.abook.abv.bl.acms.client.json.OperationDataJSON.TaskReportInfo; import static jp.agentec.abook.abv.bl.acms.client.json.OperationDataJSON.TaskReportInfo;
import static jp.agentec.abook.abv.bl.acms.client.json.OperationListJSON.OperationList; import static jp.agentec.abook.abv.bl.acms.client.json.OperationListJSON.OperationList;
import static jp.agentec.abook.abv.bl.acms.client.json.OperationListJSON.OperationName; import static jp.agentec.abook.abv.bl.acms.client.json.OperationListJSON.OperationName;
import static jp.agentec.abook.abv.bl.common.Constant.ReportType.RoutineTask;
import static jp.agentec.abook.abv.bl.common.constant.ABookKeys.CMD_GET_REPORT_LIST; import static jp.agentec.abook.abv.bl.common.constant.ABookKeys.CMD_GET_REPORT_LIST;
import static jp.agentec.abook.abv.bl.common.constant.ABookKeys.CMD_GET_REPORT_STATUS_COUNT; import static jp.agentec.abook.abv.bl.common.constant.ABookKeys.CMD_GET_REPORT_STATUS_COUNT;
import static jp.agentec.abook.abv.bl.common.constant.ABookKeys.CMD_GO_REPORT_DETAIL; import static jp.agentec.abook.abv.bl.common.constant.ABookKeys.CMD_GO_REPORT_DETAIL;
...@@ -285,7 +286,10 @@ public class DashboardActivity extends OperationActivity { ...@@ -285,7 +286,10 @@ public class DashboardActivity extends OperationActivity {
} }
case CMD_GO_REPORT_DETAIL: { case CMD_GO_REPORT_DETAIL: {
long operationId = json.getLong(OperationId); long operationId = json.getLong(OperationId);
goReportDetail(operationId); String taskKey = json.has(TaskKey) ? json.getString(TaskKey) : null;
Long taskReportId = json.has(TaskReportId) ? json.getLong(TaskReportId) : null;
String reportStartDate = json.has(ReportStartDate) ? json.getString(ReportStartDate) : null;
goReportDetail(operationId, taskKey, taskReportId, reportStartDate);
break; break;
} }
case CMD_LOCK_REPORT: { case CMD_LOCK_REPORT: {
...@@ -393,7 +397,7 @@ public class DashboardActivity extends OperationActivity { ...@@ -393,7 +397,7 @@ public class DashboardActivity extends OperationActivity {
return tree; return tree;
} }
private void goReportDetail(long operationId) { private void goReportDetail(long operationId, String taskKey, Long taskReportId, String reportStartDate) {
if (ActivityHandlingHelper.getInstance().isMeetingConnected()) { if (ActivityHandlingHelper.getInstance().isMeetingConnected()) {
return; return;
} }
...@@ -416,7 +420,7 @@ public class DashboardActivity extends OperationActivity { ...@@ -416,7 +420,7 @@ public class DashboardActivity extends OperationActivity {
// プロジェクトの指示/報告表示時、必要なJSONファイル作成 // プロジェクトの指示/報告表示時、必要なJSONファイル作成
OperationLogic operationLogic = AbstractLogic.getLogic(OperationLogic.class); OperationLogic operationLogic = AbstractLogic.getLogic(OperationLogic.class);
operationLogic.createJsonForOperationContent(operationDto.operationId, contentPath, operationDto.reportType == Constant.ReportType.RoutineTask); operationLogic.createJsonForOperationContent(operationDto.operationId, contentPath, operationDto.reportType == RoutineTask);
// サーバ作業後、対応必要 // サーバ作業後、対応必要
StringBuilder path = new StringBuilder(); StringBuilder path = new StringBuilder();
...@@ -425,6 +429,13 @@ public class DashboardActivity extends OperationActivity { ...@@ -425,6 +429,13 @@ public class DashboardActivity extends OperationActivity {
path.append("/index.html?app=android"); path.append("/index.html?app=android");
path.append("&report_type=").append(operationDto.reportType); // 作業報告タイプ : 0:報告 1:定期点検 2:報告(回答) path.append("&report_type=").append(operationDto.reportType); // 作業報告タイプ : 0:報告 1:定期点検 2:報告(回答)
path.append("&mobile_flg=").append(isNormalSize() ? "1" : "0"); // ScreenType path.append("&mobile_flg=").append(isNormalSize() ? "1" : "0"); // ScreenType
if (operationDto.reportType == RoutineTask) {
path.append("&taskKey=").append(taskKey);
path.append("&taskReportId=").append(taskReportId);
path.append("&reportStartDate=").append(reportStartDate);
} else {
path.append("&taskKey=").append(taskKey);
}
Logger.d(TAG, "path : " + path); Logger.d(TAG, "path : " + path);
Intent intent = new Intent(); Intent intent = new Intent();
......
...@@ -37,10 +37,10 @@ app_versioncode=1 ...@@ -37,10 +37,10 @@ app_versioncode=1
# abvEnvironments.xml # abvEnvironments.xml
#cms server #cms server
acms_address=https://check.abookcloud.com/acms #acms_address=https://check.abookcloud.com/acms
download_server_address=https://check.abookcloud.com/acms #download_server_address=https://check.abookcloud.com/acms
#acms_address=https://abook188-1.abook.bz/acms acms_address=https://abook188-1.abook.bz/acms
#download_server_address=https://abook188-1.abook.bz/acms download_server_address=https://abook188-1.abook.bz/acms
#acms_address=http://10.0.2.2:8080/acms #acms_address=http://10.0.2.2:8080/acms
#download_server_address=http://10.0.2.2:8080/acms #download_server_address=http://10.0.2.2:8080/acms
...@@ -96,8 +96,8 @@ hope_page=http://www.sato.co.jp ...@@ -96,8 +96,8 @@ hope_page=http://www.sato.co.jp
contact_email=grp-atform_support@sato-global.com contact_email=grp-atform_support@sato-global.com
#Log Settings #Log Settings
log_level=2 #log_level=2
#log_level=1 log_level=1
default_log_name=abvje default_log_name=abvje
#エラーレポート/Exportログ送信方法 1:acms 2:平文メール(開発・テスト時のみ) 3:暗号化添付メール #エラーレポート/Exportログ送信方法 1:acms 2:平文メール(開発・テスト時のみ) 3:暗号化添付メール
......
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