Пример #1
0
        protected void btnSubmitReminder_Click(object sender, EventArgs e)
        {
            try
            {
                int reminderDays = int.Parse(txtReminderDays.Text.ToString());
                customerVo = (CustomerVo)Session[SessionContents.CustomerVo];
                rmVo       = (RMVo)Session[SessionContents.RmVo];
                userVo     = (UserVo)Session[SessionContents.UserVo];
                accountId  = int.Parse(Session["AccountId"].ToString());
                schemeId   = int.Parse(Session["SchemeId"].ToString());
                eventType  = Session["AlertType"].ToString();

                if (eventType == "SIPReminder")
                {
                    alertsBo.SaveAdviserSIPReminderAlert(rmVo.AdviserId, customerVo.CustomerId, accountId, schemeId, 0, reminderDays, userVo.UserId);
                }
                if (eventType == "SWPReminder")
                {
                    alertsBo.SaveAdviserSWPReminderAlert(rmVo.AdviserId, customerVo.CustomerId, accountId, schemeId, 0, reminderDays, userVo.UserId);
                }
                if (eventType == "ELSSMaturity")
                {
                    alertsBo.SaveAdviserELSSMaturityReminderAlert(rmVo.AdviserId, customerVo.CustomerId, accountId, schemeId, 0, reminderDays, userVo.UserId);
                }

                BindCustomerMFAlertGrid();
                tblReminderEdit.Visible = false;
                tblMFAlertGrid.Visible  = true;
            }
            catch (BaseApplicationException Ex)
            {
                throw Ex;
            }
            catch (Exception Ex)
            {
                BaseApplicationException exBase       = new BaseApplicationException(Ex.Message, Ex);
                NameValueCollection      FunctionInfo = new NameValueCollection();

                FunctionInfo.Add("Method", "CustomerMFAlert.ascx:btnSIPReminder_Click()");

                object[] objects = new object[0];

                FunctionInfo = exBase.AddObject(FunctionInfo, objects);
                exBase.AdditionalInformation = FunctionInfo;
                ExceptionManager.Publish(exBase);
                throw exBase;
            }
        }