public bool oldLoad() { if (this.GetEnt4BannerDTO() == null) { return(false); } this.errorMsgString = ""; try { idor2EmsDTOMap.Clear(); idor2OrderDOMap.Clear(); { FMap2 rtnMap = iCiOrdQryService.getOrdFeebill(GetEnt4BannerDTO().Id_ent, GetEnt4BannerDTO().Code_entp); if (rtnMap != null && rtnMap.Keys.Count > 0 && rtnMap.Keys.Contains("orders") && rtnMap.Keys.Contains("emses")) { FArrayList ordList = rtnMap["orders"] as FArrayList; FArrayList emsList = rtnMap["emses"] as FArrayList; FMap blsrvmap = rtnMap["blsrvdes"] as FMap; CiOrderDO[] szOrders = ordList.Cast <CiOrderDO>().ToArray(); CiEmsDTO[] szEmses = emsList.Cast <CiEmsDTO>().ToArray(); // 装配UI数据 List <CiOrdFeeSrvDTO> list = OrdFeeBillListFrom(szOrders, szEmses, blsrvmap); if (null != list && list.Count > 0) { this.tableDatasource = list.ToArray(); // 控件不支持,不应该直接改写对象 } else { tableDatasource.Clear(); } } else { this.errorMsgString = "获取费用清单数据失败"; return(false); } } } catch (XapServiceException e) { this.errorMsgString = e.ErrorMsg.Message; } catch (Exception e) { this.errorMsgString = e.Message; } return(false); }