示例#1
0
        private void btnRefresh_Click(object sender, EventArgs e)
        {
            try
            {

                if (balanceTable == null)
                {
                    BalanceDal balanceDal = new BalanceDal();
                    balanceTable = balanceDal.GetAllBalanceID();
                }

                if (month == null)
                    month = SysDate8.Substring(0, 6);
                BalanceDialog balanceDialog = new BalanceDialog(balanceTable, month);

                if (balanceDialog.ShowDialog() == DialogResult.OK)
                {

                    DataTable reportTable = THOKUtil.GetEmptyReportDetail();
                    bsMain.DataSource = reportTable;
                    DataGridViewAutoFilter.DataGridViewAutoFilterTextBoxColumn.RemoveFilter(dgvMain);

                    ReportDal reportDal = new ReportDal();

                    colorDictionary = reportDal.GenerateDetail(balanceDialog.BeginBalance, balanceDialog.EndBalance, reportTable);
                }
            }
            catch (Exception exp)
            {
                THOKUtil.ShowInfo("�����½�����ʧ�ܣ�ԭ��" + exp.Message);
            }
        }
示例#2
0
        private void btnRefresh_Click(object sender, EventArgs e)
        {
            try
            {
                if (balanceTable == null)
                {
                    BalanceDal balanceDal = new BalanceDal();
                    balanceTable = balanceDal.GetAllBalanceID();
                }
                BalanceDialog balanceDialog = new BalanceDialog(balanceTable);

                if (balanceDialog.ShowDialog() == DialogResult.OK)
                {

                    bsMain.DataSource = taskDal.GetTaskHistory(balanceDialog.BeginBalance, balanceDialog.EndBalance);
                    DataGridViewAutoFilter.DataGridViewAutoFilterTextBoxColumn.RemoveFilter(dgvMain);
                }
            }
            catch (Exception exp)
            {
                THOKUtil.ShowInfo("������ҵ����ʧ�ܣ�ԭ��" + exp.Message);
            }
        }