Browse Source

Server Manager part setup

pull/1/head
barhen 2 years ago
parent
commit
ad02131d76
  1. 1172
      ClientManager/BiskPosContext.cs
  2. 9
      ClientManager/ClientManager.csproj
  3. 18
      ServerManager/Hubs/SalesHub.cs
  4. 7
      ServerManager/Interface/ISalesHub.cs
  5. 23
      Shared/Models/CreditPurchase.cs
  6. 27
      Shared/Models/CustomerAccount.cs
  7. 23
      Shared/Models/ProductAltUnit.cs
  8. 17
      Shared/Models/RestockLevel.cs
  9. 21
      Shared/Models/SystemUserRole.cs
  10. 23
      Shared/Models/TbStock.cs
  11. 21
      Shared/Models/TblBranch.cs
  12. 15
      Shared/Models/TblBrand.cs
  13. 19
      Shared/Models/TblCancelledTransaction.cs
  14. 39
      Shared/Models/TblCart.cs
  15. 15
      Shared/Models/TblCategory.cs
  16. 23
      Shared/Models/TblCompanyDetail.cs
  17. 37
      Shared/Models/TblCustomer.cs
  18. 17
      Shared/Models/TblCustomerPurchase.cs
  19. 21
      Shared/Models/TblDeliveryDetail.cs
  20. 27
      Shared/Models/TblDeliveryHead.cs
  21. 25
      Shared/Models/TblDeliveryRecipient.cs
  22. 21
      Shared/Models/TblDiscountLog.cs
  23. 35
      Shared/Models/TblDriver.cs
  24. 41
      Shared/Models/TblHeldTransaction.cs
  25. 17
      Shared/Models/TblInventory.cs
  26. 19
      Shared/Models/TblInventoryEntry.cs
  27. 31
      Shared/Models/TblInvoice.cs
  28. 21
      Shared/Models/TblPriceChange.cs
  29. 33
      Shared/Models/TblProduct.cs
  30. 21
      Shared/Models/TblTruck.cs
  31. 21
      Shared/Models/TblTruckAssignment.cs
  32. 19
      Shared/Models/TblTruckDriverMapping.cs
  33. 19
      Shared/Models/TblTruckInventory.cs
  34. 35
      Shared/Models/TblUser.cs
  35. 15
      Shared/Models/TblUserActivity.cs
  36. 19
      Shared/Models/UnitOfMeasure.cs

1172
ClientManager/BiskPosContext.cs

File diff suppressed because it is too large

9
ClientManager/ClientManager.csproj

@ -8,6 +8,7 @@
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Microsoft.VisualStudio.Web.CodeGeneration.Design" Version="7.0.6" />
<PackageReference Include="Microsoft.EntityFrameworkCore.SqlServer" Version="7.0.8" />
<PackageReference Include="Microsoft.EntityFrameworkCore.Tools" Version="7.0.8">
<PrivateAssets>all</PrivateAssets>
@ -15,4 +16,12 @@
</PackageReference>
<PackageReference Include="Microsoft.Extensions.Hosting" Version="7.0.1" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\Shared\Biskilog_Cloud.Shared.csproj" />
</ItemGroup>
<ItemGroup>
<Folder Include="Sync\" />
</ItemGroup>
</Project>

18
ServerManager/Hubs/SalesHub.cs

@ -0,0 +1,18 @@
using Microsoft.AspNetCore.SignalR;
using ServerManager.Interface;
namespace ServerManager.Hubs
{
public class SalesHub : Hub<ISalesHub>
{
public override Task OnConnectedAsync()
{
Clients.
return base.OnConnectedAsync();
}
public async Task Publish(string a_companyId)
{
await Clients.OthersInGroup(a_companyId).AddTransaction();
}
}
}

7
ServerManager/Interface/ISalesHub.cs

@ -0,0 +1,7 @@
namespace ServerManager.Interface
{
public interface ISalesHub
{
Task AddTransaction();
}
}

23
Shared/Models/CreditPurchase.cs

@ -0,0 +1,23 @@
using System;
using System.Collections.Generic;
namespace Biskilog_Cloud.Shared.Models;
public partial class CreditPurchase
{
public string ReceiptId { get; set; } = null!;
public DateTime? Date { get; set; }
public decimal? Paid { get; set; }
public decimal? TotalBill { get; set; }
public string? CustomerId { get; set; }
public string? Status { get; set; }
public string? BranchId { get; set; }
public DateTime LastModified { get; set; }
}

