Beispiel #1
0
        private void btnView_Click(object sender, EventArgs e)
        {
            xemBaoCaoForm xemBaoCao = new xemBaoCaoForm();

            xemBaoCao.reportType = "theoDoiHHDV";
            xemBaoCao.DataSource = this.eMSDBDataSet.tbl_TheoDoiHHDV;
            xemBaoCao.Show();
        }
Beispiel #2
0
        private void btnView_Click(object sender, EventArgs e)
        {
            xemBaoCaoForm xemBaoCao = new xemBaoCaoForm();

            xemBaoCao.reportType = "nhatKyChung";
            xemBaoCao.DataSource = this.eMSDBDataSet.tbl_NhatKyChung;
            xemBaoCao.Show();
        }
Beispiel #3
0
        private void viewButton_Click(object sender, EventArgs e)
        {
            string[]      tramDien   = tramComboBox.Text.Split(' ');
            xemBaoCaoForm viewReport = new xemBaoCaoForm();

            if (reportTabControl.SelectedIndex == 1)
            {
                viewReport.reportType = "thuChi";
            }
            else if (reportTabControl.SelectedIndex == 0)
            {
                if (tongHopRadioButton.Checked)
                {
                    viewReport.reportType        = "tongHop";
                    viewReport.soHoSH            = int.Parse(soHoSHLabel.Text);
                    viewReport.soHoMDK           = int.Parse(soHoMDKLabel.Text);
                    viewReport.tongDienNhan      = int.Parse(tongNhanTextBox.Text);
                    viewReport.tongNhanSH        = int.Parse(shTextBox.Text);
                    viewReport.tongNhanHoNgheo   = int.Parse(hoNgheoTextBox.Text);
                    viewReport.tongNhanHoTNT     = int.Parse(hoTNTTextBox.Text);
                    viewReport.tongNhanMDK       = int.Parse(mdkTextBox.Text);
                    viewReport.tongTienThanhToan = long.Parse(thanhToanTextBox.Text);
                }
                else
                {
                    viewReport.reportType = "monthly";
                    if (shRadioButton.Checked)
                    {
                        viewReport.monthlyReportType = "Sinh Hoạt";
                    }
                    else if (mdkRadioButton.Checked)
                    {
                        viewReport.monthlyReportType = "Mục Đích Khác";
                    }
                }
            }
            viewReport.thang  = int.Parse(thangComboBox.Text);
            viewReport.nam    = int.Parse(namComboBox.Text);
            viewReport.soTram = tramDien[1];
            viewReport.tramID = tramComboBox.SelectedValue.ToString();
            viewReport.ShowDialog();
        }