protected void btnSubmitOccurrence_Click(object sender, EventArgs e) { string condition; int preset; try { condition = ddlOccurrenceCondition.SelectedItem.Value.ToString(); preset = int.Parse(txtOccurrencePreset.Text.ToString()); customerVo = (CustomerVo)Session[SessionContents.CustomerVo]; rmVo = (RMVo)Session[SessionContents.RmVo]; userVo = (UserVo)Session[SessionContents.UserVo]; accountId = int.Parse(Session["AccountId"].ToString()); scripId = int.Parse(Session["ScripId"].ToString()); eventType = Session["AlertType"].ToString(); if (eventType == "EQAbsoluteStopLoss") { alertsBo.SaveAdviserEQStopLossOccurrenceAlert(rmVo.AdviserId, customerVo.CustomerId, accountId, scripId, 0, userVo.UserId, condition, preset); } if (eventType == "EQAbsoluteProfitBooking") { alertsBo.SaveAdviserEQProfitBookingOccurrenceAlert(rmVo.AdviserId, customerVo.CustomerId, accountId, scripId, 0, userVo.UserId, condition, preset); } BindCustomerEQAlertGrid(); tblOccurrenceEdit.Visible = false; tblEQAlertGrid.Visible = true; } catch (BaseApplicationException Ex) { throw Ex; } catch (Exception Ex) { BaseApplicationException exBase = new BaseApplicationException(Ex.Message, Ex); NameValueCollection FunctionInfo = new NameValueCollection(); FunctionInfo.Add("Method", "CustomerEQAlerts.ascx:btnSubmitOccurrence_Click()"); object[] objects = new object[0]; FunctionInfo = exBase.AddObject(FunctionInfo, objects); exBase.AdditionalInformation = FunctionInfo; ExceptionManager.Publish(exBase); throw exBase; } }