protected void TxtPeriod_TextChanged(object sender, EventArgs e) { try { if (TxtPeriod.Text == "") { return; } if (TxtPrincipal.Text == "") { WebMsgBox.Show("Enter Deposit Amount", this.Page); TxtPrincipal.Focus(); return; } //double rate = 0; //TxtIntRate.Text = rate.ToString(); TxtTDate.Text = Conn.AddMonthDay(TxtFDate.Text, TxtPeriod.Text, "M").Replace("12:00:00", ""); float amt = (float)Convert.ToDouble(TxtPrincipal.Text); float intrate = (float)Convert.ToDouble(TxtIntRate.Text); CalculatedepositINT(amt, TxtAccType.Text.ToString(), intrate, Convert.ToInt32(TxtPeriod.Text), "ON MATURITY", "M"); } catch (Exception Ex) { ExceptionLogging.SendErrorToText(Ex); } }
private void pegarToolStripMenuItem_Click_1(object sender, EventArgs e) { TxtPrincipal.Text = ""; TxtPrincipal.Paste(); }