Exemple #1
0
        private string GetRemark(long device_id)
        {
            string result = string.Empty;

            WXStoreHelper.Device device = (from c in this.Devices
                                           where c.device_id == device_id
                                           select c).FirstOrDefault();
            if (device != null)
            {
                result = device.comment;
            }
            return(result);
        }
Exemple #2
0
        private string GetStoreName(long device_id)
        {
            string result = string.Empty;

            WXStoreHelper.Device device = (from c in this.Devices
                                           where c.device_id == device_id
                                           select c).FirstOrDefault();
            if (device != null)
            {
                WXStoreHelper.Store store = (from c in this.AllStores
                                             where c.poi_id == device.poi_id.ToString()
                                             select c).FirstOrDefault();
                if (store != null)
                {
                    result = ((!string.IsNullOrEmpty(store.branch_name)) ? $"{store.business_name}({store.branch_name})" : store.business_name);
                }
            }
            return(result);
        }