get TerritoryID and random QuoteNumber

pull/1/head
Sascha Woitschetzki 2021-06-15 15:44:17 +07:00 committed by Sascha Woitschetzki
parent 5a5b147be4
commit 57f0553d44
1 changed files with 11 additions and 2 deletions

@ -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();
}