|
135 | 135 | <MudTh>Errors</MudTh> |
136 | 136 | <MudTh>Actions</MudTh> |
137 | 137 | </HeaderContent> |
138 | | - <RowTemplate> |
139 | | - <MudTd>@context.TransactionDate.ToString("MM/dd/yyyy")</MudTd> |
140 | | - <MudTd><span style="font-family: monospace; color: rgba(0,255,255,0.7);">@context.MemberId</span></MudTd> |
141 | | - <MudTd>@context.MemberName</MudTd> |
| 138 | + <RowTemplate Context="record"> |
| 139 | + <MudTd>@record.TransactionDate.ToString("MM/dd/yyyy")</MudTd> |
| 140 | + <MudTd><span style="font-family: monospace; color: rgba(0,255,255,0.7);">@record.MemberId</span></MudTd> |
| 141 | + <MudTd>@record.MemberName</MudTd> |
142 | 142 | <MudTd> |
143 | 143 | <MudChip T="string" Size="Size.Small" |
144 | | - Color="@(context.MaintenanceTypeCode == "021" ? Color.Success : context.MaintenanceTypeCode == "024" ? Color.Error : Color.Info)"> |
145 | | - @(context.MaintenanceTypeCode == "021" ? "Add" : context.MaintenanceTypeCode == "024" ? "Cancel" : "Change") |
| 144 | + Color="@(record.MaintenanceTypeCode == "021" ? Color.Success : record.MaintenanceTypeCode == "024" ? Color.Error : Color.Info)"> |
| 145 | + @(record.MaintenanceTypeCode == "021" ? "Add" : record.MaintenanceTypeCode == "024" ? "Cancel" : "Change") |
146 | 146 | </MudChip> |
147 | 147 | </MudTd> |
148 | | - <MudTd><MudText Typo="Typo.caption">@context.TransactionSetPurpose</MudText></MudTd> |
| 148 | + <MudTd><MudText Typo="Typo.caption">@record.TransactionSetPurpose</MudText></MudTd> |
149 | 149 | <MudTd> |
150 | 150 | <MudChip T="string" Size="Size.Small" |
151 | | - Color="@(context.Status == "Accepted" ? Color.Success : context.Status == "Rejected" ? Color.Error : Color.Warning)"> |
152 | | - @context.Status |
| 151 | + Color="@(record.Status == "Accepted" ? Color.Success : record.Status == "Rejected" ? Color.Error : Color.Warning)"> |
| 152 | + @record.Status |
153 | 153 | </MudChip> |
154 | 154 | </MudTd> |
155 | 155 | <MudTd> |
156 | | - @if (context.Errors.Any()) |
| 156 | + @if (record.Errors.Any()) |
157 | 157 | { |
158 | 158 | <MudTooltip> |
159 | 159 | <TooltipContent> |
160 | | - @foreach (var err in context.Errors) |
| 160 | + @foreach (var err in record.Errors) |
161 | 161 | { |
162 | 162 | <MudText Typo="Typo.caption" Class="d-block">@err</MudText> |
163 | 163 | } |
164 | 164 | </TooltipContent> |
165 | 165 | <ChildContent> |
166 | | - <MudChip T="string" Size="Size.Small" Color="Color.Error">@context.Errors.Count error@(context.Errors.Count != 1 ? "s" : "")</MudChip> |
| 166 | + <MudChip T="string" Size="Size.Small" Color="Color.Error">@record.Errors.Count error@(record.Errors.Count != 1 ? "s" : "")</MudChip> |
167 | 167 | </ChildContent> |
168 | 168 | </MudTooltip> |
169 | 169 | } |
|
173 | 173 | } |
174 | 174 | </MudTd> |
175 | 175 | <MudTd> |
176 | | - @if (context.Status == "Rejected" || context.Status == "Pending") |
| 176 | + @if (record.Status == "Rejected" || record.Status == "Pending") |
177 | 177 | { |
178 | | - <MudIconButton Icon="@Icons.Material.Filled.CheckCircle" Size="Size.Small" Color="Color.Success" Title="Accept" OnClick="@(() => Resolve834Record(context, "Accept"))" /> |
179 | | - <MudIconButton Icon="@Icons.Material.Filled.Cancel" Size="Size.Small" Color="Color.Error" Title="Reject" OnClick="@(() => Resolve834Record(context, "Reject"))" /> |
180 | | - <MudIconButton Icon="@Icons.Material.Filled.Pause" Size="Size.Small" Color="Color.Warning" Title="Hold" OnClick="@(() => Resolve834Record(context, "Hold"))" /> |
| 178 | + <MudIconButton Icon="@Icons.Material.Filled.CheckCircle" Size="Size.Small" Color="Color.Success" Title="Accept" OnClick="@(() => Resolve834Record(record, "Accept"))" /> |
| 179 | + <MudIconButton Icon="@Icons.Material.Filled.Cancel" Size="Size.Small" Color="Color.Error" Title="Reject" OnClick="@(() => Resolve834Record(record, "Reject"))" /> |
| 180 | + <MudIconButton Icon="@Icons.Material.Filled.Pause" Size="Size.Small" Color="Color.Warning" Title="Hold" OnClick="@(() => Resolve834Record(record, "Hold"))" /> |
181 | 181 | } |
182 | 182 | </MudTd> |
183 | 183 | </RowTemplate> |
|
0 commit comments