初始化。

This commit is contained in:
clovejunti 2024-05-28 23:11:30 +08:00
parent e6084afd82
commit c15e3ea164
27 changed files with 555 additions and 104 deletions

17
.gitignore vendored Normal file
View File

@ -0,0 +1,17 @@
.vs
DeviceRepair.Utils/bin
DeviceRepair.Utils/obj
DeviceRepair.Api/bin
DeviceRepair.Api/obj
DeviceRepair.Models/bin
DeviceRepair.Models/obj
DeviceRepairAndOptimization/bin
DeviceRepairAndOptimization/obj
Intend/obj
packages
TsSFCDeivceClient/obj
DeviceRepair.DataAccess/bin
DeviceRepair.DataAccess/obj
Test/bin
Test/obj

View File

@ -0,0 +1,51 @@
using SqlSugar;
using System;
namespace DeviceRepair.Models.Logs
{
/// <summary>
/// DeviceMaintenanceLogInfo
/// </summary>
[SugarTable("DeviceMaintenanceLog")]
public class DeviceMaintenanceLogInfo
{
/// <summary>
/// 默认构造函数(需要初始化属性的在此处理)
/// </summary>
public DeviceMaintenanceLogInfo()
{
}
#region Property Members
[SugarColumn(IsPrimaryKey = true, IsIdentity = true)]
public virtual int AutoID { get; set; }
public virtual int EquipmentAutoID { get; set; }
public virtual string EquipmentID { get; set; }
public virtual string EquipmentName { get; set; }
public virtual string OperationType { get; set; }
public virtual int PlanID { get; set; }
public virtual string PlanType { get; set; }
public virtual DateTime OperationDate { get; set; }
public virtual int OperationUser { get; set; }
public virtual string OperationUserName { get; set; }
public virtual string OperationIP { get; set; }
public virtual string OperationComputer { get; set; }
#endregion
}
}

View File

@ -0,0 +1,49 @@
using SqlSugar;
using System;
namespace DeviceRepair.Models.History
{
/// <summary>
/// RoleAuthLogInfo
/// </summary>
[SugarTable("RoleAuthLog")]
public class RoleAuthLogInfo
{
/// <summary>
/// 默认构造函数(需要初始化属性的在此处理)
/// </summary>
public RoleAuthLogInfo()
{
}
#region Property Members
[SugarColumn(IsPrimaryKey = true, IsIdentity = true)]
public virtual int AutoID { get; set; }
public virtual int RoleAutoID { get; set; }
public virtual int AuthAutoID { get; set; }
public virtual string OperationContent { get; set; }
public virtual string OperationType { get; set; }
public virtual DateTime OperationDate { get; set; }
public virtual int OperationUser { get; set; }
public virtual string OperationUserName { get; set; }
public virtual string OperationIP { get; set; }
public virtual string OperationComputer { get; set; }
public virtual string Description { get; set; }
#endregion
}
}

View File

@ -0,0 +1,49 @@
using SqlSugar;
using System;
namespace DeviceRepair.Models.History
{
/// <summary>
/// UserLockLogInfo
/// </summary>
[SugarTable("UserLockLog")]
public class UserLockLogInfo
{
/// <summary>
/// 默认构造函数(需要初始化属性的在此处理)
/// </summary>
public UserLockLogInfo()
{
}
#region Property Members
[SugarColumn(IsPrimaryKey = true, IsIdentity = true)]
public virtual int AutoID { get; set; }
public virtual int UserAutoID { get; set; }
public virtual string LoginCode { get; set; }
public virtual string LockType { get; set; }
public virtual string OperationType { get; set; }
public virtual DateTime OperationDate { get; set; }
public virtual int OperationUser { get; set; }
public virtual string OperationUserName { get; set; }
public virtual string OperationIP { get; set; }
public virtual string OperationComputer { get; set; }
public virtual string Description { get; set; }
#endregion
}
}

View File

@ -0,0 +1,40 @@
using SqlSugar;
using System;
namespace DeviceRepair.Models.History
{
/// <summary>
/// UserLoginLogInfo
/// </summary>
[Serializable]
[SugarTable("UserLoginLog")]
public class UserLogin
{
/// <summary>
/// 默认构造函数(需要初始化属性的在此处理)
/// </summary>
public UserLogin()
{
}
#region Property Members
[SugarColumn(IsPrimaryKey = true, IsIdentity = true)]
public int AutoID { get; set; }
public string LoginCode { get; set; }
public string OperationType { get; set; }
[SugarColumn(IsOnlyIgnoreInsert = true)]
public DateTime OperationDate { get; set; }
public string OperationIP { get; set; }
public string OperationComputer { get; set; }
#endregion
}
}

View File

@ -0,0 +1,43 @@
using SqlSugar;
using System;
namespace DeviceRepair.Models.History
{
/// <summary>
/// UserPwdErrorLogInfo
/// </summary>
[SugarTable("UserPwdErrorLog")]
public class UserPwdErrorLogInfo
{
/// <summary>
/// 默认构造函数(需要初始化属性的在此处理)
/// </summary>
public UserPwdErrorLogInfo()
{
}
#region Property Members
[SugarColumn(IsPrimaryKey = true, IsIdentity = true)]
public virtual int AutoID { get; set; }
public virtual string LoginCode { get; set; }
public virtual string TryCount { get; set; }
public virtual DateTime OperationDate { get; set; }
public virtual int OperationUser { get; set; }
public virtual string OperationUserName { get; set; }
public virtual string OperationIP { get; set; }
public virtual string OperationComputer { get; set; }
#endregion
}
}

View File

