public HistoryDataSetWindow(HisData hisData)
        {
            InitializeComponent();
            this.ProductName = hisData.ProductCod;
            this.Cycle = hisData.Cycle;
            this.HistoryData = hisData;
            this.DataContext = this;

        }
 internal static Gss.TradeService.TradeService.HisData ToServiceHisDataInfo(Gss.Entities.JTWEntityes.HisData hisdata)
 {
     Gss.TradeService.TradeService.HisData hd = new TradeService.HisData();
     hd.closeprice = hisdata.Closeprice;
     hd.highprice  = hisdata.Highprice;
     hd.lowprice   = hisdata.Lowprice;
     hd.openprice  = hisdata.Openprice;
     hd.volnum     = hisdata.Volnum;
     hd.weektime   = hisdata.Weektime;
     return(hd);
 }
 public ErrType ModifyHisData(Gss.Entities.JTWEntityes.HisData hisdata, string pricecode, string weekflg)
 {
     try
     {
         var result = TradeService.ModifyHisData(TradeConverter.ToServiceHisDataInfo(hisdata), pricecode, weekflg);
         if (!result.Result)
         {
             return(new ErrType(ERR.ERROR, "修改历史数据失败"));
         }
         return(GeneralErr.Success);
     }
     catch (Exception ex)
     {
         FileLog.WriteLog("", Assembly.GetExecutingAssembly().GetName().Name, this.GetType().Name, new StackTrace().GetFrame(0).GetMethod().Name, ex.Message);
         return(new ErrType(ERR.EXEPTION, ErrorText.OperationError));
     }
 }