Ejemplo n.º 1
0
        protected void wizAgreement_FinishButtonClick(object sender, WizardNavigationEventArgs e)
        {
            #region Save Agreement

            #region Approval Process

            if (_AgreementID > 0)
            {
                Boolean apResult = APRobot.CreateApprovalProcessForNewAgreement(_AgreementID, Int64.Parse(ddlAPPanelID.SelectedValue));

                if (apResult == true)
                {
                    MiscUtil.ShowMessage(lblMessage, "Approval Process Submited successfully.", UIConstants.MessageType.GREEN);
                    Helper.Url.Redirect("~/CRM/CRMAgreementList.aspx", String.Empty, String.Empty);
                }
                else
                {
                    MiscUtil.ShowMessage(lblMessage, "Failed to Submit Approval Process.", UIConstants.MessageType.RED);
                }
            }

            #endregion

            #endregion
        }