|
@@ -34,6 +34,7 @@ import com.core.widget.EmptyLayout;
|
|
|
import com.core.widget.MyListView;
|
|
import com.core.widget.MyListView;
|
|
|
import com.handmark.pulltorefresh.library.PullToRefreshBase;
|
|
import com.handmark.pulltorefresh.library.PullToRefreshBase;
|
|
|
import com.handmark.pulltorefresh.library.PullToRefreshListView;
|
|
import com.handmark.pulltorefresh.library.PullToRefreshListView;
|
|
|
|
|
+import com.uas.appworks.OA.erp.activity.CommonDocDetailsActivity;
|
|
|
import com.uas.appworks.R;
|
|
import com.uas.appworks.R;
|
|
|
import com.uas.appworks.adapter.DeviceQueryConditionAdapter;
|
|
import com.uas.appworks.adapter.DeviceQueryConditionAdapter;
|
|
|
import com.uas.appworks.datainquiry.adapter.DataInquiryFlexAdapter;
|
|
import com.uas.appworks.datainquiry.adapter.DataInquiryFlexAdapter;
|
|
@@ -196,7 +197,28 @@ public class DeviceQueryActivity extends BaseMVPActivity<WorkPlatPresenter> impl
|
|
|
@Override
|
|
@Override
|
|
|
public void onItemClick(AdapterView<?> parent, View view, int position, long id) {
|
|
public void onItemClick(AdapterView<?> parent, View view, int position, long id) {
|
|
|
int reallyPosition = (int) parent.getItemIdAtPosition(position);
|
|
int reallyPosition = (int) parent.getItemIdAtPosition(position);
|
|
|
- if (CommonUtil.isRepeatClick()) {
|
|
|
|
|
|
|
+ List<DataInquiryFlexBean.RowBean> rowBeans = mDeviceQueryFlexAdapter.getObjects().get(reallyPosition).getRowBeans();
|
|
|
|
|
+ String keyValue = null, status = null;
|
|
|
|
|
+ for (DataInquiryFlexBean.RowBean rowBean : rowBeans) {
|
|
|
|
|
+ List<DataInquiryFlexBean.RowBean.RowChildBean> rowChildBeans = rowBean.getRowChildBeans();
|
|
|
|
|
+ for (DataInquiryFlexBean.RowBean.RowChildBean rowChildBean : rowChildBeans) {
|
|
|
|
|
+ if ("dc_id".equals(rowChildBean.getField())) {
|
|
|
|
|
+ keyValue = rowChildBean.getValue();
|
|
|
|
|
+ }
|
|
|
|
|
+ if ("dc_status".equals(rowChildBean.getField())) {
|
|
|
|
|
+ status = rowChildBean.getValue();
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+ if (keyValue != null && status != null) {
|
|
|
|
|
+ break;
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+ startActivity(new Intent(mContext, CommonDocDetailsActivity.class)
|
|
|
|
|
+ .putExtra("caller", mCaller)
|
|
|
|
|
+ .putExtra("keyValue", keyValue)
|
|
|
|
|
+ .putExtra("device", true)
|
|
|
|
|
+ .putExtra("status", status));
|
|
|
|
|
+ /*if (CommonUtil.isRepeatClick()) {
|
|
|
if (mOldPosition == reallyPosition) {
|
|
if (mOldPosition == reallyPosition) {
|
|
|
mDeviceQueryFlexAdapter.getObjects().get(reallyPosition).setIsFlex(!mDeviceQueryFlexAdapter.getObjects().get(reallyPosition).isFlex());
|
|
mDeviceQueryFlexAdapter.getObjects().get(reallyPosition).setIsFlex(!mDeviceQueryFlexAdapter.getObjects().get(reallyPosition).isFlex());
|
|
|
mDeviceQueryFlexAdapter.notifyDataSetChanged();
|
|
mDeviceQueryFlexAdapter.notifyDataSetChanged();
|
|
@@ -204,7 +226,7 @@ public class DeviceQueryActivity extends BaseMVPActivity<WorkPlatPresenter> impl
|
|
|
mOldPosition = reallyPosition;
|
|
mOldPosition = reallyPosition;
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
- mOldPosition = reallyPosition;
|
|
|
|
|
|
|
+ mOldPosition = reallyPosition;*/
|
|
|
}
|
|
}
|
|
|
});
|
|
});
|
|
|
mDataListView.setOnRefreshListener(new PullToRefreshBase.OnRefreshListener2<ListView>() {
|
|
mDataListView.setOnRefreshListener(new PullToRefreshBase.OnRefreshListener2<ListView>() {
|
|
@@ -591,6 +613,7 @@ public class DeviceQueryActivity extends BaseMVPActivity<WorkPlatPresenter> impl
|
|
|
DataInquiryFlexBean.RowBean.RowChildBean rowChildBean = new DataInquiryFlexBean.RowBean.RowChildBean();
|
|
DataInquiryFlexBean.RowBean.RowChildBean rowChildBean = new DataInquiryFlexBean.RowBean.RowChildBean();
|
|
|
rowChildBean.setCaption(caption);
|
|
rowChildBean.setCaption(caption);
|
|
|
rowChildBean.setValue(value);
|
|
rowChildBean.setValue(value);
|
|
|
|
|
+ rowChildBean.setField(field);
|
|
|
rowChildBean.setWidth(columnsConditionBeans.get(j).getWidth());
|
|
rowChildBean.setWidth(columnsConditionBeans.get(j).getWidth());
|
|
|
|
|
|
|
|
mAllRowChildBeans.add(rowChildBean);
|
|
mAllRowChildBeans.add(rowChildBean);
|