protected void TxtTAcc_TextChanged(object sender, EventArgs e) { try { if (Convert.ToInt32(TxtFAcc.Text) > Convert.ToInt32(TxtTAcc.Text)) { WebMsgBox.Show("Invalid FROM and TO Account Number....!", this.Page); TxtFAcc.Text = ""; TxtTAcc.Text = ""; TxtFAccName.Text = ""; TxtTAccName.Text = ""; TxtFAcc.Focus(); return; } TxtTAccName.Text = BD.AccName(TxtTAcc.Text, TxtFPRD.Text, TxtTPRD.Text, Session["BRCD"].ToString()); BtnCalculate.Focus(); } catch (Exception Ex) { ExceptionLogging.SendErrorToText(Ex); } }
protected void BtnRecalculate_Click(object sender, EventArgs e) { try { int RS = 0; RS = SC.Recalculate("RECALC", Session["MID"].ToString(), Session["EntryDate"].ToString(), Session["BRCD"].ToString()); if (RS > 0) { WebMsgBox.Show("Calculated data removed, " + Session["LOGINCODE"].ToString() + " can calculate from start...!", this.Page); BtnCalculate.Focus(); } else { WebMsgBox.Show("Data not available on " + Session["EntryDate"].ToString() + " for User " + Session["LOGINCODE"].ToString() + " ...!", this.Page); BtnCalculate.Focus(); } } catch (Exception Ex) { ExceptionLogging.SendErrorToText(Ex); } }