Commit 4d3505cc by Kazuyuki Hida

ダッシュボードで、getReportStatusCountを実装し、アプリ側から強制的に実行するようにした。

JS側が受けてくれないので、実際に表示には反映されない。
parent 728ae416
Subproject commit 7bcb5bfc6820f6ea7f9dc94d32dc982deaced578 Subproject commit 8f1954b9979d4a4f494c8f6a04ab454732e7208b
...@@ -78,6 +78,7 @@ public class DashboardActivity extends OperationActivity { ...@@ -78,6 +78,7 @@ public class DashboardActivity extends OperationActivity {
private WebView webView; private WebView webView;
private ProgressBar progress; private ProgressBar progress;
private boolean countInitialized = false;
@Override @Override
protected void onCreate(Bundle savedInstanceState) { protected void onCreate(Bundle savedInstanceState) {
...@@ -261,9 +262,13 @@ public class DashboardActivity extends OperationActivity { ...@@ -261,9 +262,13 @@ public class DashboardActivity extends OperationActivity {
try { try {
switch (cmd) { switch (cmd) {
case CMD_GET_REPORT_STATUS_COUNT: { case CMD_GET_REPORT_STATUS_COUNT: {
countInitialized = true;
return getReportStatusCount(); return getReportStatusCount();
} }
case CMD_GET_REPORT_LIST: { case CMD_GET_REPORT_LIST: {
if (! countInitialized) {
getReportStatusCount();
}
String reportStatusId = param.get(ReportStatusId); String reportStatusId = param.get(ReportStatusId);
if (reportStatusId != null) { if (reportStatusId != null) {
return getReportList(Integer.parseInt(reportStatusId)); return getReportList(Integer.parseInt(reportStatusId));
...@@ -301,8 +306,10 @@ public class DashboardActivity extends OperationActivity { ...@@ -301,8 +306,10 @@ public class DashboardActivity extends OperationActivity {
} }
private boolean getReportStatusCount() { private boolean getReportStatusCount() {
//todo ReportStatusDao dao = AbstractDao.getDao(ReportStatusDao.class);
return false; JSONObject extParam = dao.getReportStatusCountJson();
afterABookCheckApi(CMD_GET_REPORT_STATUS_COUNT, "", 0,"", extParam.toString());
return true;
} }
private boolean getReportList(int reportStatusId) { private boolean getReportList(int reportStatusId) {
......
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