pull/1/head
Sascha 2022-12-16 08:31:48 +07:00
parent a7905b9339
commit d94087f115
2 changed files with 35 additions and 83 deletions

@ -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" />

@ -0,0 +1,17 @@
# Part Number Opt PL Description Qty Price EUR Breaks EUR Uplift % Total Discount % Net EUR Total EUR Sales Discount YA9% Contractual Discount Y99% Promotion Discount Y07% Demo Discount Y04% PH Code PH Description YMax
1 G7104C 29 1260 Infinity II Flexible Pumpe 1 33344 0 0 50.1 16638.66 16638.66 50.1 0 0 0 ISL100P1 Pumps
2 G7104C 001 29 HPLC System Tool-Kit 1260 Infinity II 1 377 0 0 50.1 188.12 188.12 50.1 0 0 0
3 G7104C 004 29 Agilent Lab Advisor Advanced Software 1 1574 0 0 50.1 785.43 785.43 50.1 0 0 0
4 G7104C 034 29 InfinityLab Stay Safe Verschl., St.-Kit 1 664 0 0 50.1 331.34 331.34 50.1 0 0 0
5 G7104C 097 29 Poroshell 120 EC-C18 3,0x150mm, 2,7um 1 1 0 0 50.1 0.5 0.5 50.1 0 0 0
6 G7167A 29 1260 Infinity II Mehrfachprobengeber 1 27195 0 0 50.1 13570.3 13570.3 50.1 0 0 0 ISL100A1 Autosamplers
7 G7167A 060 29 Nutzung vorhandene Lizenz 1 -1733 0 0 50.1 -864.77 -864.77 50.1 0 0 0
8 G7167A 101 29 Agilent InfinityLab Proben-Thermostat 1 5871 0 0 50.1 2929.63 2929.63 50.1 0 0 0
9 G7116A 29 1260 Infinity II Therm. f. mehr. Saeulen 1 6275 0 0 50.1 3131.22 3131.22 50.1 0 0 0 ISL100LC1 LC Hardware
10 G7162A 29 1260 Infinity II Brechungsindexdetektor 1 13516 0 0 50.1 6744.48 6744.48 50.1 0 0 0 ISL100D1 Detectors
11 M8414AA LI OpenLab CDS Workstation PC-Paket 1 16854 0 0 50.1 8410.15 8410.15 50.1 0 0 0 ISF300F110 OpenLAB CDS w/Hardware
12 M8414AA 001 LI LC Geraeteverbindung 1 0 0 0 50.1 0 0 50.1 0 0 0
13 SYS-LC-1260II 74 LC 1260 Infinity II System 1 0 0 0 20 0 0 20 0 0 0 TSSYS0SYLC Service Systems - Liquid Chromatography
14 SYS-LC-1260II 2A9 74 Standard-Einweisung 1 999 0 0 20 799.2 799.2 20 0 0 0 TSSTRN Training Services
15 SYS-LC-1260II 1A3 74 Erweit. Gewaehrl. Plus 3 Jahre insg. 1 15429 0 0 99.99999 0 0 92.99999 0 7 0 TSSYS3 Serviced As Systems - 3 YR > 29
16 R3999A 74 1 Agilent Training Credit 2600 1.27 0 0 20 1.02 2652 20 0 0 0 TSSTRN Training Services
1 # Part Number Opt PL Description Qty Price EUR Breaks EUR Uplift % Total Discount % Net EUR Total EUR Sales Discount YA9% Contractual Discount Y99% Promotion Discount Y07% Demo Discount Y04% PH Code PH Description YMax
2 1 G7104C 29 1260 Infinity II Flexible Pumpe 1 33344 0 0 50.1 16638.66 16638.66 50.1 0 0 0 ISL100P1 Pumps
3 2 G7104C 001 29 HPLC System Tool-Kit 1260 Infinity II 1 377 0 0 50.1 188.12 188.12 50.1 0 0 0
4 3 G7104C 004 29 Agilent Lab Advisor Advanced Software 1 1574 0 0 50.1 785.43 785.43 50.1 0 0 0
5 4 G7104C 034 29 InfinityLab Stay Safe Verschl., St.-Kit 1 664 0 0 50.1 331.34 331.34 50.1 0 0 0
6 5 G7104C 097 29 Poroshell 120 EC-C18 3,0x150mm, 2,7um 1 1 0 0 50.1 0.5 0.5 50.1 0 0 0
7 6 G7167A 29 1260 Infinity II Mehrfachprobengeber 1 27195 0 0 50.1 13570.3 13570.3 50.1 0 0 0 ISL100A1 Autosamplers
8 7 G7167A 060 29 Nutzung vorhandene Lizenz 1 -1733 0 0 50.1 -864.77 -864.77 50.1 0 0 0
9 8 G7167A 101 29 Agilent InfinityLab Proben-Thermostat 1 5871 0 0 50.1 2929.63 2929.63 50.1 0 0 0
10 9 G7116A 29 1260 Infinity II Therm. f. mehr. Saeulen 1 6275 0 0 50.1 3131.22 3131.22 50.1 0 0 0 ISL100LC1 LC Hardware
11 10 G7162A 29 1260 Infinity II Brechungsindexdetektor 1 13516 0 0 50.1 6744.48 6744.48 50.1 0 0 0 ISL100D1 Detectors
12 11 M8414AA LI OpenLab CDS Workstation PC-Paket 1 16854 0 0 50.1 8410.15 8410.15 50.1 0 0 0 ISF300F110 OpenLAB CDS w/Hardware
13 12 M8414AA 001 LI LC Geraeteverbindung 1 0 0 0 50.1 0 0 50.1 0 0 0
14 13 SYS-LC-1260II 74 LC 1260 Infinity II System 1 0 0 0 20 0 0 20 0 0 0 TSSYS0SYLC Service Systems - Liquid Chromatography
15 14 SYS-LC-1260II 2A9 74 Standard-Einweisung 1 999 0 0 20 799.2 799.2 20 0 0 0 TSSTRN Training Services
16 15 SYS-LC-1260II 1A3 74 Erweit. Gewaehrl. Plus – 3 Jahre insg. 1 15429 0 0 99.99999 0 0 92.99999 0 7 0 TSSYS3 Serviced As Systems - 3 YR > 29
17 16 R3999A 74 1 Agilent Training Credit 2600 1.27 0 0 20 1.02 2652 20 0 0 0 TSSTRN Training Services