Commit 398a05f3 by mReturn

工单收发货显示具体时间

parents a3b12e00 784415bd
......@@ -7,7 +7,7 @@
<module fileurl="file://$PROJECT_DIR$/baseSDK/baseSDK.iml" filepath="$PROJECT_DIR$/baseSDK/baseSDK.iml" />
<module fileurl="file://$PROJECT_DIR$/beauty/beauty.iml" filepath="$PROJECT_DIR$/beauty/beauty.iml" />
<module fileurl="file://$PROJECT_DIR$/camera/camera.iml" filepath="$PROJECT_DIR$/camera/camera.iml" />
<module fileurl="file://$PROJECT_DIR$/dayu-saas-android.iml" filepath="$PROJECT_DIR$/dayu-saas-android.iml" />
<module fileurl="file://$PROJECT_DIR$/dayu-saas-android00.iml" filepath="$PROJECT_DIR$/dayu-saas-android00.iml" />
<module fileurl="file://$PROJECT_DIR$/learnCenter/learnCenter.iml" filepath="$PROJECT_DIR$/learnCenter/learnCenter.iml" />
<module fileurl="file://$PROJECT_DIR$/liveModule/liveModule.iml" filepath="$PROJECT_DIR$/liveModule/liveModule.iml" />
<module fileurl="file://$PROJECT_DIR$/locationComponent/locationComponent.iml" filepath="$PROJECT_DIR$/locationComponent/locationComponent.iml" />
......
......@@ -63,23 +63,14 @@ public class Order implements Serializable{
private int version;
private String greenManStatus;
private int createProviderId;
private double latitude;
private double longitude;
private int alerted; //2开启预警 1或者空为未开启预警
public double getLatitude() {
return latitude;
public int getAlerted() {
return alerted;
}
public void setLatitude(double latitude) {
this.latitude = latitude;
}
public double getLongitude() {
return longitude;
}
public void setLongitude(double longitude) {
this.longitude = longitude;
public void setAlerted(int alerted) {
this.alerted = alerted;
}
public int getCreateProviderId() {
......
......@@ -149,7 +149,7 @@ public class OrderAdapter extends CoreAdapter<Order, FragmentOrderdoingItemBindi
holder.tvOrderTime.setText(mContext.getString(R.string.have_appointment));
time = item.getAppointmentTime();
setTimeStatus(holder, time);
setTimeStatus(holder,item, time);
break;
case 3://待服务
holder.tvItemProcess.setVisibility(View.GONE);
......@@ -171,7 +171,7 @@ public class OrderAdapter extends CoreAdapter<Order, FragmentOrderdoingItemBindi
holder.tvItemProcess.setText(mContext.getString(R.string.begain_server));
}
time = item.getConfirmDoorTime();
setTimeStatus(holder, time);
setTimeStatus(holder, item, time);
break;
case 4://待处理
holder.tvItemProcess.setVisibility(View.GONE);
......@@ -207,7 +207,7 @@ public class OrderAdapter extends CoreAdapter<Order, FragmentOrderdoingItemBindi
holder.orderLineTwo.setVisibility(View.VISIBLE);
}
time = item.getConfirmDoorTime();
setTimeStatus(holder, time);
setTimeStatus(holder, item, time);
break;
case 5://已完成
// holder.tvErrorState.setText(mContext.getString(R.string.order_finish));
......@@ -341,7 +341,11 @@ public class OrderAdapter extends CoreAdapter<Order, FragmentOrderdoingItemBindi
}
//根据时间状态设置不同颜色
private void setTimeStatus(FragmentOrderdoingItemBinding holder, String time) {
private void setTimeStatus(FragmentOrderdoingItemBinding holder, Order item, String time) {
if (item.getAlerted() == 2){
holder.itemTody.setTextColor(Color.parseColor("#FF5A4B"));
holder.itemTime.setTextColor(Color.parseColor("#FF5A4B"));
}else{
long timeDiff = CommonUtils.caluteTimeDiff(time);
double timeMin = timeDiff / 60000.0; //相差分钟数
if (timeMin < 0) {
......@@ -353,10 +357,11 @@ public class OrderAdapter extends CoreAdapter<Order, FragmentOrderdoingItemBindi
} else {
holder.itemTody.setTextColor(Color.parseColor("#FF3FAAFC"));
holder.itemTime.setTextColor(Color.parseColor("#FF3FAAFC"));
}
}
}
private void processClickNew(Order it, FragmentOrderdoingItemBinding h, int posiiton) {
mItem = it;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment