示例#1
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);
            }
        }
示例#2
0
        private void Btt_rpt_withPE_Click(object sender, EventArgs e)
        {
            Frm_CryRpt_Display CryRpt_Display = new Frm_CryRpt_Display();

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

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

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


            rpt_Portfolio_PE Portfolio_PE = new rpt_Portfolio_PE();

            DataTable dt = bal.Portfolio_PE_dt(txtSearchCustomer.Text, _ToDate);

            Portfolio_PE.SetDataSource(dt);


            // string RptFormula = "{V_RPT_Portfolio_PE.Cust_Code}='" + txtSearchCustomer.Text + "' AND {V_RPT_Portfolio_PE.Trade_Date}<=#" + _ToDate + "# ";

            string RptFormula = "";

            CryRpt_Display.ShowDialog(Portfolio_PE, RptFormula);
        }