Esempio n. 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());
                fiNPId     = int.Parse(Session["FINPId"].ToString());
                eventType  = Session["AlertType"].ToString();

                if (eventType == "RDReminder")
                {
                    alertsBo.SaveAdviserFDRecurringDepositReminderAlert(rmVo.RMId, customerVo.CustomerId, accountId, fiNPId, 0, reminderDays, userVo.UserId);
                }
                if (eventType == "FDMaturityReminder")
                {
                    alertsBo.SaveAdviserFDMaturityReminderAlert(rmVo.RMId, customerVo.CustomerId, accountId, fiNPId, 0, reminderDays, userVo.UserId);
                }

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

                FunctionInfo.Add("Method", "CustomerFIAlert.ascx:btnSubmitReminder_Click()");

                object[] objects = new object[0];

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