Browse Source

Merge pull request 'BISK2023-16-setup-base-blazor-project' (#1) from BISK2023-16-setup-base-blazor-project into dev

Reviewed-on: https://scm.barhendev.com/barhen/Biskilog_Accounting/pulls/1
BISK2023-1
Benjamin Arhen 2 years ago
parent
commit
d65116d748
  1. 1
      Client/Biskilog Accounting.Client.csproj
  2. 10
      Client/Pages/Auth/Login.razor
  3. 30
      Server/Biskilog Accounting.Server.csproj
  4. 1345
      Server/DevBiskacdbContext.cs
  5. 267
      Server/DevBiskilogclientsContext.cs
  6. 9
      Shared/Biskilog Accounting.Shared.csproj
  7. 11
      Shared/ClientContractModels/Authtype.cs
  8. 20
      Shared/ClientContractModels/Clientbusiness.cs
  9. 15
      Shared/ClientContractModels/Clientinfo.cs
  10. 21
      Shared/ClientContractModels/Contract.cs
  11. 13
      Shared/ClientContractModels/Databasemap.cs
  12. 16
      Shared/ClientContractModels/Siteaccesspermission.cs
  13. 27
      Shared/ClientContractModels/Userauth.cs
  14. 21
      Shared/POSModels/Creditpurchase.cs
  15. 25
      Shared/POSModels/Customeraccount.cs
  16. 21
      Shared/POSModels/Productaltunit.cs
  17. 15
      Shared/POSModels/Restocklevel.cs
  18. 19
      Shared/POSModels/Systemuserrole.cs
  19. 19
      Shared/POSModels/Tblbranch.cs
  20. 13
      Shared/POSModels/Tblbrand.cs
  21. 17
      Shared/POSModels/Tblcancelledtransaction.cs
  22. 31
      Shared/POSModels/Tblcart.cs
  23. 13
      Shared/POSModels/Tblcategory.cs
  24. 21
      Shared/POSModels/Tblcompanydetail.cs
  25. 35
      Shared/POSModels/Tblcustomer.cs
  26. 15
      Shared/POSModels/Tblcustomerpurchase.cs
  27. 21
      Shared/POSModels/Tbldeliverydetail.cs
  28. 25
      Shared/POSModels/Tbldeliveryhead.cs
  29. 25
      Shared/POSModels/Tbldeliveryrecipient.cs
  30. 19
      Shared/POSModels/Tbldiscountlog.cs
  31. 33
      Shared/POSModels/Tbldriver.cs
  32. 15
      Shared/POSModels/Tblinventory.cs
  33. 17
      Shared/POSModels/Tblinventoryentry.cs
  34. 29
      Shared/POSModels/Tblinvoice.cs
  35. 19
      Shared/POSModels/Tblpricechange.cs
  36. 31
      Shared/POSModels/Tblproduct.cs
  37. 19
      Shared/POSModels/Tbltruck.cs
  38. 19
      Shared/POSModels/TbltruckDrivermapping.cs
  39. 21
      Shared/POSModels/Tbltruckassignment.cs
  40. 19
      Shared/POSModels/Tbltruckinventory.cs
  41. 33
      Shared/POSModels/Tbluser.cs
  42. 21
      Shared/POSModels/Tbstock.cs
  43. 17
      Shared/POSModels/Unitofmeasure.cs

1
Client/Biskilog Accounting.Client.csproj

@ -9,6 +9,7 @@
</PropertyGroup> </PropertyGroup>
<ItemGroup> <ItemGroup>
<PackageReference Include="AutoMapper.Extensions.Microsoft.DependencyInjection" Version="12.0.1" />
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly" Version="7.0.5" /> <PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly" Version="7.0.5" />
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly.DevServer" Version="7.0.5" PrivateAssets="all" /> <PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly.DevServer" Version="7.0.5" PrivateAssets="all" />
<PackageReference Include="Microsoft.Extensions.Http" Version="7.0.0" /> <PackageReference Include="Microsoft.Extensions.Http" Version="7.0.0" />

10
Client/Pages/Auth/Login.razor

@ -116,11 +116,13 @@
</div> </div>
<div class="col-lg-6 d-flex align-items-center gradient-custom-2"> <div class="col-lg-6 d-flex align-items-center gradient-custom-2">
<div class="text-white px-3 py-4 p-md-5 mx-md-4"> <div class="text-white px-3 py-4 p-md-5 mx-md-4">
<h4 class="mb-4">We are more than just a company</h4> <h4 class="mb-4">Simplify Your Business Management with Biskilog's Suite of Tools</h4>
<p class="small mb-0"> <p class="small mb-0">
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod Stay on top of your business operations from anywhere with Biskilog - now a user-friendly web application
tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud that not only provides a comprehensive operational summary of all records from the BISKILOG POS software
exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. but also allows you to make sales and access new features. Monitor operations, make informed decisions and simplify
your business management with Biskilog's powerful and convenient web app. Say goodbye to manual record-keeping
and hello to streamlined efficiency with Biskilog.
</p> </p>
</div> </div>
</div> </div>

30
Server/Biskilog Accounting.Server.csproj

@ -4,17 +4,39 @@
<TargetFramework>net7.0</TargetFramework> <TargetFramework>net7.0</TargetFramework>
<Nullable>enable</Nullable> <Nullable>enable</Nullable>
<ImplicitUsings>enable</ImplicitUsings> <ImplicitUsings>enable</ImplicitUsings>
<RootNamespace>Biskilog Accounting.Server</RootNamespace> <RootNamespace>Biskilog_Accounting.Server</RootNamespace>
<AssemblyName>$(AssemblyName.Replace(' ', '_'))</AssemblyName> <AssemblyName>$(AssemblyName.Replace(' ', '_'))</AssemblyName>
</PropertyGroup> </PropertyGroup>
<ItemGroup> <ItemGroup>
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly.Server" Version="7.0.5" /> <PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly.Server" Version="7.0.5" />
</ItemGroup> <PackageReference Include="BCrypt.Net" Version="0.1.0" />
<PackageReference Include="Microsoft.AspNetCore.Authentication.JwtBearer" Version="7.0.5" />
<PackageReference Include="AutoMapper" Version="12.0.1" />
<PackageReference Include="AutoMapper.Extensions.Microsoft.DependencyInjection" Version="12.0.1" />
<PackageReference Include="CsvHelper" Version="30.0.1" />
<PackageReference Include="Microsoft.EntityFrameworkCore.Design" Version="7.0.5">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
<PackageReference Include="Microsoft.EntityFrameworkCore.SqlServer" Version="7.0.5" />
<PackageReference Include="Microsoft.EntityFrameworkCore.Tools" Version="7.0.5">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
<PackageReference Include="Microsoft.VisualStudio.Web.CodeGeneration.Design" Version="7.0.6" />
<PackageReference Include="Pomelo.EntityFrameworkCore.MySql" Version="7.0.0" />
<PackageReference Include="Swashbuckle.AspNetCore" Version="6.5.0" />
<PackageReference Include="Microsoft.Diagnostics.Tracing.TraceEvent" Version="3.1.2" />
</ItemGroup>
<ItemGroup> <ItemGroup>
<ProjectReference Include="..\Client\Biskilog Accounting.Client.csproj" /> <ProjectReference Include="..\Client\Biskilog Accounting.Client.csproj" />
<ProjectReference Include="..\Shared\Biskilog Accounting.Shared.csproj" /> <ProjectReference Include="..\Shared\Biskilog Accounting.Shared.csproj" />
</ItemGroup> </ItemGroup>
<ItemGroup>
<Folder Include="Services\" />
</ItemGroup>
</Project> </Project>

1345
Server/DevBiskacdbContext.cs

File diff suppressed because it is too large

267
Server/DevBiskilogclientsContext.cs

@ -0,0 +1,267 @@
using System;
using System.Collections.Generic;
using Biskilog_Accounting.Shared.ClientContractModels;
using Microsoft.EntityFrameworkCore;
namespace Biskilog_Accounting.Server;
public partial class DevBiskilogclientsContext : DbContext
{
public DevBiskilogclientsContext()
{
}
public DevBiskilogclientsContext(DbContextOptions<DevBiskilogclientsContext> options)
: base(options)
{
}
public virtual DbSet<Authtype> Authtypes { get; set; }
public virtual DbSet<Clientbusiness> Clientbusinesses { get; set; }
public virtual DbSet<Clientinfo> Clientinfos { get; set; }
public virtual DbSet<Contract> Contracts { get; set; }
public virtual DbSet<Databasemap> Databasemaps { get; set; }
public virtual DbSet<Siteaccesspermission> Siteaccesspermissions { get; set; }
public virtual DbSet<Userauth> Userauths { get; set; }
protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder)
#warning To protect potentially sensitive information in your connection string, you should move it out of source code. You can avoid scaffolding the connection string by using the Name= syntax to read it from configuration - see https://go.microsoft.com/fwlink/?linkid=2131148. For more guidance on storing connection strings, see http://go.microsoft.com/fwlink/?LinkId=723263.
=> optionsBuilder.UseMySql("server=54.37.19.162;database=dev_biskilogclients;user=biskilog;password=mefbuk-6niFsu-fytrew", ServerVersion.Parse("10.3.38-mariadb"));
protected override void OnModelCreating(ModelBuilder modelBuilder)
{
modelBuilder
.UseCollation("utf8mb4_general_ci")
.HasCharSet("utf8mb4");
modelBuilder.Entity<Authtype>(entity =>
{
entity.HasKey(e => e.Id).HasName("PRIMARY");
entity
.ToTable("authtypes")
.HasCharSet("utf8")
.UseCollation("utf8_general_ci");
entity.Property(e => e.Id)
.HasColumnType("int(11)")
.HasColumnName("id");
entity.Property(e => e.Type)
.HasMaxLength(50)
.HasColumnName("type")
.UseCollation("utf8mb4_general_ci")
.HasCharSet("utf8mb4");
});
modelBuilder.Entity<Clientbusiness>(entity =>
{
entity.HasKey(e => new { e.BusinessId, e.ClientId })
.HasName("PRIMARY")
.HasAnnotation("MySql:IndexPrefixLength", new[] { 0, 0 });
entity
.ToTable("clientbusiness")
.HasCharSet("utf8")
.UseCollation("utf8_general_ci");
entity.Property(e => e.BusinessId)
.HasComment("there could be multiple branches of the same business")
.HasColumnType("int(11)")
.HasColumnName("businessId");
entity.Property(e => e.ClientId)
.HasColumnType("int(11)")
.HasColumnName("clientID");
entity.Property(e => e.BiskilogVersion)
.HasMaxLength(50)
.HasDefaultValueSql("''")
.HasColumnName("biskilog_version")
.UseCollation("utf8mb4_general_ci")
.HasCharSet("utf8mb4");
entity.Property(e => e.BusinessName)
.HasMaxLength(50)
.HasDefaultValueSql("''")
.HasColumnName("business_name")
.UseCollation("utf8mb4_general_ci")
.HasCharSet("utf8mb4");
entity.Property(e => e.DateJoined)
.HasDefaultValueSql("current_timestamp()")
.HasColumnType("datetime")
.HasColumnName("date_joined");
});
modelBuilder.Entity<Clientinfo>(entity =>
{
entity.HasKey(e => e.ClientId).HasName("PRIMARY");
entity
.ToTable("clientinfo")
.HasCharSet("utf8")
.UseCollation("utf8_general_ci");
entity.Property(e => e.ClientId)
.HasColumnType("int(11)")
.HasColumnName("clientID");
entity.Property(e => e.Email)
.HasMaxLength(200)
.HasColumnName("email")
.UseCollation("utf8mb4_general_ci")
.HasCharSet("utf8mb4");
entity.Property(e => e.Fullname)
.HasMaxLength(200)
.UseCollation("utf8mb4_general_ci")
.HasCharSet("utf8mb4");
entity.Property(e => e.PhoneNumber)
.HasMaxLength(200)
.HasColumnName("phoneNumber")
.UseCollation("utf8mb4_general_ci")
.HasCharSet("utf8mb4");
});
modelBuilder.Entity<Contract>(entity =>
{
entity.HasKey(e => e.ContractId).HasName("PRIMARY");
entity
.ToTable("contracts")
.HasCharSet("utf8")
.UseCollation("utf8_general_ci");
entity.HasIndex(e => new { e.ClientId, e.BusinessId }, "clientId_businessId").IsUnique();
entity.Property(e => e.ContractId)
.HasColumnType("int(11)")
.HasColumnName("contractId");
entity.Property(e => e.Bill)
.HasPrecision(18, 2)
.HasColumnName("bill");
entity.Property(e => e.BusinessId)
.HasColumnType("int(11)")
.HasColumnName("businessId");
entity.Property(e => e.ClientId)
.HasColumnType("int(11)")
.HasColumnName("clientId");
entity.Property(e => e.Comments)
.HasColumnType("text")
.HasColumnName("comments")
.UseCollation("utf8mb4_general_ci")
.HasCharSet("utf8mb4");
entity.Property(e => e.EndDate)
.HasColumnType("datetime")
.HasColumnName("end_date");
entity.Property(e => e.StartDate)
.HasColumnType("datetime")
.HasColumnName("start_date");
});
modelBuilder.Entity<Databasemap>(entity =>
{
entity.HasKey(e => e.DbNo).HasName("PRIMARY");
entity
.ToTable("databasemap")
.HasCharSet("utf8")
.UseCollation("utf8_general_ci");
entity.HasIndex(e => e.ClientId, "businessId").IsUnique();
entity.Property(e => e.DbNo)
.HasColumnType("int(11)")
.HasColumnName("db_no");
entity.Property(e => e.ClientId)
.HasColumnType("int(11)")
.HasColumnName("clientID");
entity.Property(e => e.DbName)
.HasMaxLength(50)
.HasDefaultValueSql("''")
.HasColumnName("db_name")
.UseCollation("utf8mb4_general_ci")
.HasCharSet("utf8mb4");
});
modelBuilder.Entity<Siteaccesspermission>(entity =>
{
entity.HasKey(e => new { e.UserId, e.BusinessId, e.ClientId })
.HasName("PRIMARY")
.HasAnnotation("MySql:IndexPrefixLength", new[] { 0, 0, 0 });
entity
.ToTable("siteaccesspermission")
.HasCharSet("utf8")
.UseCollation("utf8_general_ci");
entity.Property(e => e.UserId)
.HasColumnType("int(11)")
.HasColumnName("userID");
entity.Property(e => e.BusinessId)
.HasComment("businessIds could also been seen as branchID")
.HasColumnType("int(11)")
.HasColumnName("businessId");
entity.Property(e => e.ClientId)
.HasColumnType("int(11)")
.HasColumnName("clientId");
});
modelBuilder.Entity<Userauth>(entity =>
{
entity.HasKey(e => e.UserId).HasName("PRIMARY");
entity
.ToTable("userauth")
.HasCharSet("utf8")
.UseCollation("utf8_general_ci");
entity.HasIndex(e => e.AuthType, "authType");
entity.HasIndex(e => new { e.ClientId, e.Username, e.Email }, "clientId_username_email").IsUnique();
entity.Property(e => e.UserId)
.HasColumnType("int(11)")
.HasColumnName("userId");
entity.Property(e => e.AuthType)
.HasColumnType("int(11)")
.HasColumnName("authType");
entity.Property(e => e.ClientId)
.HasColumnType("int(11)")
.HasColumnName("clientId");
entity.Property(e => e.Email)
.HasMaxLength(200)
.HasColumnName("email")
.UseCollation("utf8mb4_general_ci")
.HasCharSet("utf8mb4");
entity.Property(e => e.Isactive)
.HasColumnType("bit(1)")
.HasColumnName("isactive");
entity.Property(e => e.Isowner)
.HasColumnType("bit(1)")
.HasColumnName("isowner");
entity.Property(e => e.LastLogin)
.HasColumnType("datetime")
.HasColumnName("last_login");
entity.Property(e => e.Passsword)
.HasMaxLength(200)
.HasColumnName("passsword")
.UseCollation("utf8mb4_general_ci")
.HasCharSet("utf8mb4");
entity.Property(e => e.PhoneNumber)
.HasMaxLength(50)
.HasColumnName("phoneNumber")
.UseCollation("utf8mb4_general_ci")
.HasCharSet("utf8mb4");
entity.Property(e => e.Username)
.HasMaxLength(30)
.HasColumnName("username")
.UseCollation("utf8mb4_general_ci")
.HasCharSet("utf8mb4");
});
OnModelCreatingPartial(modelBuilder);
}
partial void OnModelCreatingPartial(ModelBuilder modelBuilder);
}

