/// <summary> /// 修改节假日 /// </summary> /// <param name="Hliday"></param> public static void ModifyHoliday(WcfInterface.model.DateHoliday Hliday) { TradeClient tc = new TradeClient(); try { WcfInterface.ServiceReference1.DateHoliday dh = new ServiceReference1.DateHoliday(); dh.Desc = Hliday.Desc; dh.Endtime = Hliday.Endtime; dh.Starttime = Hliday.Starttime; dh.ID = Hliday.ID; dh.HoliName = Hliday.HoliName; dh.PriceCode = Hliday.PriceCode; tc.ModifyHoliday(dh); tc.Close(); } catch (Exception) { tc.Abort(); } }