27
Shared/Models/CustomerAccount.cs

@ -0,0 +1,27 @@
using System;
using System.Collections.Generic;
namespace Biskilog_Cloud.Shared.Models;
public partial class CustomerAccount
{
public string? CustomerId { get; set; }
public string? TransactionId { get; set; }
public DateTime? Date { get; set; }
public decimal? Debit { get; set; }
public decimal? Credit { get; set; }
public decimal? Balance { get; set; }
public string? Comments { get; set; }
public string? BranchId { get; set; }
public string CountId { get; set; } = null!;
public DateTime LastModified { get; set; }
}

23
Shared/Models/ProductAltUnit.cs

@ -0,0 +1,23 @@
using System;
using System.Collections.Generic;
namespace Biskilog_Cloud.Shared.Models;
public partial class ProductAltUnit
{
public string? Pcode { get; set; }
public string? UnitCode { get; set; }
public string? UnitBarcode { get; set; }
public decimal? PriceUnit { get; set; }
public int? QuantityUnit { get; set; }
public string DistinctiveCode { get; set; } = null!;
public string? BranchId { get; set; }
public DateTime LastModified { get; set; }
}

17
Shared/Models/RestockLevel.cs

@ -0,0 +1,17 @@
using System;
using System.Collections.Generic;
namespace Biskilog_Cloud.Shared.Models;
public partial class RestockLevel
{
public string ProductId { get; set; } = null!;
public int? WarnLevel { get; set; }
public string? Unit { get; set; }
public string? BranchId { get; set; }
public DateTime LastModified { get; set; }
}

21
Shared/Models/SystemUserRole.cs

@ -0,0 +1,21 @@
using System;
using System.Collections.Generic;
namespace Biskilog_Cloud.Shared.Models;
public partial class SystemUserRole
{
public string? Roles { get; set; }
public bool? Owner { get; set; }
public bool? Manager { get; set; }
public bool? Assist { get; set; }
public bool? Cashier { get; set; }
public int Id { get; set; }
public DateTime LastModified { get; set; }
}

23
Shared/Models/TbStock.cs

@ -0,0 +1,23 @@
using System;
using System.Collections.Generic;
namespace Biskilog_Cloud.Shared.Models;
public partial class TbStock
{
public string? Refno { get; set; }
public string? Pcode { get; set; }
public int? Qty { get; set; }
public DateTime? Sdate { get; set; }
public string? Stockinby { get; set; }
public string? BranchId { get; set; }
public string CountId { get; set; } = null!;
public DateTime LastModified { get; set; }
}

21
Shared/Models/TblBranch.cs

@ -0,0 +1,21 @@
using System;
using System.Collections.Generic;
namespace Biskilog_Cloud.Shared.Models;
public partial class TblBranch
{
public string? BranchName { get; set; }
public string BranchId { get; set; } = null!;
public string? Address { get; set; }
public string? City { get; set; }
public string? StateOrProvince { get; set; }
public string? BranchTelephone { get; set; }
public DateTime LastModified { get; set; }
}

15
Shared/Models/TblBrand.cs

@ -0,0 +1,15 @@
using System;
using System.Collections.Generic;
namespace Biskilog_Cloud.Shared.Models;
public partial class TblBrand
{
public string Id { get; set; } = null!;
public string? Brand { get; set; }
public string? BranchId { get; set; }
public DateTime LastModified { get; set; }
}

19
Shared/Models/TblCancelledTransaction.cs

@ -0,0 +1,19 @@
using System;
using System.Collections.Generic;
namespace Biskilog_Cloud.Shared.Models;
public partial class TblCancelledTransaction
{
public string? Transno { get; set; }
public DateTime? DateCancelled { get; set; }
public string? CancelledBy { get; set; }
public string? BranchId { get; set; }
public string CountId { get; set; } = null!;
public DateTime LastModified { get; set; }
}

39
Shared/Models/TblCart.cs