9
Shared/Biskilog Accounting.Shared.csproj

@ -6,7 +6,16 @@
<ImplicitUsings>enable</ImplicitUsings> <ImplicitUsings>enable</ImplicitUsings>
</PropertyGroup> </PropertyGroup>
<ItemGroup>
<PackageReference Include="AutoMapper.Extensions.Microsoft.DependencyInjection" Version="12.0.1" />
</ItemGroup>
<ItemGroup> <ItemGroup>
<SupportedPlatform Include="browser" /> <SupportedPlatform Include="browser" />
</ItemGroup> </ItemGroup>
<ItemGroup>
<Folder Include="Interfaces\" />
<Folder Include="Enums\" />
</ItemGroup>
</Project> </Project>

11
Shared/ClientContractModels/Authtype.cs

@ -0,0 +1,11 @@
using System;
using System.Collections.Generic;
namespace Biskilog_Accounting.Shared.ClientContractModels;
public partial class Authtype
{
public int Id { get; set; }
public string? Type { get; set; }
}

20
Shared/ClientContractModels/Clientbusiness.cs

@ -0,0 +1,20 @@
using System;
using System.Collections.Generic;
namespace Biskilog_Accounting.Shared.ClientContractModels;
public partial class Clientbusiness
{
/// <summary>
/// there could be multiple branches of the same business
/// </summary>
public int BusinessId { get; set; }
public int ClientId { get; set; }
public string BusinessName { get; set; } = null!;
public string BiskilogVersion { get; set; } = null!;
public DateTime DateJoined { get; set; }
}

