Exemple #1
0
        public virtual CrystalDecisions.CrystalReports.Engine.ReportDocument CreateReport()
        {
            Rpt_IPO_Mony_Transcetion rpt = new Rpt_IPO_Mony_Transcetion();

            rpt.Site = this.Site;
            return(rpt);
        }
Exemple #2
0
        private void Btt_ViewRpt_Click(object sender, EventArgs e)
        {
            //create by nobin /

            Frm_CryRpt_Display CryRpt_Display = new Frm_CryRpt_Display();

            DateTime _date;
            string   _FormDate = "";
            string   _ToDate   = "";

            _date     = DateTime.Parse(FormDate.Text);
            _FormDate = _date.ToString();

            _date   = DateTime.Parse(ToDate.Text);
            _ToDate = _date.ToString();

            if (RadMulti_Trans.Checked == true)
            {
                Rpt_IPO_Mony_Transcetion Mony_trans = new Rpt_IPO_Mony_Transcetion();

                if (Cmb_Session.SelectedIndex == -1)
                {
                    DataTable dt = bal.IPO_Money_Trns(_FormDate, _ToDate);
                    Mony_trans.SetDataSource(dt);

                    string RptFormula = "{V_IPO_Money_Trns.Deposit_Type}<>'Single_Transaction'";
                    CryRpt_Display.ShowDialog(Mony_trans, RptFormula);
                }
                else
                {
                    ///IPo Appliction all showing singal and applay thogether. requrment rakimul vai. by nobin

                    DataTable dt = bal.IPO_Money_Trns(_FormDate, _ToDate);
                    Mony_trans.SetDataSource(dt);

                    string RptFormula = "{V_IPO_Money_Trns.IPO_SessionID}=" + Cmb_Session.SelectedValue + " ";
                    CryRpt_Display.ShowDialog(Mony_trans, RptFormula);
                }
            }

            else if (RadSingle_Trans.Checked == true)
            {
                Rpt_IPO_Mony_Transcetion Mony_trans = new Rpt_IPO_Mony_Transcetion();

                DataTable dt = bal.IPO_Single_Trans(_FormDate, _ToDate);
                Mony_trans.SetDataSource(dt);

                string RptFormula = "{V_IPO_Money_Trns.Deposit_Type}='Single_Transaction' ";
                CryRpt_Display.ShowDialog(Mony_trans, RptFormula);
            }
        }