commit 2df6cf8ad12837292b59ed16d07f150a15a1ac98 Author: editor <@51Aspx.com> Date: Tue Mar 5 13:26:46 2024 +0800 初始化 diff --git a/.vs/SaleMarket/config/applicationhost.config b/.vs/SaleMarket/config/applicationhost.config new file mode 100644 index 0000000..213e175 --- /dev/null +++ b/.vs/SaleMarket/config/applicationhost.config @@ -0,0 +1,15 @@ + + + + + + + + + + + + + diff --git a/SaleMarket/log4net.config b/SaleMarket/log4net.config new file mode 100644 index 0000000..43bc500 --- /dev/null +++ b/SaleMarket/log4net.config @@ -0,0 +1,15 @@ + + + + + + + + + + + + + + + diff --git a/SaleMarket/obj/Debug/net6.0/.NETCoreApp,Version=v6.0.AssemblyAttributes.cs b/SaleMarket/obj/Debug/net6.0/.NETCoreApp,Version=v6.0.AssemblyAttributes.cs new file mode 100644 index 0000000..ed92695 --- /dev/null +++ b/SaleMarket/obj/Debug/net6.0/.NETCoreApp,Version=v6.0.AssemblyAttributes.cs @@ -0,0 +1,4 @@ +// +using System; +using System.Reflection; +[assembly: global::System.Runtime.Versioning.TargetFrameworkAttribute(".NETCoreApp,Version=v6.0", FrameworkDisplayName = ".NET 6.0")] diff --git a/SaleMarket/obj/Debug/net6.0/SaleMarket.AssemblyInfo.cs b/SaleMarket/obj/Debug/net6.0/SaleMarket.AssemblyInfo.cs new file mode 100644 index 0000000..de5b4ac --- /dev/null +++ b/SaleMarket/obj/Debug/net6.0/SaleMarket.AssemblyInfo.cs @@ -0,0 +1,15 @@ +//------------------------------------------------------------------------------ +// +// 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. +// +//------------------------------------------------------------------------------ + +using System; +using System.Reflection; + +[assembly: System.Reflection.AssemblyCompanyAttribute("SaleMarket")] +[assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")] diff --git a/SaleMarket/obj/Debug/net6.0/SaleMarket.GlobalUsings.g.cs b/SaleMarket/obj/Debug/net6.0/SaleMarket.GlobalUsings.g.cs new file mode 100644 index 0000000..14d4e49 --- /dev/null +++ b/SaleMarket/obj/Debug/net6.0/SaleMarket.GlobalUsings.g.cs @@ -0,0 +1,15 @@ +// +global using global::Microsoft.AspNetCore.Builder; +global using global::Microsoft.AspNetCore.Hosting; +global using global::Microsoft.AspNetCore.Http; +global using global::Microsoft.AspNetCore.Routing; +global using global::Microsoft.Extensions.Configuration; +global using global::Microsoft.Extensions.DependencyInjection; +global using global::Microsoft.Extensions.Hosting; +global using global::Microsoft.Extensions.Logging; +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.Net.Http.Json; diff --git a/SaleMarket/obj/Debug/net6.0/SaleMarket.MvcApplicationPartsAssemblyInfo.cs b/SaleMarket/obj/Debug/net6.0/SaleMarket.MvcApplicationPartsAssemblyInfo.cs new file mode 100644 index 0000000..5fc2faf --- /dev/null +++ b/SaleMarket/obj/Debug/net6.0/SaleMarket.MvcApplicationPartsAssemblyInfo.cs @@ -0,0 +1,15 @@ +//------------------------------------------------------------------------------ +// +// 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. +// +//------------------------------------------------------------------------------ + +using System; +using System.Reflection; + +[assembly: Microsoft.AspNetCore.Mvc.ApplicationParts.ApplicationPartAttribute("Swashbuckle.AspNetCore.SwaggerGen")] + diff --git a/SaleMarket/obj/Debug/net6.0/SaleMarket.csproj.FileListAbsolute.txt b/SaleMarket/obj/Debug/net6.0/SaleMarket.csproj.FileListAbsolute.txt new file mode 100644 index 0000000..e68336a --- /dev/null +++ b/SaleMarket/obj/Debug/net6.0/SaleMarket.csproj.FileListAbsolute.txt @@ -0,0 +1,15 @@ +E:\gitee\SaleMarkes\src\SaleMarket\bin\Debug\net6.0\log4net.config +E:\gitee\SaleMarkes\src\SaleMarket\bin\Debug\net6.0\appsettings.Development.json +E:\gitee\SaleMarkes\src\SaleMarket\bin\Debug\net6.0\appsettings.json +E:\gitee\SaleMarkes\src\SaleMarket\bin\Debug\net6.0\SaleMarket.exe +E:\gitee\SaleMarkes\src\SaleMarket\bin\Debug\net6.0\SaleMarket.deps.json +E:\gitee\SaleMarkes\src\SaleMarket\bin\Debug\net6.0\SaleMarket.runtimeconfig.json +E:\gitee\SaleMarkes\src\SaleMarket\bin\Debug\net6.0\SaleMarket.dll +E:\gitee\SaleMarkes\src\SaleMarket\bin\Debug\net6.0\SaleMarket.pdb +E:\gitee\SaleMarkes\src\SaleMarket\bin\Debug\net6.0\AutoMapper.dll +E:\gitee\SaleMarkes\src\SaleMarket\bin\Debug\net6.0\AutoMapper.Extensions.Microsoft.DependencyInjection.dll +E:\gitee\SaleMarkes\src\SaleMarket\bin\Debug\net6.0\EntityFrameworkCore.UseRowNumberForPaging.dll +E:\gitee\SaleMarkes\src\SaleMarket\bin\Debug\net6.0\log4net.dll +E:\gitee\SaleMarkes\src\SaleMarket\bin\Debug\net6.0\Microsoft.AspNetCore.JsonPatch.dll +E:\gitee\SaleMarkes\src\SaleMarket\bin\Debug\net6.0\Microsoft.AspNetCore.Mvc.NewtonsoftJson.dll +E:\gitee\SaleMarkes\src\SaleMarket\bin\Debug\net6.0\Microsoft.Data.SqlClient.dll diff --git a/SaleMarket/obj/Debug/net6.0/staticwebassets.build.json b/SaleMarket/obj/Debug/net6.0/staticwebassets.build.json new file mode 100644 index 0000000..95c7e1c --- /dev/null +++ b/SaleMarket/obj/Debug/net6.0/staticwebassets.build.json @@ -0,0 +1,11 @@ +{ + "Version": 1, + "Hash": "Jc02ALdmBa/Oe6sqMlzZUtOebPzfJLl2wWUVJJOvVxU=", + "Source": "SaleMarket", + "BasePath": "_content/SaleMarket", + "Mode": "Default", + "ManifestType": "Build", + "ReferencedProjectsConfiguration": [], + "DiscoveryPatterns": [], + "Assets": [] +} diff --git a/SaleMarket/obj/SaleMarket.csproj.nuget.dgspec.json b/SaleMarket/obj/SaleMarket.csproj.nuget.dgspec.json new file mode 100644 index 0000000..1386873 --- /dev/null +++ b/SaleMarket/obj/SaleMarket.csproj.nuget.dgspec.json @@ -0,0 +1,15 @@ +{ + "format": 1, + "restore": { + "C:\\Users\\coder\\Desktop\\2024Code\\3\\20240305\\小型收银系统源码_f1ccdae3\\SaleMarket\\SaleMarket.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", diff --git a/SaleMarket/obj/project.assets.json b/SaleMarket/obj/project.assets.json new file mode 100644 index 0000000..48f0172 --- /dev/null +++ b/SaleMarket/obj/project.assets.json @@ -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": { diff --git a/SaleWPF/App.config b/SaleWPF/App.config new file mode 100644 index 0000000..00254d9 --- /dev/null +++ b/SaleWPF/App.config @@ -0,0 +1,15 @@ + + + + + + + + + + + + + + + diff --git a/SaleWPF/App.xaml b/SaleWPF/App.xaml new file mode 100644 index 0000000..a26c4ef --- /dev/null +++ b/SaleWPF/App.xaml @@ -0,0 +1,14 @@ + + + + + + + + + diff --git a/SaleWPF/App.xaml.cs b/SaleWPF/App.xaml.cs new file mode 100644 index 0000000..0a91e9c --- /dev/null +++ b/SaleWPF/App.xaml.cs @@ -0,0 +1,15 @@ +using Microsoft.Extensions.DependencyInjection; +using SaleWPF.Models; +using SaleWPF.Service; +using SaleWPF.ViewModels; +using SaleWPF.Views; +using System; +using System.Collections.Generic; +using System.Configuration; +using System.Data; +using System.Linq; +using System.Threading.Tasks; +using System.Windows; + +namespace SaleWPF +{ diff --git a/SaleWPF/Controls/ControlDisplay.cs b/SaleWPF/Controls/ControlDisplay.cs new file mode 100644 index 0000000..377c1d8 --- /dev/null +++ b/SaleWPF/Controls/ControlDisplay.cs @@ -0,0 +1,15 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using System.Windows.Controls; +using System.Windows; + +namespace SaleWPF.Controls +{ + public class ControlDisplay : ContentControl + { + static ControlDisplay() + { + DefaultStyleKeyProperty.OverrideMetadata(typeof(ControlDisplay), new FrameworkPropertyMetadata(typeof(ControlDisplay))); diff --git a/SaleWPF/Converter/GetIconConverter.cs b/SaleWPF/Converter/GetIconConverter.cs new file mode 100644 index 0000000..61f4b37 --- /dev/null +++ b/SaleWPF/Converter/GetIconConverter.cs @@ -0,0 +1,15 @@ +using Rubyer.Commons; +using Rubyer; +using System; +using System.Collections.Generic; +using System.Globalization; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using System.Windows.Data; + +namespace SaleWPF.Converter +{ + /// + /// 根据 IconType 获取 Icon + /// diff --git a/SaleWPF/Converter/IntToVisibiltyConverter.cs b/SaleWPF/Converter/IntToVisibiltyConverter.cs new file mode 100644 index 0000000..4dc4d6f --- /dev/null +++ b/SaleWPF/Converter/IntToVisibiltyConverter.cs @@ -0,0 +1,15 @@ +using System; +using System.Collections.Generic; +using System.Diagnostics.Eventing.Reader; +using System.Globalization; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using System.Windows; +using System.Windows.Data; + +namespace SaleWPF.Converter +{ + public class IntToVisibiltyConverter : IValueConverter + { + public object Convert(object value, Type targetType, object parameter, CultureInfo culture) diff --git a/SaleWPF/Models/HotKey.cs b/SaleWPF/Models/HotKey.cs new file mode 100644 index 0000000..9d06d4b --- /dev/null +++ b/SaleWPF/Models/HotKey.cs @@ -0,0 +1,15 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Runtime.InteropServices; +using System.Text; +using System.Threading.Tasks; +using System.Windows.Forms; + +namespace SaleWPF.Models +{ + public class HotKey + { + //如果函数执行成功,返回值不为0。 + //如果函数执行失败,返回值为0。要得到扩展错误信息,调用GetLastError。 + [DllImport("user32.dll", SetLastError = true)] diff --git a/SaleWPF/Models/KeyValue.cs b/SaleWPF/Models/KeyValue.cs new file mode 100644 index 0000000..ee970b6 --- /dev/null +++ b/SaleWPF/Models/KeyValue.cs @@ -0,0 +1,15 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace SaleWPF.Models +{ + public class KeyValue + { + public string Key { get; set; } + + public string Value { get; set; } + + public string Tag { get; set; } diff --git a/SaleWPF/Models/LoginUser.cs b/SaleWPF/Models/LoginUser.cs new file mode 100644 index 0000000..8f68576 --- /dev/null +++ b/SaleWPF/Models/LoginUser.cs @@ -0,0 +1,15 @@ +namespace SaleWPF.Models +{ + public class LoginUser + { + public static string UserName { get; set; } + + public static string Token { get; set; } + + public static int GroupID { get; set; } + + public static int UserID { get; set;} + + public static string Url { get; set; } + + public static string MAC { get; set; } diff --git a/SaleWPF/Models/OrderView.cs b/SaleWPF/Models/OrderView.cs new file mode 100644 index 0000000..24c2756 --- /dev/null +++ b/SaleWPF/Models/OrderView.cs @@ -0,0 +1,15 @@ + +using CommunityToolkit.Mvvm.ComponentModel; +using System.Collections.Generic; +using System.Windows.Documents; + +namespace SaleWPF.Models +{ + + public class CashInfo + { + public static List CashList { get; set; }=new List(); + } + + public class OrderView + { diff --git a/SaleWPF/Models/RefValue.cs b/SaleWPF/Models/RefValue.cs new file mode 100644 index 0000000..d5418a9 --- /dev/null +++ b/SaleWPF/Models/RefValue.cs @@ -0,0 +1,15 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace SaleWPF.Models +{ + public class RefValue + { + public T Value { get; set; } + + public int Total { get; set; } + } +} diff --git a/SaleWPF/Models/ResponResult.cs b/SaleWPF/Models/ResponResult.cs new file mode 100644 index 0000000..78b5369 --- /dev/null +++ b/SaleWPF/Models/ResponResult.cs @@ -0,0 +1,15 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace SaleWPF.Models +{ + public class ResponResult + { + public int code { get; set; } = 0; + + public T data { get; set; } + + public string msg { get; set; } diff --git a/SaleWPF/Properties/AssemblyInfo.cs b/SaleWPF/Properties/AssemblyInfo.cs new file mode 100644 index 0000000..ab4d7ed --- /dev/null +++ b/SaleWPF/Properties/AssemblyInfo.cs @@ -0,0 +1,15 @@ +using System.Reflection; +using System.Resources; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +using System.Windows; + +// 有关程序集的一般信息由以下 +// 控制。更改这些特性值可修改 +// 与程序集关联的信息。 +[assembly: AssemblyTitle("SaleWPF")] +[assembly: AssemblyDescription("")] +[assembly: AssemblyConfiguration("")] +[assembly: AssemblyCompany("")] +[assembly: AssemblyProduct("SaleWPF")] +[assembly: AssemblyCopyright("Copyright © 2024")] diff --git a/SaleWPF/Properties/Resources.Designer.cs b/SaleWPF/Properties/Resources.Designer.cs new file mode 100644 index 0000000..d743646 --- /dev/null +++ b/SaleWPF/Properties/Resources.Designer.cs @@ -0,0 +1,15 @@ +//------------------------------------------------------------------------------ +// +// 此代码由工具生成。 +// 运行时版本:4.0.30319.42000 +// +// 对此文件的更改可能会导致不正确的行为,并且如果 +// 重新生成代码,这些更改将会丢失。 +// +//------------------------------------------------------------------------------ + +namespace SaleWPF.Properties { + using System; + + + /// diff --git a/SaleWPF/Properties/Resources.resx b/SaleWPF/Properties/Resources.resx new file mode 100644 index 0000000..151e799 --- /dev/null +++ b/SaleWPF/Properties/Resources.resx @@ -0,0 +1,15 @@ + + +