protected void Page_Load(object sender, EventArgs e)
        {
            DataSet dataS = finCompute.BindfinancialData_grid();
            DataSet ds    = finCompute.BindfinancialPlan_grid();

            if (dataS.Tables.Count > 0)
            {
                FinancialDataGrid.DataSource = dataS;
                FinancialDataGrid.DataBind();
            }
            else
            {
                ShowAlert("No record found");
            }

            if (ds.Tables.Count > 0)
            {
                GridFinancialPlanResult.DataSource = ds;
                GridFinancialPlanResult.DataBind();
            }
            else
            {
                ShowAlert("No record found");
            }
        }
        protected void Page_Load(object sender, EventArgs e)
        {
            var expensePriority1 = Session["priority1"];
            var expensePriority2 = Session["priority2"];

            finCompute.getPriority(System.Convert.ToString(expensePriority1), System.Convert.ToString(expensePriority2));

            DataSet dataS = finCompute.BindfinancialData_grid();
            DataSet ds    = finCompute.BindfinancialPlan_grid();

            if (dataS.Tables.Count > 0)
            {
                FinancialDataGrid.DataSource = dataS;
                FinancialDataGrid.DataBind();
            }
            else
            {
                ShowAlert("No record found");
            }

            if (ds.Tables.Count > 0)
            {
                GridFinancialPlanResult.DataSource = ds;
                GridFinancialPlanResult.DataBind();
            }
            else
            {
                ShowAlert("No record found");
            }
        }
Example #3
0
        protected void Page_Load(object sender, EventArgs e)
        {
            var loanType     = Session["var1"];
            var loanAmount   = Session["var2"];
            var loanperiod   = Session["var3"];
            var interestRate = Session["var4"];

            finB            = finLogic.financialDecision(System.Convert.ToString(loanType), System.Convert.ToDecimal(loanAmount), System.Convert.ToInt32(loanperiod), System.Convert.ToDecimal(interestRate));
            loanPeriod.Text = System.Convert.ToString(finB.targetMonths1);

            totalLoanAmount.Text = System.Convert.ToString(finB.totalAmountwithInterest);
            loanEMI.Text         = System.Convert.ToString(finB.EMIamount);
            AddSavingper.Text    = System.Convert.ToString(finB.savingDiffPercentage);
            AddSaveAmount.Text   = System.Convert.ToString(finB.savingDiffAmount);
            DataSet dataS = finLogic.BindfinancialData_grid();
            DataSet ds    = finLogic.BindfinancialPlan_grid();

            if (dataS.Tables.Count > 0)
            {
                FinancialDataGrid.DataSource = dataS;
                FinancialDataGrid.DataBind();
            }
            else
            {
                ShowAlert("No record found");
            }

            if (ds.Tables.Count > 0)
            {
                GridFinancialPlanResult.DataSource = ds;
                GridFinancialPlanResult.DataBind();
            }
            else
            {
                ShowAlert("No record found");
            }
        }