|
|
|
@ -167,7 +167,7 @@ public class ScanResultActivity extends BaseActivity { |
|
|
|
} |
|
|
|
|
|
|
|
private void EnterBreedFactory() { |
|
|
|
ViewOnClickTask leaveTask = new ViewOnClickTask(this,"加载中...") { |
|
|
|
ViewOnClickTask enterbTask = new ViewOnClickTask(this,"加载中...") { |
|
|
|
@Override |
|
|
|
protected void successUI() { |
|
|
|
MaojiScanBean scanBean = new MaojiScanBean(); |
|
|
|
@ -215,16 +215,163 @@ public class ScanResultActivity extends BaseActivity { |
|
|
|
return null; |
|
|
|
} |
|
|
|
}; |
|
|
|
leaveTask.execute(); |
|
|
|
enterbTask.execute(); |
|
|
|
} |
|
|
|
|
|
|
|
private void LeaveBreedFactory() { |
|
|
|
ViewOnClickTask leavebTask = new ViewOnClickTask(this,"加载中...") { |
|
|
|
@Override |
|
|
|
protected void successUI() { |
|
|
|
MaojiScanBean scanBean = new MaojiScanBean(); |
|
|
|
scanBean.setId(rpcObj.getLong("ID")); |
|
|
|
scanBean.setInfos_carname(rpcObj.getString("Car_Name")); |
|
|
|
scanBean.setInfos_driver(rpcObj.getString("Employee_Name")); |
|
|
|
scanBean.setInfos_yangzhichang(rpcObj.getString("BreedFactory_Name")); |
|
|
|
scanBean.setShipingchang(rpcObj.getString("FoodFactory_Name")); |
|
|
|
if (rpcObj.getDate("InBreedFactoryTime")!=null) { |
|
|
|
scanBean.setDaodayangzhichang(DateTimeUtil.getYMD4(rpcObj.getDate("InBreedFactoryTime"))); |
|
|
|
}else { |
|
|
|
scanBean.setDaodayangzhichang(""); |
|
|
|
} |
|
|
|
if (rpcObj.getDate("OutBreedFactoryTime")!=null) { |
|
|
|
scanBean.setLikaiyangzhichang(DateTimeUtil.getYMD4(rpcObj.getDate("OutBreedFactoryTime"))); |
|
|
|
}else { |
|
|
|
scanBean.setLikaiyangzhichang(""); |
|
|
|
} |
|
|
|
if (rpcObj.getDate("ArriveFoodFactoryTime")!=null) { |
|
|
|
scanBean.setDaodashipingchang(DateTimeUtil.getYMD4(rpcObj.getDate("ArriveFoodFactoryTime"))); |
|
|
|
}else { |
|
|
|
scanBean.setDaodashipingchang(""); |
|
|
|
} |
|
|
|
if (rpcObj.getDate("ArriveUnloadingPointTime")!=null) { |
|
|
|
scanBean.setDaodaguajipingtai(DateTimeUtil.getYMD4(rpcObj.getDate("ArriveUnloadingPointTime"))); |
|
|
|
}else { |
|
|
|
scanBean.setDaodaguajipingtai(""); |
|
|
|
} |
|
|
|
if (rpcObj.getString("Employee_HandPhone")!=null) { |
|
|
|
scanBean.setInfos_phone(rpcObj.getString("Employee_HandPhone")); |
|
|
|
}else { |
|
|
|
scanBean.setInfos_phone(""); |
|
|
|
} |
|
|
|
scanBeanList.clear(); |
|
|
|
scanBeanList.add(scanBean); |
|
|
|
|
|
|
|
scanAdapter = new MaojiScanAdapter(ScanResultActivity.this,scanBeanList); |
|
|
|
lv_infos.setAdapter(scanAdapter); |
|
|
|
} |
|
|
|
|
|
|
|
@Override |
|
|
|
public Object call() throws Exception { |
|
|
|
JsonRpcResult result = RpcFacade.rpcCall(RpcUrl.ToFoodFactoryTransportLogRpc_LeaveBreedFactory,rpcObj.getLong("ID"),scanStr); |
|
|
|
rpcObj = result.getRpcObject(RpcUrl.ToFoodFactoryTransportLogRpc_fanhui); |
|
|
|
return null; |
|
|
|
} |
|
|
|
}; |
|
|
|
leavebTask.execute(); |
|
|
|
} |
|
|
|
|
|
|
|
private void ArriveFoodFactory() { |
|
|
|
ViewOnClickTask arrivefTask = new ViewOnClickTask(this,"加载中...") { |
|
|
|
@Override |
|
|
|
protected void successUI() { |
|
|
|
MaojiScanBean scanBean = new MaojiScanBean(); |
|
|
|
scanBean.setId(rpcObj.getLong("ID")); |
|
|
|
scanBean.setInfos_carname(rpcObj.getString("Car_Name")); |
|
|
|
scanBean.setInfos_driver(rpcObj.getString("Employee_Name")); |
|
|
|
scanBean.setInfos_yangzhichang(rpcObj.getString("BreedFactory_Name")); |
|
|
|
scanBean.setShipingchang(rpcObj.getString("FoodFactory_Name")); |
|
|
|
if (rpcObj.getDate("InBreedFactoryTime")!=null) { |
|
|
|
scanBean.setDaodayangzhichang(DateTimeUtil.getYMD4(rpcObj.getDate("InBreedFactoryTime"))); |
|
|
|
}else { |
|
|
|
scanBean.setDaodayangzhichang(""); |
|
|
|
} |
|
|
|
if (rpcObj.getDate("OutBreedFactoryTime")!=null) { |
|
|
|
scanBean.setLikaiyangzhichang(DateTimeUtil.getYMD4(rpcObj.getDate("OutBreedFactoryTime"))); |
|
|
|
}else { |
|
|
|
scanBean.setLikaiyangzhichang(""); |
|
|
|
} |
|
|
|
if (rpcObj.getDate("ArriveFoodFactoryTime")!=null) { |
|
|
|
scanBean.setDaodashipingchang(DateTimeUtil.getYMD4(rpcObj.getDate("ArriveFoodFactoryTime"))); |
|
|
|
}else { |
|
|
|
scanBean.setDaodashipingchang(""); |
|
|
|
} |
|
|
|
if (rpcObj.getDate("ArriveUnloadingPointTime")!=null) { |
|
|
|
scanBean.setDaodaguajipingtai(DateTimeUtil.getYMD4(rpcObj.getDate("ArriveUnloadingPointTime"))); |
|
|
|
}else { |
|
|
|
scanBean.setDaodaguajipingtai(""); |
|
|
|
} |
|
|
|
if (rpcObj.getString("Employee_HandPhone")!=null) { |
|
|
|
scanBean.setInfos_phone(rpcObj.getString("Employee_HandPhone")); |
|
|
|
}else { |
|
|
|
scanBean.setInfos_phone(""); |
|
|
|
} |
|
|
|
scanBeanList.clear(); |
|
|
|
scanBeanList.add(scanBean); |
|
|
|
|
|
|
|
scanAdapter = new MaojiScanAdapter(ScanResultActivity.this,scanBeanList); |
|
|
|
lv_infos.setAdapter(scanAdapter); |
|
|
|
} |
|
|
|
|
|
|
|
@Override |
|
|
|
public Object call() throws Exception { |
|
|
|
JsonRpcResult result = RpcFacade.rpcCall(RpcUrl.ToFoodFactoryTransportLogRpc_ArriveFoodFactory,rpcObj.getLong("ID"),scanStr); |
|
|
|
rpcObj = result.getRpcObject(RpcUrl.ToFoodFactoryTransportLogRpc_fanhui); |
|
|
|
return null; |
|
|
|
} |
|
|
|
}; |
|
|
|
arrivefTask.execute(); |
|
|
|
} |
|
|
|
|
|
|
|
private void ArriveUnloadingPoint() { |
|
|
|
ViewOnClickTask arriveuTask = new ViewOnClickTask(this,"加载中...") { |
|
|
|
@Override |
|
|
|
protected void successUI() { |
|
|
|
MaojiScanBean scanBean = new MaojiScanBean(); |
|
|
|
scanBean.setId(rpcObj.getLong("ID")); |
|
|
|
scanBean.setInfos_carname(rpcObj.getString("Car_Name")); |
|
|
|
scanBean.setInfos_driver(rpcObj.getString("Employee_Name")); |
|
|
|
scanBean.setInfos_yangzhichang(rpcObj.getString("BreedFactory_Name")); |
|
|
|
scanBean.setShipingchang(rpcObj.getString("FoodFactory_Name")); |
|
|
|
if (rpcObj.getDate("InBreedFactoryTime")!=null) { |
|
|
|
scanBean.setDaodayangzhichang(DateTimeUtil.getYMD4(rpcObj.getDate("InBreedFactoryTime"))); |
|
|
|
}else { |
|
|
|
scanBean.setDaodayangzhichang(""); |
|
|
|
} |
|
|
|
if (rpcObj.getDate("OutBreedFactoryTime")!=null) { |
|
|
|
scanBean.setLikaiyangzhichang(DateTimeUtil.getYMD4(rpcObj.getDate("OutBreedFactoryTime"))); |
|
|
|
}else { |
|
|
|
scanBean.setLikaiyangzhichang(""); |
|
|
|
} |
|
|
|
if (rpcObj.getDate("ArriveFoodFactoryTime")!=null) { |
|
|
|
scanBean.setDaodashipingchang(DateTimeUtil.getYMD4(rpcObj.getDate("ArriveFoodFactoryTime"))); |
|
|
|
}else { |
|
|
|
scanBean.setDaodashipingchang(""); |
|
|
|
} |
|
|
|
if (rpcObj.getDate("ArriveUnloadingPointTime")!=null) { |
|
|
|
scanBean.setDaodaguajipingtai(DateTimeUtil.getYMD4(rpcObj.getDate("ArriveUnloadingPointTime"))); |
|
|
|
}else { |
|
|
|
scanBean.setDaodaguajipingtai(""); |
|
|
|
} |
|
|
|
if (rpcObj.getString("Employee_HandPhone")!=null) { |
|
|
|
scanBean.setInfos_phone(rpcObj.getString("Employee_HandPhone")); |
|
|
|
}else { |
|
|
|
scanBean.setInfos_phone(""); |
|
|
|
} |
|
|
|
scanBeanList.clear(); |
|
|
|
scanBeanList.add(scanBean); |
|
|
|
|
|
|
|
scanAdapter = new MaojiScanAdapter(ScanResultActivity.this,scanBeanList); |
|
|
|
lv_infos.setAdapter(scanAdapter); |
|
|
|
} |
|
|
|
|
|
|
|
@Override |
|
|
|
public Object call() throws Exception { |
|
|
|
JsonRpcResult result = RpcFacade.rpcCall(RpcUrl.ToFoodFactoryTransportLogRpc_ArriveUnloadingPoint,rpcObj.getLong("ID"),scanStr); |
|
|
|
rpcObj = result.getRpcObject(RpcUrl.ToFoodFactoryTransportLogRpc_fanhui); |
|
|
|
return null; |
|
|
|
} |
|
|
|
}; |
|
|
|
arriveuTask.execute(); |
|
|
|
} |
|
|
|
|
|
|
|
} |