Exemple #1
0
        public static void Delete(Guid id, string operatorAccount)
        {
            var repository = Factory.CreateVIPHarmonyRepository();

            repository.Delete(id);
            // 记录日志
            var    management = VIPHarmonyService.Query(id);
            string content    = string.Format("区域Id:{0},受限航空公司:{1},受限出港城市:{1},备注:{2}",
                                              management.Id, management.AirlineLimit.Join(","), management.CityLimit.Join(","), management.Remark);

            saveDeleteLog("VIP协调", content, id.ToString(), operatorAccount);
        }
Exemple #2
0
        public static void Update(VIPHarmony harmony, string operatorAccount)
        {
            var repository = Factory.CreateVIPHarmonyRepository();

            repository.Update(harmony);
            // 记录日志
            var    orginialView    = VIPHarmonyService.Query(harmony.Id);
            string orginialContent = string.Format("区域Id:{0},受限航空公司:{1},受限出港城市:{1},备注:{2}",
                                                   orginialView.Id, orginialView.AirlineLimit.Join(","), orginialView.CityLimit.Join(","), orginialView.Remark);
            string newContent = string.Format("区域Id:{0},受限航空公司:{1},受限出港城市:{1},备注:{2}",
                                              harmony.Id, harmony.AirlineLimit.Join(","), harmony.CityLimit.Join(","), harmony.Remark);

            saveUpdateLog("VIP协调", orginialContent, newContent, harmony.Id.ToString(), operatorAccount);
        }
Exemple #3
0
        public static void Delete(IEnumerable <Guid> ids, string operatorAccount)
        {
            var repository = Factory.CreateVIPHarmonyRepository();

            repository.Delete(ids);
            // 记录日志
            string content = "";

            foreach (var item in ids)
            {
                var management = VIPHarmonyService.Query(item);
                content += string.Format("区域Id:{0},受限航空公司:{1},受限出港城市:{1},备注:{2}",
                                         management.Id, management.AirlineLimit.Join(","), management.CityLimit.Join(","), management.Remark);
            }
            saveDeleteLog("VIP协调", content, ids.Join(",", item => item.ToString()), operatorAccount);
        }