@ -0,0 +1,39 @@
using System;
using System.Collections.Generic;
namespace Biskilog_Cloud.Shared.Models;
public partial class TblCart
{
public string? Transno { get; set; }
public string? Id { get; set; }
public int? Quantity { get; set; }
public DateTime? Date { get; set; }
public decimal? Price { get; set; }
public string? Cashier { get; set; }
public string? Status { get; set; }
public decimal? Total { get; set; }
public string? BranchId { get; set; }
public string? Unit { get; set; }
public decimal? Costprice { get; set; }
public decimal? Tendered { get; set; }
public decimal? Balance { get; set; }
public decimal? ValueAddTax { get; set; }
public string CountId { get; set; } = null!;
public DateTime LastModified { get; set; }
}

15
Shared/Models/TblCategory.cs

@ -0,0 +1,15 @@
using System;
using System.Collections.Generic;
namespace Biskilog_Cloud.Shared.Models;
public partial class TblCategory
{
public string Id { get; set; } = null!;
public string? Category { get; set; }
public string? BranchId { get; set; }
public DateTime LastModified { get; set; }
}

23
Shared/Models/TblCompanyDetail.cs

@ -0,0 +1,23 @@
using System;
using System.Collections.Generic;
namespace Biskilog_Cloud.Shared.Models;
public partial class TblCompanyDetail
{
public string? CompanyName { get; set; }
public string? Address { get; set; }
public string? Website { get; set; }
public string? Email { get; set; }
public string Tin { get; set; } = null!;
public string? MainTelephone { get; set; }
public string? Vatno { get; set; }
public DateTime LastModified { get; set; }
}

37
Shared/Models/TblCustomer.cs

@ -0,0 +1,37 @@
using System;
using System.Collections.Generic;
namespace Biskilog_Cloud.Shared.Models;
public partial class TblCustomer
{
public string CustomerId { get; set; } = null!;
public string? Firstname { get; set; }
public string? Surname { get; set; }
public string? Address { get; set; }
public string? Telephone { get; set; }
public DateTime? DateAdded { get; set; }
public string? BranchId { get; set; }
public string? Status { get; set; }
public string? Tin { get; set; }
public DateTime? DateExit { get; set; }
public string? Email { get; set; }
public string? FinancialStatus { get; set; }
public string? NameKey1 { get; set; }
public string? NameKey2 { get; set; }
public DateTime LastModified { get; set; }
}

17
Shared/Models/TblCustomerPurchase.cs

@ -0,0 +1,17 @@
using System;
using System.Collections.Generic;
namespace Biskilog_Cloud.Shared.Models;
public partial class TblCustomerPurchase
{
public string? CustomerId { get; set; }
public string? TransactionId { get; set; }
public string? BranchId { get; set; }
public string CountId { get; set; } = null!;
public DateTime LastModified { get; set; }
}

21
Shared/Models/TblDeliveryDetail.cs

@ -0,0 +1,21 @@
using System;
using System.Collections.Generic;
namespace Biskilog_Cloud.Shared.Models;
public partial class TblDeliveryDetail
{
public string? DeliveryId { get; set; }
public string? Pcode { get; set; }
public int? Quantity { get; set; }
public string? Unit { get; set; }
public decimal? Cost { get; set; }
public string CountId { get; set; } = null!;
public DateTime LastModified { get; set; }
}

27
Shared/Models/TblDeliveryHead.cs

@ -0,0 +1,27 @@
using System;
using System.Collections.Generic;
namespace Biskilog_Cloud.Shared.Models;
public partial class TblDeliveryHead
{
public string DeliveryId { get; set; } = null!;
public string? GeneratedBy { get; set; }
public DateTime? DateInitiated { get; set; }
public DateTime? DateCompleted { get; set; }
public string? Destination { get; set; }
public string? CustomerId { get; set; }
public decimal? TotalCost { get; set; }
public string? Status { get; set; }
public string? BranchId { get; set; }
public DateTime LastModified { get; set; }
}

25
Shared/Models/TblDeliveryRecipient.cs

@ -0,0 +1,25 @@
using System;
using System.Collections.Generic;
namespace Biskilog_Cloud.Shared.Models;
public partial class TblDeliveryRecipient
{
public string DeliveryId { get; set; } = null!;
public string? Fullname { get; set; }
public string? Address { get; set; }
public string? Telephone { get; set; }
public string? Email { get; set; }
public string? CustomerId { get; set; }
public DateTime? FromDate { get; set; }
public DateTime? ToDate { get; set; }
public DateTime LastModified { get; set; }
}

