protected void btnSubmit_Click(object sender, EventArgs e)
 {
     try
     {
         TransactionCategory category = GetTransactionCategory();
         if (bll.Exists(category))
         {
             MultiView1.ActiveViewIndex = 1;
         }
         else
         {
             Save(category);
         }
     }
     catch (Exception ex)
     {
         string msg = "FAILED: " + ex.Message;
         bll.ShowMessage(lblmsg, msg, true, Session);
     }
 }
 protected void btnSubmit_Click(object sender, EventArgs e)
 {
     try
     {
         BankCustomer newUser = GetBankCustomer();
         if (bll.Exists(newUser))
         {
             MultiView1.ActiveViewIndex = 1;
         }
         else
         {
             Save(newUser);
         }
     }
     catch (Exception ex)
     {
         string msg = "FAILED: " + ex.Message;
         bll.ShowMessage(lblmsg, msg, true, Session);
     }
 }
 protected void btnSubmit_Click(object sender, EventArgs e)
 {
     try
     {
         AccountType accType = GetAccountType();
         if (bll.Exists(accType))
         {
             MultiView1.ActiveViewIndex = 1;
         }
         else
         {
             Save(accType);
         }
     }
     catch (Exception ex)
     {
         string msg = "FAILED: " + ex.Message;
         bll.ShowMessage(lblmsg, msg, true, Session);
     }
 }
Exemple #4
0
 protected void btnSubmit_Click(object sender, EventArgs e)
 {
     try
     {
         PaymentType type = GetPaymentType();
         if (bll.Exists(type))
         {
             MultiView1.ActiveViewIndex = 1;
         }
         else
         {
             Save(type);
         }
     }
     catch (Exception ex)
     {
         string msg = ex.Message;
         bll.ShowMessage(lblmsg, msg, false, Session);
     }
 }
 protected void btnSubmit_Click(object sender, EventArgs e)
 {
     try
     {
         Currency currency = GetCurrencyDetails();
         if (bll.Exists(currency))
         {
             MultiView1.ActiveViewIndex = 1;
         }
         else
         {
             Save(currency);
         }
     }
     catch (Exception ex)
     {
         string msg = "FAILED: " + ex.Message;
         bll.ShowMessage(lblmsg, msg, true, Session);
     }
 }