/// <summary> /// /// </summary> /// <param name="TdRate"></param> /// <returns></returns> public static int ModifyWaterAndRate(WcfInterface.model.TradeRate TdRate) { TradeClient tc = new TradeClient(); int result = 0; try { result = tc.SetRateAndWater(TdRate.PriceCode, TdRate.Rate, TdRate.Water); tc.Close(); } catch (Exception ex) { tc.Abort(); throw new Exception(ex.Message, ex); } return result; }
/// <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(); } }
public void NotifyTaskProgressTotal(WcfInterface.ProgressSummary totalInfo) { Console.WriteLine(); }
/// <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(); } }
public void NotifyTaskProgressItemValueAndTotal(string sellerAccount, WcfInterface.ProgressItem sellerAccountProgress) { Console.WriteLine(); }