|
|
@@ -38,6 +38,7 @@ import org.w3c.dom.Text;
|
|
|
|
|
|
import java.io.Serializable;
|
|
|
|
|
|
+import static com.usai.commoneditorlib.EnumSlectActivity.CADEDATE;
|
|
|
import static com.usai.redant.rautils.utils.Network.RESULT_LOGIN_ON_OTHER_DEVICE;
|
|
|
import static com.usai.redant.rautils.utils.RAUtil.getJsonFromAsset;
|
|
|
import static java.lang.Thread.sleep;
|
|
|
@@ -59,6 +60,8 @@ public class EnumSlectOnlineActivity extends AppCompatActivity
|
|
|
private final int LoadDataOptionReload = 1;
|
|
|
private final int LoadDataOptionLoadMore = 2;
|
|
|
|
|
|
+ JSONObject online_cadedate;
|
|
|
+
|
|
|
|
|
|
// Bundle params;
|
|
|
// String url;
|
|
|
@@ -490,7 +493,7 @@ public class EnumSlectOnlineActivity extends AppCompatActivity
|
|
|
if (mDirty != false)
|
|
|
{
|
|
|
Intent intent = new Intent();
|
|
|
-// intent.putExtra(CADEDATE,mCadedate.toString());
|
|
|
+ intent.putExtra(CADEDATE,online_cadedate.toString());
|
|
|
intent.putExtra(GROUP_POSITION, mGroup);
|
|
|
intent.putExtra(CHILD_POSITION, mChild);
|
|
|
|
|
|
@@ -548,31 +551,36 @@ public class EnumSlectOnlineActivity extends AppCompatActivity
|
|
|
|
|
|
// if (mKeywords == null || mKeywords.isEmpty()) {
|
|
|
|
|
|
- for (int i = 0; i < mCadedate.optInt("count"); i++)
|
|
|
- {
|
|
|
- JSONObject val_json = mCadedate.optJSONObject("val_" + i);
|
|
|
+ JSONObject val_json = mCadedate.optJSONObject("val_"+position);
|
|
|
+ online_cadedate = new JSONObject();
|
|
|
+ online_cadedate.put("count",1);
|
|
|
+ online_cadedate.put("val_0",val_json);
|
|
|
|
|
|
- if (i == position)
|
|
|
- {
|
|
|
- int select = val_json.optInt("check");
|
|
|
- if (select == 0)
|
|
|
- {
|
|
|
- val_json.put("check", "1");
|
|
|
- }
|
|
|
-// else
|
|
|
+// for (int i = 0; i < mCadedate.optInt("count"); i++)
|
|
|
+// {
|
|
|
+// JSONObject val_json = mCadedate.optJSONObject("val_" + i);
|
|
|
+//
|
|
|
+// if (i == position)
|
|
|
+// {
|
|
|
+// int select = val_json.optInt("check");
|
|
|
+// if (select == 0)
|
|
|
// {
|
|
|
-// val_json.put("check", "0");
|
|
|
+// val_json.put("check", "1");
|
|
|
// }
|
|
|
-// is_worked =true;
|
|
|
- }
|
|
|
- else
|
|
|
- {
|
|
|
- val_json.put("check", "0");
|
|
|
- }
|
|
|
- mCadedate.put("val_" + i, val_json);
|
|
|
-
|
|
|
-
|
|
|
- } // for
|
|
|
+//// else
|
|
|
+//// {
|
|
|
+//// val_json.put("check", "0");
|
|
|
+//// }
|
|
|
+//// is_worked =true;
|
|
|
+// }
|
|
|
+// else
|
|
|
+// {
|
|
|
+// val_json.put("check", "0");
|
|
|
+// }
|
|
|
+// mCadedate.put("val_" + i, val_json);
|
|
|
+//
|
|
|
+//
|
|
|
+// } // for
|
|
|
|
|
|
// } // keywords null
|
|
|
// else {
|
|
|
@@ -648,6 +656,9 @@ public class EnumSlectOnlineActivity extends AppCompatActivity
|
|
|
else
|
|
|
{
|
|
|
|
|
|
+ if(true)
|
|
|
+ throw new AssertionError("EnumSelectOnlineActivity.multiple select is not impl");
|
|
|
+
|
|
|
int index = position;
|
|
|
JSONObject val_json = null;
|
|
|
// if (mKeywords == null || mKeywords.isEmpty()) {
|