|
@@ -5,6 +5,7 @@ import android.text.TextUtils;
|
|
|
import android.view.View;
|
|
import android.view.View;
|
|
|
import android.view.ViewGroup;
|
|
import android.view.ViewGroup;
|
|
|
import android.widget.BaseAdapter;
|
|
import android.widget.BaseAdapter;
|
|
|
|
|
+import android.widget.TableRow;
|
|
|
import android.widget.TextView;
|
|
import android.widget.TextView;
|
|
|
|
|
|
|
|
import com.uas.pda_smart_com.R;
|
|
import com.uas.pda_smart_com.R;
|
|
@@ -48,9 +49,14 @@ public class TransferLocationAdapter extends BaseAdapter {
|
|
|
TextView tvProdcode = (TextView) view.findViewById(R.id.tv_barprodcode);
|
|
TextView tvProdcode = (TextView) view.findViewById(R.id.tv_barprodcode);
|
|
|
TextView tvBarRemain = (TextView) view.findViewById(R.id.tv_barremain);
|
|
TextView tvBarRemain = (TextView) view.findViewById(R.id.tv_barremain);
|
|
|
TextView tvOrispeccode = (TextView) view.findViewById(R.id.transfer_orispeccode);
|
|
TextView tvOrispeccode = (TextView) view.findViewById(R.id.transfer_orispeccode);
|
|
|
|
|
+ TableRow trDetail = view.findViewById(R.id.transfer_detail_tr);
|
|
|
TextView tvDetail = (TextView) view.findViewById(R.id.transfer_detail);
|
|
TextView tvDetail = (TextView) view.findViewById(R.id.transfer_detail);
|
|
|
|
|
+ TableRow trSpec = view.findViewById(R.id.transfer_spec_tr);
|
|
|
TextView tvSpec = (TextView) view.findViewById(R.id.transfer_spec);
|
|
TextView tvSpec = (TextView) view.findViewById(R.id.transfer_spec);
|
|
|
|
|
|
|
|
|
|
+ TableRow trCustprodcode = view.findViewById(R.id.transfer_custprodcode_tr);
|
|
|
|
|
+ TextView tvCustprodcode = (TextView) view.findViewById(R.id.transfer_custprodcode);
|
|
|
|
|
+
|
|
|
//配置数据
|
|
//配置数据
|
|
|
WHTransfer tmpTransfer = (WHTransfer) getItem(position);
|
|
WHTransfer tmpTransfer = (WHTransfer) getItem(position);
|
|
|
//获取箱号
|
|
//获取箱号
|
|
@@ -72,8 +78,21 @@ public class TransferLocationAdapter extends BaseAdapter {
|
|
|
tvBarRemain.setText(CommonUtil.doubleFormat(tmpTransfer.getBAR_REMAIN()));
|
|
tvBarRemain.setText(CommonUtil.doubleFormat(tmpTransfer.getBAR_REMAIN()));
|
|
|
|
|
|
|
|
tvOrispeccode.setText(tmpTransfer.getPR_ORISPECCODE());
|
|
tvOrispeccode.setText(tmpTransfer.getPR_ORISPECCODE());
|
|
|
- tvDetail.setText(tmpTransfer.getPR_DETAIL());
|
|
|
|
|
- tvSpec.setText(tmpTransfer.getPR_SPEC());
|
|
|
|
|
|
|
+
|
|
|
|
|
+ if (CommonUtil.isAJCMaster(context)) {
|
|
|
|
|
+ trCustprodcode.setVisibility(View.VISIBLE);
|
|
|
|
|
+ trDetail.setVisibility(View.GONE);
|
|
|
|
|
+ trSpec.setVisibility(View.GONE);
|
|
|
|
|
+
|
|
|
|
|
+ tvCustprodcode.setText(tmpTransfer.getPC_CUSTPRODCODE());
|
|
|
|
|
+ } else {
|
|
|
|
|
+ trCustprodcode.setVisibility(View.GONE);
|
|
|
|
|
+ trDetail.setVisibility(View.VISIBLE);
|
|
|
|
|
+ trSpec.setVisibility(View.VISIBLE);
|
|
|
|
|
+
|
|
|
|
|
+ tvDetail.setText(tmpTransfer.getPR_DETAIL());
|
|
|
|
|
+ tvSpec.setText(tmpTransfer.getPR_SPEC());
|
|
|
|
|
+ }
|
|
|
return view;
|
|
return view;
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|