Ejemplo n.º 1
0
        private void btnViewReport_Click(object sender, EventArgs e)
        {
            Pay_Out_Confirmation_Report_DSE_21_11BAL objBAL = new Pay_Out_Confirmation_Report_DSE_21_11BAL();
            DataTable       data      = new DataTable();
            frmReportViewer rptviewer = new frmReportViewer();
            crPay_Out_Confirmation_Report_DSE_21_11 objrpt = new crPay_Out_Confirmation_Report_DSE_21_11();

            data = objBAL.GetPay_In_Confirmation_ReportData(ddlInstrumentGroup.Text, ddlBranchName.Text, dtpDate.Value);
            objrpt.SetDataSource(data);
            ((TextObject)objrpt.Section2.ReportObjects["txtBranch"]).Text          = ddlBranchName.Text;
            ((TextObject)objrpt.Section2.ReportObjects["txtInstrumentGroup"]).Text = ddlInstrumentGroup.Text;
            rptviewer.crvReportViewer.ReportSource = objrpt;
            rptviewer.Show();
        }
Ejemplo n.º 2
0
        private void frmPay_Out_Confirmation_Report_DSE_21_11_Load(object sender, EventArgs e)
        {
            Pay_Out_Confirmation_Report_DSE_21_11BAL objBAL = new Pay_Out_Confirmation_Report_DSE_21_11BAL();
            DataTable instrumentGroup;
            DataTable branchName;

            instrumentGroup = objBAL.GetInstrumentGroup();
            branchName      = objBAL.GetBranchName();

            ddlInstrumentGroup.DataSource    = instrumentGroup;
            ddlInstrumentGroup.ValueMember   = instrumentGroup.Columns[0].ToString();
            ddlInstrumentGroup.DisplayMember = instrumentGroup.Columns[1].ToString();

            ddlBranchName.DataSource    = branchName;
            ddlBranchName.ValueMember   = branchName.Columns[0].ToString();
            ddlBranchName.DisplayMember = branchName.Columns[1].ToString();
        }