/// <summary>
        /// 显示节假日信息
        /// </summary>
        /// <param name="selectedHoliday">选中的节假日</param>
        public void ShowHolidayInfo(HolidayInformation selectedHoliday)
        {
            HolidayInformation clone = (HolidayInformation)selectedHoliday.Clone();
            List<string> Stockcodes = new List<string>();
            foreach (var item in ProductInfoes)
            {
                if (Stockcodes.Contains(item.StockCode))
                {
                    continue;
                }
                Stockcodes.Add(item.StockCode);
            }
            HolidayInfoWindow wnd = new HolidayInfoWindow
            {
                Owner = Application.Current.MainWindow,
                DataContext = clone,
                Codes = Stockcodes,
            };

            if (wnd.ShowDialog() == true)
            {
                ErrType err = _businessService.ModifyHolidayInfo(_loginID, clone);
                if (err == GeneralErr.Success)
                    selectedHoliday.Sync(clone);
                else
                    MessageBox.Show(err.ErrMsg, err.ErrTitle, MessageBoxButton.OK, MessageBoxImage.Warning);
            }
        }
        /// <summary>
        /// 执行添加节假日信息命令的方法
        /// </summary>
        public void AddHolidayInfoExecute()
        {
            HolidayInformation holidayInfo = new HolidayInformation();
            List<string> Stockcodes = new List<string>();
            foreach (var item in ProductInfoes)
            {
                if (Stockcodes.Contains(item.StockCode))
                {
                    continue;
                }
                Stockcodes.Add(item.StockCode);
            }
            HolidayInfoWindow wnd = new HolidayInfoWindow
            {
                Owner = Application.Current.MainWindow,
                DataContext = holidayInfo,
                Codes = Stockcodes,
               
            };

            if (wnd.ShowDialog() == true)
            {
                ErrType err = _businessService.AddHolidayInfo(_loginID, holidayInfo);
                if (err == GeneralErr.Success)
                    AddHolidayInfo(holidayInfo);
                else
                    MessageBox.Show(err.ErrMsg, err.ErrTitle, MessageBoxButton.OK, MessageBoxImage.Warning);
            }
        }