21
Shared/Models/TblDiscountLog.cs

@ -0,0 +1,21 @@
using System;
using System.Collections.Generic;
namespace Biskilog_Cloud.Shared.Models;
public partial class TblDiscountLog
{
public string? ReceiptId { get; set; }
public string? Cashier { get; set; }
public DateTime? Date { get; set; }
public decimal? Discount { get; set; }
public string? BranchId { get; set; }
public string CountId { get; set; } = null!;
public DateTime LastModified { get; set; }
}

35
Shared/Models/TblDriver.cs

@ -0,0 +1,35 @@
using System;
using System.Collections.Generic;
namespace Biskilog_Cloud.Shared.Models;
public partial class TblDriver
{
public string DriverId { get; set; } = null!;
public string? Firstname { get; set; }
public string? Surname { get; set; }
public string? Middlename { get; set; }
public DateTime? DateOfBirth { get; set; }
public string? Address1 { get; set; }
public string? Address2 { get; set; }
public string? Telephone { get; set; }
public string? Email { get; set; }
public string? City { get; set; }
public string? State { get; set; }
public string? BranchId { get; set; }
public string? Status { get; set; }
public DateTime LastModified { get; set; }
}

41
Shared/Models/TblHeldTransaction.cs

@ -0,0 +1,41 @@
using System;
using System.Collections.Generic;
namespace Biskilog_Cloud.Shared.Models;
public partial class TblHeldTransaction
{
public string? ProductId { get; set; }
public int? Quantity { get; set; }
public DateTime? Date { get; set; }
public decimal? Price { get; set; }
public string? Cashier { get; set; }
public string? Status { get; set; }
public decimal? Total { get; set; }
public string? BranchId { get; set; }
public string? Unit { get; set; }
public decimal? Costprice { get; set; }
public decimal? Discount { get; set; }
public string? InvoiceId { get; set; }
public string? CustomerId { get; set; }
public string CountId { get; set; } = null!;
public string TransactionId { get; set; } = null!;
public string? Distinctive { get; set; }
public DateTime LastModified { get; set; }
}

17
Shared/Models/TblInventory.cs

@ -0,0 +1,17 @@
using System;
using System.Collections.Generic;
namespace Biskilog_Cloud.Shared.Models;
public partial class TblInventory
{
public string? Pcode { get; set; }
public int? Quantity { get; set; }
public string? BranchId { get; set; }
public string CountId { get; set; } = null!;
public DateTime LastModified { get; set; }
}

19
Shared/Models/TblInventoryEntry.cs

@ -0,0 +1,19 @@
using System;
using System.Collections.Generic;
namespace Biskilog_Cloud.Shared.Models;
public partial class TblInventoryEntry
{
public string? Pcode { get; set; }
public int? Quantity { get; set; }
public DateTime? Date { get; set; }
public string? BranchId { get; set; }
public string CountId { get; set; } = null!;
public DateTime LastModified { get; set; }
}

31
Shared/Models/TblInvoice.cs

@ -0,0 +1,31 @@
using System;
using System.Collections.Generic;
namespace Biskilog_Cloud.Shared.Models;
public partial class TblInvoice
{
public string? InvoiceId { get; set; }
public string? Pcode { get; set; }
public int? Quantity { get; set; }
public decimal? Unitprice { get; set; }
public string? Unit { get; set; }
public decimal? Totalprice { get; set; }
public DateTime? DateGenerated { get; set; }
public string? Status { get; set; }
public string? GeneratedBy { get; set; }
public string? BranchId { get; set; }
public string CountId { get; set; } = null!;
public DateTime LastModified { get; set; }
}

21
Shared/Models/TblPriceChange.cs

@ -0,0 +1,21 @@
using System;
using System.Collections.Generic;
namespace Biskilog_Cloud.Shared.Models;
public partial class TblPriceChange
{
public string? Pcode { get; set; }
public decimal? PreviousPrice { get; set; }
public decimal? CurrentPrice { get; set; }
public DateTime? ChangeDate { get; set; }
public string? BranchId { get; set; }
public string CountId { get; set; } = null!;
public DateTime LastModified { get; set; }
}

