Ejemplo n.º 1
0
        private void ShowCashInHandReport()
        {
            frmIPOReportViewer viewer = new frmIPOReportViewer();

            _fromDate = Convert.ToDateTime(FormDate.Value.ToShortDateString());
            _toDate   = Convert.ToDateTime(ToDate.Value.ToShortDateString());

            DataTable dtBoInfo = new DataTable();

            dtBoInfo = BoOpInfoBAL.getCashInHandInfo(_fromDate, _toDate);
            crCashReport.SetDataSource(dtBoInfo);

            GetCommonInfo();

            ((TextObject)crCashReport.ReportDefinition.Sections[2].ReportObjects["txtCompanyName"]).Text =
                _CommpanyName;
            ((TextObject)crCashReport.ReportDefinition.Sections[2].ReportObjects["txtBranchName"]).Text =
                "Branch Name:" + _branchName + "," + _branchAddress + ". Phone:" + _branchContactNumber;
            ((TextObject)crCashReport.ReportDefinition.Sections[2].ReportObjects["txtduration"]).Text =
                "Duration : " + FormDate.Value.ToString("dd-MMM-yyyy") + " To " +
                ToDate.Value.ToString("dd-MMM-yyyy");


            viewer.crystalReportViewer1.ReportSource = crCashReport;
            viewer.Show();
        }
Ejemplo n.º 2
0
        private void btnshowreport_Click(object sender, EventArgs e)
        {
            DataTable dt                  = new DataTable();
            string    sessionid           = "";
            crTotalApplicationList crlist = new crTotalApplicationList();
            frmIPOReportViewer     viewer = new frmIPOReportViewer();

            if (cmbsessionIdByName.Items.Count > 0)
            {
                sessionid = cmbsessionIdByName.SelectedValue.ToString();
            }

            dt = bal.GetTotalApplicationList(sessionid);
            crlist.SetDataSource(dt);

            //GetCommonInfo();
            //((TextObject)crlist.ReportDefinition.Sections[2].ReportObjects["txtreportName"]).Text =
            //                   "Total Application List";
            //((TextObject)crlist.ReportDefinition.Sections[2].ReportObjects["txtCompanyName"]).Text =
            //    _CommpanyName;
            /////// Load Branch Name
            //((TextObject)crlist.ReportDefinition.Sections[2].ReportObjects["txtBranchName"]).Text =
            //    "Branch Name:" + _branchName + "," + _branchAddress + ". Phone:" + _branchContactNumber;
            viewer.crystalReportViewer1.ReportSource = crlist;
            viewer.Show();
        }
Ejemplo n.º 3
0
        private void btnSubscriptionstatus_Click(object sender, EventArgs e)
        {
            DataTable dt = new DataTable();
            crTotalSubscriptionStatus crlist = new crTotalSubscriptionStatus();
            frmIPOReportViewer        viewer = new frmIPOReportViewer();
            int sessionid = Convert.ToInt32(CmbsessionIdByName.SelectedValue);

            dt = bal.GetTotalSubscriptionStatus(sessionid);
            crlist.SetDataSource(dt);
            viewer.crystalReportViewer1.ReportSource = crlist;
            viewer.Show();
        }
Ejemplo n.º 4
0
        private void btnreporttoissuer_Click(object sender, EventArgs e)
        {
            string    sessionid = "0";
            DataTable dt        = new DataTable();
            crCategoryWiseReportToIssuer crReport = new crCategoryWiseReportToIssuer();
            frmIPOReportViewer           viewer   = new frmIPOReportViewer();

            if (cmsessionIdByName.Items.Count > 0)
            {
                sessionid = cmsessionIdByName.SelectedValue.ToString();
            }

            dt = bal.GetCategoryWiseReportToIssuer(sessionid);
            crReport.SetDataSource(dt);

            viewer.crystalReportViewer1.ReportSource = crReport;
            viewer.Show();
        }