Ejemplo n.º 1
0
        public SubTotal LoadMainTaxFormData()
        {
            var subTotal = new SubTotal();
            subTotal.TotalBusinessIncome = 10000;
            subTotal.Salary = 15000;
            subTotal.Bonus = 5000;
            subTotal.GrandTotalDeductions = 30000;
            subTotal.txtTotalOtherIncome = 40000;

            return subTotal;
        }
Ejemplo n.º 2
0
        protected void Page_Load(object sender, EventArgs e)
        {
            // retrieve data from database
            var subTotal = new SubTotal();
            subTotal.TotalBusinessIncome = 10000;
            subTotal.GrandTotalDeductions = 30000;
            subTotal.txtTotalOtherIncome = 40000;

            subTotal.Salary = 15000;
            subTotal.Bonus = 5000;

            // load to session
            if (Session["TaxData"] == null)
                Session["TaxData"] = subTotal;
        }
Ejemplo n.º 3
0
 public void UpdateMainTaxFormData(SubTotal taxData)
 {
     HttpContext.Current.Session["TaxData"] = taxData;
 }