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

            if (re > 0)
            {
                gridView1.BeginUpdate();
                dt_cs.Rows.Clear();
                csAdapter.Fill(dt_cs);

                gridColumn4.SummaryItem.SummaryType   = DevExpress.Data.SummaryItemType.Sum;
                gridColumn4.SummaryItem.DisplayFormat = "合计 = {0:N2}";

                gridColumn6.SummaryItem.SummaryType   = DevExpress.Data.SummaryItemType.Sum;
                gridColumn6.SummaryItem.DisplayFormat = "税额合计 = {0:N2}";

                gridColumn8.SummaryItem.SummaryType   = DevExpress.Data.SummaryItemType.Sum;
                gridColumn8.SummaryItem.DisplayFormat = "不含税合计 = {0:N2}";

                bs_bs.Caption = "           共有收费笔数:" + MiscAction.GetClassStat_BS().ToString() + "笔";

                //gridColumn1.SummaryItem.SummaryType = DevExpress.Data.SummaryItemType.Custom;
                //gridColumn1.SummaryItem.DisplayFormat = "合计 = {0:N2}";

                gridView1.EndUpdate();
            }
            this.Cursor = Cursors.Arrow;
        }