|
|
|
|
@ -14,30 +14,20 @@
|
|
|
|
|
@inject ClipboardService clipboardService
|
|
|
|
|
@inject IJSRuntime JSRuntime
|
|
|
|
|
|
|
|
|
|
<h2>Create New Quote</h2>
|
|
|
|
|
<h1>Create New Quote</h1>
|
|
|
|
|
<hr />
|
|
|
|
|
|
|
|
|
|
<Divider DividerType="DividerType.TextContent" Text="Recipient"/>
|
|
|
|
|
<DataGrid
|
|
|
|
|
TItem="Contact"
|
|
|
|
|
Data="@contacts"
|
|
|
|
|
SelectedRow="@selectedRecipient"
|
|
|
|
|
SelectedRowChanged="@OnSelectedRowChanged"
|
|
|
|
|
Bordered
|
|
|
|
|
Hoverable
|
|
|
|
|
Filterable
|
|
|
|
|
Striped
|
|
|
|
|
ShowPager
|
|
|
|
|
Responsive>
|
|
|
|
|
<DataGrid TItem="Contact" Data="@contacts" SelectedRow="@selectedRecipient" SelectedRowChanged="@OnSelectedRowChanged" Bordered Hoverable Filterable Striped ShowPager Responsive Sortable>
|
|
|
|
|
<DataGridCommandColumn />
|
|
|
|
|
<DataGridColumn Field="@nameof(Contact.ContactId)" Caption="ContactId" Filterable/>
|
|
|
|
|
<DataGridColumn Field="@nameof(Contact.AccountId)" Caption="AccountId" Filterable />
|
|
|
|
|
<DataGridColumn Field="@nameof(Contact.FirstName)" Caption="FirstName" Filterable />
|
|
|
|
|
<DataGridColumn Field="@nameof(Contact.LastName)" Caption="LastName" Filterable/>
|
|
|
|
|
<DataGridColumn Field="@nameof(Contact.Gender)" Caption="Gender" Filterable/>
|
|
|
|
|
<DataGridColumn Field="@nameof(Contact.EMail)" Caption="EMail" Filterable/>
|
|
|
|
|
<DataGridColumn Field="@nameof(Contact.PhoneNumber)" Caption="PhoneNumber" Filterable />
|
|
|
|
|
<DataGridColumn Field="@nameof(Contact.SAPContactNumber)" Caption="SAPContactNumber" Filterable />
|
|
|
|
|
<DataGridColumn Field="@nameof(Contact.ContactId)" Caption="ContactId" Sortable Filterable/>
|
|
|
|
|
<DataGridColumn Field="@nameof(Contact.AccountId)" Caption="AccountId" Sortable Filterable />
|
|
|
|
|
<DataGridColumn Field="@nameof(Contact.FirstName)" Caption="FirstName" Sortable Filterable />
|
|
|
|
|
<DataGridColumn Field="@nameof(Contact.LastName)" Caption="LastName" Sortable Filterable/>
|
|
|
|
|
<DataGridColumn Field="@nameof(Contact.Gender)" Caption="Gender" Sortable Filterable/>
|
|
|
|
|
<DataGridColumn Field="@nameof(Contact.EMail)" Caption="EMail" Sortable Filterable/>
|
|
|
|
|
<DataGridColumn Field="@nameof(Contact.PhoneNumber)" Caption="PhoneNumber" Sortable Filterable />
|
|
|
|
|
<DataGridColumn Field="@nameof(Contact.SAPContactNumber)" Caption="SAPContactNumber" Sortable Filterable />
|
|
|
|
|
</DataGrid>
|
|
|
|
|
|
|
|
|
|
<Divider DividerType="DividerType.TextContent" Text="Quote Details"/>
|
|
|
|
|
@ -45,65 +35,13 @@
|
|
|
|
|
<Row>
|
|
|
|
|
<Column ColumnSize="ColumnSize.Is7">
|
|
|
|
|
<Fields>
|
|
|
|
|
@* <Field>
|
|
|
|
|
<FieldLabel ColumnSize="ColumnSize.Is2">SalesRep:</FieldLabel>
|
|
|
|
|
<FieldBody>@quote.SalesRep.LastName</FieldBody>
|
|
|
|
|
</Field>*@
|
|
|
|
|
<Field Horizontal>
|
|
|
|
|
<FieldLabel ColumnSize="ColumnSize.Is4">Angebotsname:</FieldLabel>
|
|
|
|
|
<FieldBody ColumnSize="ColumnSize.Is6">
|
|
|
|
|
<TextEdit Text="@quote.Description" TextChanged="@OnDescriptionChanged" />
|
|
|
|
|
</FieldBody>
|
|
|
|
|
</Field>
|
|
|
|
|
@*<Field>
|
|
|
|
|
<FieldLabel ColumnSize="ColumnSize.Is2">QuotationDate:</FieldLabel>
|
|
|
|
|
<FieldBody>@quote.QuotationDate</FieldBody>
|
|
|
|
|
</Field> *@
|
|
|
|
|
<Field Horizontal>
|
|
|
|
|
<FieldLabel ColumnSize="ColumnSize.Is4">Angebotsnummer:</FieldLabel>
|
|
|
|
|
<FieldBody ColumnSize="ColumnSize.Is6">
|
|
|
|
|
<TextEdit Text="@quote.QuotationNumber" TextChanged="@OnQuotationNumberChanged" />
|
|
|
|
|
</FieldBody>
|
|
|
|
|
</Field>
|
|
|
|
|
<Field Horizontal>
|
|
|
|
|
<FieldLabel ColumnSize="ColumnSize.Is4">Angebotspfad:</FieldLabel>
|
|
|
|
|
<FieldBody ColumnSize="ColumnSize.Is6">@quote.Path</FieldBody>
|
|
|
|
|
</Field>
|
|
|
|
|
<Field Horizontal>
|
|
|
|
|
<FieldLabel ColumnSize="ColumnSize.Is4">Gewährleistung (Monate):</FieldLabel>
|
|
|
|
|
<FieldBody ColumnSize="ColumnSize.Is6">@quote.Warranty</FieldBody>
|
|
|
|
|
</Field>
|
|
|
|
|
<Field Horizontal>
|
|
|
|
|
<FieldLabel ColumnSize="ColumnSize.Is4">Angebotsgültigkeit (Tage):</FieldLabel>
|
|
|
|
|
<FieldBody ColumnSize="ColumnSize.Is6">
|
|
|
|
|
<TextEdit Text="@quote.ValidFor.ToString()" TextChanged="@OnValidForChanged" />
|
|
|
|
|
</FieldBody>
|
|
|
|
|
</Field>
|
|
|
|
|
<Field Horizontal>
|
|
|
|
|
<FieldLabel ColumnSize="ColumnSize.Is4">Mehrwertsteuer (%):</FieldLabel>
|
|
|
|
|
<FieldBody ColumnSize="ColumnSize.Is6">
|
|
|
|
|
<TextEdit Text="@quote.VAT.ToString()" TextChanged="@OnVATChanged" />
|
|
|
|
|
</FieldBody>
|
|
|
|
|
</Field>
|
|
|
|
|
<Field Horizontal>
|
|
|
|
|
<FieldLabel ColumnSize="ColumnSize.Is4">Versandkosten (%):</FieldLabel>
|
|
|
|
|
<FieldBody ColumnSize="ColumnSize.Is6">
|
|
|
|
|
<TextEdit Text="@quote.Freight.ToString()" />
|
|
|
|
|
</FieldBody>
|
|
|
|
|
</Field>
|
|
|
|
|
@* <Field>
|
|
|
|
|
<FieldLabel ColumnSize="ColumnSize.Is2">Recipient:</FieldLabel>
|
|
|
|
|
<FieldBody ColumnSize="ColumnSize.Is10">@selectedRecipient.FirstName @selectedRecipient.LastName</FieldBody>
|
|
|
|
|
</Field>
|
|
|
|
|
<Field>
|
|
|
|
|
<FieldBody ColumnSize="ColumnSize.Is10">@correspondingAccount.AccountName</FieldBody>
|
|
|
|
|
</Field>
|
|
|
|
|
<Field>
|
|
|
|
|
<FieldBody ColumnSize="ColumnSize.Is10">@correspondingAccount.Street</FieldBody>
|
|
|
|
|
</Field>
|
|
|
|
|
<Field>
|
|
|
|
|
<FieldBody ColumnSize="ColumnSize.Is10">@correspondingAccount.ZIP @correspondingAccount.City</FieldBody>
|
|
|
|
|
</Field>*@
|
|
|
|
|
<Field Horizontal><FieldLabel ColumnSize="ColumnSize.Is4">Angebotsname:</FieldLabel><FieldBody ColumnSize="ColumnSize.Is6"><TextEdit Text="@quote.Description" TextChanged="@OnDescriptionChanged" /></FieldBody></Field>
|
|
|
|
|
<Field Horizontal><FieldLabel ColumnSize="ColumnSize.Is4">Angebotsnummer:</FieldLabel><FieldBody ColumnSize="ColumnSize.Is6"><TextEdit Text="@quote.QuotationNumber" TextChanged="@OnQuotationNumberChanged" /></FieldBody></Field>
|
|
|
|
|
<Field Horizontal><FieldLabel ColumnSize="ColumnSize.Is4">Angebotspfad:</FieldLabel><FieldBody ColumnSize="ColumnSize.Is6">@quote.Path</FieldBody></Field>
|
|
|
|
|
<Field Horizontal><FieldLabel ColumnSize="ColumnSize.Is4">Gewährleistung (Monate):</FieldLabel><FieldBody ColumnSize="ColumnSize.Is6">@quote.Warranty</FieldBody></Field>
|
|
|
|
|
<Field Horizontal><FieldLabel ColumnSize="ColumnSize.Is4">Angebotsgültigkeit (Tage):</FieldLabel><FieldBody ColumnSize="ColumnSize.Is6"><TextEdit Text="@quote.ValidFor.ToString()" TextChanged="@OnValidForChanged" /></FieldBody></Field>
|
|
|
|
|
<Field Horizontal><FieldLabel ColumnSize="ColumnSize.Is4">Mehrwertsteuer (%):</FieldLabel><FieldBody ColumnSize="ColumnSize.Is6"><TextEdit Text="@quote.VAT.ToString()" TextChanged="@OnVATChanged" /></FieldBody></Field>
|
|
|
|
|
<Field Horizontal><FieldLabel ColumnSize="ColumnSize.Is4">Versandkosten (%):</FieldLabel><FieldBody ColumnSize="ColumnSize.Is6"><TextEdit Text="@quote.Freight.ToString()" /></FieldBody></Field>
|
|
|
|
|
</Fields>
|
|
|
|
|
</Column>
|
|
|
|
|
|
|
|
|
|
@ -142,10 +80,7 @@
|
|
|
|
|
@if (quote.LineItems.Count == 0)
|
|
|
|
|
{
|
|
|
|
|
<Divider DividerType="DividerType.TextContent" Text="Uploading Quote"/>
|
|
|
|
|
<Field>
|
|
|
|
|
<FieldLabel>Please select PriceSurfer quote as TSV</FieldLabel>
|
|
|
|
|
<FileEdit Filter=".tsv" Changed="@SelectQuoteOnChanged" Written="@SelectQuoteOnWritten" Progressed="@SelectQuoteOnProgressed" />
|
|
|
|
|
</Field>
|
|
|
|
|
<Field><FieldLabel>Please select PriceSurfer quote as TSV</FieldLabel><FileEdit Filter=".tsv" Changed="@SelectQuoteOnChanged" Written="@SelectQuoteOnWritten" Progressed="@SelectQuoteOnProgressed" /></Field>
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
<Divider DividerType="DividerType.TextContent" Text="Create Quote" />
|
|
|
|
|
|