15
Shared/ClientContractModels/Clientinfo.cs

@ -0,0 +1,15 @@
using System;
using System.Collections.Generic;
namespace Biskilog_Accounting.Shared.ClientContractModels;
public partial class Clientinfo
{
public int ClientId { get; set; }
public string? Fullname { get; set; }
public string? PhoneNumber { get; set; }
public string? Email { get; set; }
}

21
Shared/ClientContractModels/Contract.cs

@ -0,0 +1,21 @@
using System;
using System.Collections.Generic;
namespace Biskilog_Accounting.Shared.ClientContractModels;
public partial class Contract
{
public int ContractId { get; set; }
public int ClientId { get; set; }
public int? BusinessId { get; set; }
public DateTime? StartDate { get; set; }
public DateTime? EndDate { get; set; }
public decimal? Bill { get; set; }
public string Comments { get; set; } = null!;
}

13
Shared/ClientContractModels/Databasemap.cs

@ -0,0 +1,13 @@
using System;
using System.Collections.Generic;
namespace Biskilog_Accounting.Shared.ClientContractModels;
public partial class Databasemap
{
public int DbNo { get; set; }
public string DbName { get; set; } = null!;
public int ClientId { get; set; }
}

16
Shared/ClientContractModels/Siteaccesspermission.cs