33
Shared/Models/TblProduct.cs

@ -0,0 +1,33 @@
using System;
using System.Collections.Generic;
namespace Biskilog_Cloud.Shared.Models;
public partial class TblProduct
{
public string? Pcode { get; set; }
public string? Barcode { get; set; }
public string? Pdesc { get; set; }
public string? Bid { get; set; }
public string? Cid { get; set; }
public decimal? Price { get; set; }
public decimal? Costprice { get; set; }
public string? BaseUnit { get; set; }
public string? ProductName { get; set; }
public string? BranchId { get; set; }
public string? Status { get; set; }
public string CountId { get; set; } = null!;
public DateTime LastModified { get; set; }
}

21
Shared/Models/TblTruck.cs

@ -0,0 +1,21 @@
using System;
using System.Collections.Generic;
namespace Biskilog_Cloud.Shared.Models;
public partial class TblTruck
{
public string TruckId { get; set; } = null!;
public string? LicensePlate { get; set; }
public string? Brand { get; set; }
public string? Driver { get; set; }
public decimal? Weight { get; set; }
public string? BranchId { get; set; }
public DateTime LastModified { get; set; }
}

21
Shared/Models/TblTruckAssignment.cs

@ -0,0 +1,21 @@
using System;
using System.Collections.Generic;
namespace Biskilog_Cloud.Shared.Models;
public partial class TblTruckAssignment
{
public string? OrderId { get; set; }
public decimal? Cost { get; set; }
public string? TruckId { get; set; }
public string? Status { get; set; }
public DateTime? DateAssigned { get; set; }
public string CountId { get; set; } = null!;
public DateTime LastModified { get; set; }
}

19
Shared/Models/TblTruckDriverMapping.cs

@ -0,0 +1,19 @@
using System;
using System.Collections.Generic;
namespace Biskilog_Cloud.Shared.Models;
public partial class TblTruckDriverMapping
{
public string? TruckId { get; set; }
public string? DriverId { get; set; }
public DateTime? DateEntry { get; set; }
public string? Operation { get; set; }
public string CountId { get; set; } = null!;
public DateTime LastModified { get; set; }
}

19
Shared/Models/TblTruckInventory.cs

@ -0,0 +1,19 @@
using System;
using System.Collections.Generic;
namespace Biskilog_Cloud.Shared.Models;
public partial class TblTruckInventory
{
public string? TruckId { get; set; }
public string? Pcode { get; set; }
public int? Quantity { get; set; }
public string? Unit { get; set; }
public string CountId { get; set; } = null!;
public DateTime LastModified { get; set; }
}

35
Shared/Models/TblUser.cs

@ -0,0 +1,35 @@
using System;
using System.Collections.Generic;
namespace Biskilog_Cloud.Shared.Models;
public partial class TblUser
{
public string Username { get; set; } = null!;
public string? Password { get; set; }
public string? Firstname { get; set; }
public string? Surname { get; set; }
public string? StreetAddress1 { get; set; }
public string? StreetAddress2 { get; set; }
public string? City { get; set; }
public string? StateOrProvince { get; set; }
public string? Telephone { get; set; }
public string? Email { get; set; }
public string? AccessLevel { get; set; }
public DateTime? LastLogin { get; set; }
public string? BranchId { get; set; }
public DateTime LastModified { get; set; }
}

15
Shared/Models/TblUserActivity.cs

@ -0,0 +1,15 @@
using System;
using System.Collections.Generic;
namespace Biskilog_Cloud.Shared.Models;
public partial class TblUserActivity
{
public string Username { get; set; } = null!;
public DateTime? LastActive { get; set; }
public string? Workstation { get; set; }
public DateTime LastModified { get; set; }
}

19
Shared/Models/UnitOfMeasure.cs

@ -0,0 +1,19 @@
using System;
using System.Collections.Generic;
namespace Biskilog_Cloud.Shared.Models;
public partial class UnitOfMeasure
{
public string UnitCode { get; set; } = null!;
public string? Unitname { get; set; }
public string? Unitshort { get; set; }
public string? Status { get; set; }
public string? BranchId { get; set; }
public DateTime LastModified { get; set; }
}
Loading…
Cancel
Save