chore: update rules web

This commit is contained in:
Wendell Muntslag 2024-10-24 10:40:26 +02:00
parent 58d8bfa8e0
commit d5ea35de84
8 changed files with 126 additions and 110 deletions

View File

@ -7,187 +7,196 @@
<RadzenTemplateForm TItem="CoreRule" Data="@coreRule" Visible="@(coreRule != null)" Submit="@FormSubmit">
<RadzenRow style="margin-bottom: 1rem">
<RadzenColumn SizeMD="3">
<RadzenLabel Text="Rule Name" Component="RuleName" style="width: 100%" />
<RadzenLabel Text="Rule ID" Component="RuleId" style="width: 100%" />
</RadzenColumn>
<RadzenColumn SizeMD="9">
<RadzenTextArea style="display: block; width: 100%" @bind-Value="@coreRule.RuleName" Name="RuleName" />
<RadzenRequiredValidator Component="RuleName" Text="RuleName is required" />
<RadzenNumeric style="display: block; width: 100%" @bind-Value="@coreRule.ID" Name="RuleId" />
<RadzenRequiredValidator Component="RuleId" Text="Rule id is required" />
</RadzenColumn>
</RadzenRow>
<RadzenRow style="margin-bottom: 1rem">
<RadzenColumn SizeMD="3">
<RadzenLabel Text="Source" Component="Source" style="width: 100%" />
<RadzenLabel Text="Rule Name" Component="RuleName" style="width: 100%"/>
</RadzenColumn>
<RadzenColumn SizeMD="9">
<RadzenTextBox style="display: block; width: 100%" @bind-Value="@coreRule.Source" Name="Source" />
<RadzenRequiredValidator Component="Source" Text="Source is required" />
<RadzenTextArea style="display: block; width: 100%" @bind-Value="@coreRule.RuleName" Name="RuleName"/>
<RadzenRequiredValidator Component="RuleName" Text="RuleName is required"/>
</RadzenColumn>
</RadzenRow>
<RadzenRow style="margin-bottom: 1rem">
<RadzenColumn SizeMD="3">
<RadzenLabel Text="Default Threshold" Component="DefaultThreshold" style="width: 100%" />
<RadzenLabel Text="Source" Component="Source" style="width: 100%"/>
</RadzenColumn>
<RadzenColumn SizeMD="9">
<RadzenNumeric style="display: block; width: 100%" @bind-Value="@coreRule.DefaultThreshold" Name="DefaultThreshold" />
<RadzenTextBox style="display: block; width: 100%" @bind-Value="@coreRule.Source" Name="Source"/>
<RadzenRequiredValidator Component="Source" Text="Source is required"/>
</RadzenColumn>
</RadzenRow>
<RadzenRow style="margin-bottom: 1rem">
<RadzenColumn SizeMD="3">
<RadzenLabel Text="Blocked" Component="Blocked" style="width: 100%" />
<RadzenLabel Text="Default Threshold" Component="DefaultThreshold" style="width: 100%"/>
</RadzenColumn>
<RadzenColumn SizeMD="9">
<RadzenCheckBox @bind-Value="@coreRule.Blocked" Name="Blocked" />
<RadzenNumeric style="display: block; width: 100%" @bind-Value="@coreRule.DefaultThreshold" Name="DefaultThreshold"/>
</RadzenColumn>
</RadzenRow>
<RadzenRow style="margin-bottom: 1rem">
<RadzenColumn SizeMD="3">
<RadzenLabel Text="Triggers Manual Review" Component="TriggersManualReview" style="width: 100%" />
<RadzenLabel Text="Blocked" Component="Blocked" style="width: 100%"/>
</RadzenColumn>
<RadzenColumn SizeMD="9">
<RadzenCheckBox @bind-Value="@coreRule.TriggersManualReview" Name="TriggersManualReview" />
<RadzenCheckBox @bind-Value="@coreRule.Blocked" Name="Blocked"/>
</RadzenColumn>
</RadzenRow>
<RadzenRow style="margin-bottom: 1rem">
<RadzenColumn SizeMD="3">
<RadzenLabel Text="Suggested Resolution" Component="SuggestedResolution" style="width: 100%" />
<RadzenLabel Text="Triggers Manual Review" Component="TriggersManualReview" style="width: 100%"/>
</RadzenColumn>
<RadzenColumn SizeMD="9">
<RadzenTextBox style="display: block; width: 100%" @bind-Value="@coreRule.SuggestedResolution" Name="SuggestedResolution" />
<RadzenCheckBox @bind-Value="@coreRule.TriggersManualReview" Name="TriggersManualReview"/>
</RadzenColumn>
</RadzenRow>
<RadzenRow style="margin-bottom: 1rem">
<RadzenColumn SizeMD="3">
<RadzenLabel Text="Trigger Reason" Component="TriggerReason" style="width: 100%" />
<RadzenLabel Text="Suggested Resolution" Component="SuggestedResolution" style="width: 100%"/>
</RadzenColumn>
<RadzenColumn SizeMD="9">
<RadzenTextBox style="display: block; width: 100%" @bind-Value="@coreRule.TriggerReason" Name="TriggerReason" />
<RadzenTextBox style="display: block; width: 100%" @bind-Value="@coreRule.SuggestedResolution" Name="SuggestedResolution"/>
</RadzenColumn>
</RadzenRow>
<RadzenRow style="margin-bottom: 1rem">
<RadzenColumn SizeMD="3">
<RadzenLabel Text="Use Last Record" Component="UseLastRecord" style="width: 100%" />
<RadzenLabel Text="Trigger Reason" Component="TriggerReason" style="width: 100%"/>
</RadzenColumn>
<RadzenColumn SizeMD="9">
<RadzenCheckBox @bind-Value="@coreRule.UseLastRecord" Name="UseLastRecord" />
<RadzenTextBox style="display: block; width: 100%" @bind-Value="@coreRule.TriggerReason" Name="TriggerReason"/>
</RadzenColumn>
</RadzenRow>
<RadzenRow style="margin-bottom: 1rem">
<RadzenColumn SizeMD="3">
<RadzenLabel Text="Applicant Type" Component="ApplicantType" style="width: 100%" />
<RadzenLabel Text="Use Last Record" Component="UseLastRecord" style="width: 100%"/>
</RadzenColumn>
<RadzenColumn SizeMD="9">
<RadzenTextBox style="display: block; width: 100%" @bind-Value="@coreRule.ApplicantType" Name="ApplicantType" />
<RadzenCheckBox @bind-Value="@coreRule.UseLastRecord" Name="UseLastRecord"/>
</RadzenColumn>
</RadzenRow>
<RadzenRow style="margin-bottom: 1rem">
<RadzenColumn SizeMD="3">
<RadzenLabel Text="Filter On Clickthrough" Component="FilterOnClickthrough" style="width: 100%" />
<RadzenLabel Text="Applicant Type" Component="ApplicantType" style="width: 100%"/>
</RadzenColumn>
<RadzenColumn SizeMD="9">
<RadzenTextBox style="display: block; width: 100%" @bind-Value="@coreRule.FilterOnClickthrough" Name="FilterOnClickthrough" />
<RadzenTextBox style="display: block; width: 100%" @bind-Value="@coreRule.ApplicantType" Name="ApplicantType"/>
</RadzenColumn>
</RadzenRow>
<RadzenRow style="margin-bottom: 1rem">
<RadzenColumn SizeMD="3">
<RadzenLabel Text="Run Before Status" Component="RunBeforeStatus" style="width: 100%" />
<RadzenLabel Text="Filter On Clickthrough" Component="FilterOnClickthrough" style="width: 100%"/>
</RadzenColumn>
<RadzenColumn SizeMD="9">
<RadzenTextBox style="display: block; width: 100%" @bind-Value="@coreRule.RunBeforeStatus" Name="RunBeforeStatus" />
<RadzenTextBox style="display: block; width: 100%" @bind-Value="@coreRule.FilterOnClickthrough" Name="FilterOnClickthrough"/>
</RadzenColumn>
</RadzenRow>
<RadzenRow style="margin-bottom: 1rem">
<RadzenColumn SizeMD="3">
<RadzenLabel Text="Display Section" Component="DisplaySection" style="width: 100%" />
<RadzenLabel Text="Run Before Status" Component="RunBeforeStatus" style="width: 100%"/>
</RadzenColumn>
<RadzenColumn SizeMD="9">
<RadzenTextBox style="display: block; width: 100%" @bind-Value="@coreRule.DisplaySection" Name="DisplaySection" />
<RadzenTextBox style="display: block; width: 100%" @bind-Value="@coreRule.RunBeforeStatus" Name="RunBeforeStatus"/>
</RadzenColumn>
</RadzenRow>
<RadzenRow style="margin-bottom: 1rem">
<RadzenColumn SizeMD="3">
<RadzenLabel Text="Warning Field" Component="WarningField" style="width: 100%" />
<RadzenLabel Text="Display Section" Component="DisplaySection" style="width: 100%"/>
</RadzenColumn>
<RadzenColumn SizeMD="9">
<RadzenTextBox style="display: block; width: 100%" @bind-Value="@coreRule.WarningField" Name="WarningField" />
<RadzenTextBox style="display: block; width: 100%" @bind-Value="@coreRule.DisplaySection" Name="DisplaySection"/>
</RadzenColumn>
</RadzenRow>
<RadzenRow style="margin-bottom: 1rem">
<RadzenColumn SizeMD="3">
<RadzenLabel Text="Dutch Rule Name" Component="DutchRuleName" style="width: 100%" />
<RadzenLabel Text="Warning Field" Component="WarningField" style="width: 100%"/>
</RadzenColumn>
<RadzenColumn SizeMD="9">
<RadzenTextArea style="display: block; width: 100%" @bind-Value="@coreRule.DutchRuleName" Name="DutchRuleName" />
<RadzenRequiredValidator Component="DutchRuleName" Text="DutchRuleName is required" />
<RadzenTextBox style="display: block; width: 100%" @bind-Value="@coreRule.WarningField" Name="WarningField"/>
</RadzenColumn>
</RadzenRow>
<RadzenRow style="margin-bottom: 1rem">
<RadzenColumn SizeMD="3">
<RadzenLabel Text="Dutch Trigger Reason" Component="DutchTriggerReason" style="width: 100%" />
<RadzenLabel Text="Dutch Rule Name" Component="DutchRuleName" style="width: 100%"/>
</RadzenColumn>
<RadzenColumn SizeMD="9">
<RadzenTextBox style="display: block; width: 100%" @bind-Value="@coreRule.DutchTriggerReason" Name="DutchTriggerReason" />
<RadzenTextArea style="display: block; width: 100%" @bind-Value="@coreRule.DutchRuleName" Name="DutchRuleName"/>
<RadzenRequiredValidator Component="DutchRuleName" Text="DutchRuleName is required"/>
</RadzenColumn>
</RadzenRow>
<RadzenRow style="margin-bottom: 1rem">
<RadzenColumn SizeMD="3">
<RadzenLabel Text="Dutch Suggested Resolution" Component="DutchSuggestedResolution" style="width: 100%" />
<RadzenLabel Text="Dutch Trigger Reason" Component="DutchTriggerReason" style="width: 100%"/>
</RadzenColumn>
<RadzenColumn SizeMD="9">
<RadzenTextBox style="display: block; width: 100%" @bind-Value="@coreRule.DutchSuggestedResolution" Name="DutchSuggestedResolution" />
<RadzenTextBox style="display: block; width: 100%" @bind-Value="@coreRule.DutchTriggerReason" Name="DutchTriggerReason"/>
</RadzenColumn>
</RadzenRow>
<RadzenRow style="margin-bottom: 1rem">
<RadzenColumn SizeMD="3">
<RadzenLabel Text="Dutch Filter On Clickthrough" Component="DutchFilterOnClickthrough" style="width: 100%" />
<RadzenLabel Text="Dutch Suggested Resolution" Component="DutchSuggestedResolution" style="width: 100%"/>
</RadzenColumn>
<RadzenColumn SizeMD="9">
<RadzenTextBox style="display: block; width: 100%" @bind-Value="@coreRule.DutchFilterOnClickthrough" Name="DutchFilterOnClickthrough" />
<RadzenTextBox style="display: block; width: 100%" @bind-Value="@coreRule.DutchSuggestedResolution" Name="DutchSuggestedResolution"/>
</RadzenColumn>
</RadzenRow>
<RadzenRow style="margin-bottom: 1rem">
<RadzenColumn SizeMD="3">
<RadzenLabel Text="Rule Explanation" Component="RuleExplanation" style="width: 100%" />
<RadzenLabel Text="Dutch Filter On Clickthrough" Component="DutchFilterOnClickthrough" style="width: 100%"/>
</RadzenColumn>
<RadzenColumn SizeMD="9">
<RadzenTextBox style="display: block; width: 100%" @bind-Value="@coreRule.RuleExplanation" Name="RuleExplanation" />
<RadzenTextBox style="display: block; width: 100%" @bind-Value="@coreRule.DutchFilterOnClickthrough" Name="DutchFilterOnClickthrough"/>
</RadzenColumn>
</RadzenRow>
<RadzenRow style="margin-bottom: 1rem">
<RadzenColumn SizeMD="3">
<RadzenLabel Text="Dutch Rule Explanation" Component="DutchRuleExplanation" style="width: 100%" />
<RadzenLabel Text="Rule Explanation" Component="RuleExplanation" style="width: 100%"/>
</RadzenColumn>
<RadzenColumn SizeMD="9">
<RadzenTextArea style="display: block; width: 100%" @bind-Value="@coreRule.DutchRuleExplanation" Name="DutchRuleExplanation" />
<RadzenTextBox style="display: block; width: 100%" @bind-Value="@coreRule.RuleExplanation" Name="RuleExplanation"/>
</RadzenColumn>
</RadzenRow>
<RadzenRow style="margin-bottom: 1rem">
<RadzenColumn SizeMD="3">
<RadzenLabel Text="Work Item Id" Component="WorkItemId" style="width: 100%" />
<RadzenLabel Text="Dutch Rule Explanation" Component="DutchRuleExplanation" style="width: 100%"/>
</RadzenColumn>
<RadzenColumn SizeMD="9">
<RadzenNumeric style="display: block; width: 100%" @bind-Value="@coreRule.WorkItemId" Name="WorkItemId" />
<RadzenTextArea style="display: block; width: 100%" @bind-Value="@coreRule.DutchRuleExplanation" Name="DutchRuleExplanation"/>
</RadzenColumn>
</RadzenRow>
<RadzenRow style="margin-bottom: 1rem">
<RadzenColumn SizeMD="3">
<RadzenLabel Text="Title" Component="Title" style="width: 100%" />
<RadzenLabel Text="Work Item Id" Component="WorkItemId" style="width: 100%"/>
</RadzenColumn>
<RadzenColumn SizeMD="9">
<RadzenTextBox style="display: block; width: 100%" @bind-Value="@coreRule.Title" Name="Title" />
<RadzenNumeric style="display: block; width: 100%" @bind-Value="@coreRule.WorkItemId" Name="WorkItemId"/>
</RadzenColumn>
</RadzenRow>
<RadzenRow style="margin-bottom: 1rem">
<RadzenColumn SizeMD="3">
<RadzenLabel Text="Update" Component="Update" style="width: 100%" />
<RadzenLabel Text="Title" Component="Title" style="width: 100%"/>
</RadzenColumn>
<RadzenColumn SizeMD="9">
<RadzenNumeric style="display: block; width: 100%" @bind-Value="@coreRule.Update" Name="Update" />
<RadzenTextBox style="display: block; width: 100%" @bind-Value="@coreRule.Title" Name="Title"/>
</RadzenColumn>
</RadzenRow>
<RadzenStack Orientation="Orientation.Horizontal" AlignItems="AlignItems.Center" JustifyContent="JustifyContent.End" Gap="0.5rem">
<RadzenButton ButtonStyle="ButtonStyle.Primary" ButtonType="ButtonType.Submit" Icon="save" Text="Save" Variant="Variant.Flat" />
<RadzenButton ButtonStyle="ButtonStyle.Light" Text="Cancel" Variant="Variant.Flat" Click="@CancelButtonClick" />
</RadzenStack>
<RadzenRow style="margin-bottom: 1rem">
<RadzenColumn SizeMD="3">
<RadzenLabel Text="Update" Component="Update" style="width: 100%"/>
</RadzenColumn>
<RadzenColumn SizeMD="9">
<RadzenNumeric style="display: block; width: 100%" @bind-Value="@coreRule.Update" Name="Update"/>
</RadzenColumn>
</RadzenRow>
<RadzenStack Orientation="Orientation.Horizontal" AlignItems="AlignItems.Center" JustifyContent="JustifyContent.End" Gap="0.5rem">
<RadzenButton ButtonStyle="ButtonStyle.Primary" ButtonType="ButtonType.Submit" Icon="save" Text="Save" Variant="Variant.Flat"/>
<RadzenButton ButtonStyle="ButtonStyle.Light" Text="Cancel" Variant="Variant.Flat" Click="@CancelButtonClick"/>
</RadzenStack>
</RadzenTemplateForm>
</RadzenColumn>