@ -0,0 +1,16 @@
using System;
using System.Collections.Generic;
namespace Biskilog_Accounting.Shared.ClientContractModels;
public partial class Siteaccesspermission
{
public int UserId { get; set; }
/// <summary>
/// businessIds could also been seen as branchID
/// </summary>
public int BusinessId { get; set; }
public int ClientId { get; set; }
}

27
Shared/ClientContractModels/Userauth.cs

@ -0,0 +1,27 @@
using System;
using System.Collections.Generic;
namespace Biskilog_Accounting.Shared.ClientContractModels;
public partial class Userauth
{
public int UserId { get; set; }
public int ClientId { get; set; }
public string? Username { get; set; }
public string? Email { get; set; }
public string? Passsword { get; set; }
public string? PhoneNumber { get; set; }
public int AuthType { get; set; }
public ulong Isactive { get; set; }
public ulong? Isowner { get; set; }
public DateTime? LastLogin { get; set; }
}

21
Shared/POSModels/Creditpurchase.cs

@ -0,0 +1,21 @@
using System;
using System.Collections.Generic;
namespace Biskilog_Accounting.Shared.POSModels;
public partial class Creditpurchase
{
public string ReceiptId { get; set; } = null!;
public string BranchId { get; set; } = null!;
public DateTime Date { get; set; }
public decimal TotalBill { get; set; }
public decimal Paid { get; set; }
public string CustomerId { get; set; } = null!;
public string Status { get; set; } = null!;
}

