public void setData(Order order) { if (order == null) return; positionLon = order.getPositionLon(); positionLat = order.getPositionLat(); photoUrl = order.getPhoto(); workTimeStr = DateCompute.getDate(order.getOrderTime()); remark = order.getRemark(); shopName = order.getCreatorName(); setBaseData(); getOrderInfo(order.getId()); }
public void setData(OrderInfo_Data orderInfo) { if (orderInfo == null) return; this.positionLon = orderInfo.getPositionLon(); this.positionLat = orderInfo.getPositionLat(); this.photoUrl = orderInfo.getPhoto(); this.workTimeStr = DateCompute.getDate(orderInfo.getOrderTime()); this.remark = orderInfo.getRemark(); this.shopName = orderInfo.getCreatorName(); orderType_str = MyApplication.getInstance().getSkill(orderInfo.getOrderType()); orderOwner_str = orderInfo.getCooperator().getCorporationName(); shopsLocation_str = orderInfo.getCooperator().getAddress(); shopsAlias_str = orderInfo.getCooperator().getFullname(); setBaseData(); setCooperator(); }