View File

@ -8,187 +8,196 @@
<RadzenTemplateForm TItem="CoreRule" Data="@coreRule" Visible="@(coreRule != null)" Submit="@FormSubmit">
<RadzenRow style="margin-bottom: 1rem">
<RadzenColumn SizeMD="3">
<RadzenLabel Text="Rule Name" Component="RuleName" style="width: 100%" />
<RadzenLabel Text="Rule ID" Component="RuleId" style="width: 100%" />
</RadzenColumn>
<RadzenColumn SizeMD="9">
<RadzenTextArea style="display: block; width: 100%" @bind-Value="@coreRule.RuleName" Name="RuleName" />
<RadzenRequiredValidator Component="RuleName" Text="RuleName is required" />
<RadzenNumeric style="display: block; width: 100%" @bind-Value="@coreRule.ID" Name="RuleId" />
<RadzenRequiredValidator Component="RuleId" Text="Rule id is required" />
</RadzenColumn>
</RadzenRow>
<RadzenRow style="margin-bottom: 1rem">
<RadzenColumn SizeMD="3">
<RadzenLabel Text="Source" Component="Source" style="width: 100%" />
<RadzenLabel Text="Rule Name" Component="RuleName" style="width: 100%"/>
</RadzenColumn>
<RadzenColumn SizeMD="9">
<RadzenTextBox style="display: block; width: 100%" @bind-Value="@coreRule.Source" Name="Source" />
<RadzenRequiredValidator Component="Source" Text="Source is required" />
<RadzenTextArea style="display: block; width: 100%" @bind-Value="@coreRule.RuleName" Name="RuleName"/>
<RadzenRequiredValidator Component="RuleName" Text="RuleName is required"/>
</RadzenColumn>
</RadzenRow>
<RadzenRow style="margin-bottom: 1rem">
<RadzenColumn SizeMD="3">
<RadzenLabel Text="Default Threshold" Component="DefaultThreshold" style="width: 100%" />
<RadzenLabel Text="Source" Component="Source" style="width: 100%"/>
</RadzenColumn>
<RadzenColumn SizeMD="9">
<RadzenNumeric style="display: block; width: 100%" @bind-Value="@coreRule.DefaultThreshold" Name="DefaultThreshold" />
<RadzenTextBox style="display: block; width: 100%" @bind-Value="@coreRule.Source" Name="Source"/>
<RadzenRequiredValidator Component="Source" Text="Source is required"/>
</RadzenColumn>
</RadzenRow>
<RadzenRow style="margin-bottom: 1rem">
<RadzenColumn SizeMD="3">
<RadzenLabel Text="Blocked" Component="Blocked" style="width: 100%" />
<RadzenLabel Text="Default Threshold" Component="DefaultThreshold" style="width: 100%"/>
</RadzenColumn>
<RadzenColumn SizeMD="9">
<RadzenCheckBox @bind-Value="@coreRule.Blocked" Name="Blocked" />
<RadzenNumeric style="display: block; width: 100%" @bind-Value="@coreRule.DefaultThreshold" Name="DefaultThreshold"/>
</RadzenColumn>
</RadzenRow>
<RadzenRow style="margin-bottom: 1rem">
<RadzenColumn SizeMD="3">
<RadzenLabel Text="Triggers Manual Review" Component="TriggersManualReview" style="width: 100%" />
<RadzenLabel Text="Blocked" Component="Blocked" style="width: 100%"/>
</RadzenColumn>
<RadzenColumn SizeMD="9">
<RadzenCheckBox @bind-Value="@coreRule.TriggersManualReview" Name="TriggersManualReview" />
<RadzenCheckBox @bind-Value="@coreRule.Blocked" Name="Blocked"/>
</RadzenColumn>
</RadzenRow>
<RadzenRow style="margin-bottom: 1rem">
<RadzenColumn SizeMD="3">
<RadzenLabel Text="Suggested Resolution" Component="SuggestedResolution" style="width: 100%" />
<RadzenLabel Text="Triggers Manual Review" Component="TriggersManualReview" style="width: 100%"/>
</RadzenColumn>
<RadzenColumn SizeMD="9">
<RadzenTextBox style="display: block; width: 100%" @bind-Value="@coreRule.SuggestedResolution" Name="SuggestedResolution" />
<RadzenCheckBox @bind-Value="@coreRule.TriggersManualReview" Name="TriggersManualReview"/>
</RadzenColumn>
</RadzenRow>
<RadzenRow style="margin-bottom: 1rem">
<RadzenColumn SizeMD="3">
<RadzenLabel Text="Trigger Reason" Component="TriggerReason" style="width: 100%" />
<RadzenLabel Text="Suggested Resolution" Component="SuggestedResolution" style="width: 100%"/>
</RadzenColumn>
<RadzenColumn SizeMD="9">
<RadzenTextBox style="display: block; width: 100%" @bind-Value="@coreRule.TriggerReason" Name="TriggerReason" />
<RadzenTextBox style="display: block; width: 100%" @bind-Value="@coreRule.SuggestedResolution" Name="SuggestedResolution"/>
</RadzenColumn>
</RadzenRow>
<RadzenRow style="margin-bottom: 1rem">
<RadzenColumn SizeMD="3">
<RadzenLabel Text="Use Last Record" Component="UseLastRecord" style="width: 100%" />
<RadzenLabel Text="Trigger Reason" Component="TriggerReason" style="width: 100%"/>
</RadzenColumn>
<RadzenColumn SizeMD="9">
<RadzenCheckBox @bind-Value="@coreRule.UseLastRecord" Name="UseLastRecord" />
<RadzenTextBox style="display: block; width: 100%" @bind-Value="@coreRule.TriggerReason" Name="TriggerReason"/>
</RadzenColumn>
</RadzenRow>
<RadzenRow style="margin-bottom: 1rem">
<RadzenColumn SizeMD="3">
<RadzenLabel Text="Applicant Type" Component="ApplicantType" style="width: 100%" />
<RadzenLabel Text="Use Last Record" Component="UseLastRecord" style="width: 100%"/>
</RadzenColumn>
<RadzenColumn SizeMD="9">
<RadzenTextBox style="display: block; width: 100%" @bind-Value="@coreRule.ApplicantType" Name="ApplicantType" />
<RadzenCheckBox @bind-Value="@coreRule.UseLastRecord" Name="UseLastRecord"/>
</RadzenColumn>
</RadzenRow>
<RadzenRow style="margin-bottom: 1rem">
<RadzenColumn SizeMD="3">
<RadzenLabel Text="Filter On Clickthrough" Component="FilterOnClickthrough" style="width: 100%" />
<RadzenLabel Text="Applicant Type" Component="ApplicantType" style="width: 100%"/>
</RadzenColumn>
<RadzenColumn SizeMD="9">
<RadzenTextBox style="display: block; width: 100%" @bind-Value="@coreRule.FilterOnClickthrough" Name="FilterOnClickthrough" />
<RadzenTextBox style="display: block; width: 100%" @bind-Value="@coreRule.ApplicantType" Name="ApplicantType"/>
</RadzenColumn>
</RadzenRow>
<RadzenRow style="margin-bottom: 1rem">
<RadzenColumn SizeMD="3">
<RadzenLabel Text="Run Before Status" Component="RunBeforeStatus" style="width: 100%" />
<RadzenLabel Text="Filter On Clickthrough" Component="FilterOnClickthrough" style="width: 100%"/>
</RadzenColumn>
<RadzenColumn SizeMD="9">
<RadzenTextBox style="display: block; width: 100%" @bind-Value="@coreRule.RunBeforeStatus" Name="RunBeforeStatus" />
<RadzenTextBox style="display: block; width: 100%" @bind-Value="@coreRule.FilterOnClickthrough" Name="FilterOnClickthrough"/>
</RadzenColumn>
</RadzenRow>
<RadzenRow style="margin-bottom: 1rem">
<RadzenColumn SizeMD="3">
<RadzenLabel Text="Display Section" Component="DisplaySection" style="width: 100%" />
<RadzenLabel Text="Run Before Status" Component="RunBeforeStatus" style="width: 100%"/>
</RadzenColumn>
<RadzenColumn SizeMD="9">
<RadzenTextBox style="display: block; width: 100%" @bind-Value="@coreRule.DisplaySection" Name="DisplaySection" />
<RadzenTextBox style="display: block; width: 100%" @bind-Value="@coreRule.RunBeforeStatus" Name="RunBeforeStatus"/>
</RadzenColumn>
</RadzenRow>
<RadzenRow style="margin-bottom: 1rem">
<RadzenColumn SizeMD="3">
<RadzenLabel Text="Warning Field" Component="WarningField" style="width: 100%" />
<RadzenLabel Text="Display Section" Component="DisplaySection" style="width: 100%"/>
</RadzenColumn>
<RadzenColumn SizeMD="9">
<RadzenTextBox style="display: block; width: 100%" @bind-Value="@coreRule.WarningField" Name="WarningField" />
<RadzenTextBox style="display: block; width: 100%" @bind-Value="@coreRule.DisplaySection" Name="DisplaySection"/>
</RadzenColumn>
</RadzenRow>
<RadzenRow style="margin-bottom: 1rem">
<RadzenColumn SizeMD="3">
<RadzenLabel Text="Dutch Rule Name" Component="DutchRuleName" style="width: 100%" />
<RadzenLabel Text="Warning Field" Component="WarningField" style="width: 100%"/>
</RadzenColumn>
<RadzenColumn SizeMD="9">
<RadzenTextArea style="display: block; width: 100%" @bind-Value="@coreRule.DutchRuleName" Name="DutchRuleName" />
<RadzenRequiredValidator Component="DutchRuleName" Text="DutchRuleName is required" />
<RadzenTextBox style="display: block; width: 100%" @bind-Value="@coreRule.WarningField" Name="WarningField"/>
</RadzenColumn>
</RadzenRow>
<RadzenRow style="margin-bottom: 1rem">
<RadzenColumn SizeMD="3">
<RadzenLabel Text="Dutch Trigger Reason" Component="DutchTriggerReason" style="width: 100%" />
<RadzenLabel Text="Dutch Rule Name" Component="DutchRuleName" style="width: 100%"/>
</RadzenColumn>
<RadzenColumn SizeMD="9">
<RadzenTextBox style="display: block; width: 100%" @bind-Value="@coreRule.DutchTriggerReason" Name="DutchTriggerReason" />
<RadzenTextArea style="display: block; width: 100%" @bind-Value="@coreRule.DutchRuleName" Name="DutchRuleName"/>
<RadzenRequiredValidator Component="DutchRuleName" Text="DutchRuleName is required"/>
</RadzenColumn>
</RadzenRow>
<RadzenRow style="margin-bottom: 1rem">
<RadzenColumn SizeMD="3">
<RadzenLabel Text="Dutch Suggested Resolution" Component="DutchSuggestedResolution" style="width: 100%" />
<RadzenLabel Text="Dutch Trigger Reason" Component="DutchTriggerReason" style="width: 100%"/>
</RadzenColumn>
<RadzenColumn SizeMD="9">
<RadzenTextBox style="display: block; width: 100%" @bind-Value="@coreRule.DutchSuggestedResolution" Name="DutchSuggestedResolution" />
<RadzenTextBox style="display: block; width: 100%" @bind-Value="@coreRule.DutchTriggerReason" Name="DutchTriggerReason"/>
</RadzenColumn>
</RadzenRow>
<RadzenRow style="margin-bottom: 1rem">
<RadzenColumn SizeMD="3">
<RadzenLabel Text="Dutch Filter On Clickthrough" Component="DutchFilterOnClickthrough" style="width: 100%" />
<RadzenLabel Text="Dutch Suggested Resolution" Component="DutchSuggestedResolution" style="width: 100%"/>
</RadzenColumn>
<RadzenColumn SizeMD="9">
<RadzenTextBox style="display: block; width: 100%" @bind-Value="@coreRule.DutchFilterOnClickthrough" Name="DutchFilterOnClickthrough" />
<RadzenTextBox style="display: block; width: 100%" @bind-Value="@coreRule.DutchSuggestedResolution" Name="DutchSuggestedResolution"/>
</RadzenColumn>
</RadzenRow>
<RadzenRow style="margin-bottom: 1rem">
<RadzenColumn SizeMD="3">
<RadzenLabel Text="Rule Explanation" Component="RuleExplanation" style="width: 100%" />
<RadzenLabel Text="Dutch Filter On Clickthrough" Component="DutchFilterOnClickthrough" style="width: 100%"/>
</RadzenColumn>
<RadzenColumn SizeMD="9">
<RadzenTextArea style="display: block; width: 100%" @bind-Value="@coreRule.RuleExplanation" Name="RuleExplanation" />
<RadzenTextBox style="display: block; width: 100%" @bind-Value="@coreRule.DutchFilterOnClickthrough" Name="DutchFilterOnClickthrough"/>
</RadzenColumn>
</RadzenRow>
<RadzenRow style="margin-bottom: 1rem">
<RadzenColumn SizeMD="3">
<RadzenLabel Text="Dutch Rule Explanation" Component="DutchRuleExplanation" style="width: 100%" />
<RadzenLabel Text="Rule Explanation" Component="RuleExplanation" style="width: 100%"/>
</RadzenColumn>
<RadzenColumn SizeMD="9">
<RadzenTextArea style="display: block; width: 100%" @bind-Value="@coreRule.DutchRuleExplanation" Name="DutchRuleExplanation" />
<RadzenTextArea style="display: block; width: 100%" @bind-Value="@coreRule.RuleExplanation" Name="RuleExplanation"/>
</RadzenColumn>
</RadzenRow>
<RadzenRow style="margin-bottom: 1rem">
<RadzenColumn SizeMD="3">
<RadzenLabel Text="Work Item Id" Component="WorkItemId" style="width: 100%" />
<RadzenLabel Text="Dutch Rule Explanation" Component="DutchRuleExplanation" style="width: 100%"/>
</RadzenColumn>
<RadzenColumn SizeMD="9">
<RadzenNumeric style="display: block; width: 100%" @bind-Value="@coreRule.WorkItemId" Name="WorkItemId" />
<RadzenTextArea style="display: block; width: 100%" @bind-Value="@coreRule.DutchRuleExplanation" Name="DutchRuleExplanation"/>
</RadzenColumn>
</RadzenRow>
<RadzenRow style="margin-bottom: 1rem">
<RadzenColumn SizeMD="3">
<RadzenLabel Text="Title" Component="Title" style="width: 100%" />
<RadzenLabel Text="Work Item Id" Component="WorkItemId" style="width: 100%"/>
</RadzenColumn>
<RadzenColumn SizeMD="9">
<RadzenTextBox style="display: block; width: 100%" @bind-Value="@coreRule.Title" Name="Title" />
<RadzenNumeric style="display: block; width: 100%" @bind-Value="@coreRule.WorkItemId" Name="WorkItemId"/>
</RadzenColumn>
</RadzenRow>
<RadzenRow style="margin-bottom: 1rem">
<RadzenColumn SizeMD="3">
<RadzenLabel Text="update" Component="Update" style="width: 100%" />
<RadzenLabel Text="Title" Component="Title" style="width: 100%"/>
</RadzenColumn>
<RadzenColumn SizeMD="9">
<RadzenNumeric style="display: block; width: 100%" @bind-Value="@coreRule.Update" Name="Update" />
<RadzenTextBox style="display: block; width: 100%" @bind-Value="@coreRule.Title" Name="Title"/>
</RadzenColumn>
</RadzenRow>
<RadzenStack Orientation="Orientation.Horizontal" AlignItems="AlignItems.Center" JustifyContent="JustifyContent.End" Gap="0.5rem">
<RadzenButton ButtonStyle="ButtonStyle.Primary" ButtonType="ButtonType.Submit" Icon="save" Text="Save" Variant="Variant.Flat" />
<RadzenButton ButtonStyle="ButtonStyle.Light" Text="Cancel" Variant="Variant.Flat" Click="@CancelButtonClick" />
</RadzenStack>
<RadzenRow style="margin-bottom: 1rem">
<RadzenColumn SizeMD="3">
<RadzenLabel Text="update" Component="Update" style="width: 100%"/>
</RadzenColumn>
<RadzenColumn SizeMD="9">
<RadzenNumeric style="display: block; width: 100%" @bind-Value="@coreRule.Update" Name="Update"/>
</RadzenColumn>
</RadzenRow>
<RadzenStack Orientation="Orientation.Horizontal" AlignItems="AlignItems.Center" JustifyContent="JustifyContent.End" Gap="0.5rem">
<RadzenButton ButtonStyle="ButtonStyle.Primary" ButtonType="ButtonType.Submit" Icon="save" Text="Save" Variant="Variant.Flat"/>
<RadzenButton ButtonStyle="ButtonStyle.Light" Text="Cancel" Variant="Variant.Flat" Click="@CancelButtonClick"/>
</RadzenStack>
</RadzenTemplateForm>
</RadzenColumn>

