Example #1
0
        protected void btnRoyaltyEngine_Click(object sender, EventArgs e)
        {
            try
            {
                string message;

                CommonBL commonBl = new CommonBL();
                commonBl.RunRotaltyEngine("Full", out message, out errorId); //JIRA-1133 Changes
                commonBl = null;

                if (errorId == 0)
                {
                    lblMessageRoyActivity.Text = message;
                    mpeRoyActivityMsgPopup.Show();
                    mpeRoyActivity.Show();
                }
                else if (errorId == 2)
                {
                    lblMessageRoyActivity.Text = "Error in triggering royalty engine";
                    mpeRoyActivityMsgPopup.Show();
                    mpeRoyActivity.Show();
                }
            }
            catch (Exception ex)
            {
                ExceptionHandler("Error in triggering royalty engine.", ex.Message);
            }
        }
 //JIRA-908 CHanges by Ravi on 13/02/2019 -- Start
 protected void btnYes_Click(object sender, EventArgs e)
 {
     try
     {
         string   message;
         CommonBL commonBl = new CommonBL();
         commonBl.RunRotaltyEngine("Full", out message, out errorId);
         commonBl = null;
         if (errorId == 0)
         {
             msgView.SetMessage(message, MessageType.Warning, PositionType.Auto);
         }
         else if (errorId == 2)
         {
             msgView.SetMessage("Error in triggering royalty engine.", MessageType.Warning, PositionType.Auto);
         }
     }
     catch (Exception ex)
     {
         ExceptionHandler("Error in triggering royalty engine.", ex.Message);
     }
 }