예제 #1
0
 /// <summary>
 /// 修改交易日
 /// </summary>
 /// <param name="DtSet"></param>
 public static void ModifyDateSetEx(WcfInterface.model.DateSet DtSet)
 {
     TradeClient tc = new TradeClient();
     try
     {
         WcfInterface.ServiceReference1.DateSet ds = new ServiceReference1.DateSet();
         ds.Desc = DtSet.Desc;
         ds.Endtime = DtSet.Endtime;
         ds.Starttime = DtSet.Starttime;
         ds.Istrade = !DtSet.Istrade;
         ds.Weekday = DtSet.Weekday;
         ds.PriceCode = DtSet.PriceCode;
         tc.ModifyDateSet(ds);
         tc.Close();
     }
     catch (Exception)
     {
         tc.Abort();
     }
 }