예제 #1
0
        /// <summary>
        /// 刷新数据
        /// </summary>
        private void RefreshData()
        {
            if (MiscAction.CasherStat(s_begin, s_end, s_fa100) > 0)
            {
                slock       = true;
                this.Cursor = Cursors.WaitCursor;

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

                gridColumn15.SummaryItem.SummaryType   = DevExpress.Data.SummaryItemType.Sum;
                gridColumn15.SummaryItem.DisplayFormat = "{0:N0}";
                gridColumn16.SummaryItem.SummaryType   = DevExpress.Data.SummaryItemType.Sum;
                gridColumn16.SummaryItem.DisplayFormat = "{0:N2}";

                decimal dec_total   = Convert.ToDecimal(gridView_center.Columns["gridColumn18"].SummaryItem.SummaryValue);
                decimal dec_fin_sum = Convert.ToDecimal(gridView_center.Columns["FIN_JE"].SummaryItem.SummaryValue);
                decimal dec_tax_sum = Convert.ToDecimal(gridView_center.Columns["TAX_JE"].SummaryItem.SummaryValue);

                if (dec_total == dec_fin_sum + dec_tax_sum)
                {
                    groupControl1.Text = "统计日期 " + s_begin + "至" + s_end;
                }
                else
                {
                    groupControl1.Text = "<color=255,0,0>统计日期 " + s_begin + "至" + s_end + "</color>";
                }

                this.Cursor = Cursors.Arrow;
                slock       = false;
            }
        }
예제 #2
0
        /// <summary>
        /// 刷新数据
        /// </summary>
        private void RefreshData()
        {
            if (MiscAction.CasherStat(s_begin, s_end, s_fa100) > 0)
            {
                this.Cursor = Cursors.WaitCursor;

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

                gridColumn15.SummaryItem.SummaryType   = DevExpress.Data.SummaryItemType.Sum;
                gridColumn15.SummaryItem.DisplayFormat = "{0:N0}";
                gridColumn16.SummaryItem.SummaryType   = DevExpress.Data.SummaryItemType.Sum;
                gridColumn16.SummaryItem.DisplayFormat = "{0:N2}";

                groupControl1.Text = "统计日期 " + s_begin + "至" + s_end;

                this.Cursor = Cursors.Arrow;
            }
        }