/*获取药房信息:提交城市名,返回该城市的所有药房的信息*/
        public AllPharmacyInfo GetAllPharmacyInfo(string city) {

            AllPharmacyInfoEntity allPharmacyInfoEntity = null;

            if (city == null) {
                allPharmacyInfoEntity = new AllPharmacyInfoEntity();
                allPharmacyInfoEntity.ErrorMessage = "104 Empty City! @Service";
            }
            else {
                allPharmacyInfoEntity = openAccessLogic.GetAllPharmacyInfo(city);
            }
            AllPharmacyInfo allPharmacyInfo = new AllPharmacyInfo();
            TranslateAllPharmacyInfoEntityToAllPharmacyInfoContractData(allPharmacyInfoEntity, allPharmacyInfo);

            return allPharmacyInfo;
        }
        /*将AllPharmacyInfo对应的Entity翻译为数据契约,调用TranslatePharmacyInfoEntityToPharmacyInfoContractData()*/
        private void TranslateAllPharmacyInfoEntityToAllPharmacyInfoContractData(
            AllPharmacyInfoEntity allPharmacyInfoEntity,
            AllPharmacyInfo allPharmacyInfo) {

            int cnt = 0;

            allPharmacyInfo.ErrorMessage = allPharmacyInfoEntity.ErrorMessage;
            allPharmacyInfo.Count = allPharmacyInfoEntity.Count;

            if (allPharmacyInfo.Count > 0) {
                allPharmacyInfo.pharmacyInfo = new PharmacyInfo[allPharmacyInfo.Count];
                for (cnt = 0; cnt < allPharmacyInfo.Count; cnt++) {
                    allPharmacyInfo.pharmacyInfo[cnt] = new PharmacyInfo();
                    TranslatePharmacyInfoEntityToPharmacyInfoContractData(
                        allPharmacyInfoEntity.pharmacyInfoEntity[cnt],
                        allPharmacyInfo.pharmacyInfo[cnt]);
                }
            }
        }