@ -0,0 +1,221 @@
using System;
using System.Drawing;
using System.Management;
using System.Runtime.InteropServices;
namespace DeviceRepair.Utils
{
public static class ComputerHelper
{
#region Win32 API
[DllImport("user32.dll")]
static extern IntPtr GetDC(IntPtr ptr);
[DllImport("gdi32.dll")]
static extern int GetDeviceCaps(
IntPtr hdc, // handle to DC
int nIndex // index of capability
);
[DllImport("user32.dll", EntryPoint = "ReleaseDC")]
static extern IntPtr ReleaseDC(IntPtr hWnd, IntPtr hDc);
#endregion
#region DeviceCaps -
const int HORZRES = 8;
const int VERTRES = 10;
const int LOGPIXELSX = 88;
const int LOGPIXELSY = 90;
const int DESKTOPVERTRES = 117;
const int DESKTOPHORZRES = 118;
#endregion
#region
private static string _MacAddress;
/// <summary>
/// 获取网卡硬件地址
/// </summary>
/// <returns></returns>
public static string GetMacAddress
{
get
{
try
{
//获取网卡硬件地址
if (!string.IsNullOrWhiteSpace(_MacAddress))
return _MacAddress;
ManagementClass mc = new ManagementClass("Win32_NetworkAdapterConfiguration");
ManagementObjectCollection moc = mc.GetInstances();
foreach (ManagementObject mo in moc)
{
if ((bool)mo["IPEnabled"] == true)
{
_MacAddress = mo["MacAddress"].ToString();
break;
}
}
moc = null;
mc = null;
return _MacAddress;
}
catch
{
return "unknow";
}
}
}
private static string _IPAddress;
public static string GetIPAddress
{
get
{
try
{
if (!string.IsNullOrWhiteSpace(_IPAddress))
return _IPAddress;
//获取IP地址
ManagementClass mc = new ManagementClass("Win32_NetworkAdapterConfiguration");
ManagementObjectCollection moc = mc.GetInstances();
foreach (ManagementObject mo in moc)
{
if ((bool)mo["IPEnabled"] == true)
{
Array ar;
ar = (Array)(mo.Properties["IpAddress"].Value);
_IPAddress = ar.GetValue(0).ToString();
break;
}
}
moc = null;
mc = null;
return _IPAddress;
}
catch
{
return "unknow";
}
}
}
private static string _ComputerName;
/// <summary>
/// 获取计算机名称
/// </summary>
/// <returns></returns>
public static string GetComputerName
{
get
{
try
{
if (!string.IsNullOrWhiteSpace(_ComputerName))
return _ComputerName;
_ComputerName = Environment.GetEnvironmentVariable("ComputerName");
return _ComputerName;
}
catch
{
return "unknow";
}
}
}
/// <summary>
/// 当前系统DPI_X 大小 一般为96
/// </summary>
public static int DpiX
{
get
{
IntPtr hdc = GetDC(IntPtr.Zero);
int DpiX = GetDeviceCaps(hdc, LOGPIXELSX);
ReleaseDC(IntPtr.Zero, hdc);
return DpiX;
}
}
/// <summary>
/// 当前系统DPI_Y 大小 一般为96
/// </summary>
public static int DpiY
{
get
{
IntPtr hdc = GetDC(IntPtr.Zero);
int DpiX = GetDeviceCaps(hdc, LOGPIXELSY);
ReleaseDC(IntPtr.Zero, hdc);
return DpiX;
}
}
/// <summary>
/// 获取宽度缩放百分比
/// </summary>
public static float ScaleX
{
get
{
IntPtr hdc = GetDC(IntPtr.Zero);
float ScaleX = (float)GetDeviceCaps(hdc, DESKTOPHORZRES) / (float)GetDeviceCaps(hdc, HORZRES);
ReleaseDC(IntPtr.Zero, hdc);
return ScaleX;
}
}
/// <summary>
/// 获取高度缩放百分比
/// </summary>
public static float ScaleY
{
get
{
IntPtr hdc = GetDC(IntPtr.Zero);
float ScaleY = (float)(float)GetDeviceCaps(hdc, DESKTOPVERTRES) / (float)GetDeviceCaps(hdc, VERTRES);
ReleaseDC(IntPtr.Zero, hdc);
return ScaleY;
}
}
/// <summary>
/// 获取真实设置的桌面分辨率大小
/// </summary>
public static Size DesktopResolution
{
get
{
IntPtr hdc = GetDC(IntPtr.Zero);
Size size = new Size();
size.Width = GetDeviceCaps(hdc, DESKTOPHORZRES);
size.Height = GetDeviceCaps(hdc, DESKTOPVERTRES);
ReleaseDC(IntPtr.Zero, hdc);
return size;
}
}
/// <summary>
/// 获取屏幕分辨率当前物理大小
/// </summary>
public static Size WorkingArea
{
get
{
IntPtr hdc = GetDC(IntPtr.Zero);
Size size = new Size();
size.Width = GetDeviceCaps(hdc, HORZRES);
size.Height = GetDeviceCaps(hdc, VERTRES);
ReleaseDC(IntPtr.Zero, hdc);
return size;
}
}
#endregion
}
}

View File

@ -13,6 +13,12 @@
[Config("LogConnection")] [Config("LogConnection")]
public string logConn { get; set; } public string logConn { get; set; }
/// <summary>
/// 加密Key
/// </summary>
[Config("SecureKey")]
public string SecureKey { get; set; }
/// <summary> /// <summary>
/// 数据通讯类型 /// 数据通讯类型
/// api /// api

View File

@ -37,6 +37,7 @@
<Reference Include="System.Configuration" /> <Reference Include="System.Configuration" />
<Reference Include="System.Core" /> <Reference Include="System.Core" />
<Reference Include="System.Drawing" /> <Reference Include="System.Drawing" />
<Reference Include="System.Management" />
<Reference Include="System.Web" /> <Reference Include="System.Web" />
<Reference Include="System.Xml.Linq" /> <Reference Include="System.Xml.Linq" />
<Reference Include="System.Data.DataSetExtensions" /> <Reference Include="System.Data.DataSetExtensions" />
@ -47,6 +48,7 @@
</ItemGroup> </ItemGroup>
<ItemGroup> <ItemGroup>
<Compile Include="CompressionHelper.cs" /> <Compile Include="CompressionHelper.cs" />
<Compile Include="ComputerHelper.cs" />
<Compile Include="Config\ConfigAttribute.cs" /> <Compile Include="Config\ConfigAttribute.cs" />
<Compile Include="Config\ConfigProperties.cs" /> <Compile Include="Config\ConfigProperties.cs" />
<Compile Include="Config\Configurations.cs" /> <Compile Include="Config\Configurations.cs" />

BIN
DeviceRepairAndOptimization.sln (Stored with Git LFS)

Binary file not shown.

View File

@ -73,7 +73,7 @@
<!--<add key="ServiceName" value="DeviceRepairAPI" />--> <!--<add key="ServiceName" value="DeviceRepairAPI" />-->
<add key="ServiceIP" value="localhost" /> <add key="ServiceIP" value="localhost" />
<add key="ServiceName" value="DRApi" /> <add key="ServiceName" value="DeviceRepairAPI" />
<!--<add key="ServiceIP" value="www.clovejunti.cn:8181" /> <!--<add key="ServiceIP" value="www.clovejunti.cn:8181" />
<add key="ServiceName" value="DeviceRepairAPI2"/>--> <add key="ServiceName" value="DeviceRepairAPI2"/>-->

View File

