Пример #1
0
    private void Fill_GridRuleDateRanges_MasterRulesView(decimal RuleGroupID, decimal RuleID)
    {
        string[] retMessage = new string[4];
        IList <AssignRuleParameter> RuleDateRangesList = null;

        try
        {
            BRuleViewer RulesViewerBusiness = new BRuleViewer(RuleGroupID);
            RuleDateRangesList = RulesViewerBusiness.GetAllRuleParametersRange(RuleID);
            this.GridRuleDateRanges_MasterRulesView.DataSource = RuleDateRangesList;
            this.GridRuleDateRanges_MasterRulesView.DataBind();
        }
        catch (UIValidationExceptions ex)
        {
            retMessage = this.exceptionHandler.HandleException(this.Page, ExceptionTypes.UIValidationExceptions, ex, retMessage);
            this.ErrorHiddenField_RuleDateRanges.Value = this.exceptionHandler.CreateErrorMessage(retMessage);
        }
        catch (UIBaseException ex)
        {
            retMessage = this.exceptionHandler.HandleException(this.Page, ExceptionTypes.UIBaseException, ex, retMessage);
            this.ErrorHiddenField_RuleDateRanges.Value = this.exceptionHandler.CreateErrorMessage(retMessage);
        }
        catch (Exception ex)
        {
            retMessage = this.exceptionHandler.HandleException(this.Page, ExceptionTypes.Exception, ex, retMessage);
            this.ErrorHiddenField_RuleDateRanges.Value = this.exceptionHandler.CreateErrorMessage(retMessage);
        }
    }
Пример #2
0
 public void GetAllParameterRangesTest()
 {
     businessRuleViwer.GetAllRuleParametersRange(ADORule.ID);
     Assert.Pass();
 }