protected void DrpDomain_SelectedIndexChanged(object sender, EventArgs e) { string choice; huse = percntage(40, 10200); Testhuse = percntage(40, 9500); Techhuse = percntage(40, 8200); choice = DrpDomain.SelectedItem.Text; switch (choice) { case "Development": TbBscSal.Text = "10,200"; Session["basic"] = TbBscSal.Text; TbHuseAllw.Text = huse.ToString(); TbEduAllw.Text = "100"; TbConvyAllw.Text = "300"; TbLTA.Text = "-"; TbMedAllw.Text = "400"; TbAppraisal.Text = "0"; TbPerfAllw.Text = "-"; TbSplAllw.Text = "1,800"; TbProfTax.Text = "150"; TbProvdTax.Text = "400"; TbOtherDeductions.Text = "900"; lblnetsal.Text = LblDeductions.Text = LblEaring.Text = string.Empty; break; case "Testing": TbBscSal.Text = "9,500"; TbHuseAllw.Text = Testhuse.ToString(); TbEduAllw.Text = "100"; TbConvyAllw.Text = "300"; TbLTA.Text = "-"; TbMedAllw.Text = "400"; TbAppraisal.Text = "0"; TbPerfAllw.Text = "-"; TbSplAllw.Text = "1,800"; TbProfTax.Text = "150"; TbProvdTax.Text = "400"; TbOtherDeductions.Text = "900"; lblnetsal.Text = LblDeductions.Text = LblEaring.Text = string.Empty; break; case "Technical Support": TbBscSal.Text = "8,200"; TbHuseAllw.Text = Techhuse.ToString(); TbEduAllw.Text = "100"; TbConvyAllw.Text = "300"; TbLTA.Text = "-"; TbMedAllw.Text = "400"; TbAppraisal.Text = "0"; TbPerfAllw.Text = "-"; TbSplAllw.Text = "1,800"; TbProfTax.Text = "150"; TbProvdTax.Text = "400"; TbOtherDeductions.Text = "900"; lblnetsal.Text = LblDeductions.Text = LblEaring.Text = string.Empty; break; } }
protected void DrpDomain_SelectedIndexChanged(object sender, EventArgs e) { string choice; huse = percntage(40, 18200); Testhuse = percntage(40, 14500); Prodhuse = percntage(40, 17000); Techhuse = percntage(40, 13200); choice = DrpDomain.SelectedItem.Text; switch (choice) { case "Development": TbBscSal.Text = "18,200"; TbHuseAllw.Text = huse.ToString(); TbEduAllw.Text = "200"; TbConvyAllw.Text = "500"; TbLTA.Text = "-"; TbMedAllw.Text = "600"; TbAppraisal.Text = "0"; TbPerfAllw.Text = "-"; TbSplAllw.Text = "2,200"; TbProfTax.Text = "250"; TbProvdTax.Text = "600"; TbOtherDeductions.Text = "900"; lblnetsal.Text = LblDeductions.Text = LblEaring.Text = string.Empty; break; case "Production": TbBscSal.Text = "17,000"; TbHuseAllw.Text = Testhuse.ToString(); TbEduAllw.Text = "200"; TbConvyAllw.Text = "500"; TbLTA.Text = "-"; TbMedAllw.Text = "600"; TbAppraisal.Text = "0"; TbPerfAllw.Text = "-"; TbSplAllw.Text = "2,200"; TbProfTax.Text = "250"; TbProvdTax.Text = "600"; TbOtherDeductions.Text = "900"; lblnetsal.Text = LblDeductions.Text = LblEaring.Text = string.Empty; break; case "Testing": TbBscSal.Text = "14,500"; TbHuseAllw.Text = Prodhuse.ToString(); TbEduAllw.Text = "200"; TbConvyAllw.Text = "500"; TbLTA.Text = "-"; TbMedAllw.Text = "600"; TbAppraisal.Text = "0"; TbPerfAllw.Text = "-"; TbSplAllw.Text = "2,200"; TbProfTax.Text = "250"; TbProvdTax.Text = "600"; TbOtherDeductions.Text = "900"; lblnetsal.Text = LblDeductions.Text = LblEaring.Text = string.Empty; break; case "Technical Support": TbBscSal.Text = "13,200"; TbHuseAllw.Text = Techhuse.ToString(); TbEduAllw.Text = "200"; TbConvyAllw.Text = "500"; TbLTA.Text = "-"; TbMedAllw.Text = "600"; TbAppraisal.Text = "0"; TbPerfAllw.Text = "-"; TbSplAllw.Text = "2,200"; TbProfTax.Text = "250"; TbProvdTax.Text = "600"; TbOtherDeductions.Text = "900"; lblnetsal.Text = LblDeductions.Text = LblEaring.Text = string.Empty; break; } }