コード例 #1
0
        protected void btnRunAutoConsolidate_Click(object sender, EventArgs e)
        {
            try
            {
                CommonBL commonBl = new CommonBL();
                commonBl.RunAutoConsolidate(out errorId);
                commonBl = null;

                if (errorId == 0)
                {
                    msgView.SetMessage("Auto Consolidate process is complete. Check email for any consolidation failures. Consolidated Products will require Manager Sign Off before statementing.",
                                       MessageType.Warning, PositionType.Auto);
                }
                else if (errorId == 2)
                {
                    ExceptionHandler("Error in running participant auto consolidate", string.Empty);
                }
            }
            catch (Exception ex)
            {
                ExceptionHandler("Error in running participant auto consolidate", ex.Message);
            }
        }