@Test public void testGetSimpleInfo() throws RemoteException { ArrayList<OrderSimpleInfoVO> vos = order.getSimpleInfo("123456"); System.out.println(vos.size()); fail("Not yet implemented"); }
public ArrayList<OrderSimpleInfoVO> getSimpleInfo(String orderBarCode) throws RemoteException { ArrayList<String> poStrings = new ArrayList<String>(); ArrayList<OrderSimpleInfoVO> orderSimpleInfoVOs = null; transportController = (TransportController) BusinessLogicDataFactory .getFactory().getTransportblservice(); storeController = new StoreController(); poStrings = orderData.getSingleOrderDocs(orderBarCode); if (poStrings == null) { return null; } orderSimpleInfoVOs = new ArrayList<OrderSimpleInfoVO>(poStrings.size()); String time = ""; String place = ""; DocType type = null; for (String poString : poStrings) { if (poStrings == null || poString.length() < 3) { break; } String tmp = poString.substring(0, 3); switch (tmp) { case "ZCD": LoadDocVO vol = (LoadDocVO) transportController.getByID( poString, DocType.loadDoc); place = vol.arriveCity.getName(); time = MyDate.toString(vol.date); type = DocType.loadDoc; break; case "JSD": ArriveYYDocVO voy = (ArriveYYDocVO) transportController .getByID(poString, DocType.arriveYYDoc); place = ""; time = MyDate.toString(voy.date); type = DocType.arriveYYDoc; break; case "DDD": ArriveZZDocVO voz = (ArriveZZDocVO) transportController .getByID(poString, DocType.arriveZZDoc); place = voz.sendCity.getName(); time = MyDate.toString(voz.date); type = DocType.arriveZZDoc; break; case "ZZD": TransferDocVO vot = (TransferDocVO) transportController .getByID(poString, DocType.transferDoc); place = vot.sendCity.getName(); time = MyDate.toString(vot.date); type = DocType.transferDoc; break; case "PSD": SendGoodDocVO vop = (SendGoodDocVO) transportController .getByID(poString, DocType.sendGoodDoc); place = vop.sendMan; time = MyDate.toString(vop.date); type = DocType.sendGoodDoc; break; case "RKD": InStoreDocVO vor = (InStoreDocVO) storeController.getByID( poString, DocType.inStoreDoc); place = vor.loc.getName(); time = MyDate.toString(vor.date); type = DocType.inStoreDoc; break; case "CKD": OutStoreDocVO voc = (OutStoreDocVO) storeController.getByID( poString, DocType.outStoreDoc); place = voc.loc.getName(); time = MyDate.toString(voc.date); type = DocType.outStoreDoc; break; default: break; } orderSimpleInfoVOs.add(new OrderSimpleInfoVO(orderBarCode, place, time, type)); } return orderSimpleInfoVOs; }
Order { public ArrayList<OrderSimpleInfoVO> getSimpleInfo(String orderBarCode) throws RemoteException { ArrayList<String> poStrings = new ArrayList<String>(); ArrayList<OrderSimpleInfoVO> orderSimpleInfoVOs = null; transportController = (TransportController) BusinessLogicDataFactory .getFactory().getTransportblservice(); storeController = new StoreController(); poStrings = orderData.getSingleOrderDocs(orderBarCode); if (poStrings == null) { return null; } orderSimpleInfoVOs = new ArrayList<OrderSimpleInfoVO>(poStrings.size()); String time = ""; String place = ""; DocType type = null; for (String poString : poStrings) { if (poStrings == null || poString.length() < 3) { break; } String tmp = poString.substring(0, 3); switch (tmp) { case "ZCD": LoadDocVO vol = (LoadDocVO) transportController.getByID( poString, DocType.loadDoc); place = vol.arriveCity.getName(); time = MyDate.toString(vol.date); type = DocType.loadDoc; break; case "JSD": ArriveYYDocVO voy = (ArriveYYDocVO) transportController .getByID(poString, DocType.arriveYYDoc); place = ""; time = MyDate.toString(voy.date); type = DocType.arriveYYDoc; break; case "DDD": ArriveZZDocVO voz = (ArriveZZDocVO) transportController .getByID(poString, DocType.arriveZZDoc); place = voz.sendCity.getName(); time = MyDate.toString(voz.date); type = DocType.arriveZZDoc; break; case "ZZD": TransferDocVO vot = (TransferDocVO) transportController .getByID(poString, DocType.transferDoc); place = vot.sendCity.getName(); time = MyDate.toString(vot.date); type = DocType.transferDoc; break; case "PSD": SendGoodDocVO vop = (SendGoodDocVO) transportController .getByID(poString, DocType.sendGoodDoc); place = vop.sendMan; time = MyDate.toString(vop.date); type = DocType.sendGoodDoc; break; case "RKD": InStoreDocVO vor = (InStoreDocVO) storeController.getByID( poString, DocType.inStoreDoc); place = vor.loc.getName(); time = MyDate.toString(vor.date); type = DocType.inStoreDoc; break; case "CKD": OutStoreDocVO voc = (OutStoreDocVO) storeController.getByID( poString, DocType.outStoreDoc); place = voc.loc.getName(); time = MyDate.toString(voc.date); type = DocType.outStoreDoc; break; default: break; } orderSimpleInfoVOs.add(new OrderSimpleInfoVO(orderBarCode, place, time, type)); } return orderSimpleInfoVOs; } }
Order { public ArrayList<OrderSimpleInfoVO> getSimpleInfo(String orderBarCode) throws RemoteException { ArrayList<String> poStrings = new ArrayList<String>(); ArrayList<OrderSimpleInfoVO> orderSimpleInfoVOs = null; transportController = (TransportController) BusinessLogicDataFactory .getFactory().getTransportblservice(); storeController = new StoreController(); poStrings = orderData.getSingleOrderDocs(orderBarCode); if (poStrings == null) { return null; } orderSimpleInfoVOs = new ArrayList<OrderSimpleInfoVO>(poStrings.size()); String time = ""; String place = ""; DocType type = null; for (String poString : poStrings) { if (poStrings == null || poString.length() < 3) { break; } String tmp = poString.substring(0, 3); switch (tmp) { case "ZCD": LoadDocVO vol = (LoadDocVO) transportController.getByID( poString, DocType.loadDoc); place = vol.arriveCity.getName(); time = MyDate.toString(vol.date); type = DocType.loadDoc; break; case "JSD": ArriveYYDocVO voy = (ArriveYYDocVO) transportController .getByID(poString, DocType.arriveYYDoc); place = ""; time = MyDate.toString(voy.date); type = DocType.arriveYYDoc; break; case "DDD": ArriveZZDocVO voz = (ArriveZZDocVO) transportController .getByID(poString, DocType.arriveZZDoc); place = voz.sendCity.getName(); time = MyDate.toString(voz.date); type = DocType.arriveZZDoc; break; case "ZZD": TransferDocVO vot = (TransferDocVO) transportController .getByID(poString, DocType.transferDoc); place = vot.sendCity.getName(); time = MyDate.toString(vot.date); type = DocType.transferDoc; break; case "PSD": SendGoodDocVO vop = (SendGoodDocVO) transportController .getByID(poString, DocType.sendGoodDoc); place = vop.sendMan; time = MyDate.toString(vop.date); type = DocType.sendGoodDoc; break; case "RKD": InStoreDocVO vor = (InStoreDocVO) storeController.getByID( poString, DocType.inStoreDoc); place = vor.loc.getName(); time = MyDate.toString(vor.date); type = DocType.inStoreDoc; break; case "CKD": OutStoreDocVO voc = (OutStoreDocVO) storeController.getByID( poString, DocType.outStoreDoc); place = voc.loc.getName(); time = MyDate.toString(voc.date); type = DocType.outStoreDoc; break; default: break; } orderSimpleInfoVOs.add(new OrderSimpleInfoVO(orderBarCode, place, time, type)); } return orderSimpleInfoVOs; } Order(OrderDataService orderData); }
Order { public ArrayList<OrderSimpleInfoVO> getSimpleInfo(String orderBarCode) throws RemoteException { ArrayList<String> poStrings = new ArrayList<String>(); ArrayList<OrderSimpleInfoVO> orderSimpleInfoVOs = null; transportController = (TransportController) BusinessLogicDataFactory .getFactory().getTransportblservice(); storeController = new StoreController(); poStrings = orderData.getSingleOrderDocs(orderBarCode); if (poStrings == null) { return null; } orderSimpleInfoVOs = new ArrayList<OrderSimpleInfoVO>(poStrings.size()); String time = ""; String place = ""; DocType type = null; for (String poString : poStrings) { if (poStrings == null || poString.length() < 3) { break; } String tmp = poString.substring(0, 3); switch (tmp) { case "ZCD": LoadDocVO vol = (LoadDocVO) transportController.getByID( poString, DocType.loadDoc); place = vol.arriveCity.getName(); time = MyDate.toString(vol.date); type = DocType.loadDoc; break; case "JSD": ArriveYYDocVO voy = (ArriveYYDocVO) transportController .getByID(poString, DocType.arriveYYDoc); place = ""; time = MyDate.toString(voy.date); type = DocType.arriveYYDoc; break; case "DDD": ArriveZZDocVO voz = (ArriveZZDocVO) transportController .getByID(poString, DocType.arriveZZDoc); place = voz.sendCity.getName(); time = MyDate.toString(voz.date); type = DocType.arriveZZDoc; break; case "ZZD": TransferDocVO vot = (TransferDocVO) transportController .getByID(poString, DocType.transferDoc); place = vot.sendCity.getName(); time = MyDate.toString(vot.date); type = DocType.transferDoc; break; case "PSD": SendGoodDocVO vop = (SendGoodDocVO) transportController .getByID(poString, DocType.sendGoodDoc); place = vop.sendMan; time = MyDate.toString(vop.date); type = DocType.sendGoodDoc; break; case "RKD": InStoreDocVO vor = (InStoreDocVO) storeController.getByID( poString, DocType.inStoreDoc); place = vor.loc.getName(); time = MyDate.toString(vor.date); type = DocType.inStoreDoc; break; case "CKD": OutStoreDocVO voc = (OutStoreDocVO) storeController.getByID( poString, DocType.outStoreDoc); place = voc.loc.getName(); time = MyDate.toString(voc.date); type = DocType.outStoreDoc; break; default: break; } orderSimpleInfoVOs.add(new OrderSimpleInfoVO(orderBarCode, place, time, type)); } return orderSimpleInfoVOs; } Order(OrderDataService orderData); ResultMessage add(OrderVO vo); ResultMessage checkBarCode(String orderBarCode); ArrayList<OrderVO> getOrderVO(MyDate date); ResultMessage del(String orderBarCode); ArrayList<OrderSimpleInfoVO> getSimpleInfo(String orderBarCode); OrderVO getFullInfo(String orderBarCode); ResultMessage receiveInfo(ReceiveVO vo); ResultMessage addDocToList(DocVO vo, ArrayList<String> orderBarCodes); @SuppressWarnings("unused") ArrayList<PreReceiveVO> getPreReceive(
			ArrayList<SendGoodDocVO> daySendDocs); double getEstiDate(City one, City two); ResultMessage setEstiDate(double day, City one, City two); ResultMessage changeDocsState(ArrayList<String> docsID,
			DocType type, DocState state); ResultMessage changeOneDocState(String docID, DocType type,
			DocState state); @SuppressWarnings("unchecked") ArrayList<DocVO> getDocLists(); }
