implement DriverBalance
This commit is contained in:
parent
7674c1177a
commit
28e8b165ae
|
|
@ -20,6 +20,8 @@ public class UserProductMapping : IEntityGuid, IUserRelation, IProductRelation,
|
|||
public virtual Product Product { get; set; }
|
||||
//public virtual List<Transfer>? Transfers { get; set; }
|
||||
|
||||
public double? DriverBalance { get; set; }
|
||||
|
||||
public int Permissions { get; set; } = 1;
|
||||
public bool IsAdmin { get; set; }
|
||||
|
||||
|
|
|
|||
|
|
@ -84,6 +84,7 @@
|
|||
var productNameFieldName = $"{nameof(UserProductMapping.Product)}.{nameof(Product.Name)}";
|
||||
}
|
||||
<DxGridDataColumn FieldName="@productNameFieldName" Caption="Service name" />
|
||||
<DxGridDataColumn FieldName="DriverBalance" Caption="Balance" Width="120" />
|
||||
<DxGridDataColumn FieldName="Permissions" />
|
||||
</Columns>
|
||||
<DetailRowTemplate>
|
||||
|
|
@ -108,7 +109,7 @@
|
|||
}
|
||||
<DxFormLayout CssClass="w-100">
|
||||
|
||||
<DxFormLayoutItem Caption="UserId" ColSpanLg="12" ColSpanMd="12">
|
||||
<DxFormLayoutItem Caption="UserId" ColSpanLg="6" ColSpanMd="12">
|
||||
@transfer2.UserId
|
||||
@{
|
||||
var a = UserEditFormContext.GetEditor("UserId");
|
||||
|
|
@ -116,8 +117,12 @@
|
|||
@* <DxButton Click="() => ShowPopup((UserProductMapping)UserEditFormContext.EditModel)" Context="ButtonContext">Select user</DxButton> *@
|
||||
<DxButton Click="@(async (MouseEventArgs e) => await ShowPopup((UserProductMapping)UserEditFormContext.EditModel))" Context="ButtonContext">Select user</DxButton>
|
||||
</DxFormLayoutItem>
|
||||
|
||||
<DxFormLayoutItem Caption="Permissions" ColSpanLg="12">
|
||||
|
||||
<DxFormLayoutItem Caption="Balance" ColSpanLg="3">
|
||||
@UserEditFormContext.GetEditor("DriverBalance")
|
||||
</DxFormLayoutItem>
|
||||
|
||||
<DxFormLayoutItem Caption="Permissions" ColSpanLg="3">
|
||||
@UserEditFormContext.GetEditor("Permissions")
|
||||
</DxFormLayoutItem>
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue