|
|
@@ -65,15 +65,15 @@ public class BSetComRestListActivity extends BaseActivity {
|
|
|
public void onItemClick(AdapterView<?> parent, View view, int position, long id) {
|
|
|
switch (type) {
|
|
|
case "eomployee":
|
|
|
- startActivity(new Intent(ct, BRestActivity.class)
|
|
|
+ startActivityForResult(new Intent(ct, BRestActivity.class)
|
|
|
.putExtra("updateData", JSON.toJSONString(mListe.getResult().get(position)))
|
|
|
- .putExtra("type", 1));
|
|
|
+ .putExtra("type", 1), 20);
|
|
|
LogUtil.prinlnLongMsg("updateData", JSON.toJSONString(mListe.getResult().get(position)));
|
|
|
break;
|
|
|
case "company":
|
|
|
- startActivity(new Intent(ct, BRestActivity.class)
|
|
|
+ startActivityForResult(new Intent(ct, BRestActivity.class)
|
|
|
.putExtra("updateData", JSON.toJSONString(mListc.getResult().get(position)))
|
|
|
- .putExtra("type", 0));
|
|
|
+ .putExtra("type", 0), 20);
|
|
|
LogUtil.prinlnLongMsg("updateData", JSON.toJSONString(mListc.getResult().get(position)));
|
|
|
break;
|
|
|
case "place":
|
|
|
@@ -372,4 +372,13 @@ public class BSetComRestListActivity extends BaseActivity {
|
|
|
View line;
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
+ @Override
|
|
|
+ protected void onActivityResult(int requestCode, int resultCode, Intent data) {
|
|
|
+ super.onActivityResult(requestCode, resultCode, data);
|
|
|
+ if (requestCode == 20 && resultCode == 20) {
|
|
|
+ //TODO 重更新
|
|
|
+ initData();
|
|
|
+ }
|
|
|
+ }
|
|
|
}
|