View File

@ -1,6 +1,4 @@
using ILoan.Tools.Infrastructure.Services;
namespace ILoan.Tools.Application;
namespace ILoan.Tools.Application.Pages;
public partial class EditCoreRule
{

View File

@ -25,11 +25,11 @@ public class RuleFileGeneratorService(RulesContext context, IConfiguration confi
foreach (var rule in rules.Where(r => _workitem.Contains(r.WorkItemId.ToString())).OrderBy(x => x.ID))
{
var fileName = $"V2.{_startSeq:000}__{rule.WorkItemId}_Rules_{rule.ID}_{rule.Title}.sql";
var fileName = $"V3.{_startSeq:00}__{rule.WorkItemId}_Rules_{rule.ID}_{rule.Title}.sql";
if (rule.Update > 0)
{
fileName = $"V2.{_startSeq:000}__{rule.WorkItemId}_Rules_{rule.ID}_{rule.Title}_Update({rule.Update}).sql";
fileName = $"V3.{_startSeq:00}__{rule.WorkItemId}_Rules_{rule.ID}_{rule.Title}_Update({rule.Update}).sql";
}
var sql = GenerateSqlStatement(rule);

View File

@ -19,8 +19,8 @@
},
"Parameters": {
"GeneratorRoot": "C:\\iloan\\iloan-base-dev\\migrations",
"StartSeqNo": 156,
"StartRuleId": 480,
"Workitem": "3262"
"StartSeqNo": 27,
"StartRuleId": 499,
"Workitem": "3130"
}
}