예제 #1
0
 /// <summary>
 /// 添加节假日
 /// </summary>
 /// <param name="Hliday"></param>
 public static void AddHoliday(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.AddHoliday(dh);
         tc.Close();
     }
     catch (Exception)
     {
         tc.Abort();
     }
 }