master
editor 5 months ago
commit 2df6cf8ad1

@ -0,0 +1,15 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
IIS configuration sections.
For schema documentation, see
%IIS_BIN%\config\schema\IIS_schema.xml.
Please make a backup of this file before making any changes to it.
NOTE: The following environment variables are available to be used
within this file and are understood by the IIS Express.
%IIS_USER_HOME% - The IIS Express home directory for the user
%IIS_SITES_HOME% - The default home directory for sites

@ -0,0 +1,50 @@
小型收银系统
一、源码描述
WPF小型收银系统
环境VS2022 Mysql5.7 SqlServer2019
二、功能介绍
小型收银系统采用前后端分离模式,后端使用.Net6+mysql,前端使用WPF+.Net4.7.2
1登录
2收银
3订单查询
4销售商品查询
5商品商品价格配置
6商品分类
7商品配置
8店铺配置
9账号配置
10打印配置
三、注意事项
1,后端SaleMarket在appsetting.json中配置数据库连接
2,前端SaleWPF在config.ini中配置api接口地址
默认商品编号1001 账号:admin 密码:123456
作者: daifeiming
如需获得该源码的视频、更新等更多资料请访问: https://www.51aspx.com/Code/WPFCashPayMgrSystem
------------------------------------------------------------------------------------------------
源码服务专家
官网: https://www.51aspx.com
讨论圈: https://club.51aspx.com/
平台声明:
1.51Aspx平台上提供下载的资源为免费、共享、商业三类源码,其中免费和共享源码仅供个人学习和研究使用,商业源码请在相应的授权许可条件下使用;
2.51Aspx平台对提供下载的软件及其它资源不拥有任何权利,其版权归属源码合法拥有者所有;
3.著作权人发现本网站载有侵害其合法权益的内容或作品,请与我们联系( 登录官网与客服反馈或发送邮件到support@51Aspx.com
4.51Aspx平台不保证提供的下载资源的准确性、安全性和完整性;
友情提示:
一般数据库文件默认在 DB_51Aspx 文件夹下
默认账号密码一般均为51Aspx
关于源码使用常见问题及解决方案,请参阅: https://www.51aspx.com/Help

@ -0,0 +1,9 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>net6.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>disable</Nullable>
</PropertyGroup>
</Project>

@ -0,0 +1,15 @@
using System.Security.Cryptography;
using System.Text;
namespace DM.Core.Helper
{
public class DESEncrypt
{
#region md5
/// <summary>
/// 32位MD5加密
/// </summary>
/// <param name="input"></param>
/// <returns></returns>
public static string Md5Hash(string input)
{

@ -0,0 +1,15 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace DM.Core.Helper
{
public class TimeHelper
{
/// <summary>
/// 获取秒时间戳
/// </summary>
/// <param name="date"></param>
/// <returns></returns>

@ -0,0 +1,15 @@
{
"runtimeTarget": {
"name": ".NETCoreApp,Version=v6.0",
"signature": ""
},
"compilationOptions": {},
"targets": {
".NETCoreApp,Version=v6.0": {
"DM.Core/1.0.0": {
"runtime": {
"DM.Core.dll": {}
}
}
}
},

@ -0,0 +1,15 @@
{
"format": 1,
"restore": {
"C:\\Users\\coder\\Desktop\\2024Code\\3\\20240305\\小型收银系统源码_f1ccdae3\\DM.Core\\DM.Core.csproj": {}
},
"projects": {
"C:\\Users\\coder\\Desktop\\2024Code\\3\\20240305\\小型收银系统源码_f1ccdae3\\DM.Core\\DM.Core.csproj": {
"version": "1.0.0",
"restore": {
"projectUniqueName": "C:\\Users\\coder\\Desktop\\2024Code\\3\\20240305\\小型收银系统源码_f1ccdae3\\DM.Core\\DM.Core.csproj",
"projectName": "DM.Core",
"projectPath": "C:\\Users\\coder\\Desktop\\2024Code\\3\\20240305\\小型收银系统源码_f1ccdae3\\DM.Core\\DM.Core.csproj",
"packagesPath": "C:\\Users\\coder\\.nuget\\packages\\",
"outputPath": "C:\\Users\\coder\\Desktop\\2024Code\\3\\20240305\\小型收银系统源码_f1ccdae3\\DM.Core\\obj\\",
"projectStyle": "PackageReference",

@ -0,0 +1,4 @@
// <autogenerated />
using System;
using System.Reflection;
[assembly: global::System.Runtime.Versioning.TargetFrameworkAttribute(".NETCoreApp,Version=v6.0", FrameworkDisplayName = ".NET 6.0")]

@ -0,0 +1,15 @@
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Runtime Version:4.0.30319.42000
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
using System;
using System.Reflection;
[assembly: System.Reflection.AssemblyCompanyAttribute("DM.Core")]
[assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")]

@ -0,0 +1,8 @@
// <auto-generated/>
global using global::System;
global using global::System.Collections.Generic;
global using global::System.IO;
global using global::System.Linq;
global using global::System.Net.Http;
global using global::System.Threading;
global using global::System.Threading.Tasks;

@ -0,0 +1,15 @@
E:\gitee\SaleMarkes\src\DM.Core\bin\Debug\net6.0\DM.Core.deps.json
E:\gitee\SaleMarkes\src\DM.Core\bin\Debug\net6.0\DM.Core.dll
E:\gitee\SaleMarkes\src\DM.Core\bin\Debug\net6.0\DM.Core.pdb
E:\gitee\SaleMarkes\src\DM.Core\obj\Debug\net6.0\DM.Core.GeneratedMSBuildEditorConfig.editorconfig
E:\gitee\SaleMarkes\src\DM.Core\obj\Debug\net6.0\DM.Core.AssemblyInfoInputs.cache
E:\gitee\SaleMarkes\src\DM.Core\obj\Debug\net6.0\DM.Core.AssemblyInfo.cs
E:\gitee\SaleMarkes\src\DM.Core\obj\Debug\net6.0\DM.Core.csproj.CoreCompileInputs.cache
E:\gitee\SaleMarkes\src\DM.Core\obj\Debug\net6.0\DM.Core.dll
E:\gitee\SaleMarkes\src\DM.Core\obj\Debug\net6.0\refint\DM.Core.dll
E:\gitee\SaleMarkes\src\DM.Core\obj\Debug\net6.0\DM.Core.pdb
E:\gitee\SaleMarkes\src\DM.Core\obj\Debug\net6.0\ref\DM.Core.dll
C:\Users\coder\Desktop\2024Code\3\20240305\小型收银系统源码_f1ccdae3\DM.Core\bin\Debug\net6.0\DM.Core.deps.json
C:\Users\coder\Desktop\2024Code\3\20240305\小型收银系统源码_f1ccdae3\DM.Core\bin\Debug\net6.0\DM.Core.dll
C:\Users\coder\Desktop\2024Code\3\20240305\小型收银系统源码_f1ccdae3\DM.Core\bin\Debug\net6.0\DM.Core.pdb
C:\Users\coder\Desktop\2024Code\3\20240305\小型收银系统源码_f1ccdae3\DM.Core\obj\Debug\net6.0\DM.Core.GeneratedMSBuildEditorConfig.editorconfig

@ -0,0 +1,15 @@
{
"version": 3,
"targets": {
"net6.0": {}
},
"libraries": {},
"projectFileDependencyGroups": {
"net6.0": []
},
"packageFolders": {
"C:\\Users\\coder\\.nuget\\packages\\": {},
"C:\\Program Files (x86)\\Microsoft Visual Studio\\Shared\\NuGetPackages": {},
"C:\\Program Files\\dotnet\\sdk\\NuGetFallbackFolder": {}
},
"project": {

@ -0,0 +1,9 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>net6.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>disable</Nullable>
</PropertyGroup>
</Project>

@ -0,0 +1,15 @@
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace DM.Domain
{
/// <summary>
/// 商品
/// </summary>
[Table("T_Goods")]
public class T_Goods

@ -0,0 +1,15 @@
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace DM.Domain
{
[Table("T_GoodsStock")]
public class T_GoodsStock
{
/// <summary>

@ -0,0 +1,15 @@
using System.ComponentModel.DataAnnotations.Schema;
using System.ComponentModel.DataAnnotations;
namespace DM.Domain
{
/// <summary>
/// 商品类型
/// </summary>
[Table("T_GoodsType")]
public class T_GoodsType
{
/// <summary>
/// 主键
/// </summary>
[Key]

@ -0,0 +1,15 @@
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace DM.Domain
{
/// <summary>
/// 商品计量单位
/// </summary>
[Table("T_GoodsUnit")]
public class T_GoodsUnit

@ -0,0 +1,15 @@
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace DM.Domain
{
/// <summary>
/// 入库单
/// </summary>
[Table("T_InsertOrder")]
public class T_InsertOrder

@ -0,0 +1,15 @@
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace DM.Domain
{
/// <summary>
/// 入库单明细
/// </summary>
[Table("T_InsertOrderDetail")]

@ -0,0 +1,15 @@
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace DM.Domain
{
[Table("T_Order")]
public class T_Order
{
[Key]
public string str_OrderNo { get; set; }

@ -0,0 +1,15 @@
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace DM.Domain
{
[Table("T_OrderAcc")]
public class T_OrderAcc
{
[Key]
public string str_AccNo { get; set; }

@ -0,0 +1,15 @@
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace DM.Domain
{
[Table("T_OrderDetail")]
public class T_OrderDetail
{
/// <summary>
/// 明细id

@ -0,0 +1,15 @@
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace DM.Domain
{
/// <summary>
/// 支付方式
/// </summary>
[Table("T_PcCode")]
public class T_PcCode

@ -0,0 +1,15 @@
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace DM.Domain
{
/// <summary>
/// 店铺
/// </summary>
[Table("T_Shop")]
public class T_Shop

@ -0,0 +1,15 @@
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace DM.Domain
{
/// <summary>
/// 商铺货物价格
/// </summary>
[Table("T_ShopGoods")]
public class T_ShopGoods

@ -0,0 +1,15 @@
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace DM.Domain
{
/// <summary>
/// 供应商
/// </summary>
[Table("T_Supplier")]
public class T_Supplier

@ -0,0 +1,15 @@
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace DM.Domain
{
/// <summary>
/// 管理员
/// </summary>
[Table("T_User")]
public class T_User

@ -0,0 +1,15 @@
{
"runtimeTarget": {
"name": ".NETCoreApp,Version=v6.0",
"signature": ""
},
"compilationOptions": {},
"targets": {
".NETCoreApp,Version=v6.0": {
"DM.Domain/1.0.0": {
"runtime": {
"DM.Domain.dll": {}
}
}
}
},

@ -0,0 +1,15 @@
{
"format": 1,
"restore": {
"C:\\Users\\coder\\Desktop\\2024Code\\3\\20240305\\小型收银系统源码_f1ccdae3\\DM.Domain\\DM.Domain.csproj": {}
},
"projects": {
"C:\\Users\\coder\\Desktop\\2024Code\\3\\20240305\\小型收银系统源码_f1ccdae3\\DM.Domain\\DM.Domain.csproj": {
"version": "1.0.0",
"restore": {
"projectUniqueName": "C:\\Users\\coder\\Desktop\\2024Code\\3\\20240305\\小型收银系统源码_f1ccdae3\\DM.Domain\\DM.Domain.csproj",
"projectName": "DM.Domain",
"projectPath": "C:\\Users\\coder\\Desktop\\2024Code\\3\\20240305\\小型收银系统源码_f1ccdae3\\DM.Domain\\DM.Domain.csproj",
"packagesPath": "C:\\Users\\coder\\.nuget\\packages\\",
"outputPath": "C:\\Users\\coder\\Desktop\\2024Code\\3\\20240305\\小型收银系统源码_f1ccdae3\\DM.Domain\\obj\\",
"projectStyle": "PackageReference",

@ -0,0 +1,4 @@
// <autogenerated />
using System;
using System.Reflection;
[assembly: global::System.Runtime.Versioning.TargetFrameworkAttribute(".NETCoreApp,Version=v6.0", FrameworkDisplayName = ".NET 6.0")]

@ -0,0 +1,15 @@
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Runtime Version:4.0.30319.42000
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
using System;
using System.Reflection;
[assembly: System.Reflection.AssemblyCompanyAttribute("DM.Domain")]
[assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")]

@ -0,0 +1,8 @@
// <auto-generated/>
global using global::System;
global using global::System.Collections.Generic;
global using global::System.IO;
global using global::System.Linq;
global using global::System.Net.Http;
global using global::System.Threading;
global using global::System.Threading.Tasks;

@ -0,0 +1,15 @@
E:\gitee\SaleMarkes\src\DM.Domain\bin\Debug\net6.0\DM.Domain.deps.json
E:\gitee\SaleMarkes\src\DM.Domain\bin\Debug\net6.0\DM.Domain.dll
E:\gitee\SaleMarkes\src\DM.Domain\bin\Debug\net6.0\DM.Domain.pdb
E:\gitee\SaleMarkes\src\DM.Domain\obj\Debug\net6.0\DM.Domain.GeneratedMSBuildEditorConfig.editorconfig
E:\gitee\SaleMarkes\src\DM.Domain\obj\Debug\net6.0\DM.Domain.AssemblyInfoInputs.cache
E:\gitee\SaleMarkes\src\DM.Domain\obj\Debug\net6.0\DM.Domain.AssemblyInfo.cs
E:\gitee\SaleMarkes\src\DM.Domain\obj\Debug\net6.0\DM.Domain.csproj.CoreCompileInputs.cache
E:\gitee\SaleMarkes\src\DM.Domain\obj\Debug\net6.0\DM.Domain.dll
E:\gitee\SaleMarkes\src\DM.Domain\obj\Debug\net6.0\refint\DM.Domain.dll
E:\gitee\SaleMarkes\src\DM.Domain\obj\Debug\net6.0\DM.Domain.pdb
E:\gitee\SaleMarkes\src\DM.Domain\obj\Debug\net6.0\ref\DM.Domain.dll
C:\Users\coder\Desktop\2024Code\3\20240305\小型收银系统源码_f1ccdae3\DM.Domain\bin\Debug\net6.0\DM.Domain.deps.json
C:\Users\coder\Desktop\2024Code\3\20240305\小型收银系统源码_f1ccdae3\DM.Domain\bin\Debug\net6.0\DM.Domain.dll
C:\Users\coder\Desktop\2024Code\3\20240305\小型收银系统源码_f1ccdae3\DM.Domain\bin\Debug\net6.0\DM.Domain.pdb
C:\Users\coder\Desktop\2024Code\3\20240305\小型收银系统源码_f1ccdae3\DM.Domain\obj\Debug\net6.0\DM.Domain.GeneratedMSBuildEditorConfig.editorconfig

@ -0,0 +1,15 @@
{
"version": 3,
"targets": {
"net6.0": {}
},
"libraries": {},
"projectFileDependencyGroups": {
"net6.0": []
},
"packageFolders": {
"C:\\Users\\coder\\.nuget\\packages\\": {},
"C:\\Program Files (x86)\\Microsoft Visual Studio\\Shared\\NuGetPackages": {},
"C:\\Program Files\\dotnet\\sdk\\NuGetFallbackFolder": {}
},
"project": {

@ -0,0 +1,15 @@
using DM.Service;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace DM.Job
{
public class BackgroundJobService
{
private readonly IOrderService _orderService;
public BackgroundJobService(IOrderService orderService)
{

@ -0,0 +1,15 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>net6.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Hangfire" Version="1.8.11" />
<PackageReference Include="Hangfire.AspNetCore" Version="1.8.11" />
<PackageReference Include="Hangfire.Core" Version="1.8.11" />
<PackageReference Include="Hangfire.MemoryStorage" Version="1.8.0" />
</ItemGroup>

@ -0,0 +1,15 @@
using DM.Service;
using Hangfire;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace DM.Job
{
public class HangfireJob
{
public static void DetailNoPayOrder()
{

@ -0,0 +1,15 @@
using Microsoft.Extensions.DependencyInjection;
using Hangfire;
using Hangfire.MemoryStorage;
using Microsoft.AspNetCore.Builder;
namespace DM.Job
{
public static class HangfireServiceExtends
{
public static IServiceCollection AddMyHangfire(this IServiceCollection services)
{
services.AddHangfire(configuration => configuration.UseMemoryStorage());
services.AddHangfireServer();

@ -0,0 +1,15 @@
{
"runtimeTarget": {
"name": ".NETCoreApp,Version=v6.0",
"signature": ""
},
"compilationOptions": {},
"targets": {
".NETCoreApp,Version=v6.0": {
"DM.Job/1.0.0": {
"dependencies": {
"DM.Service": "1.0.0",
"Hangfire": "1.8.11",
"Hangfire.AspNetCore": "1.8.11",
"Hangfire.Core": "1.8.11",
"Hangfire.MemoryStorage": "1.8.0"

@ -0,0 +1,15 @@
{
"format": 1,
"restore": {
"C:\\Users\\coder\\Desktop\\2024Code\\3\\20240305\\小型收银系统源码_f1ccdae3\\DM.Job\\DM.Job.csproj": {}
},
"projects": {
"C:\\Users\\coder\\Desktop\\2024Code\\3\\20240305\\小型收银系统源码_f1ccdae3\\DM.Core\\DM.Core.csproj": {
"version": "1.0.0",
"restore": {
"projectUniqueName": "C:\\Users\\coder\\Desktop\\2024Code\\3\\20240305\\小型收银系统源码_f1ccdae3\\DM.Core\\DM.Core.csproj",
"projectName": "DM.Core",
"projectPath": "C:\\Users\\coder\\Desktop\\2024Code\\3\\20240305\\小型收银系统源码_f1ccdae3\\DM.Core\\DM.Core.csproj",
"packagesPath": "C:\\Users\\coder\\.nuget\\packages\\",
"outputPath": "C:\\Users\\coder\\Desktop\\2024Code\\3\\20240305\\小型收银系统源码_f1ccdae3\\DM.Core\\obj\\",
"projectStyle": "PackageReference",

@ -0,0 +1,4 @@
// <autogenerated />
using System;
using System.Reflection;
[assembly: global::System.Runtime.Versioning.TargetFrameworkAttribute(".NETCoreApp,Version=v6.0", FrameworkDisplayName = ".NET 6.0")]

@ -0,0 +1,15 @@
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Runtime Version:4.0.30319.42000
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
using System;
using System.Reflection;
[assembly: System.Reflection.AssemblyCompanyAttribute("DM.Job")]
[assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")]

@ -0,0 +1,8 @@
// <auto-generated/>
global using global::System;
global using global::System.Collections.Generic;
global using global::System.IO;
global using global::System.Linq;
global using global::System.Net.Http;
global using global::System.Threading;
global using global::System.Threading.Tasks;

@ -0,0 +1,15 @@
E:\gitee\SaleMarkes\src\DM.Job\bin\Debug\net6.0\DM.Job.deps.json
E:\gitee\SaleMarkes\src\DM.Job\bin\Debug\net6.0\DM.Job.dll
E:\gitee\SaleMarkes\src\DM.Job\bin\Debug\net6.0\DM.Job.pdb
E:\gitee\SaleMarkes\src\DM.Job\bin\Debug\net6.0\DM.Core.dll
E:\gitee\SaleMarkes\src\DM.Job\bin\Debug\net6.0\DM.Domain.dll
E:\gitee\SaleMarkes\src\DM.Job\bin\Debug\net6.0\DM.Models.dll
E:\gitee\SaleMarkes\src\DM.Job\bin\Debug\net6.0\DM.Repository.dll
E:\gitee\SaleMarkes\src\DM.Job\bin\Debug\net6.0\DM.Service.dll
E:\gitee\SaleMarkes\src\DM.Job\bin\Debug\net6.0\DM.Service.pdb
E:\gitee\SaleMarkes\src\DM.Job\bin\Debug\net6.0\DM.Core.pdb
E:\gitee\SaleMarkes\src\DM.Job\bin\Debug\net6.0\DM.Domain.pdb
E:\gitee\SaleMarkes\src\DM.Job\bin\Debug\net6.0\DM.Models.pdb
E:\gitee\SaleMarkes\src\DM.Job\bin\Debug\net6.0\DM.Repository.pdb
E:\gitee\SaleMarkes\src\DM.Job\obj\Debug\net6.0\DM.Job.csproj.AssemblyReference.cache
E:\gitee\SaleMarkes\src\DM.Job\obj\Debug\net6.0\DM.Job.GeneratedMSBuildEditorConfig.editorconfig

@ -0,0 +1,15 @@
{
"version": 3,
"targets": {
"net6.0": {
"AutoMapper/12.0.1": {
"type": "package",
"dependencies": {
"Microsoft.CSharp": "4.7.0"
},
"compile": {
"lib/netstandard2.1/AutoMapper.dll": {
"related": ".xml"
}
},
"runtime": {

@ -0,0 +1,15 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace DM.Models
{
public class BaseSave
{
/// <summary>
/// 操作人
/// </summary>
public int OptId { get; set; }

@ -0,0 +1,15 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace DM.Models
{
public class CurrentLoginUser
{
/// <summary>
/// 用户id
/// </summary>
public int Id { get; set; }

@ -0,0 +1,13 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>net6.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>disable</Nullable>
</PropertyGroup>
<ItemGroup>
<ProjectReference Include="..\DM.Domain\DM.Domain.csproj" />
</ItemGroup>
</Project>

@ -0,0 +1,15 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace DM.Models.Goods
{
public class MoveGoodsType:BaseSave
{
public int GoodsId { get; set; }
public int ToTypeId { get; set; }
}
}

@ -0,0 +1,15 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace DM.Models.Goods
{
public class SaveGoods:BaseSave
{
public int Ing_GoodsID { get; set; }
/// <summary>
/// 商品分类id

@ -0,0 +1,15 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace DM.Models.Goods
{
public class SaveShopGoods:BaseSave
{
public int GoodsId { get; set; }
public decimal GoodsPrice { get; set; }
}
}

@ -0,0 +1,15 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace DM.Models.Goods
{
public class SearchGoods:BasePage
{
public string BarCode { get; set; }
public string Name { get; set;}
public int TypeId { get; set; }

@ -0,0 +1,15 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace DM.Models.GoodsType
{
public class SaveGoodsType:BaseSave
{
public int Ing_GoodTypeID { get; set; }
/// <summary>
/// 父id
/// </summary>

@ -0,0 +1,15 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace DM.Models.GoodsUnit
{
public class SaveUnit:BaseSave
{
public int Ing_UnitID { get; set; }
/// <summary>
/// 单位名称
/// </summary>

@ -0,0 +1,15 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace DM.Models.InsertOrder
{
public class InsertOrderView
{
public InsertOrderInfo Order { get; set; }
public List<InsertOrderDetailInfo> Details { get; set; }=new List<InsertOrderDetailInfo>();
}

@ -0,0 +1,15 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace DM.Models.InsertOrder
{
public class SaveInsertOrderDetail:BaseSave
{
public string OrderNo { get; set; }
public string DetailNo { get; set; }

@ -0,0 +1,15 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace DM.Models.InsertOrder
{
public class SearchInsertOrder:BasePage
{
public string OrderNo { get; set; }
public string StartDate { get; set; }
public string EndDate { get; set; }

@ -0,0 +1,15 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace DM.Models.Order
{
public class CreatOrder:BaseSave
{
public string MAC { get; set; }
public string CPU { get; set; }
}
}

@ -0,0 +1,15 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace DM.Models.Order
{
public class OrderSum
{
public int OrderNums { get; set; }
public decimal OrderMoney { get; set; }
public string Date { get; set; }

@ -0,0 +1,15 @@
using DM.Domain;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace DM.Models.Order
{
public class OrderView
{
public OrderView()
{
Details = new List<OrderDetail>();
Accs = new List<OrderAcc>();

@ -0,0 +1,15 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace DM.Models.Order
{
public class SaveOrder:BaseSave
{
public SaveOrder()
{
Details = new List<OrderDetailDto>();
Accs = new List<OrderAccDto>();
}

@ -0,0 +1,15 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace DM.Models.Order
{
public class SearchOrder:BasePage
{
public string OrderNo { get; set; }
public string StartDate { get; set; }
public string EndDate { get; set; }

@ -0,0 +1,13 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace DM.Models
{
public class RefVal
{
public int total { get; set; }
}
}

@ -0,0 +1,15 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace DM.Models
{
public interface IResponResult
{
}
public class ResponResult<T> : IResponResult

@ -0,0 +1,15 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace DM.Models.Shop
{
public class SaveShop:BaseSave
{
public int Ing_ShopID { get; set; }
/// <summary>
/// 店铺编码

@ -0,0 +1,15 @@
namespace DM.Models.User
{
/// <summary>
/// 登录
/// </summary>
public class LoginUser
{
/// <summary>
/// 店铺编号
/// </summary>
public string ShopCode { get; set; }
/// <summary>
/// 账号
/// </summary>

@ -0,0 +1,15 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace DM.Models.User
{
public class ModifyPassword : BaseSave
{
public int id { get; set; }
public string password { get; set; }
public string confirmpassword { get; set; }
}

@ -0,0 +1,15 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace DM.Models.User
{
/// <summary>
/// 保存管理员
/// </summary>
public class SaveUser : BaseSave
{

@ -0,0 +1,15 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace DM.Models.User
{
public class SetState:BaseSave
{
public int UserId { get; set; }
public int State { get; set; }
}
}

@ -0,0 +1,15 @@
{
"runtimeTarget": {
"name": ".NETCoreApp,Version=v6.0",
"signature": ""
},
"compilationOptions": {},
"targets": {
".NETCoreApp,Version=v6.0": {
"DM.Models/1.0.0": {
"dependencies": {
"DM.Domain": "1.0.0"
},
"runtime": {
"DM.Models.dll": {}
}

@ -0,0 +1,15 @@
{
"format": 1,
"restore": {
"C:\\Users\\coder\\Desktop\\2024Code\\3\\20240305\\小型收银系统源码_f1ccdae3\\DM.Models\\DM.Models.csproj": {}
},
"projects": {
"C:\\Users\\coder\\Desktop\\2024Code\\3\\20240305\\小型收银系统源码_f1ccdae3\\DM.Domain\\DM.Domain.csproj": {
"version": "1.0.0",
"restore": {
"projectUniqueName": "C:\\Users\\coder\\Desktop\\2024Code\\3\\20240305\\小型收银系统源码_f1ccdae3\\DM.Domain\\DM.Domain.csproj",
"projectName": "DM.Domain",
"projectPath": "C:\\Users\\coder\\Desktop\\2024Code\\3\\20240305\\小型收银系统源码_f1ccdae3\\DM.Domain\\DM.Domain.csproj",
"packagesPath": "C:\\Users\\coder\\.nuget\\packages\\",
"outputPath": "C:\\Users\\coder\\Desktop\\2024Code\\3\\20240305\\小型收银系统源码_f1ccdae3\\DM.Domain\\obj\\",
"projectStyle": "PackageReference",

@ -0,0 +1,4 @@
// <autogenerated />
using System;
using System.Reflection;
[assembly: global::System.Runtime.Versioning.TargetFrameworkAttribute(".NETCoreApp,Version=v6.0", FrameworkDisplayName = ".NET 6.0")]

@ -0,0 +1,15 @@
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Runtime Version:4.0.30319.42000
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
using System;
using System.Reflection;
[assembly: System.Reflection.AssemblyCompanyAttribute("DM.Models")]
[assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")]

@ -0,0 +1,8 @@
// <auto-generated/>
global using global::System;
global using global::System.Collections.Generic;
global using global::System.IO;
global using global::System.Linq;
global using global::System.Net.Http;
global using global::System.Threading;
global using global::System.Threading.Tasks;

@ -0,0 +1,15 @@
E:\gitee\SaleMarkes\src\DM.Models\bin\Debug\net6.0\DM.Models.deps.json
E:\gitee\SaleMarkes\src\DM.Models\bin\Debug\net6.0\DM.Models.dll
E:\gitee\SaleMarkes\src\DM.Models\bin\Debug\net6.0\DM.Models.pdb
E:\gitee\SaleMarkes\src\DM.Models\bin\Debug\net6.0\DM.Domain.dll
E:\gitee\SaleMarkes\src\DM.Models\bin\Debug\net6.0\DM.Domain.pdb
E:\gitee\SaleMarkes\src\DM.Models\obj\Debug\net6.0\DM.Models.csproj.AssemblyReference.cache
E:\gitee\SaleMarkes\src\DM.Models\obj\Debug\net6.0\DM.Models.GeneratedMSBuildEditorConfig.editorconfig
E:\gitee\SaleMarkes\src\DM.Models\obj\Debug\net6.0\DM.Models.AssemblyInfoInputs.cache
E:\gitee\SaleMarkes\src\DM.Models\obj\Debug\net6.0\DM.Models.AssemblyInfo.cs
E:\gitee\SaleMarkes\src\DM.Models\obj\Debug\net6.0\DM.Models.csproj.CoreCompileInputs.cache
E:\gitee\SaleMarkes\src\DM.Models\obj\Debug\net6.0\DM.Models.csproj.CopyComplete
E:\gitee\SaleMarkes\src\DM.Models\obj\Debug\net6.0\DM.Models.dll
E:\gitee\SaleMarkes\src\DM.Models\obj\Debug\net6.0\refint\DM.Models.dll
E:\gitee\SaleMarkes\src\DM.Models\obj\Debug\net6.0\DM.Models.pdb
E:\gitee\SaleMarkes\src\DM.Models\obj\Debug\net6.0\ref\DM.Models.dll

@ -0,0 +1,15 @@
{
"version": 3,
"targets": {
"net6.0": {
"DM.Domain/1.0.0": {
"type": "project",
"framework": ".NETCoreApp,Version=v6.0",
"compile": {
"bin/placeholder/DM.Domain.dll": {}
},
"runtime": {
"bin/placeholder/DM.Domain.dll": {}
}
}
}

@ -0,0 +1,15 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>net6.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>disable</Nullable>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Microsoft.EntityFrameworkCore" Version="6.0.26" />
<PackageReference Include="Microsoft.EntityFrameworkCore.Design" Version="6.0.26">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
<PackageReference Include="Microsoft.EntityFrameworkCore.SqlServer" Version="6.0.26" />

@ -0,0 +1,15 @@
using DM.Domain;
using Microsoft.EntityFrameworkCore;
namespace DM.Repository
{
public class DMContext:DbContext
{
public DMContext(DbContextOptions<DMContext> options) : base(options)
{
}
public DbSet<T_User> Users { get; set; }
public DbSet<T_Goods> Goods { get; set; }

@ -0,0 +1,15 @@
using DM.Domain;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace DM.Repository
{
public interface IGoodsRepository:IRepository<T_Goods>
{
Task<T_Goods> GetById(int id);
Task<T_Goods> GetByCode(string barCode);
}

@ -0,0 +1,15 @@
using DM.Domain;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace DM.Repository
{
public interface IGoodsStockRepository: IRepository<T_GoodsStock>
{
/// <summary>
/// 保存库存增量
/// </summary>
/// <param name="shopId"></param>

@ -0,0 +1,15 @@
using DM.Domain;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace DM.Repository
{
public interface IGoodsTypeRepository:IRepository<T_GoodsType>
{
Task<T_GoodsType> GetById(int id);
}
public class GoodsTypeRepository : Repository<T_GoodsType>, IGoodsTypeRepository

@ -0,0 +1,15 @@
using DM.Domain;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace DM.Repository
{
public interface IGoodsUnitRepository:IRepository<T_GoodsUnit>
{
Task<T_GoodsUnit> GetById(int id);
}
public class GoodsUnitRepository : Repository<T_GoodsUnit>, IGoodsUnitRepository

@ -0,0 +1,15 @@
using DM.Domain;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace DM.Repository
{
public interface IInsertOrderDetailRepository: IRepository<T_InsertOrderDetail>
{
}
public class InsertOrderDetailRepository : Repository<T_InsertOrderDetail>, IInsertOrderDetailRepository
{

@ -0,0 +1,15 @@
using DM.Domain;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace DM.Repository
{
public interface IInsertOrderRepository: IRepository<T_InsertOrder>
{
}
public class InsertOrderRepository : Repository<T_InsertOrder>, IInsertOrderRepository
{

@ -0,0 +1,15 @@
using DM.Domain;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace DM.Repository
{
public interface IOrderAccRepository: IRepository<T_OrderAcc>
{
}
public class OrderAccRepository : Repository<T_OrderAcc>, IOrderAccRepository
{

@ -0,0 +1,15 @@
using DM.Domain;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace DM.Repository
{
public interface IOrderDetailRepository: IRepository<T_OrderDetail>
{
}
public class OrderDetailRepository : Repository<T_OrderDetail>, IOrderDetailRepository
{

@ -0,0 +1,15 @@
using DM.Domain;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace DM.Repository
{
public interface IOrderRepository:IRepository<T_Order>
{
}
public class OrderRepository : Repository<T_Order>, IOrderRepository
{

@ -0,0 +1,15 @@
using DM.Domain;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace DM.Repository
{
public interface IPcCodeRepository: IRepository<T_PcCode>
{
}
public class PcCodeRepository : Repository<T_PcCode>, IPcCodeRepository
{

@ -0,0 +1,15 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Linq.Expressions;
using System.Text;
using System.Threading.Tasks;
namespace DM.Repository
{
public interface IRepository<TEntity>
where TEntity : class
{
#region 查询

@ -0,0 +1,15 @@
using DM.Domain;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace DM.Repository
{
public interface IShopGoodsRepository: IRepository<T_ShopGoods>
{
}
public class ShopGoodsRepository : Repository<T_ShopGoods>, IShopGoodsRepository
{

@ -0,0 +1,15 @@
using DM.Domain;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace DM.Repository
{
public interface IShopRepository: IRepository<T_Shop>
{
Task<T_Shop> GetByCode(string shopCode);
}

@ -0,0 +1,15 @@
using Microsoft.EntityFrameworkCore.Storage;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace DM.Repository
{
public interface IUnitOfWorK
{
DMContext Context { get; }
IDbContextTransaction tran { get; set; }

@ -0,0 +1,15 @@
using DM.Domain;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace DM.Repository
{
public interface IUserRepository : IRepository<T_User>
{
/// <summary>
/// 根据商店获取管理员
/// </summary>
/// <param name="shopId"></param>

@ -0,0 +1,15 @@
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.ChangeTracking;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Linq.Expressions;
using System.Text;
using System.Threading.Tasks;
namespace DM.Repository
{
public class Repository<TEntity> : IRepository<TEntity> where TEntity : class
{
/// <summary>
/// 数据库上下文

@ -0,0 +1,15 @@
{
"runtimeTarget": {
"name": ".NETCoreApp,Version=v6.0",
"signature": ""
},
"compilationOptions": {},
"targets": {
".NETCoreApp,Version=v6.0": {
"DM.Repository/1.0.0": {
"dependencies": {
"DM.Domain": "1.0.0",
"Microsoft.EntityFrameworkCore": "6.0.26",
"Microsoft.EntityFrameworkCore.Design": "6.0.26",
"Microsoft.EntityFrameworkCore.SqlServer": "6.0.26"
},

@ -0,0 +1,12 @@
{
"runtimeOptions": {
"tfm": "net6.0",
"framework": {
"name": "Microsoft.NETCore.App",
"version": "6.0.0"
},
"configProperties": {
"System.Reflection.NullabilityInfoContext.IsSupported": true
}
}
}

@ -0,0 +1,15 @@
{
"format": 1,
"restore": {
"C:\\Users\\coder\\Desktop\\2024Code\\3\\20240305\\小型收银系统源码_f1ccdae3\\DM.Repository\\DM.Repository.csproj": {}
},
"projects": {
"C:\\Users\\coder\\Desktop\\2024Code\\3\\20240305\\小型收银系统源码_f1ccdae3\\DM.Domain\\DM.Domain.csproj": {
"version": "1.0.0",
"restore": {
"projectUniqueName": "C:\\Users\\coder\\Desktop\\2024Code\\3\\20240305\\小型收银系统源码_f1ccdae3\\DM.Domain\\DM.Domain.csproj",
"projectName": "DM.Domain",
"projectPath": "C:\\Users\\coder\\Desktop\\2024Code\\3\\20240305\\小型收银系统源码_f1ccdae3\\DM.Domain\\DM.Domain.csproj",
"packagesPath": "C:\\Users\\coder\\.nuget\\packages\\",
"outputPath": "C:\\Users\\coder\\Desktop\\2024Code\\3\\20240305\\小型收银系统源码_f1ccdae3\\DM.Domain\\obj\\",
"projectStyle": "PackageReference",

@ -0,0 +1,4 @@
// <autogenerated />
using System;
using System.Reflection;
[assembly: global::System.Runtime.Versioning.TargetFrameworkAttribute(".NETCoreApp,Version=v6.0", FrameworkDisplayName = ".NET 6.0")]

@ -0,0 +1,15 @@
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Runtime Version:4.0.30319.42000
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
using System;
using System.Reflection;
[assembly: System.Reflection.AssemblyCompanyAttribute("DM.Repository")]
[assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")]

@ -0,0 +1,8 @@
// <auto-generated/>
global using global::System;
global using global::System.Collections.Generic;
global using global::System.IO;
global using global::System.Linq;
global using global::System.Net.Http;
global using global::System.Threading;
global using global::System.Threading.Tasks;

Some files were not shown because too many files have changed in this diff Show More

Loading…
Cancel
Save