25
Shared/POSModels/Customeraccount.cs

@ -0,0 +1,25 @@
using System;
using System.Collections.Generic;
namespace Biskilog_Accounting.Shared.POSModels;
public partial class Customeraccount
{
public string CustomerId { get; set; } = null!;
public string TransactionId { get; set; } = null!;
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; } = null!;
public string BranchId { get; set; } = null!;
public string CountId { get; set; } = null!;
}

21
Shared/POSModels/Productaltunit.cs

@ -0,0 +1,21 @@
using System;
using System.Collections.Generic;
namespace Biskilog_Accounting.Shared.POSModels;
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; } = null!;
}

15
Shared/POSModels/Restocklevel.cs

@ -0,0 +1,15 @@
using System;
using System.Collections.Generic;
namespace Biskilog_Accounting.Shared.POSModels;
public partial class Restocklevel
{
public string ProductId { get; set; } = null!;
public string BranchId { get; set; } = null!;
public int? WarnLevel { get; set; }
public string? Unit { get; set; }
}

19
Shared/POSModels/Systemuserrole.cs

@ -0,0 +1,19 @@
using System;
using System.Collections.Generic;
namespace Biskilog_Accounting.Shared.POSModels;
public partial class Systemuserrole
{
public string? Roles { get; set; }
public sbyte? Owner { get; set; }
public sbyte? Manager { get; set; }
public sbyte? Assist { get; set; }
public sbyte? Cashier { get; set; }
public int Id { get; set; }
}

