Exemple #1
0
        public static void Insert(VIPHarmony harmony, string operatorAccount)
        {
            var repository = Factory.CreateVIPHarmonyRepository();

            repository.Insert(harmony);
            // 记录日志
            string content = string.Format("区域Id:{0},受限航空公司:{1},受限出港城市:{1},添加帐号:{2},添加时间:{3},备注:{4}",
                                           harmony.Id, harmony.AirlineLimit.Join(","), harmony.CityLimit.Join(","), harmony.Account, harmony.AddTime, harmony.Remark);

            saveAddLog("VIP协调", content, harmony.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);
        }