|
|
|
|
@ -1,8 +1,10 @@
|
|
|
|
|
using Gremlin.GremlinData.EntityClasses;
|
|
|
|
|
using DocumentFormat.OpenXml.Drawing.Charts;
|
|
|
|
|
using Gremlin.GremlinData.EntityClasses;
|
|
|
|
|
using Gremlin.GremlinUI.ViewModels;
|
|
|
|
|
using Gremlin.GremlinUtilities;
|
|
|
|
|
using Gremlin.Operations;
|
|
|
|
|
using Gremlin.ViewModels;
|
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.ObjectModel;
|
|
|
|
|
using System.Windows;
|
|
|
|
|
using System.Windows.Data;
|
|
|
|
|
@ -14,11 +16,18 @@ namespace Gremlin.GremlinUI
|
|
|
|
|
private static ListCollectionView listCollectionContacts = new(new ObservableCollection<Contact>());
|
|
|
|
|
private static ListCollectionView lineItems = new(new ObservableCollection<LineItemVM>());
|
|
|
|
|
private QuoteVM quoteVM = new();
|
|
|
|
|
private readonly int salesRepCode = 2;
|
|
|
|
|
private readonly int salesRepCode = 1;
|
|
|
|
|
|
|
|
|
|
public QuoteUI()
|
|
|
|
|
{
|
|
|
|
|
Random random = new();
|
|
|
|
|
|
|
|
|
|
InitializeComponent();
|
|
|
|
|
if (salesRepCode == 1)
|
|
|
|
|
tbQuoteNumber.Text = $"DE-83PE89-{DateTime.Now:My}-{random.Next(999999)}";
|
|
|
|
|
else if (salesRepCode == 2)
|
|
|
|
|
tbQuoteNumber.Text = $"DE-83RE32-{DateTime.Now:My}-{random.Next(999999)}";
|
|
|
|
|
|
|
|
|
|
LoadContacts();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|