19
Shared/POSModels/Tblbranch.cs

@ -0,0 +1,19 @@
using System;
using System.Collections.Generic;
namespace Biskilog_Accounting.Shared.POSModels;
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; }
}

13
Shared/POSModels/Tblbrand.cs

@ -0,0 +1,13 @@
using System;
using System.Collections.Generic;
namespace Biskilog_Accounting.Shared.POSModels;
public partial class Tblbrand
{
public string Id { get; set; } = null!;
public string BranchId { get; set; } = null!;
public string? Brand { get; set; }
}

17
Shared/POSModels/Tblcancelledtransaction.cs

@ -0,0 +1,17 @@
using System;
using System.Collections.Generic;
namespace Biskilog_Accounting.Shared.POSModels;
public partial class Tblcancelledtransaction
{
public string? Transno { get; set; }
public DateTime? DateCancelled { get; set; }
public string? CancelledBy { get; set; }
public string BranchId { get; set; } = null!;
public string CountId { get; set; } = null!;
}

31
Shared/POSModels/Tblcart.cs

@ -0,0 +1,31 @@
using System;
using System.Collections.Generic;
namespace Biskilog_Accounting.Shared.POSModels;
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? Unit { get; set; }
public decimal? Costprice { get; set; }
public string BranchId { get; set; } = null!;
public string CountId { get; set; } = null!;
}

