Пример #1
0
        private void btnPrint_Click(object sender, EventArgs e)
        {
            string strBranchId = "";

            if (uctxtBranch.Text == "")
            {
                MessageBox.Show("Please Select Branch Name.");
                return;
            }
            else
            {
                strBranchId = Utility.gstrGetBranchID(strComID, uctxtBranch.Text);
            }


            JA.Modulecontrolar.UI.DReport.Accms.Viewer.frmReportViewer frmviewer = new JA.Modulecontrolar.UI.DReport.Accms.Viewer.frmReportViewer();
            frmviewer.selector       = JA.Modulecontrolar.UI.DReport.Accms.ViewerSelector.HondaLoan;
            frmviewer.strFdate       = dteFromDate.Value.ToString("dd-MM-yyyy");
            frmviewer.strTdate       = dtpLastDate.Value.ToString("dd-MM-yyyy");
            frmviewer.strSelf        = dteToDate.Value.ToString("dd-MM-yyyy");
            frmviewer.mstrBranchName = "Branch :" + uctxtBranch.Text;
            frmviewer.strBranchID    = strBranchId;
            frmviewer.strSelction    = "";
            frmviewer.intVtype       = 0;
            frmviewer.Show();
            return;
        }
Пример #2
0
        private void btnPrint_Click(object sender, EventArgs e)
        {
            string strBranchId = "";

            if (uctxtBranch.Text == "")
            {
                MessageBox.Show("Please Select Branch Name.");
                return;
            }
            else
            {
                strBranchId = Utility.gstrGetBranchID(strComID, uctxtBranch.Text);
            }

            int      year     = dteFromDate.Value.Year;
            int      Mont     = dteFromDate.Value.Month;
            DateTime firstDay = new DateTime(year, Mont, 1);
            DateTime lastDay  = new DateTime(year, 12, 31);

            dteFromDate.Text   = firstDay.ToString();
            dteFromDate2.Value = dteFromDate.Value.AddMonths(1);
            dteFromDate3.Value = dteFromDate2.Value.AddMonths(1);
            dteFromDate4.Value = dteFromDate3.Value.AddMonths(1);
            dtpLastDate.Value  = dteFromDate4.Value.AddMonths(1);
            dteToDate.Value    = dtpLastDate.Value.AddDays(-1);
            if (radAll.Checked == true)
            {
                JA.Modulecontrolar.UI.DReport.Accms.Viewer.frmReportViewer frmviewer = new JA.Modulecontrolar.UI.DReport.Accms.Viewer.frmReportViewer();
                frmviewer.selector       = JA.Modulecontrolar.UI.DReport.Accms.ViewerSelector.CreditLimit;
                frmviewer.strFdate       = dteFromDate.Value.ToString("dd-MM-yyyy");
                frmviewer.strTdate       = dteFromDate2.Value.ToString("dd-MM-yyyy");
                frmviewer.strString      = dteFromDate3.Value.ToString("dd-MM-yyyy");
                frmviewer.strString2     = dteFromDate4.Value.ToString("dd-MM-yyyy");
                frmviewer.strString3     = dtpLastDate.Value.ToString("dd-MM-yyyy");
                frmviewer.strSelf        = dteToDate.Value.ToString("dd-MM-yyyy");
                frmviewer.mstrBranchName = "Branch :" + uctxtBranch.Text;
                frmviewer.strBranchID    = strBranchId;
                frmviewer.strSelction    = "";
                frmviewer.intVtype       = 0;
                frmviewer.Show();
                return;
            }

            if (radIndividual.Checked == true)
            {
                JA.Modulecontrolar.UI.DReport.Accms.Viewer.frmReportViewer frmviewer = new JA.Modulecontrolar.UI.DReport.Accms.Viewer.frmReportViewer();
                frmviewer.selector       = JA.Modulecontrolar.UI.DReport.Accms.ViewerSelector.CreditLimit;
                frmviewer.strFdate       = dteFromDate.Value.ToString("dd-MM-yyyy");
                frmviewer.strTdate       = dteFromDate2.Value.ToString("dd-MM-yyyy");
                frmviewer.strString      = dteFromDate3.Value.ToString("dd-MM-yyyy");
                frmviewer.strString2     = dteFromDate4.Value.ToString("dd-MM-yyyy");
                frmviewer.strString3     = dtpLastDate.Value.ToString("dd-MM-yyyy");
                frmviewer.strSelf        = dteToDate.Value.ToString("dd-MM-yyyy");
                frmviewer.mstrBranchName = "Branch :" + uctxtBranch.Text;
                frmviewer.strBranchID    = strBranchId;
                frmviewer.strSelction    = uctxtMrName.Text;
                if (rbtMPOGroup.Checked)
                {
                    frmviewer.intVtype = 2;
                }
                if (rbtMPO.Checked)
                {
                    frmviewer.intVtype = 1;
                }
                frmviewer.Show();
                return;
            }
        }