protected void btnMonthlySubmit_Click(object sender, EventArgs e) { try { TMSRoyaltyMonthlyCharges objMonthlyRoyalty = new TMSRoyaltyMonthlyCharges(); objMonthlyRoyalty.RDActivityCharges = txtActivityCharges.Text; objMonthlyRoyalty.RDCTETCoaching = txtCTETCharges.Text; objMonthlyRoyalty.RDDayCareCharges = txtDayCareCharges.Text; objMonthlyRoyalty.RDForeignLanFees = txtForeignLanFees.Text; objMonthlyRoyalty.RDMealCharges = txtMealCharges.Text; objMonthlyRoyalty.RDMisExpenses = txtMisMonthlyExpenses.Text; objMonthlyRoyalty.RDMonth = ddlMonth.SelectedItem.Text; objMonthlyRoyalty.RDYear = ddlYear.SelectedItem.Text; objMonthlyRoyalty.RDNTTFees = txtNTTCharges.Text; objMonthlyRoyalty.RDTransportationCharges = txtTransportationCharges.Text; objMonthlyRoyalty.RDTutionFees = txtTutionFees.Text; objMonthlyRoyalty.RDStatus = 1; objMonthlyRoyalty.RDDate = DateTime.Now; objMonthlyRoyalty.RDAddedByType = "Account Manager"; objMonthlyRoyalty.RDAddedById = Convert.ToInt64(Session["UserID"]); objMonthlyRoyalty.Insert(); MonthlyControlClear(); dvMsg.Visible = true; lblMessage.Text = "Your Monthly Royalty Added Successfully!!!."; dvMsg.Attributes.Add("class", "warring_msg"); secOneTimeRoyalty.Style.Add("display", "none"); secMonthlyRoyalty.Style.Add("display", "block"); secAddOneTimeRoyalty.Style.Add("display", "none"); secViewOneTimeRoyalty.Style.Add("display", "none"); secAddMonthlyRoyalty.Style.Add("display", "none"); secViewMonthlyRoyalty.Style.Add("display", "block"); liOneTimeRoy.Attributes.Add("class", ""); liMonthlyRoy.Attributes.Add("class", "ui-state-default ui-corner-top ui-tabs-selected ui-state-active"); BindMonthlyRoyalty(); // Response.Redirect("RoyaltiDetails.aspx?msg=Your Monthly Royalty Added Successfully!!!."); } catch (Exception) { } }
protected void btnMonthlySubmit_Click(object sender, EventArgs e) { try { TMSRoyaltyMonthlyCharges objMonthlyRoyalty = new TMSRoyaltyMonthlyCharges(); objMonthlyRoyalty.RDActivityCharges = txtActivityCharges.Text; objMonthlyRoyalty.RDCTETCoaching = txtCTETCharges.Text; objMonthlyRoyalty.RDDayCareCharges = txtDayCareCharges.Text; objMonthlyRoyalty.RDForeignLanFees = txtForeignLanFees.Text; objMonthlyRoyalty.RDMealCharges = txtMealCharges.Text; objMonthlyRoyalty.RDMisExpenses = txtMisMonthlyExpenses.Text; objMonthlyRoyalty.RDMonth = ddlMonth.SelectedItem.Text; objMonthlyRoyalty.RDYear = ddlYear.SelectedItem.Text; objMonthlyRoyalty.RDNTTFees = txtNTTCharges.Text; objMonthlyRoyalty.RDTransportationCharges = txtTransportationCharges.Text; objMonthlyRoyalty.RDTutionFees = txtTutionFees.Text; objMonthlyRoyalty.RDStatus = 1; objMonthlyRoyalty.RDDate = DateTime.Now; objMonthlyRoyalty.RDAddedByType = "Account Manager"; objMonthlyRoyalty.RDAddedById = Convert.ToInt64(Session["UserID"]); objMonthlyRoyalty.Insert(); MonthlyControlClear(); dvMsg.Visible = true; lblMessage.Text = "Your Monthly Royalty Added Successfully!!!."; dvMsg.Attributes.Add("class", "warring_msg"); secOneTimeRoyalty.Style.Add("display", "none"); secMonthlyRoyalty.Style.Add("display", "block"); secAddOneTimeRoyalty.Style.Add("display", "none"); secViewOneTimeRoyalty.Style.Add("display", "none"); secAddMonthlyRoyalty.Style.Add("display", "none"); secViewMonthlyRoyalty.Style.Add("display", "block"); liOneTimeRoy.Attributes.Add("class", ""); liMonthlyRoy.Attributes.Add("class", "ui-state-default ui-corner-top ui-tabs-selected ui-state-active"); BindMonthlyRoyalty(); // Response.Redirect("RoyaltiDetails.aspx?msg=Your Monthly Royalty Added Successfully!!!."); } catch (Exception) { } }