13
Shared/POSModels/Tblcategory.cs

@ -0,0 +1,13 @@
using System;
using System.Collections.Generic;
namespace Biskilog_Accounting.Shared.POSModels;
public partial class Tblcategory
{
public string Id { get; set; } = null!;
public string BranchId { get; set; } = null!;
public string? Category { get; set; }
}

21
Shared/POSModels/Tblcompanydetail.cs

@ -0,0 +1,21 @@
using System;
using System.Collections.Generic;
namespace Biskilog_Accounting.Shared.POSModels;
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; }
}

35
Shared/POSModels/Tblcustomer.cs

@ -0,0 +1,35 @@
using System;
using System.Collections.Generic;
namespace Biskilog_Accounting.Shared.POSModels;
public partial class Tblcustomer
{
public string CustomerId { get; set; } = null!;
public string BranchId { 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? 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; }
}

15
Shared/POSModels/Tblcustomerpurchase.cs

@ -0,0 +1,15 @@
using System;
using System.Collections.Generic;
namespace Biskilog_Accounting.Shared.POSModels;
public partial class Tblcustomerpurchase
{
public string? CustomerId { get; set; }
public string? TransactionId { get; set; }
public string BranchId { get; set; } = null!;
public string CountId { get; set; } = null!;
}

21
Shared/POSModels/Tbldeliverydetail.cs

@ -0,0 +1,21 @@
using System;
using System.Collections.Generic;
namespace Biskilog_Accounting.Shared.POSModels;
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 string BranchId { get; set; } = null!;
}

25
Shared/POSModels/Tbldeliveryhead.cs

@ -0,0 +1,25 @@
using System;
using System.Collections.Generic;
namespace Biskilog_Accounting.Shared.POSModels;
public partial class Tbldeliveryhead
{
public string DeliveryId { get; set; } = null!;
public string BranchId { 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; }
}

25
Shared/POSModels/Tbldeliveryrecipient.cs

@ -0,0 +1,25 @@
using System;
using System.Collections.Generic;
namespace Biskilog_Accounting.Shared.POSModels;
public partial class Tbldeliveryrecipient
{
public string DeliveryId { get; set; } = null!;
public string BranchId { 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 DateOnly? FromDate { get; set; }
public DateOnly? ToDate { get; set; }
}

19
Shared/POSModels/Tbldiscountlog.cs

@ -0,0 +1,19 @@
using System;
using System.Collections.Generic;
namespace Biskilog_Accounting.Shared.POSModels;
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; } = null!;
public string CountId { get; set; } = null!;
}

33
Shared/POSModels/Tbldriver.cs

@ -0,0 +1,33 @@
using System;
using System.Collections.Generic;
namespace Biskilog_Accounting.Shared.POSModels;
public partial class Tbldriver
{
public string DriverId { get; set; } = null!;
public string BranchId { get; set; } = null!;
public string? Firstname { get; set; }
public string? Surname { get; set; }
public string? Middlename { get; set; }
public DateOnly? 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? Status { get; set; }
}

