diff --git a/MBDEVpro.BLL/Administration/.gitkeep b/MBDEVpro.BLL/Administration/.gitkeep new file mode 100644 index 0000000..5f28270 --- /dev/null +++ b/MBDEVpro.BLL/Administration/.gitkeep @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/MBDEVpro.BLL/Customer/.gitkeep b/MBDEVpro.BLL/Customer/.gitkeep new file mode 100644 index 0000000..5f28270 --- /dev/null +++ b/MBDEVpro.BLL/Customer/.gitkeep @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/MBDEVpro.BLL/GlobalUsings.cs b/MBDEVpro.BLL/GlobalUsings.cs index e9b383e..efb29ce 100644 --- a/MBDEVpro.BLL/GlobalUsings.cs +++ b/MBDEVpro.BLL/GlobalUsings.cs @@ -1,4 +1,34 @@ -using System; -using System.Collections.Generic; -using System.Text; - +global using System; +global using System.Collections.Generic; +global using System.ComponentModel; +global using System.ComponentModel.DataAnnotations; +global using System.Data; +global using System.Diagnostics.CodeAnalysis; +global using System.IO; +global using System.Linq; +global using System.Net; +global using System.Net.Http; +global using System.Net.Http.Headers; +global using System.Net.Http.Json; +global using System.Reflection; +global using System.Text; +global using System.Text.Json.Serialization; +global using System.Text.RegularExpressions; +global using System.Threading; +global using System.Threading.Tasks; +global using System.Transactions; +global using System.Web; +global using Microsoft.AspNetCore.Authentication; +global using Microsoft.AspNetCore.Hosting; +global using Microsoft.AspNetCore.Http; +global using Microsoft.AspNetCore.Mvc; +global using Microsoft.AspNetCore.Mvc.Rendering; +global using Microsoft.EntityFrameworkCore; +global using Microsoft.Extensions.Caching.Distributed; +global using Microsoft.Extensions.Caching.Memory; +global using Microsoft.Extensions.Configuration; +global using Microsoft.Extensions.Options; +global using Microsoft.Extensions.Primitives; +global using Newtonsoft.Json; +global using Serilog; +global using Azure.Core; diff --git a/MBDEVpro.BLL/Interfaces/.gitkeep b/MBDEVpro.BLL/Interfaces/.gitkeep new file mode 100644 index 0000000..5f28270 --- /dev/null +++ b/MBDEVpro.BLL/Interfaces/.gitkeep @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/MBDEVpro.DataModel/DbContext.cs b/MBDEVpro.DataModel/DbContext.cs new file mode 100644 index 0000000..2dec76a --- /dev/null +++ b/MBDEVpro.DataModel/DbContext.cs @@ -0,0 +1,7 @@ + +namespace MBDEVpro.DataModel +{ + public class MBDEVproDbContext : DbContext + { + } +} diff --git a/MBDEVpro.DataModel/Entities/.gitkeep b/MBDEVpro.DataModel/Entities/.gitkeep new file mode 100644 index 0000000..48237aa --- /dev/null +++ b/MBDEVpro.DataModel/Entities/.gitkeep @@ -0,0 +1,10 @@ +using System; +using System.Collections.Generic; +using System.Text; + +namespace MBDEVpro.DataModel.Entities +{ + class _ + { + } +} diff --git a/MBDEVpro.DataModel/GlobalUsings.cs b/MBDEVpro.DataModel/GlobalUsings.cs index 144d8aa..3ebfb28 100644 --- a/MBDEVpro.DataModel/GlobalUsings.cs +++ b/MBDEVpro.DataModel/GlobalUsings.cs @@ -1,5 +1,17 @@ -using System; -using System.Collections.Generic; -using System.Text; - - +global using System; +global using System.Collections.Generic; +global using System.ComponentModel.DataAnnotations; +global using System.ComponentModel.DataAnnotations.Schema; +global using System.Diagnostics.CodeAnalysis; +global using System.Linq; +global using Microsoft.AspNetCore.Http; +global using Microsoft.EntityFrameworkCore; +global using Microsoft.EntityFrameworkCore.Infrastructure; +global using Microsoft.EntityFrameworkCore.Metadata; +global using Microsoft.EntityFrameworkCore.Migrations; +global using Microsoft.Extensions.Configuration; +global using System.Text; +global using System.Threading.Tasks; +global using Microsoft.EntityFrameworkCore.ChangeTracking; +global using MBDEVpro.DataModel; +global using MBDEVpro.Common; \ No newline at end of file diff --git a/MBDEVpro.DataModel/NonEntities/.gitkeep b/MBDEVpro.DataModel/NonEntities/.gitkeep new file mode 100644 index 0000000..0eaa15c --- /dev/null +++ b/MBDEVpro.DataModel/NonEntities/.gitkeep @@ -0,0 +1,10 @@ +using System; +using System.Collections.Generic; +using System.Text; + +namespace MBDEVpro.DataModel.NonEntities +{ + class _ + { + } +} diff --git a/MBDEVpro.Repository/GlobalUsings.cs b/MBDEVpro.Repository/GlobalUsings.cs index e9b383e..90cd5a4 100644 --- a/MBDEVpro.Repository/GlobalUsings.cs +++ b/MBDEVpro.Repository/GlobalUsings.cs @@ -1,4 +1,17 @@ -using System; -using System.Collections.Generic; -using System.Text; - +global using System; +global using System.Collections.Generic; +global using System.ComponentModel.DataAnnotations; +global using System.Data; +global using System.Linq; +global using System.Transactions; +global using Microsoft.Data.SqlClient; +global using Microsoft.EntityFrameworkCore; +global using Microsoft.Extensions.Caching.Memory; +global using MBDEVpro.Common; +//global using MBDEVpro.DataModel.Entities; +//global using MBDEVpro.DataModel.NonEntities; +global using MBDEVpro.DataModel; +//global using MBDEVpro.Repository.Interfaces; +//global using MBDEVpro.Repository.Repositories; +//global using MBDEVpro.Transmittals.ViewModels.Customer; +//global using MBDEVpro.Transmittals.ViewModels.Shared; \ No newline at end of file diff --git a/MBDEVpro.Repository/Interfaces/.gitkeep b/MBDEVpro.Repository/Interfaces/.gitkeep new file mode 100644 index 0000000..5f28270 --- /dev/null +++ b/MBDEVpro.Repository/Interfaces/.gitkeep @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/MBDEVpro.Repository/Repositories/.gitkeep b/MBDEVpro.Repository/Repositories/.gitkeep new file mode 100644 index 0000000..5f28270 --- /dev/null +++ b/MBDEVpro.Repository/Repositories/.gitkeep @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/MBDEVpro.Transmittals/GlobalUsings.cs b/MBDEVpro.Transmittals/GlobalUsings.cs index 144d8aa..de0f5d6 100644 --- a/MBDEVpro.Transmittals/GlobalUsings.cs +++ b/MBDEVpro.Transmittals/GlobalUsings.cs @@ -1,5 +1,35 @@ -using System; -using System.Collections.Generic; -using System.Text; - +global using System; +global using System.IO; +global using System.Collections.Generic; +global using System.ComponentModel; +global using System.ComponentModel.DataAnnotations; +global using System.ComponentModel.DataAnnotations.Schema; +global using System.Diagnostics.CodeAnalysis; +global using System.Linq; +global using System.Text; +global using Microsoft.AspNetCore.Http; +global using Microsoft.AspNetCore.Mvc; +global using Microsoft.AspNetCore.Mvc.Rendering; +global using MBDEVpro.Common; +global using MBDEVpro.Common.Constants; +//global using MBDEVpro.DataModel.Entities; +//global using MBDEVpro.DataModel.NonEntities; +//global using MBDEVpro.Transmittals.Models; +//global using MBDEVpro.Transmittals.Models.Address; +//global using MBDEVpro.Transmittals.Models.Incident; +//global using MBDEVpro.Transmittals.Models.InspectionTypes; +//global using MBDEVpro.Transmittals.ViewModels.Address; +//global using MBDEVpro.Transmittals.ViewModels.Administration; +//global using MBDEVpro.Transmittals.ViewModels.AdministrativeSettings; +//global using MBDEVpro.Transmittals.ViewModels.Business; +//global using MBDEVpro.Transmittals.ViewModels.DeviceType; +//global using MBDEVpro.Transmittals.ViewModels.Incident; +//global using MBDEVpro.Transmittals.ViewModels.Inspection; +//global using MBDEVpro.Transmittals.ViewModels.InspectionType; +//global using MBDEVpro.Transmittals.ViewModels.Inspector; +//global using MBDEVpro.Transmittals.ViewModels.Inventory; +//global using MBDEVpro.Transmittals.ViewModels.LogOn; +//global using MBDEVpro.Transmittals.ViewModels.Shared; +//global using MBDEVpro.Transmittals.ViewModels.Supervisor; +//global using MBDEVpro.Transmittals.ViewModels.User; diff --git a/MBDEVpro.Transmittals/ViewModels/.gitkeep b/MBDEVpro.Transmittals/ViewModels/.gitkeep new file mode 100644 index 0000000..5f28270 --- /dev/null +++ b/MBDEVpro.Transmittals/ViewModels/.gitkeep @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/MBDEVpro.Transmittals/ViewModels/Administration/.gitkeep b/MBDEVpro.Transmittals/ViewModels/Administration/.gitkeep new file mode 100644 index 0000000..5f28270 --- /dev/null +++ b/MBDEVpro.Transmittals/ViewModels/Administration/.gitkeep @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/MBDEVpro.Transmittals/ViewModels/Business/.gitkeep b/MBDEVpro.Transmittals/ViewModels/Business/.gitkeep new file mode 100644 index 0000000..5f28270 --- /dev/null +++ b/MBDEVpro.Transmittals/ViewModels/Business/.gitkeep @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/MBDEVpro.Transmittals/ViewModels/Customer/.gitkeep b/MBDEVpro.Transmittals/ViewModels/Customer/.gitkeep new file mode 100644 index 0000000..5f28270 --- /dev/null +++ b/MBDEVpro.Transmittals/ViewModels/Customer/.gitkeep @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/MBDEVpro.Transmittals/ViewModels/Shared/.gitkeep b/MBDEVpro.Transmittals/ViewModels/Shared/.gitkeep new file mode 100644 index 0000000..5f28270 --- /dev/null +++ b/MBDEVpro.Transmittals/ViewModels/Shared/.gitkeep @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/MBDEVpro.Transmittals/ViewModels/Supervisor/.gitkeep b/MBDEVpro.Transmittals/ViewModels/Supervisor/.gitkeep new file mode 100644 index 0000000..5f28270 --- /dev/null +++ b/MBDEVpro.Transmittals/ViewModels/Supervisor/.gitkeep @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/MBDEVpro.Transmittals/ViewModels/User/.gitkeep b/MBDEVpro.Transmittals/ViewModels/User/.gitkeep new file mode 100644 index 0000000..5f28270 --- /dev/null +++ b/MBDEVpro.Transmittals/ViewModels/User/.gitkeep @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/MBDEVpro.UI/GlobalUsings.cs b/MBDEVpro.UI/GlobalUsings.cs index a415fee..2e03e57 100644 --- a/MBDEVpro.UI/GlobalUsings.cs +++ b/MBDEVpro.UI/GlobalUsings.cs @@ -1,3 +1,81 @@ -using System; -using System.Collections.Generic; -using System.Text; +global using System; +global using System.Collections.Generic; +global using System.ComponentModel.DataAnnotations; +global using System.Data; +global using System.Diagnostics; +global using System.IO; +global using System.Linq; +global using System.Reflection; +global using System.Runtime.InteropServices; +global using System.Security.Claims; +global using System.Text; +global using System.Threading.Tasks; +global using System.Web; +global using Microsoft.AspNetCore; +global using Microsoft.AspNetCore.Authentication; +global using Microsoft.AspNetCore.Authentication.Cookies; +global using Microsoft.AspNetCore.Authorization; +global using Microsoft.AspNetCore.Builder; +global using Microsoft.AspNetCore.DataProtection; +global using Microsoft.AspNetCore.Hosting; +global using Microsoft.AspNetCore.Http; +global using Microsoft.AspNetCore.Identity; +global using Microsoft.AspNetCore.Mvc; +global using Microsoft.AspNetCore.Mvc.Controllers; +global using Microsoft.AspNetCore.Mvc.Filters; +global using Microsoft.AspNetCore.Mvc.Rendering; +global using Microsoft.AspNetCore.Routing; +global using Microsoft.CodeAnalysis; +global using Microsoft.EntityFrameworkCore; +global using Microsoft.EntityFrameworkCore.Infrastructure; +global using Microsoft.Extensions.Caching.Distributed; +global using Microsoft.Extensions.Caching.Memory; +global using Microsoft.Extensions.Configuration; +global using Microsoft.Extensions.DependencyInjection; +global using Microsoft.Extensions.Hosting; +global using Microsoft.Extensions.Options; +global using Newtonsoft.Json; +//global using MBDEVpro.BLL.Administration; +//global using MBDEVpro.BLL.Business; +//global using MBDEVpro.BLL.Customer; +//global using MBDEVpro.BLL.Common; +//global using MBDEVpro.BLL.Dashboard; +//global using MBDEVpro.BLL.FAQ; +//global using MBDEVpro.BLL.Helpers; +//global using MBDEVpro.BLL.Inspector; +//global using MBDEVpro.BLL.Interfaces; +//global using MBDEVpro.BLL.PasswordValidation; +//global using MBDEVpro.BLL.Supervisor; +//global using MBDEVpro.BLL.UserAuthentication; +//global using MBDEVpro.BLL.ViewModels.Address; +global using MBDEVpro.Common; +global using MBDEVpro.Common.Constants; +global using MBDEVpro.Common.Helper; +//global using MBDEVpro.DataModel.NonEntities; +//global using MBDEVpro.Repository.Helper; +//global using MBDEVpro.Repository.Interfaces; +//global using MBDEVpro.Repository.Repositories; +global using MBDEVpro.Transmittals; +//global using MBDEVpro.Transmittals.Models; +//global using MBDEVpro.Transmittals.Models.Address; +//global using MBDEVpro.Transmittals.Models.UserAuth; +//global using MBDEVpro.Transmittals.ViewModels; +//global using MBDEVpro.Transmittals.ViewModels.Administration; +//global using MBDEVpro.Transmittals.ViewModels.Business; +//global using MBDEVpro.Transmittals.ViewModels.Customer; +//global using MBDEVpro.Transmittals.ViewModels.Shared; +//global using MBDEVpro.Transmittals.ViewModels.Supervisor; +//global using MBDEVpro.Transmittals.ViewModels.User; +global using MBDEVpro.UI.Controllers; +//global using MBDEVpro.UI.Helpers; +//global using MBDEVpro.UI.SiteMap; +//global using MBDEVpro.UI.ViewModels; +global using Serilog; +global using X.PagedList; +//global using static MBDEVpro.Repository.Helper.APPSettings; +//global using MBDEVpro.UI.Services; +global using System.Xml.Linq; +global using static System.Collections.Specialized.BitVector32; +global using Microsoft.Extensions.Logging; +global using System.Net.Http; +global using System.Net.Http.Headers; diff --git a/MBDEVpro.UI/appsettings.Production.json b/MBDEVpro.UI/appsettings.Production.json new file mode 100644 index 0000000..1775c43 --- /dev/null +++ b/MBDEVpro.UI/appsettings.Production.json @@ -0,0 +1,68 @@ +{ + "ConnectionStrings": { + "DatabaseConnection": "Server=SomeServerName;Integrated Security=false;encrypt=false;MultipleActiveResultSets=true;Initial Catalog=SomeDatabase;user id=SomeUserID;password=SomePasswordStoredInSecrets;" + }, + "DefaultProjectSettings": { + "ProjectName": "MBDEVpro", + "Environment": "Test", + "Description": "MBDEVpro", + "SessionTimeout": "600000", + "ApplicationURL": "https://www.MBDEVpro.com", + "DataTableLengthMenu": "5,10,25,50,100,-1", + "DefaultGridPageCount": "10", + "CurrentProject": "MBDEVpro", + "LogInExpireTimeSpan": "45", + "CookieName": "MBDEVproAuthentication", + "SessionName": ".AspNetCore.Session.MBDEVpro", + "KeyStorageLocation": "\\\\Location\\MBDEVpro_Test\\keys", + "UpdatePasswordURL": "", + "UserName": "...", + "Password": "...", + "AZURE_ENCRYPT_CLIENTID": "...", + "AZURE_ENCRYPT_CLIENTSECRET": "...", + "AZURE_ENCRYPT_TENANTID": "..." + }, + "CustomerServiceSettings": { + "ISBURL": "https://www.MBDEVpro.com/MBDEVpro_Customers/api/", + "CustomerControllerCreateCustomer": "Customer/CreateCustomer", + "CustomerControllerUpdateCustomer": "Customer/UpdateCustomer", + "CustomerControllerDeleteCustomer": "Customer/DeleteCustomer", + "CustomerControllerGetCustomer": "Customer/GetCustomer", + "CustomerControllerGetAllCustomers": "Customer/GetAllCustomers", + "CustomerControllerCustomersManagement": "Customer/CustomerGridList", + "CustomerTypeControllerGetCustomerTypes": "CustomerType/GetCustomerTypes", + "CustomerTypeControllerGetCustomerType": "CustomerType/GetCustomerType", + "CustomerTypeControllerCreateCustomerType": "CustomerType/CreateCustomerType", + "CustomerTypeControllerUpdateCustomerType": "CustomerType/UpdateCustomerType", + "CustomerTypeControllerDeleteCustomerType": "CustomerType/DeleteCustomerType" + }, + "EmailAPISettings": { + "API_URL": "https://www.MBDEVpro/EmailManager/api/", + "SendEmail": "Email/SendEmail/sendemail", + "SendEmailWithAttachment": "Email/SendEmailAttachment/sendemailattachment" + }, + "AllowedHosts": "*", + "Serilog": { + "Using": [], + "MinimumLevel": { + "Default": "Debug", + "Override": { + "Microsoft": "Warning", + "System": "Warning" + } + }, + "Enrich": [ "FromLogContext", "WithMachineName", "WithProcessId", "WithThreadId" ], + "WriteTo": [ + { + "Name": "File", + "Args": { + "path": "C:\\Logs\\MBDEVpro\\log-.json", + "formatter": "Serilog.Formatting.Json.JsonFormatter, Serilog", + "rollingInterval": "Day", + "retainedFileCountLimit": 5, + "rollOnFileSizeLimit": true + } + } + ] + } +} \ No newline at end of file diff --git a/MBDEVpro.UI/appsettings.Test.json b/MBDEVpro.UI/appsettings.Test.json new file mode 100644 index 0000000..1775c43 --- /dev/null +++ b/MBDEVpro.UI/appsettings.Test.json @@ -0,0 +1,68 @@ +{ + "ConnectionStrings": { + "DatabaseConnection": "Server=SomeServerName;Integrated Security=false;encrypt=false;MultipleActiveResultSets=true;Initial Catalog=SomeDatabase;user id=SomeUserID;password=SomePasswordStoredInSecrets;" + }, + "DefaultProjectSettings": { + "ProjectName": "MBDEVpro", + "Environment": "Test", + "Description": "MBDEVpro", + "SessionTimeout": "600000", + "ApplicationURL": "https://www.MBDEVpro.com", + "DataTableLengthMenu": "5,10,25,50,100,-1", + "DefaultGridPageCount": "10", + "CurrentProject": "MBDEVpro", + "LogInExpireTimeSpan": "45", + "CookieName": "MBDEVproAuthentication", + "SessionName": ".AspNetCore.Session.MBDEVpro", + "KeyStorageLocation": "\\\\Location\\MBDEVpro_Test\\keys", + "UpdatePasswordURL": "", + "UserName": "...", + "Password": "...", + "AZURE_ENCRYPT_CLIENTID": "...", + "AZURE_ENCRYPT_CLIENTSECRET": "...", + "AZURE_ENCRYPT_TENANTID": "..." + }, + "CustomerServiceSettings": { + "ISBURL": "https://www.MBDEVpro.com/MBDEVpro_Customers/api/", + "CustomerControllerCreateCustomer": "Customer/CreateCustomer", + "CustomerControllerUpdateCustomer": "Customer/UpdateCustomer", + "CustomerControllerDeleteCustomer": "Customer/DeleteCustomer", + "CustomerControllerGetCustomer": "Customer/GetCustomer", + "CustomerControllerGetAllCustomers": "Customer/GetAllCustomers", + "CustomerControllerCustomersManagement": "Customer/CustomerGridList", + "CustomerTypeControllerGetCustomerTypes": "CustomerType/GetCustomerTypes", + "CustomerTypeControllerGetCustomerType": "CustomerType/GetCustomerType", + "CustomerTypeControllerCreateCustomerType": "CustomerType/CreateCustomerType", + "CustomerTypeControllerUpdateCustomerType": "CustomerType/UpdateCustomerType", + "CustomerTypeControllerDeleteCustomerType": "CustomerType/DeleteCustomerType" + }, + "EmailAPISettings": { + "API_URL": "https://www.MBDEVpro/EmailManager/api/", + "SendEmail": "Email/SendEmail/sendemail", + "SendEmailWithAttachment": "Email/SendEmailAttachment/sendemailattachment" + }, + "AllowedHosts": "*", + "Serilog": { + "Using": [], + "MinimumLevel": { + "Default": "Debug", + "Override": { + "Microsoft": "Warning", + "System": "Warning" + } + }, + "Enrich": [ "FromLogContext", "WithMachineName", "WithProcessId", "WithThreadId" ], + "WriteTo": [ + { + "Name": "File", + "Args": { + "path": "C:\\Logs\\MBDEVpro\\log-.json", + "formatter": "Serilog.Formatting.Json.JsonFormatter, Serilog", + "rollingInterval": "Day", + "retainedFileCountLimit": 5, + "rollOnFileSizeLimit": true + } + } + ] + } +} \ No newline at end of file