From 6665f3b3dbc62ad13a857df26bbfd0cf26a41743 Mon Sep 17 00:00:00 2001 From: John Cardinal Date: Tue, 4 Aug 2020 23:26:59 +0000 Subject: [PATCH] --- .../AyaNova/biz/BizObjectNameFetcherDirect.cs | 2 + server/AyaNova/util/Seeder.cs | 125 +----------------- 2 files changed, 3 insertions(+), 124 deletions(-) diff --git a/server/AyaNova/biz/BizObjectNameFetcherDirect.cs b/server/AyaNova/biz/BizObjectNameFetcherDirect.cs index 39126ba6..fd70c066 100644 --- a/server/AyaNova/biz/BizObjectNameFetcherDirect.cs +++ b/server/AyaNova/biz/BizObjectNameFetcherDirect.cs @@ -29,6 +29,8 @@ namespace AyaNova.Biz switch (ayaType) { //Oddballs only, otherwise let default handle it + case AyaType.OpsNotificationSettings: + return "-"; case AyaType.Global: return "Global"; case AyaType.GlobalOps: diff --git a/server/AyaNova/util/Seeder.cs b/server/AyaNova/util/Seeder.cs index c9666b4b..0a76d158 100644 --- a/server/AyaNova/util/Seeder.cs +++ b/server/AyaNova/util/Seeder.cs @@ -592,7 +592,7 @@ namespace AyaNova.Util u.Roles = roles; u.UserType = userType; - u.EmployeeNumber = "A-" + (454 + SeededUserCount).ToString() + "-Y"; + u.EmployeeNumber = "A-" + (454 + SeededUserCount + x).ToString() + "-Y"; u.Notes = Fake.Lorem.Sentence(null, 5);//Fake.Lorem.Paragraph(2); //TODO: After have USER and HEADOFFICE and VENDOR, if usertype is subcontractor or client or headoffice it needs to set a corresponding user's parent org record id to go with it //use provided tags or generate them @@ -608,129 +608,6 @@ namespace AyaNova.Util u.UserOptions.CurrencyName = "USD"; u.UserOptions.UiColor = Fake.Internet.Color(); - // u.Wiki = @" - - // # Markdown quick reference for Wiki pages - // *** - // *** - //
- - // ## Markdown and Wiki documents - // Wiki's are formatted using **[Markdown](https://en.wikipedia.org/wiki/Markdown)** a plain text formatting language. - // This document is a quick reference guide and at the bottom is a link to a more comprehensive guide online. - // You can also use the formatting toolbar above to perform the same tasks. - - - // # Headings - // # Heading 1st level - // ## Heading 2nd level - // ### Heading 3rd level - // #### Heading 4th level - // ##### Heading 5th level - // ###### Heading 6th level - // *** - // # Emphasis text styles - // *Italic* - // **Bold** - // ~~Strike-through~~ - // ***Bold And Italic*** - - - // # Quote blocks - // > ""Morbi eget dapibus felis. Vivamus venenatis porttitor tortor sit amet rutrum. - // Pellentesque aliquet quam enim, eu volutpat urna rutrum a. Nam vehicula nunc - // > - // > mauris, a ultricies libero efficitur sed. *Class aptent* taciti sociosqu ad - // litora torquent per conubia nostra, per inceptos himenaeos. Sed molestie - // imperdiet consectetur."" - - - // # Lists - // ### Unordered list - // * List - // * List - // * List - - // ### Ordered list - // 1. One - // 2. Two - // 3. Three - - // ### Auto number ordered list - // Ordered lists don't need the numbers to be in order, just that they start with 1: - // 1. Item - // 1. another item - // 1. more item - - // ### Nested lists - // * First - // * subitem One - // * subitem Two - // * Second - // 1. sub one - // 2. sub two - - // # Blank lines - // You can force extra blank lines by entering `
` here are two blank ... - //
- //
- // ...lines. - - // # Horizontal rules - - // *** - - // # Blocks - // `Inline block` with backticks - - // ``` - // Multi-line block - // print '3 backticks or' - // print 'indent 4 spaces' - // ``` - - // # Task lists - - // - [ ] task one - // - [x] task two (completed) - - - - // # TABLES - - // | First | Last | Year | - // | -------- | -------- | -------- | - // | John | Doe | 2000 | - // | Mary | Smith | 2001 | - // | T. | Persson | 2010 | - - // # Hyperlinks - // Inline text link and and optional tooltip: - // Link to [our website](https://ayanova.com ""Hover text tooltip"") example - - // If you don't need an inline link you can simply enter it in angle brackets: - // - // Even email links work: - // - //
- // You can also use emphasis characters with links: - // Link to **[our website](https://ayanova.com)** example - - // # Image - // This is how you insert an image into a wiki - // ![Image](https://www.ayanova.com/images/AyaNovaIcon256.png) - - // # Emojis - // As with all areas of AyaNova where you can enter text, you can also use emoji characters: - // # 😀⚽🏒🍕🚗☀❤😎 - //
- - // # Markdown guide - // A more detailed markdown guide is available here: - // - - // *** - // "; //this seems wrong to get a new context inside a loop but in testing is actually faster!? using (AyContext ct = ServiceProviderProvider.DBContext)