15
Shared/POSModels/Tblinventory.cs

@ -0,0 +1,15 @@
using System;
using System.Collections.Generic;
namespace Biskilog_Accounting.Shared.POSModels;
public partial class Tblinventory
{
public string? Pcode { get; set; }
public int? Quantity { get; set; }
public string BranchId { get; set; } = null!;
public string CountId { get; set; } = null!;
}

17
Shared/POSModels/Tblinventoryentry.cs

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

29
Shared/POSModels/Tblinvoice.cs

@ -0,0 +1,29 @@
using System;
using System.Collections.Generic;
namespace Biskilog_Accounting.Shared.POSModels;
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 DateOnly? DateGenerated { get; set; }
public string? Status { get; set; }
public string? GeneratedBy { get; set; }
public string BranchId { get; set; } = null!;
public string CountId { get; set; } = null!;
}

19
Shared/POSModels/Tblpricechange.cs

@ -0,0 +1,19 @@
using System;
using System.Collections.Generic;
namespace Biskilog_Accounting.Shared.POSModels;
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; } = null!;
public string CountId { get; set; } = null!;
}

31
Shared/POSModels/Tblproduct.cs

@ -0,0 +1,31 @@
using System;
using System.Collections.Generic;
namespace Biskilog_Accounting.Shared.POSModels;
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? Status { get; set; }
public string BranchId { get; set; } = null!;
public string CountId { get; set; } = null!;
}

19
Shared/POSModels/Tbltruck.cs

@ -0,0 +1,19 @@
using System;
using System.Collections.Generic;
namespace Biskilog_Accounting.Shared.POSModels;
public partial class Tbltruck
{
public string TruckId { get; set; } = null!;
public string BranchId { get; set; } = null!;
public string? LicensePlate { get; set; }
public string? Brand { get; set; }
public string? Driver { get; set; }
public decimal? Weight { get; set; }
}

19
Shared/POSModels/TbltruckDrivermapping.cs

@ -0,0 +1,19 @@
using System;
using System.Collections.Generic;
namespace Biskilog_Accounting.Shared.POSModels;
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 string BranchId { get; set; } = null!;
}

21
Shared/POSModels/Tbltruckassignment.cs

@ -0,0 +1,21 @@
using System;
using System.Collections.Generic;
namespace Biskilog_Accounting.Shared.POSModels;
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 string BranchId { get; set; } = null!;
}

19
Shared/POSModels/Tbltruckinventory.cs

@ -0,0 +1,19 @@
using System;
using System.Collections.Generic;
namespace Biskilog_Accounting.Shared.POSModels;
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 string BranchId { get; set; } = null!;
}

33
Shared/POSModels/Tbluser.cs

@ -0,0 +1,33 @@
using System;
using System.Collections.Generic;
namespace Biskilog_Accounting.Shared.POSModels;
public partial class Tbluser
{
public string Username { get; set; } = null!;
public string BranchId { 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; }
}

21
Shared/POSModels/Tbstock.cs

@ -0,0 +1,21 @@
using System;
using System.Collections.Generic;
namespace Biskilog_Accounting.Shared.POSModels;
public partial class Tbstock
{
public string? Refno { get; set; }
public string? Pcode { get; set; }
public int? Qty { get; set; }
public DateOnly? Sdate { get; set; }
public string? Stockinby { get; set; }
public string BranchId { get; set; } = null!;
public string CountId { get; set; } = null!;
}

17
Shared/POSModels/Unitofmeasure.cs

@ -0,0 +1,17 @@
using System;
using System.Collections.Generic;
namespace Biskilog_Accounting.Shared.POSModels;
public partial class Unitofmeasure
{
public string UnitCode { get; set; } = null!;
public string BranchId { get; set; } = null!;
public string? Unitname { get; set; }
public string? Unitshort { get; set; }
public string? Status { get; set; }
}
Loading…
Cancel
Save