Commit 961cafab by yuichiro ogawa

報告から別の作業報告を表示するための処理を追加(異常報告への遷移)

parent 7ff9ba85
......@@ -671,13 +671,19 @@ public class HTMLWebViewActivity extends ParentWebViewActivity {
}
public void kickAddTaskReport(Map<String, String> addTaskReportInitParam) {
// TODO キャッシュからパラメータを受け取ってjsの関数に引数として渡す
// キャッシュからパラメータを受け取りjsの関数に引数として渡す
JSONObject json = new JSONObject();
json.put(ABookKeys.UBNORMALITY_REPORT_LOT_NUMBER_7_FIGURE, addTaskReportInitParam.get(ABookKeys.UBNORMALITY_REPORT_LOT_NUMBER_7_FIGURE));
json.put(ABookKeys.UBNORMALITY_REPORT_ITEM_NO, addTaskReportInitParam.get(ABookKeys.UBNORMALITY_REPORT_ITEM_NO));
json.put(ABookKeys.UBNORMALITY_REPORT_FARM_NO, addTaskReportInitParam.get(ABookKeys.UBNORMALITY_REPORT_FARM_NO));
json.put(ABookKeys.UBNORMALITY_REPORT_SHIPPING_SOURCE_NO, addTaskReportInitParam.get(ABookKeys.UBNORMALITY_REPORT_SHIPPING_SOURCE_NO));
final String param = json.toString();
runOnUiThread(new Runnable() {
@Override
public void run() {
if (webView != null) {
webView.loadUrl("javascript:CHK_L.addTaskReport()");
}
Logger.i(TAG, String.format("javascript:CHK_L.addTaskReportWithInitParam('%s')", param));
webViewLoadUrl(String.format("javascript:CHK_L.addTaskReportWithInitParam('%s')", param));
}
});
}
......
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