|
|
|
|
@ -79,44 +79,44 @@ public class RealTimeKcpdAdapter extends BaseAdapter implements View.OnClickList
|
|
|
|
|
holder.tv_hjzy.setText(infos.get(i).getSTOCKTYPE());
|
|
|
|
|
holder.tv_wzbm.setText(infos.get(i).getITEMNUM());
|
|
|
|
|
|
|
|
|
|
// if (infos.get(i).getIspd().equals("1")) {
|
|
|
|
|
// holder.tv_pdzt.setText("已盘点");
|
|
|
|
|
// int color = context.getResources().getColor(R.color.red);
|
|
|
|
|
// holder.tv_pdzt.setTextColor(color);
|
|
|
|
|
// holder.tv_ms.setTextColor(color);
|
|
|
|
|
// holder.tv_wl.setTextColor(color);
|
|
|
|
|
// holder.tv_sl.setTextColor(color);
|
|
|
|
|
// holder.tv_hg.setTextColor(color);
|
|
|
|
|
// holder.tv_pdsl.setTextColor(color);
|
|
|
|
|
// holder.tv_hjzy.setTextColor(color);
|
|
|
|
|
// holder.tv_wzbm.setTextColor(color);
|
|
|
|
|
//
|
|
|
|
|
// if (infos.get(i).getCurbal().equals(infos.get(i).getPdsl())){
|
|
|
|
|
// int color1 = context.getResources().getColor(R.color.red);
|
|
|
|
|
// holder.tv_sl.setTextColor(color1);
|
|
|
|
|
// holder.tv_pdsl.setTextColor(color1);
|
|
|
|
|
// }else {
|
|
|
|
|
// int color2 = context.getResources().getColor(R.color.green);
|
|
|
|
|
// holder.tv_pdsl.setTextColor(color2);
|
|
|
|
|
// holder.tv_wzbm.setTextColor(color2);
|
|
|
|
|
// holder.tv_sl.setTextColor(color2);
|
|
|
|
|
// holder.tv_pdzt.setTextColor(color2);
|
|
|
|
|
// holder.tv_hjzy.setTextColor(color2);
|
|
|
|
|
// }
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
// } else {
|
|
|
|
|
// holder.tv_pdzt.setText("未盘点");
|
|
|
|
|
// holder.tv_pdzt.setTextColor(Color.GRAY);
|
|
|
|
|
// holder.tv_ms.setTextColor(Color.GRAY);
|
|
|
|
|
// holder.tv_wl.setTextColor(Color.GRAY);
|
|
|
|
|
// holder.tv_sl.setTextColor(Color.GRAY);
|
|
|
|
|
// holder.tv_hg.setTextColor(Color.GRAY);
|
|
|
|
|
// holder.tv_pdsl.setTextColor(Color.GRAY);
|
|
|
|
|
// holder.tv_hjzy.setTextColor(Color.GRAY);
|
|
|
|
|
// holder.tv_wzbm.setTextColor(Color.GRAY);
|
|
|
|
|
// }
|
|
|
|
|
if (infos.get(i).getISPD().equals("1")) {
|
|
|
|
|
holder.tv_pdzt.setText("已盘点");
|
|
|
|
|
int color = context.getResources().getColor(R.color.red);
|
|
|
|
|
holder.tv_pdzt.setTextColor(color);
|
|
|
|
|
holder.tv_ms.setTextColor(color);
|
|
|
|
|
holder.tv_wl.setTextColor(color);
|
|
|
|
|
holder.tv_sl.setTextColor(color);
|
|
|
|
|
holder.tv_hg.setTextColor(color);
|
|
|
|
|
holder.tv_pdsl.setTextColor(color);
|
|
|
|
|
holder.tv_hjzy.setTextColor(color);
|
|
|
|
|
holder.tv_wzbm.setTextColor(color);
|
|
|
|
|
|
|
|
|
|
if (infos.get(i).getCURBAL().equals(infos.get(i).getPDSL())){
|
|
|
|
|
int color1 = context.getResources().getColor(R.color.red);
|
|
|
|
|
holder.tv_sl.setTextColor(color1);
|
|
|
|
|
holder.tv_pdsl.setTextColor(color1);
|
|
|
|
|
}else {
|
|
|
|
|
int color2 = context.getResources().getColor(R.color.green);
|
|
|
|
|
holder.tv_pdsl.setTextColor(color2);
|
|
|
|
|
holder.tv_wzbm.setTextColor(color2);
|
|
|
|
|
holder.tv_sl.setTextColor(color2);
|
|
|
|
|
holder.tv_pdzt.setTextColor(color2);
|
|
|
|
|
holder.tv_hjzy.setTextColor(color2);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
holder.tv_pdzt.setText("未盘点");
|
|
|
|
|
holder.tv_pdzt.setTextColor(Color.GRAY);
|
|
|
|
|
holder.tv_ms.setTextColor(Color.GRAY);
|
|
|
|
|
holder.tv_wl.setTextColor(Color.GRAY);
|
|
|
|
|
holder.tv_sl.setTextColor(Color.GRAY);
|
|
|
|
|
holder.tv_hg.setTextColor(Color.GRAY);
|
|
|
|
|
holder.tv_pdsl.setTextColor(Color.GRAY);
|
|
|
|
|
holder.tv_hjzy.setTextColor(Color.GRAY);
|
|
|
|
|
holder.tv_wzbm.setTextColor(Color.GRAY);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
holder.cb.setOnClickListener(this);
|
|
|
|
|
holder.cb.setTag(i);
|
|
|
|
|
|