MeasuringIn UI improvements, etc...
This commit is contained in:
parent
c4061dae6f
commit
fa56d6d363
|
|
@ -10,7 +10,7 @@
|
||||||
|
|
||||||
<div style="margin-top: 50px;">
|
<div style="margin-top: 50px;">
|
||||||
<DxFormLayout CaptionPosition="CaptionPosition.Vertical" CssClass="w-100">
|
<DxFormLayout CaptionPosition="CaptionPosition.Vertical" CssClass="w-100">
|
||||||
<DxFormLayoutItem Caption="Érkezés dátuma" ColSpanMd="2">
|
<DxFormLayoutItem Caption="Érkezés dátuma" ColSpanMd="2" CaptionCssClass="@(SelectedShipping != null && _shippingDates.Where(x=>DaysEqual(x.DateTime, SelectedShipping.ShippingDate)).All(x => x.IsMeasured) ? "text-success" : "")">
|
||||||
<DxDateEdit CssClass="cw-320"
|
<DxDateEdit CssClass="cw-320"
|
||||||
DisplayFormat="m"
|
DisplayFormat="m"
|
||||||
Format="m"
|
Format="m"
|
||||||
|
|
@ -36,7 +36,7 @@
|
||||||
</DxDateEdit>
|
</DxDateEdit>
|
||||||
</DxFormLayoutItem>
|
</DxFormLayoutItem>
|
||||||
|
|
||||||
<DxFormLayoutItem Caption="Kamion rendszáma:" ColSpanMd="2">
|
<DxFormLayoutItem Caption="Kamion rendszáma:" ColSpanMd="2" CaptionCssClass="@(SelectedShipping?.IsAllMeasured == true ? "text-success" : "")">
|
||||||
<DxComboBox Data="@NotMeasuredShippings"
|
<DxComboBox Data="@NotMeasuredShippings"
|
||||||
@bind-Value="@SelectedShipping"
|
@bind-Value="@SelectedShipping"
|
||||||
Text="Select licence plate"
|
Text="Select licence plate"
|
||||||
|
|
@ -52,33 +52,41 @@
|
||||||
</DxComboBox>
|
</DxComboBox>
|
||||||
</DxFormLayoutItem>
|
</DxFormLayoutItem>
|
||||||
|
|
||||||
<DxFormLayoutItem Caption="Partner:" ColSpanMd="3">
|
<DxFormLayoutItem Caption="Partner:" ColSpanMd="3" CaptionCssClass="@(SelectedShippingDocument?.IsAllMeasured == true ? "text-success" : "")">
|
||||||
<DxComboBox Data="@SelectedShipping?.ShippingDocuments"
|
<DxComboBox Data="@SelectedShipping?.ShippingDocuments"
|
||||||
@bind-Value="@SelectedShippingDocument"
|
@bind-Value="@SelectedShippingDocument"
|
||||||
Text="Select partner"
|
Text="Select partner"
|
||||||
ValueFieldName="@nameof(ShippingDocument.Id)"
|
ValueFieldName="@nameof(ShippingDocument.Id)"
|
||||||
TextFieldName="@(nameof(ShippingDocument.Partner) + '.' + nameof(Partner.Name))"
|
TextFieldName="@(nameof(ShippingDocument.Partner) + '.' + nameof(Partner.Name))"
|
||||||
CssClass="cw-480"
|
CssClass="cw-480"
|
||||||
Context="ctxShippingDocument"
|
Context="ctxShippingDocument"
|
||||||
SelectedDataItemChanged="@((SelectedDataItemChangedEventArgs<ShippingDocument> args) => OnSelectedShippingDocumentChanged(args))"
|
SelectedDataItemChanged="@((SelectedDataItemChangedEventArgs<ShippingDocument> args) => OnSelectedShippingDocumentChanged(args))"
|
||||||
InputId="cbShippingDocument">
|
InputId="cbShippingDocument">
|
||||||
<ItemDisplayTemplate>
|
<ItemDisplayTemplate>
|
||||||
<span class="@(ctxShippingDocument.DataItem.IsAllMeasured ? "text-success" : "")">@ctxShippingDocument.DisplayText</span>
|
<span class="@(ctxShippingDocument.DataItem.IsAllMeasured ? "text-success" : "")">@ctxShippingDocument.DisplayText</span>
|
||||||
</ItemDisplayTemplate>
|
</ItemDisplayTemplate>
|
||||||
</DxComboBox>
|
</DxComboBox>
|
||||||
</DxFormLayoutItem>
|
</DxFormLayoutItem>
|
||||||
|
|
||||||
<DxFormLayoutItem Caption="Termék:" ColSpanMd="5">
|
<DxFormLayoutItem Caption="Termék:" ColSpanMd="5" CaptionCssClass="@(SelectedShippingItem?.IsMeasured == true ? "text-success" : "")">
|
||||||
<DxComboBox Data="@SelectedShippingDocument?.ShippingItems"
|
<DxComboBox Data="@SelectedShippingDocument?.ShippingItems"
|
||||||
@bind-Value="@SelectedShippingItem"
|
@bind-Value="@SelectedShippingItem"
|
||||||
Text="Select item"
|
Text="Select item"
|
||||||
ValueFieldName="@nameof(ShippingItem.Id)"
|
ValueFieldName="@nameof(ShippingItem.Id)"
|
||||||
TextFieldName="@(nameof(ShippingItem.Name))"
|
TextFieldName="@(nameof(ShippingItem.Name))"
|
||||||
CssClass="cw-480"
|
CssClass="cw-480"
|
||||||
Context="ctxShippingitem"
|
Context="ctxShippingitem"
|
||||||
SelectedDataItemChanged="@((SelectedDataItemChangedEventArgs<ShippingItem> args) => OnSelectedShippingItemChanged(args))"
|
SelectedDataItemChanged="@((SelectedDataItemChangedEventArgs<ShippingItem> args) => OnSelectedShippingItemChanged(args))"
|
||||||
InputId="cbShippingItem">
|
InputId="cbShippingItem">
|
||||||
<ItemDisplayTemplate>
|
<ItemDisplayTemplate>
|
||||||
|
@* <div class="combobox-item-template">
|
||||||
|
<img src="/images/ok_green_lt.jpg" alt="" />
|
||||||
|
<span class="icon counter-icon" aria-hidden="true"></span>
|
||||||
|
<div class="combobox-item-template-text">
|
||||||
|
<span>@ctxShippingitem.DisplayText</span>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
*@
|
||||||
<span class="@(ctxShippingitem.DataItem.IsMeasured ? "text-success" : "")">@ctxShippingitem.DisplayText)</span>
|
<span class="@(ctxShippingitem.DataItem.IsMeasured ? "text-success" : "")">@ctxShippingitem.DisplayText)</span>
|
||||||
</ItemDisplayTemplate>
|
</ItemDisplayTemplate>
|
||||||
</DxComboBox>
|
</DxComboBox>
|
||||||
|
|
@ -94,17 +102,17 @@
|
||||||
OnInvalidSubmit="@HandleInvalidSubmit">
|
OnInvalidSubmit="@HandleInvalidSubmit">
|
||||||
<DataAnnotationsValidator />
|
<DataAnnotationsValidator />
|
||||||
<DxFormLayout Data="@SelectedShippingItem" CaptionPosition="CaptionPosition.Vertical" CssClass="w-100" ItemUpdating="@((pair) => OnItemUpdating(pair.Key, pair.Value))">
|
<DxFormLayout Data="@SelectedShippingItem" CaptionPosition="CaptionPosition.Vertical" CssClass="w-100" ItemUpdating="@((pair) => OnItemUpdating(pair.Key, pair.Value))">
|
||||||
<DxFormLayoutItem Field="@nameof(ShippingItem.Name)" Caption="Item Name:" Enabled="false" ColSpanMd="6" />
|
<DxFormLayoutItem CaptionCssClass="@(SelectedShippingItem.IsMeasured ? "text-success" : "")" Field="@nameof(ShippingItem.Name)" Caption="Item Name:" Enabled="false" ColSpanMd="6" />
|
||||||
<DxFormLayoutItem Field="@nameof(ShippingItem.GrossWeight)" Caption="GrossWeight:" Enabled="false" ColSpanMd="3" />
|
<DxFormLayoutItem CaptionCssClass="@(SelectedShippingItem.IsMeasured ? "text-success" : "")" Field="@nameof(ShippingItem.GrossWeight)" Caption="GrossWeight:" Enabled="false" ColSpanMd="3" />
|
||||||
<DxFormLayoutItem Field="@nameof(ShippingItem.NetWeight)" Caption="NetWeight:" Enabled="false" ColSpanMd="3" />
|
<DxFormLayoutItem CaptionCssClass="@(SelectedShippingItem.IsMeasured ? "text-success" : "")" Field="@nameof(ShippingItem.NetWeight)" Caption="NetWeight:" Enabled="false" ColSpanMd="3" />
|
||||||
|
|
||||||
<DxFormLayoutItem Field="@nameof(ShippingItem.MeasuredGrossWeight)" Caption="MeasuredGrossWeight:" ColSpanMd="3" BeginRow="true">
|
<DxFormLayoutItem CaptionCssClass="@(SelectedShippingItem.IsMeasured ? "text-success" : "")" Field="@nameof(ShippingItem.MeasuredGrossWeight)" Caption="MeasuredGrossWeight:" ColSpanMd="3" BeginRow="true">
|
||||||
</DxFormLayoutItem>
|
</DxFormLayoutItem>
|
||||||
|
|
||||||
<DxFormLayoutItem Field="@nameof(ShippingItem.MeasuredNetWeight)" Caption="MeasuredNetWeight:" ColSpanMd="3">
|
<DxFormLayoutItem CaptionCssClass="@(SelectedShippingItem.IsMeasured ? "text-success" : "")" Field="@nameof(ShippingItem.MeasuredNetWeight)" Caption="MeasuredNetWeight:" ColSpanMd="3">
|
||||||
</DxFormLayoutItem>
|
</DxFormLayoutItem>
|
||||||
|
|
||||||
<DxFormLayoutItem Field="@nameof(ShippingItem.IsMeasured)" Enabled="false" Caption="IsMeasured:" ColSpanMd="6">
|
<DxFormLayoutItem CaptionCssClass="@(SelectedShippingItem.IsMeasured ? "text-success" : "")" Field="@nameof(ShippingItem.IsMeasured)" Enabled="false" Caption="Sikeres mérés:" ColSpanMd="6">
|
||||||
</DxFormLayoutItem>
|
</DxFormLayoutItem>
|
||||||
|
|
||||||
<DxFormLayoutItem ColSpanMd="12" BeginRow="true">
|
<DxFormLayoutItem ColSpanMd="12" BeginRow="true">
|
||||||
|
|
@ -112,7 +120,7 @@
|
||||||
</DxFormLayoutItem>
|
</DxFormLayoutItem>
|
||||||
|
|
||||||
<DxFormLayoutItem ColSpanMd="12" BeginRow="true">
|
<DxFormLayoutItem ColSpanMd="12" BeginRow="true">
|
||||||
<DxButton Text="Mentés" Enabled="BtnSaveEnabled" SubmitFormOnClick="true" CssClass="w-100" />
|
<DxButton Text="@(SelectedShippingItem.IsMeasured ? "Módosít" : "Mentés")" Enabled="BtnSaveEnabled" SubmitFormOnClick="true" CssClass="w-100" />
|
||||||
</DxFormLayoutItem>
|
</DxFormLayoutItem>
|
||||||
</DxFormLayout>
|
</DxFormLayout>
|
||||||
</EditForm>
|
</EditForm>
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,36 @@
|
||||||
|
.combobox-item-template {
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
.combobox-item-template > img {
|
||||||
|
border-radius: 50%;
|
||||||
|
width: 2rem;
|
||||||
|
height: 2rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
img + .combobox-item-template-text {
|
||||||
|
margin-left: 1rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.combobox-item-template-text {
|
||||||
|
display: flex;
|
||||||
|
flex-flow: column;
|
||||||
|
}
|
||||||
|
|
||||||
|
.combobox-item-template-employee-phone {
|
||||||
|
opacity: 0.65;
|
||||||
|
}
|
||||||
|
|
||||||
|
.icon {
|
||||||
|
margin-left: 0.5rem;
|
||||||
|
margin-right: 0.5rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.ok_green-icon {
|
||||||
|
--icon-mask-image: var(--icon-ok_green-mask-image);
|
||||||
|
}
|
||||||
|
|
||||||
|
.ismeasured-green {
|
||||||
|
color: green !important;
|
||||||
|
}
|
||||||
|
|
@ -56,6 +56,7 @@ h1:focus {
|
||||||
--icon-home-mask-image: url("images/home-fluent.svg");
|
--icon-home-mask-image: url("images/home-fluent.svg");
|
||||||
--icon-weather-mask-image: url("images/weather-fluent.svg");
|
--icon-weather-mask-image: url("images/weather-fluent.svg");
|
||||||
--icon-counter-mask-image: url("images/counter-fluent.svg");
|
--icon-counter-mask-image: url("images/counter-fluent.svg");
|
||||||
|
--icon-ok_green-mask-image: url("images/ok_green_lt.svg");
|
||||||
}
|
}
|
||||||
|
|
||||||
.icon {
|
.icon {
|
||||||
|
|
|
||||||
Binary file not shown.
|
After Width: | Height: | Size: 308 B |
|
|
@ -0,0 +1,3 @@
|
||||||
|
<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||||
|
<path d="M9.54998 18L3.84998 12.3L5.27498 10.875L9.54998 15.15L18.725 5.97498L20.15 7.39998L9.54998 18Z" fill="#E0E4DB"/>
|
||||||
|
</svg>
|
||||||
|
After Width: | Height: | Size: 225 B |
Binary file not shown.
|
After Width: | Height: | Size: 359 B |
Binary file not shown.
|
After Width: | Height: | Size: 299 B |
|
|
@ -0,0 +1,3 @@
|
||||||
|
<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||||
|
<path d="M9.54998 18L3.84998 12.3L5.27498 10.875L9.54998 15.15L18.725 5.97498L20.15 7.39998L9.54998 18Z" fill="#181D18"/>
|
||||||
|
</svg>
|
||||||
|
After Width: | Height: | Size: 225 B |
Loading…
Reference in New Issue