@ -1,6 +1,7 @@
using CsharpHttpHelper; using CsharpHttpHelper;
using CsharpHttpHelper.Enum; using CsharpHttpHelper.Enum;
using DeviceRepair.Models; using DeviceRepair.Models;
using DeviceRepair.Utils;
using DeviceRepair.Utils.Security; using DeviceRepair.Utils.Security;
using Newtonsoft.Json; using Newtonsoft.Json;
using System; using System;
@ -15,7 +16,7 @@ namespace DeviceRepairAndOptimization.Biz
public class ApiHelper public class ApiHelper
{ {
HttpHelper http = null; HttpHelper http = null;
public static readonly string ServiceUrl = $"http://{Models.Config.Configurations.Properties.ServiceIP}/{Models.Config.Configurations.Properties.ServiceName}/"; public static readonly string ServiceUrl = $"http://{DeviceRepair.Utils.Config.Configurations.Properties.ServiceIP}/{DeviceRepair.Utils.Config.Configurations.Properties.ServiceName}/";
private static ApiHelper manager; private static ApiHelper manager;

View File

@ -31,7 +31,7 @@ namespace DeviceRepairAndOptimization.Biz
try try
{ {
switch (Models.Config.Configurations.Properties.ConnType?.ToLower()) switch (DeviceRepair.Utils.Config.Configurations.Properties.ConnType?.ToLower())
{ {
case "api": case "api":
#region api #region api
@ -75,7 +75,7 @@ namespace DeviceRepairAndOptimization.Biz
try try
{ {
switch (Models.Config.Configurations.Properties.ConnType?.ToLower()) switch (DeviceRepair.Utils.Config.Configurations.Properties.ConnType?.ToLower())
{ {
case "api": case "api":
#region api #region api
@ -119,7 +119,7 @@ namespace DeviceRepairAndOptimization.Biz
try try
{ {
switch (Models.Config.Configurations.Properties.ConnType?.ToLower()) switch (DeviceRepair.Utils.Config.Configurations.Properties.ConnType?.ToLower())
{ {
case "api": case "api":
apiResponseData = ApiHelper.Instance.SendMessage(new HttpItem apiResponseData = ApiHelper.Instance.SendMessage(new HttpItem

View File

@ -34,7 +34,7 @@ namespace DeviceRepairAndOptimization.Biz
APIResponseData apiResponseData = new APIResponseData { Code = -1, Message = "没有查询到数据!" }; APIResponseData apiResponseData = new APIResponseData { Code = -1, Message = "没有查询到数据!" };
try try
{ {
switch (Models.Config.Configurations.Properties.ConnType?.ToLower()) switch (DeviceRepair.Utils.Config.Configurations.Properties.ConnType?.ToLower())
{ {
case "api": case "api":
@ -70,7 +70,7 @@ namespace DeviceRepairAndOptimization.Biz
APIResponseData apiResponseData = new APIResponseData { Code = -1, Message = "查询失败!" }; APIResponseData apiResponseData = new APIResponseData { Code = -1, Message = "查询失败!" };
try try
{ {
switch (Models.Config.Configurations.Properties.ConnType?.ToLower()) switch (DeviceRepair.Utils.Config.Configurations.Properties.ConnType?.ToLower())
{ {
case "api": case "api":
apiResponseData = ApiHelper.Instance.SendMessage(new HttpItem apiResponseData = ApiHelper.Instance.SendMessage(new HttpItem
@ -104,7 +104,7 @@ namespace DeviceRepairAndOptimization.Biz
APIResponseData apiResponseData = new APIResponseData { Code = -1, Message = "查询失败!" }; APIResponseData apiResponseData = new APIResponseData { Code = -1, Message = "查询失败!" };
try try
{ {
switch (Models.Config.Configurations.Properties.ConnType?.ToLower()) switch (DeviceRepair.Utils.Config.Configurations.Properties.ConnType?.ToLower())
{ {
case "api": case "api":
apiResponseData = ApiHelper.Instance.SendMessage(new HttpItem apiResponseData = ApiHelper.Instance.SendMessage(new HttpItem
@ -138,7 +138,7 @@ namespace DeviceRepairAndOptimization.Biz
APIResponseData apiResponseData = new APIResponseData { Code = -1, Message = "查询失败!" }; APIResponseData apiResponseData = new APIResponseData { Code = -1, Message = "查询失败!" };
try try
{ {
switch (Models.Config.Configurations.Properties.ConnType?.ToLower()) switch (DeviceRepair.Utils.Config.Configurations.Properties.ConnType?.ToLower())
{ {
case "api": case "api":
apiResponseData = ApiHelper.Instance.SendMessage(new HttpItem apiResponseData = ApiHelper.Instance.SendMessage(new HttpItem
@ -173,7 +173,7 @@ namespace DeviceRepairAndOptimization.Biz
APIResponseData apiResponseData = new APIResponseData { Code = -1, Message = "查询失败!" }; APIResponseData apiResponseData = new APIResponseData { Code = -1, Message = "查询失败!" };
try try
{ {
switch (Models.Config.Configurations.Properties.ConnType?.ToLower()) switch (DeviceRepair.Utils.Config.Configurations.Properties.ConnType?.ToLower())
{ {
case "api": case "api":
#region api #region api

View File

@ -30,7 +30,7 @@ namespace DeviceRepairAndOptimization.Biz
APIResponseData apiResponseData = new APIResponseData { Code = -1, Message = "没有查询到数据!" }; APIResponseData apiResponseData = new APIResponseData { Code = -1, Message = "没有查询到数据!" };
try try
{ {
switch (Models.Config.Configurations.Properties.ConnType?.ToLower()) switch (DeviceRepair.Utils.Config.Configurations.Properties.ConnType?.ToLower())
{ {
case "api": case "api":
@ -66,7 +66,7 @@ namespace DeviceRepairAndOptimization.Biz
APIResponseData apiResponseData = new APIResponseData { Code = -1, Message = "没有查询到数据!" }; APIResponseData apiResponseData = new APIResponseData { Code = -1, Message = "没有查询到数据!" };
try try
{ {
switch (Models.Config.Configurations.Properties.ConnType?.ToLower()) switch (DeviceRepair.Utils.Config.Configurations.Properties.ConnType?.ToLower())
{ {
case "api": case "api":
@ -102,7 +102,7 @@ namespace DeviceRepairAndOptimization.Biz
APIResponseData apiResponseData = new APIResponseData { Code = -1, Message = "没有查询到数据!" }; APIResponseData apiResponseData = new APIResponseData { Code = -1, Message = "没有查询到数据!" };
try try
{ {
switch (Models.Config.Configurations.Properties.ConnType?.ToLower()) switch (DeviceRepair.Utils.Config.Configurations.Properties.ConnType?.ToLower())
{ {
case "api": case "api":
@ -140,7 +140,7 @@ namespace DeviceRepairAndOptimization.Biz
APIResponseData apiResponseData = new APIResponseData { Code = -1, Message = "没有查询到数据!" }; APIResponseData apiResponseData = new APIResponseData { Code = -1, Message = "没有查询到数据!" };
try try
{ {
switch (Models.Config.Configurations.Properties.ConnType?.ToLower()) switch (DeviceRepair.Utils.Config.Configurations.Properties.ConnType?.ToLower())
{ {
case "api": case "api":

View File

@ -33,7 +33,7 @@ namespace DeviceRepairAndOptimization.Biz
APIResponseData apiResponseData = new APIResponseData { Code = -1, Message = "操作失败!" }; APIResponseData apiResponseData = new APIResponseData { Code = -1, Message = "操作失败!" };
try try
{ {
switch (Models.Config.Configurations.Properties.ConnType?.ToLower()) switch (DeviceRepair.Utils.Config.Configurations.Properties.ConnType?.ToLower())
{ {
case "api": case "api":
@ -70,7 +70,7 @@ namespace DeviceRepairAndOptimization.Biz
APIResponseData apiResponseData = new APIResponseData { Code = -1, Message = "操作失败!" }; APIResponseData apiResponseData = new APIResponseData { Code = -1, Message = "操作失败!" };
try try
{ {
switch (Models.Config.Configurations.Properties.ConnType?.ToLower()) switch (DeviceRepair.Utils.Config.Configurations.Properties.ConnType?.ToLower())
{ {
case "api": case "api":
@ -109,7 +109,7 @@ namespace DeviceRepairAndOptimization.Biz
string FileExtension = Path.GetExtension(filePath); string FileExtension = Path.GetExtension(filePath);
string newName = $"{Guid.NewGuid()}{FileExtension}"; string newName = $"{Guid.NewGuid()}{FileExtension}";
switch (Models.Config.Configurations.Properties.ConnType?.ToLower()) switch (DeviceRepair.Utils.Config.Configurations.Properties.ConnType?.ToLower())
{ {
case "api": case "api":
using (var fileStream = new FileStream(filePath, FileMode.Open, FileAccess.Read)) using (var fileStream = new FileStream(filePath, FileMode.Open, FileAccess.Read))
@ -139,7 +139,7 @@ namespace DeviceRepairAndOptimization.Biz
APIResponseData apiResponseData = new APIResponseData { Code = -1, Message = "未能获取到数据!" }; APIResponseData apiResponseData = new APIResponseData { Code = -1, Message = "未能获取到数据!" };
try try
{ {
switch (Models.Config.Configurations.Properties.ConnType?.ToLower()) switch (DeviceRepair.Utils.Config.Configurations.Properties.ConnType?.ToLower())
{ {
case "api": case "api":
@ -174,7 +174,7 @@ namespace DeviceRepairAndOptimization.Biz
APIResponseData apiResponseData = new APIResponseData { Code = -1, Message = "未能获取到数据!" }; APIResponseData apiResponseData = new APIResponseData { Code = -1, Message = "未能获取到数据!" };
try try
{ {
switch (Models.Config.Configurations.Properties.ConnType?.ToLower()) switch (DeviceRepair.Utils.Config.Configurations.Properties.ConnType?.ToLower())
{ {
case "api": case "api":
@ -209,7 +209,7 @@ namespace DeviceRepairAndOptimization.Biz
APIResponseData apiResponseData = new APIResponseData { Code = -1, Message = "操作失败!" }; APIResponseData apiResponseData = new APIResponseData { Code = -1, Message = "操作失败!" };
try try
{ {
switch (Models.Config.Configurations.Properties.ConnType?.ToLower()) switch (DeviceRepair.Utils.Config.Configurations.Properties.ConnType?.ToLower())
{ {
case "api": case "api":
apiResponseData = ApiHelper.Instance.SendMessage(new HttpItem apiResponseData = ApiHelper.Instance.SendMessage(new HttpItem
@ -244,7 +244,7 @@ namespace DeviceRepairAndOptimization.Biz
APIResponseData apiResponseData = new APIResponseData { Code = -1, Message = "操作失败!" }; APIResponseData apiResponseData = new APIResponseData { Code = -1, Message = "操作失败!" };
try try
{ {
switch (Models.Config.Configurations.Properties.ConnType?.ToLower()) switch (DeviceRepair.Utils.Config.Configurations.Properties.ConnType?.ToLower())
{ {
case "api": case "api":
apiResponseData = ApiHelper.Instance.SendMessage(new HttpItem apiResponseData = ApiHelper.Instance.SendMessage(new HttpItem
@ -276,7 +276,7 @@ namespace DeviceRepairAndOptimization.Biz
APIResponseData apiResponseData = new APIResponseData { Code = -1 }; APIResponseData apiResponseData = new APIResponseData { Code = -1 };
try try
{ {
switch (Models.Config.Configurations.Properties.ConnType?.ToLower()) switch (DeviceRepair.Utils.Config.Configurations.Properties.ConnType?.ToLower())
{ {
case "api": case "api":
@ -316,7 +316,7 @@ namespace DeviceRepairAndOptimization.Biz
try try
{ {
switch (Models.Config.Configurations.Properties.ConnType?.ToLower()) switch (DeviceRepair.Utils.Config.Configurations.Properties.ConnType?.ToLower())
{ {
case "api": case "api":
apiResponseData = ApiHelper.Instance.SendMessage(new HttpItem apiResponseData = ApiHelper.Instance.SendMessage(new HttpItem

View File

@ -33,7 +33,7 @@ namespace DeviceRepairAndOptimization.Biz
APIResponseData apiResponseData = new APIResponseData { Code = -1, Message = "未能获取到数据!" }; APIResponseData apiResponseData = new APIResponseData { Code = -1, Message = "未能获取到数据!" };
try try
{ {
switch (Models.Config.Configurations.Properties.ConnType?.ToLower()) switch (DeviceRepair.Utils.Config.Configurations.Properties.ConnType?.ToLower())
{ {
case "api": case "api":
@ -72,7 +72,7 @@ namespace DeviceRepairAndOptimization.Biz
APIResponseData apiResponseData = new APIResponseData { Code = -1, Message = "操作未能成功!" }; APIResponseData apiResponseData = new APIResponseData { Code = -1, Message = "操作未能成功!" };
try try
{ {
switch (Models.Config.Configurations.Properties.ConnType?.ToLower()) switch (DeviceRepair.Utils.Config.Configurations.Properties.ConnType?.ToLower())
{ {
case "api": case "api":
@ -112,7 +112,7 @@ namespace DeviceRepairAndOptimization.Biz
APIResponseData apiResponseData = new APIResponseData { Code = -1, Message = "操作未能成功!" }; APIResponseData apiResponseData = new APIResponseData { Code = -1, Message = "操作未能成功!" };
try try
{ {
switch (Models.Config.Configurations.Properties.ConnType?.ToLower()) switch (DeviceRepair.Utils.Config.Configurations.Properties.ConnType?.ToLower())
{ {
case "api": case "api":
@ -152,7 +152,7 @@ namespace DeviceRepairAndOptimization.Biz
APIResponseData apiResponseData = new APIResponseData { Code = -1, Message = "操作未能成功!" }; APIResponseData apiResponseData = new APIResponseData { Code = -1, Message = "操作未能成功!" };
try try
{ {
switch (Models.Config.Configurations.Properties.ConnType?.ToLower()) switch (DeviceRepair.Utils.Config.Configurations.Properties.ConnType?.ToLower())
{ {
case "api": case "api":

View File

@ -35,7 +35,7 @@ namespace DeviceRepairAndOptimization.Biz
APIResponseData apiResponseData = new APIResponseData { Code = -1, Message = "操作失败!" }; APIResponseData apiResponseData = new APIResponseData { Code = -1, Message = "操作失败!" };
try try
{ {
switch (Models.Config.Configurations.Properties.ConnType?.ToLower()) switch (DeviceRepair.Utils.Config.Configurations.Properties.ConnType?.ToLower())
{ {
case "api": case "api":
apiResponseData = ApiHelper.Instance.SendMessage(new HttpItem apiResponseData = ApiHelper.Instance.SendMessage(new HttpItem
@ -69,7 +69,7 @@ namespace DeviceRepairAndOptimization.Biz
APIResponseData apiResponseData = new APIResponseData { Code = -1, Message = "未能获取到数据!" }; APIResponseData apiResponseData = new APIResponseData { Code = -1, Message = "未能获取到数据!" };
try try
{ {
switch (Models.Config.Configurations.Properties.ConnType?.ToLower()) switch (DeviceRepair.Utils.Config.Configurations.Properties.ConnType?.ToLower())
{ {
case "api": case "api":
apiResponseData = ApiHelper.Instance.SendMessage(new HttpItem apiResponseData = ApiHelper.Instance.SendMessage(new HttpItem
@ -105,7 +105,7 @@ namespace DeviceRepairAndOptimization.Biz
APIResponseData apiResponseData = new APIResponseData { Code = -1 }; APIResponseData apiResponseData = new APIResponseData { Code = -1 };
try try
{ {
switch (Models.Config.Configurations.Properties.ConnType?.ToLower()) switch (DeviceRepair.Utils.Config.Configurations.Properties.ConnType?.ToLower())
{ {
case "api": case "api":
apiResponseData = ApiHelper.Instance.SendMessage(new HttpItem apiResponseData = ApiHelper.Instance.SendMessage(new HttpItem
@ -141,7 +141,7 @@ namespace DeviceRepairAndOptimization.Biz
int Count = -1; int Count = -1;
try try
{ {
switch (Models.Config.Configurations.Properties.ConnType?.ToLower()) switch (DeviceRepair.Utils.Config.Configurations.Properties.ConnType?.ToLower())
{ {
case "api": case "api":
ApiHelper.Instance.SendMessageAsync(new HttpItem ApiHelper.Instance.SendMessageAsync(new HttpItem
@ -176,7 +176,7 @@ namespace DeviceRepairAndOptimization.Biz
APIResponseData apiResponseData = null; APIResponseData apiResponseData = null;
try try
{ {
switch (Models.Config.Configurations.Properties.ConnType?.ToLower()) switch (DeviceRepair.Utils.Config.Configurations.Properties.ConnType?.ToLower())
{ {
case "api": case "api":
apiResponseData = ApiHelper.Instance.SendMessage(new HttpItem apiResponseData = ApiHelper.Instance.SendMessage(new HttpItem
@ -212,7 +212,7 @@ namespace DeviceRepairAndOptimization.Biz
try try
{ {
switch (Models.Config.Configurations.Properties.ConnType?.ToLower()) switch (DeviceRepair.Utils.Config.Configurations.Properties.ConnType?.ToLower())
{ {
case "api": case "api":
apiResponseData = ApiHelper.Instance.SendMessage(new HttpItem apiResponseData = ApiHelper.Instance.SendMessage(new HttpItem
@ -249,7 +249,7 @@ namespace DeviceRepairAndOptimization.Biz
try try
{ {
switch (Models.Config.Configurations.Properties.ConnType?.ToLower()) switch (DeviceRepair.Utils.Config.Configurations.Properties.ConnType?.ToLower())
{ {
case "api": case "api":
apiResponseData = ApiHelper.Instance.SendMessage(new HttpItem apiResponseData = ApiHelper.Instance.SendMessage(new HttpItem
@ -286,7 +286,7 @@ namespace DeviceRepairAndOptimization.Biz
APIResponseData apiResponseData = null; APIResponseData apiResponseData = null;
try try
{ {
switch (Models.Config.Configurations.Properties.ConnType?.ToLower()) switch (DeviceRepair.Utils.Config.Configurations.Properties.ConnType?.ToLower())
{ {
case "api": case "api":
apiResponseData = ApiHelper.Instance.SendMessage( apiResponseData = ApiHelper.Instance.SendMessage(
@ -322,7 +322,7 @@ namespace DeviceRepairAndOptimization.Biz
APIResponseData apiResponseData = null; APIResponseData apiResponseData = null;
try try
{ {
switch (Models.Config.Configurations.Properties.ConnType?.ToLower()) switch (DeviceRepair.Utils.Config.Configurations.Properties.ConnType?.ToLower())
{ {
case "api": case "api":
apiResponseData = ApiHelper.Instance.SendMessage( apiResponseData = ApiHelper.Instance.SendMessage(

View File

@ -37,7 +37,7 @@ namespace DeviceRepairAndOptimization.Biz
string filePath = string.Empty; string filePath = string.Empty;
try try
{ {
switch (Models.Config.Configurations.Properties.ConnType?.ToLower()) switch (DeviceRepair.Utils.Config.Configurations.Properties.ConnType?.ToLower())
{ {
case "api": case "api":
filePath = ApiHelper.Instance.DownLoadFile(new HttpItem() filePath = ApiHelper.Instance.DownLoadFile(new HttpItem()
@ -66,7 +66,7 @@ namespace DeviceRepairAndOptimization.Biz
string filePath = string.Empty; string filePath = string.Empty;
try try
{ {
switch (Models.Config.Configurations.Properties.ConnType?.ToLower()) switch (DeviceRepair.Utils.Config.Configurations.Properties.ConnType?.ToLower())
{ {
case "api": case "api":
filePath = ApiHelper.Instance.DownLoadFile(new HttpItem() filePath = ApiHelper.Instance.DownLoadFile(new HttpItem()
@ -98,7 +98,7 @@ namespace DeviceRepairAndOptimization.Biz
APIResponseData apiResponseData = new APIResponseData { Code = -1, Message = "获取数据失败!" }; APIResponseData apiResponseData = new APIResponseData { Code = -1, Message = "获取数据失败!" };
try try
{ {
switch (Models.Config.Configurations.Properties.ConnType?.ToLower()) switch (DeviceRepair.Utils.Config.Configurations.Properties.ConnType?.ToLower())
{ {
case "api": case "api":
#region api #region api
@ -140,7 +140,7 @@ namespace DeviceRepairAndOptimization.Biz
APIResponseData apiResponseData = new APIResponseData { Code = -1, Message = "未能获取到数据!" }; APIResponseData apiResponseData = new APIResponseData { Code = -1, Message = "未能获取到数据!" };
try try
{ {
switch (Models.Config.Configurations.Properties.ConnType?.ToLower()) switch (DeviceRepair.Utils.Config.Configurations.Properties.ConnType?.ToLower())
{ {
case "api": case "api":
apiResponseData = ApiHelper.Instance.SendMessage(new HttpItem apiResponseData = ApiHelper.Instance.SendMessage(new HttpItem
@ -176,7 +176,7 @@ namespace DeviceRepairAndOptimization.Biz
APIResponseData apiResponseData = new APIResponseData { Code = -1, Message = "未能获取到数据!" }; APIResponseData apiResponseData = new APIResponseData { Code = -1, Message = "未能获取到数据!" };
try try
{ {
switch (Models.Config.Configurations.Properties.ConnType?.ToLower()) switch (DeviceRepair.Utils.Config.Configurations.Properties.ConnType?.ToLower())
{ {
case "api": case "api":
apiResponseData = ApiHelper.Instance.SendMessage(new HttpItem apiResponseData = ApiHelper.Instance.SendMessage(new HttpItem
@ -210,7 +210,7 @@ namespace DeviceRepairAndOptimization.Biz
APIResponseData apiResponseData = new APIResponseData { Code = -1, Data = null, Message = "获取数据失败" }; APIResponseData apiResponseData = new APIResponseData { Code = -1, Data = null, Message = "获取数据失败" };
try try
{ {
switch (Models.Config.Configurations.Properties.ConnType?.ToLower()) switch (DeviceRepair.Utils.Config.Configurations.Properties.ConnType?.ToLower())
{ {
case "api": case "api":
apiResponseData = ApiHelper.Instance.SendMessage(new HttpItem apiResponseData = ApiHelper.Instance.SendMessage(new HttpItem
@ -245,7 +245,7 @@ namespace DeviceRepairAndOptimization.Biz
APIResponseData apiResponseData = new APIResponseData { Code = -1, Data = null, Message = "获取数据失败" }; APIResponseData apiResponseData = new APIResponseData { Code = -1, Data = null, Message = "获取数据失败" };
try try
{ {
switch (Models.Config.Configurations.Properties.ConnType?.ToLower()) switch (DeviceRepair.Utils.Config.Configurations.Properties.ConnType?.ToLower())
{ {
case "api": case "api":
apiResponseData = ApiHelper.Instance.SendMessage(new HttpItem apiResponseData = ApiHelper.Instance.SendMessage(new HttpItem
@ -282,7 +282,7 @@ namespace DeviceRepairAndOptimization.Biz
try try
{ {
switch (Models.Config.Configurations.Properties.ConnType?.ToLower()) switch (DeviceRepair.Utils.Config.Configurations.Properties.ConnType?.ToLower())
{ {
case "api": case "api":
apiResponseData = ApiHelper.Instance.SendMessage(new HttpItem apiResponseData = ApiHelper.Instance.SendMessage(new HttpItem

View File

@ -32,7 +32,7 @@ namespace DeviceRepairAndOptimization.Biz
APIResponseData apiResponseData = new APIResponseData { Code = -1, Message = "没有查询到数据!" }; APIResponseData apiResponseData = new APIResponseData { Code = -1, Message = "没有查询到数据!" };
try try
{ {
switch (Models.Config.Configurations.Properties.ConnType?.ToLower()) switch (DeviceRepair.Utils.Config.Configurations.Properties.ConnType?.ToLower())
{ {
case "api": case "api":
#region api #region api
@ -74,7 +74,7 @@ namespace DeviceRepairAndOptimization.Biz
APIResponseData apiResponseData = new APIResponseData { Code = -1, Message = "没有查询到数据!" }; APIResponseData apiResponseData = new APIResponseData { Code = -1, Message = "没有查询到数据!" };
try try
{ {
switch (Models.Config.Configurations.Properties.ConnType?.ToLower()) switch (DeviceRepair.Utils.Config.Configurations.Properties.ConnType?.ToLower())
{ {
case "api": case "api":
#region api #region api
@ -116,7 +116,7 @@ namespace DeviceRepairAndOptimization.Biz
APIResponseData apiResponseData = new APIResponseData { Code = -1, Message = "没有查询到数据!" }; APIResponseData apiResponseData = new APIResponseData { Code = -1, Message = "没有查询到数据!" };
try try
{ {
switch (Models.Config.Configurations.Properties.ConnType?.ToLower()) switch (DeviceRepair.Utils.Config.Configurations.Properties.ConnType?.ToLower())
{ {
case "api": case "api":
#region api #region api
@ -159,7 +159,7 @@ namespace DeviceRepairAndOptimization.Biz
APIResponseData apiResponseData = new APIResponseData { Code = -1, Message = "操作失败!" }; APIResponseData apiResponseData = new APIResponseData { Code = -1, Message = "操作失败!" };
try try
{ {
switch (Models.Config.Configurations.Properties.ConnType?.ToLower()) switch (DeviceRepair.Utils.Config.Configurations.Properties.ConnType?.ToLower())
{ {
case "api": case "api":
#region api #region api
@ -196,7 +196,7 @@ namespace DeviceRepairAndOptimization.Biz
APIResponseData apiResponseData = new APIResponseData { Code = -1, Message = "操作失败!" }; APIResponseData apiResponseData = new APIResponseData { Code = -1, Message = "操作失败!" };
try try
{ {
switch (Models.Config.Configurations.Properties.ConnType?.ToLower()) switch (DeviceRepair.Utils.Config.Configurations.Properties.ConnType?.ToLower())
{ {
case "api": case "api":
#region api #region api
@ -233,7 +233,7 @@ namespace DeviceRepairAndOptimization.Biz
APIResponseData apiResponseData = new APIResponseData { Code = -1, Message = "没有查询到数据!" }; APIResponseData apiResponseData = new APIResponseData { Code = -1, Message = "没有查询到数据!" };
try try
{ {
switch (Models.Config.Configurations.Properties.ConnType?.ToLower()) switch (DeviceRepair.Utils.Config.Configurations.Properties.ConnType?.ToLower())
{ {
case "api": case "api":
#region api #region api
@ -269,7 +269,7 @@ namespace DeviceRepairAndOptimization.Biz
APIResponseData apiResponseData = new APIResponseData { Code = -1, Message = "没有查询到数据!" }; APIResponseData apiResponseData = new APIResponseData { Code = -1, Message = "没有查询到数据!" };
try try
{ {
switch (Models.Config.Configurations.Properties.ConnType?.ToLower()) switch (DeviceRepair.Utils.Config.Configurations.Properties.ConnType?.ToLower())
{ {
case "api": case "api":
#region api #region api
@ -314,7 +314,7 @@ namespace DeviceRepairAndOptimization.Biz
{ {
Item.ModifyBy = GlobalInfo.CurrentUser.AutoID; Item.ModifyBy = GlobalInfo.CurrentUser.AutoID;
switch (Models.Config.Configurations.Properties.ConnType?.ToLower()) switch (DeviceRepair.Utils.Config.Configurations.Properties.ConnType?.ToLower())
{ {
case "api": case "api":
@ -360,7 +360,7 @@ namespace DeviceRepairAndOptimization.Biz
APIResponseData apiResponseData = new APIResponseData { Code = -1, Message = "操作失败!" }; APIResponseData apiResponseData = new APIResponseData { Code = -1, Message = "操作失败!" };
try try
{ {
switch (Models.Config.Configurations.Properties.ConnType?.ToLower()) switch (DeviceRepair.Utils.Config.Configurations.Properties.ConnType?.ToLower())
{ {
case "api": case "api":

View File

@ -32,7 +32,7 @@ namespace DeviceRepairAndOptimization.Biz
APIResponseData apiResponseData = new APIResponseData { Code = -1, Message = "登录失败!" }; APIResponseData apiResponseData = new APIResponseData { Code = -1, Message = "登录失败!" };
try try
{ {
switch (Models.Config.Configurations.Properties.ConnType?.ToLower()) switch (DeviceRepair.Utils.Config.Configurations.Properties.ConnType?.ToLower())
{ {
case "api": case "api":
apiResponseData = ApiHelper.Instance.SendMessage(new HttpItem apiResponseData = ApiHelper.Instance.SendMessage(new HttpItem
@ -65,7 +65,7 @@ namespace DeviceRepairAndOptimization.Biz
{ {
try try
{ {
switch (Models.Config.Configurations.Properties.ConnType?.ToLower()) switch (DeviceRepair.Utils.Config.Configurations.Properties.ConnType?.ToLower())
{ {
case "api": case "api":
ApiHelper.Instance.SendMessage(new HttpItem ApiHelper.Instance.SendMessage(new HttpItem
@ -98,7 +98,7 @@ namespace DeviceRepairAndOptimization.Biz
APIResponseData apiResponseData = new APIResponseData { Code = -1, Message = "账户或密码不正确!" }; APIResponseData apiResponseData = new APIResponseData { Code = -1, Message = "账户或密码不正确!" };
try try
{ {
switch (Models.Config.Configurations.Properties.ConnType?.ToLower()) switch (DeviceRepair.Utils.Config.Configurations.Properties.ConnType?.ToLower())
{ {
case "api": case "api":
@ -144,7 +144,7 @@ namespace DeviceRepairAndOptimization.Biz
APIResponseData apiResponseData = new APIResponseData { Code = -1, Message = "账户或密码不正确!" }; APIResponseData apiResponseData = new APIResponseData { Code = -1, Message = "账户或密码不正确!" };
try try
{ {
switch (Models.Config.Configurations.Properties.ConnType?.ToLower()) switch (DeviceRepair.Utils.Config.Configurations.Properties.ConnType?.ToLower())
{ {
case "api": case "api":
@ -189,7 +189,7 @@ namespace DeviceRepairAndOptimization.Biz
APIResponseData apiResponseData = new APIResponseData { Code = -1, Message = "账户或密码不正确!" }; APIResponseData apiResponseData = new APIResponseData { Code = -1, Message = "账户或密码不正确!" };
try try
{ {
switch (Models.Config.Configurations.Properties.ConnType?.ToLower()) switch (DeviceRepair.Utils.Config.Configurations.Properties.ConnType?.ToLower())
{ {
case "api": case "api":
@ -233,7 +233,7 @@ namespace DeviceRepairAndOptimization.Biz
APIResponseData apiResponseData = new APIResponseData { Code = -1, Message = "没有查询到数据!" }; APIResponseData apiResponseData = new APIResponseData { Code = -1, Message = "没有查询到数据!" };
try try
{ {
switch (Models.Config.Configurations.Properties.ConnType?.ToLower()) switch (DeviceRepair.Utils.Config.Configurations.Properties.ConnType?.ToLower())
{ {
case "api": case "api":
#region api #region api
@ -275,7 +275,7 @@ namespace DeviceRepairAndOptimization.Biz
APIResponseData apiResponseData = new APIResponseData { Code = -1, Message = "没有查询到数据!" }; APIResponseData apiResponseData = new APIResponseData { Code = -1, Message = "没有查询到数据!" };
try try
{ {
switch (Models.Config.Configurations.Properties.ConnType?.ToLower()) switch (DeviceRepair.Utils.Config.Configurations.Properties.ConnType?.ToLower())
{ {
case "api": case "api":
#region api #region api
@ -321,7 +321,7 @@ namespace DeviceRepairAndOptimization.Biz
{ {
Item.ModifyBy = GlobalInfo.CurrentUser.AutoID; Item.ModifyBy = GlobalInfo.CurrentUser.AutoID;
switch (Models.Config.Configurations.Properties.ConnType?.ToLower()) switch (DeviceRepair.Utils.Config.Configurations.Properties.ConnType?.ToLower())
{ {
case "api": case "api":
@ -369,7 +369,7 @@ namespace DeviceRepairAndOptimization.Biz
{ {
Item.ModifyBy = GlobalInfo.CurrentUser.AutoID; Item.ModifyBy = GlobalInfo.CurrentUser.AutoID;
switch (Models.Config.Configurations.Properties.ConnType?.ToLower()) switch (DeviceRepair.Utils.Config.Configurations.Properties.ConnType?.ToLower())
{ {
case "api": case "api":
@ -415,7 +415,7 @@ namespace DeviceRepairAndOptimization.Biz
APIResponseData apiResponseData = new APIResponseData { Code = -1, Message = "账户或密码不正确!" }; APIResponseData apiResponseData = new APIResponseData { Code = -1, Message = "账户或密码不正确!" };
try try
{ {
switch (Models.Config.Configurations.Properties.ConnType?.ToLower()) switch (DeviceRepair.Utils.Config.Configurations.Properties.ConnType?.ToLower())
{ {
case "api": case "api":

BIN
DeviceRepairAndOptimization/DLLs/HttpHelper.dll (Stored with Git LFS) Normal file

Binary file not shown.

View File

@ -192,7 +192,7 @@
<HintPath>..\..\TsSFC.App5\DLLs\FastReport.Editor.dll</HintPath> <HintPath>..\..\TsSFC.App5\DLLs\FastReport.Editor.dll</HintPath>
</Reference> </Reference>
<Reference Include="HttpHelper"> <Reference Include="HttpHelper">
<HintPath>..\..\nuget\HttpHelper\HttpHelper.dll</HintPath> <HintPath>DLLs\HttpHelper.dll</HintPath>
<Private>False</Private> <Private>False</Private>
</Reference> </Reference>
<Reference Include="ICSharpCode.SharpZipLib, Version=1.3.3.11, Culture=neutral, PublicKeyToken=1b03e6acf1164f73, processorArchitecture=MSIL"> <Reference Include="ICSharpCode.SharpZipLib, Version=1.3.3.11, Culture=neutral, PublicKeyToken=1b03e6acf1164f73, processorArchitecture=MSIL">
@ -393,18 +393,6 @@
<Compile Include="Pages\DialogWindow.Designer.cs"> <Compile Include="Pages\DialogWindow.Designer.cs">
<DependentUpon>DialogWindow.cs</DependentUpon> <DependentUpon>DialogWindow.cs</DependentUpon>
</Compile> </Compile>
<Compile Include="Pages\DriveMaintenance\xuc_BindDrives.cs">
<SubType>UserControl</SubType>
</Compile>
<Compile Include="Pages\DriveMaintenance\xuc_BindDrives.Designer.cs">
<DependentUpon>xuc_BindDrives.cs</DependentUpon>
</Compile>
<Compile Include="Pages\DriveMaintenance\xuc_DriveMaintenance.cs">
<SubType>UserControl</SubType>
</Compile>
<Compile Include="Pages\DriveMaintenance\xuc_DriveMaintenance.Designer.cs">
<DependentUpon>xuc_DriveMaintenance.cs</DependentUpon>
</Compile>
<Compile Include="Pages\FormBase.cs"> <Compile Include="Pages\FormBase.cs">
<SubType>Form</SubType> <SubType>Form</SubType>
</Compile> </Compile>
@ -501,12 +489,6 @@
<Compile Include="Pages\Plan\page_PlanEdit.Designer.cs"> <Compile Include="Pages\Plan\page_PlanEdit.Designer.cs">
<DependentUpon>page_PlanEdit.cs</DependentUpon> <DependentUpon>page_PlanEdit.cs</DependentUpon>
</Compile> </Compile>
<Compile Include="Pages\RepairView\page_RepairRecordEdit.cs">
<SubType>Form</SubType>
</Compile>
<Compile Include="Pages\RepairView\page_RepairRecordEdit.Designer.cs">
<DependentUpon>page_RepairRecordEdit.cs</DependentUpon>
</Compile>
<Compile Include="Pages\Users\frmPwdModify.cs"> <Compile Include="Pages\Users\frmPwdModify.cs">
<SubType>Form</SubType> <SubType>Form</SubType>
</Compile> </Compile>
@ -655,12 +637,6 @@
<EmbeddedResource Include="Pages\DialogWindow.resx"> <EmbeddedResource Include="Pages\DialogWindow.resx">
<DependentUpon>DialogWindow.cs</DependentUpon> <DependentUpon>DialogWindow.cs</DependentUpon>
</EmbeddedResource> </EmbeddedResource>
<EmbeddedResource Include="Pages\DriveMaintenance\xuc_BindDrives.resx">
<DependentUpon>xuc_BindDrives.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="Pages\DriveMaintenance\xuc_DriveMaintenance.resx">
<DependentUpon>xuc_DriveMaintenance.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="Pages\FormBase.resx"> <EmbeddedResource Include="Pages\FormBase.resx">
<DependentUpon>FormBase.cs</DependentUpon> <DependentUpon>FormBase.cs</DependentUpon>
</EmbeddedResource> </EmbeddedResource>
@ -712,9 +688,6 @@
<EmbeddedResource Include="Pages\Plan\page_PlanEdit.resx"> <EmbeddedResource Include="Pages\Plan\page_PlanEdit.resx">
<DependentUpon>page_PlanEdit.cs</DependentUpon> <DependentUpon>page_PlanEdit.cs</DependentUpon>
</EmbeddedResource> </EmbeddedResource>
<EmbeddedResource Include="Pages\RepairView\page_RepairRecordEdit.resx">
<DependentUpon>page_RepairRecordEdit.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="Pages\Users\frmPwdModify.resx"> <EmbeddedResource Include="Pages\Users\frmPwdModify.resx">
<DependentUpon>frmPwdModify.cs</DependentUpon> <DependentUpon>frmPwdModify.cs</DependentUpon>
</EmbeddedResource> </EmbeddedResource>
@ -805,14 +778,6 @@
<Project>{2ae8089a-c70a-47be-921b-de6a502f8d04}</Project> <Project>{2ae8089a-c70a-47be-921b-de6a502f8d04}</Project>
<Name>DeviceRepair.Utils</Name> <Name>DeviceRepair.Utils</Name>
</ProjectReference> </ProjectReference>
<ProjectReference Include="..\DeviceRepairAndOptimization.Data\DeviceRepairAndOptimization.Data.csproj">
<Project>{ae7a64be-4ef9-468e-b0c1-a6720dd08547}</Project>
<Name>DeviceRepairAndOptimization.Data</Name>
</ProjectReference>
<ProjectReference Include="..\DeviceRepairAndOptimization.Models\DeviceRepairAndOptimization.Models.csproj">
<Project>{99546ae7-e316-4b0b-befa-dbefc3c82677}</Project>
<Name>DeviceRepairAndOptimization.Models</Name>
</ProjectReference>
</ItemGroup> </ItemGroup>
<ItemGroup> <ItemGroup>
<Content Include="net.ico" /> <Content Include="net.ico" />
@ -876,6 +841,7 @@
<ItemGroup> <ItemGroup>
<Folder Include="DLLs\" /> <Folder Include="DLLs\" />
<Folder Include="Labels\" /> <Folder Include="Labels\" />
<Folder Include="Pages\RepairView\" />
</ItemGroup> </ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" /> <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
</Project> </Project>

View File

@ -1,4 +1,5 @@
using DeviceRepair.Models; using DeviceRepair.Models;
using DeviceRepair.Utils;
using System; using System;
using System.Linq; using System.Linq;
using System.Windows.Forms; using System.Windows.Forms;

View File

@ -1,4 +1,6 @@
using DevExpress.Spreadsheet; using DevExpress.Spreadsheet;
using DeviceRepair.Models;
using DeviceRepair.Utils;
using System; using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.Linq; using System.Linq;

View File

@ -41,12 +41,12 @@ namespace DeviceRepairAndOptimization
AutoUpdater.Synchronous = true; AutoUpdater.Synchronous = true;
AutoUpdater.ShowSkipButton = false; AutoUpdater.ShowSkipButton = false;
AutoUpdater.ShowRemindLaterButton = false; AutoUpdater.ShowRemindLaterButton = false;
AutoUpdater.Start($"http://{DeviceRepairAndOptimization.Models.Config.Configurations.Properties.ServiceIP}/{DeviceRepairAndOptimization.Models.Config.Configurations.Properties.ServiceName}/Update/DOAutoUpdater.xml"); AutoUpdater.Start($"http://{DeviceRepair.Utils.Config.Configurations.Properties.ServiceIP}/{DeviceRepair.Utils.Config.Configurations.Properties.ServiceName}/Update/DOAutoUpdater.xml");
try try
{ {
string argsValue = string.Join("|", args); string argsValue = string.Join("|", args);
string usValue = JWT.JsonWebToken.Decode(argsValue, DeviceRepairAndOptimization.Models.Config.Configurations.Properties.SecureKey, true); string usValue = JWT.JsonWebToken.Decode(argsValue, DeviceRepair.Utils.Config.Configurations.Properties.SecureKey, true);
UserInfoModel us = JsonConvert.DeserializeObject<UserInfoModel>(usValue); UserInfoModel us = JsonConvert.DeserializeObject<UserInfoModel>(usValue);

View File

@ -62,7 +62,7 @@
<Reference Include="DevExpress.XtraPrinting.v20.2, Version=20.2.3.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a, processorArchitecture=MSIL" /> <Reference Include="DevExpress.XtraPrinting.v20.2, Version=20.2.3.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a, processorArchitecture=MSIL" />
<Reference Include="DevExpress.XtraTreeList.v20.2, Version=20.2.3.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" /> <Reference Include="DevExpress.XtraTreeList.v20.2, Version=20.2.3.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" />
<Reference Include="HttpHelper"> <Reference Include="HttpHelper">
<HintPath>..\..\nuget\HttpHelper\HttpHelper.dll</HintPath> <HintPath>..\DeviceRepairAndOptimization\DLLs\HttpHelper.dll</HintPath>
</Reference> </Reference>
<Reference Include="Newtonsoft.Json, Version=13.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed, processorArchitecture=MSIL"> <Reference Include="Newtonsoft.Json, Version=13.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed, processorArchitecture=MSIL">
<HintPath>..\packages\Newtonsoft.Json.13.0.1\lib\net45\Newtonsoft.Json.dll</HintPath> <HintPath>..\packages\Newtonsoft.Json.13.0.1\lib\net45\Newtonsoft.Json.dll</HintPath>