Пример #1
0
        /// <summary>
        /// 刷新数据
        /// </summary>
        private void RefreshData()
        {
            if (MiscAction.WorkStationStat(s_ws001, s_begin, s_end) > 0)
            {
                this.Cursor = Cursors.WaitCursor;

                dt_wsStat.Rows.Clear();
                statAdapter.Fill(dt_wsStat);

                //财政笔数
                gridColumn3.SummaryItem.SummaryType   = DevExpress.Data.SummaryItemType.Sum;
                gridColumn3.SummaryItem.DisplayFormat = "{0:N0}";
                //财政金额
                gridColumn4.SummaryItem.SummaryType   = DevExpress.Data.SummaryItemType.Sum;
                gridColumn4.SummaryItem.DisplayFormat = "{0:N2}";
                //税务笔数
                gridColumn5.SummaryItem.SummaryType   = DevExpress.Data.SummaryItemType.Sum;
                gridColumn5.SummaryItem.DisplayFormat = "{0:N0}";
                //税务金额
                gridColumn6.SummaryItem.SummaryType   = DevExpress.Data.SummaryItemType.Sum;
                gridColumn6.SummaryItem.DisplayFormat = "{0:N2}";

                this.Cursor = Cursors.Arrow;
            }
        }