Order { public ArrayList<OrderSimpleInfoVO> getSimpleInfo(String orderBarCode) throws RemoteException { ArrayList<String> poStrings = new ArrayList<String>(); ArrayList<OrderSimpleInfoVO> orderSimpleInfoVOs = null; transportController = (TransportController) BusinessLogicDataFactory .getFactory().getTransportblservice(); storeController = new StoreController(); poStrings = orderData.getSingleOrderDocs(orderBarCode); if (poStrings == null) { return null; } orderSimpleInfoVOs = new ArrayList<OrderSimpleInfoVO>(poStrings.size()); String time = ""; String place = ""; DocType type = null; for (String poString : poStrings) { if (poStrings == null || poString.length() < 3) { break; } String tmp = poString.substring(0, 3); switch (tmp) { case "ZCD": LoadDocVO vol = (LoadDocVO) transportController.getByID( poString, DocType.loadDoc); place = vol.arriveCity.getName(); time = MyDate.toString(vol.date); type = DocType.loadDoc; break; case "JSD": ArriveYYDocVO voy = (ArriveYYDocVO) transportController .getByID(poString, DocType.arriveYYDoc); place = ""; time = MyDate.toString(voy.date); type = DocType.arriveYYDoc; break; case "DDD": ArriveZZDocVO voz = (ArriveZZDocVO) transportController .getByID(poString, DocType.arriveZZDoc); place = voz.sendCity.getName(); time = MyDate.toString(voz.date); type = DocType.arriveZZDoc; break; case "ZZD": TransferDocVO vot = (TransferDocVO) transportController .getByID(poString, DocType.transferDoc); place = vot.sendCity.getName(); time = MyDate.toString(vot.date); type = DocType.transferDoc; break; case "PSD": SendGoodDocVO vop = (SendGoodDocVO) transportController .getByID(poString, DocType.sendGoodDoc); place = vop.sendMan; time = MyDate.toString(vop.date); type = DocType.sendGoodDoc; break; case "RKD": InStoreDocVO vor = (InStoreDocVO) storeController.getByID( poString, DocType.inStoreDoc); place = vor.loc.getName(); time = MyDate.toString(vor.date); type = DocType.inStoreDoc; break; case "CKD": OutStoreDocVO voc = (OutStoreDocVO) storeController.getByID( poString, DocType.outStoreDoc); place = voc.loc.getName(); time = MyDate.toString(voc.date); type = DocType.outStoreDoc; break; default: break; } orderSimpleInfoVOs.add(new OrderSimpleInfoVO(orderBarCode, place, time, type)); } return orderSimpleInfoVOs; } Order(OrderDataService orderData); ResultMessage add(OrderVO vo); ResultMessage checkBarCode(String orderBarCode); ArrayList<OrderVO> getOrderVO(MyDate date); ResultMessage del(String orderBarCode); ArrayList<OrderSimpleInfoVO> getSimpleInfo(String orderBarCode); OrderVO getFullInfo(String orderBarCode); ResultMessage receiveInfo(ReceiveVO vo); ResultMessage addDocToList(DocVO vo, ArrayList<String> orderBarCodes); @SuppressWarnings("unused") ArrayList<PreReceiveVO> getPreReceive(
			ArrayList<SendGoodDocVO> daySendDocs); double getEstiDate(City one, City two); ResultMessage setEstiDate(double day, City one, City two); ResultMessage changeDocsState(ArrayList<String> docsID,
			DocType type, DocState state); ResultMessage changeOneDocState(String docID, DocType type,
			DocState state); @SuppressWarnings("unchecked") ArrayList<DocVO> getDocLists();  }