初始化。
This commit is contained in:
parent
e6084afd82
commit
c15e3ea164
17
.gitignore
vendored
Normal file
17
.gitignore
vendored
Normal 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
|
51
DeviceRepair.Models/Logs/DeviceMaintenanceLogInfo.cs
Normal file
51
DeviceRepair.Models/Logs/DeviceMaintenanceLogInfo.cs
Normal 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
|
||||
|
||||
}
|
||||
}
|
49
DeviceRepair.Models/Logs/RoleAuthLogInfo.cs
Normal file
49
DeviceRepair.Models/Logs/RoleAuthLogInfo.cs
Normal 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
|
||||
|
||||
}
|
||||
}
|
49
DeviceRepair.Models/Logs/UserLockLogInfo.cs
Normal file
49
DeviceRepair.Models/Logs/UserLockLogInfo.cs
Normal 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
|
||||
|
||||
}
|
||||
}
|
40
DeviceRepair.Models/Logs/UserLogin.cs
Normal file
40
DeviceRepair.Models/Logs/UserLogin.cs
Normal 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
|
||||
|
||||
}
|
||||
}
|
43
DeviceRepair.Models/Logs/UserPwdErrorLogInfo.cs
Normal file
43
DeviceRepair.Models/Logs/UserPwdErrorLogInfo.cs
Normal 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
|
||||
|
||||
}
|
||||
}
|
221
DeviceRepair.Utils/ComputerHelper.cs
Normal file
221
DeviceRepair.Utils/ComputerHelper.cs
Normal 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
|
||||
}
|
||||
|
||||
}
|
|
@ -13,6 +13,12 @@
|
|||
[Config("LogConnection")]
|
||||
public string logConn { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 加密Key
|
||||
/// </summary>
|
||||
[Config("SecureKey")]
|
||||
public string SecureKey { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 数据通讯类型
|
||||
/// api
|
||||
|
|
|
@ -37,6 +37,7 @@
|
|||
<Reference Include="System.Configuration" />
|
||||
<Reference Include="System.Core" />
|
||||
<Reference Include="System.Drawing" />
|
||||
<Reference Include="System.Management" />
|
||||
<Reference Include="System.Web" />
|
||||
<Reference Include="System.Xml.Linq" />
|
||||
<Reference Include="System.Data.DataSetExtensions" />
|
||||
|
@ -47,6 +48,7 @@
|
|||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Compile Include="CompressionHelper.cs" />
|
||||
<Compile Include="ComputerHelper.cs" />
|
||||
<Compile Include="Config\ConfigAttribute.cs" />
|
||||
<Compile Include="Config\ConfigProperties.cs" />
|
||||
<Compile Include="Config\Configurations.cs" />
|
||||
|
|
BIN
DeviceRepairAndOptimization.sln
(Stored with Git LFS)
BIN
DeviceRepairAndOptimization.sln
(Stored with Git LFS)
Binary file not shown.
|
@ -73,7 +73,7 @@
|
|||
<!--<add key="ServiceName" value="DeviceRepairAPI" />-->
|
||||
|
||||
<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="ServiceName" value="DeviceRepairAPI2"/>-->
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
using CsharpHttpHelper;
|
||||
using CsharpHttpHelper.Enum;
|
||||
using DeviceRepair.Models;
|
||||
using DeviceRepair.Utils;
|
||||
using DeviceRepair.Utils.Security;
|
||||
using Newtonsoft.Json;
|
||||
using System;
|
||||
|
@ -15,7 +16,7 @@ namespace DeviceRepairAndOptimization.Biz
|
|||
public class ApiHelper
|
||||
{
|
||||
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;
|
||||
|
||||
|
|
|
@ -31,7 +31,7 @@ namespace DeviceRepairAndOptimization.Biz
|
|||
|
||||
try
|
||||
{
|
||||
switch (Models.Config.Configurations.Properties.ConnType?.ToLower())
|
||||
switch (DeviceRepair.Utils.Config.Configurations.Properties.ConnType?.ToLower())
|
||||
{
|
||||
case "api":
|
||||
#region api
|
||||
|
@ -75,7 +75,7 @@ namespace DeviceRepairAndOptimization.Biz
|
|||
|
||||
try
|
||||
{
|
||||
switch (Models.Config.Configurations.Properties.ConnType?.ToLower())
|
||||
switch (DeviceRepair.Utils.Config.Configurations.Properties.ConnType?.ToLower())
|
||||
{
|
||||
case "api":
|
||||
#region api
|
||||
|
@ -119,7 +119,7 @@ namespace DeviceRepairAndOptimization.Biz
|
|||
|
||||
try
|
||||
{
|
||||
switch (Models.Config.Configurations.Properties.ConnType?.ToLower())
|
||||
switch (DeviceRepair.Utils.Config.Configurations.Properties.ConnType?.ToLower())
|
||||
{
|
||||
case "api":
|
||||
apiResponseData = ApiHelper.Instance.SendMessage(new HttpItem
|
||||
|
|
|
@ -34,7 +34,7 @@ namespace DeviceRepairAndOptimization.Biz
|
|||
APIResponseData apiResponseData = new APIResponseData { Code = -1, Message = "没有查询到数据!" };
|
||||
try
|
||||
{
|
||||
switch (Models.Config.Configurations.Properties.ConnType?.ToLower())
|
||||
switch (DeviceRepair.Utils.Config.Configurations.Properties.ConnType?.ToLower())
|
||||
{
|
||||
case "api":
|
||||
|
||||
|
@ -70,7 +70,7 @@ namespace DeviceRepairAndOptimization.Biz
|
|||
APIResponseData apiResponseData = new APIResponseData { Code = -1, Message = "查询失败!" };
|
||||
try
|
||||
{
|
||||
switch (Models.Config.Configurations.Properties.ConnType?.ToLower())
|
||||
switch (DeviceRepair.Utils.Config.Configurations.Properties.ConnType?.ToLower())
|
||||
{
|
||||
case "api":
|
||||
apiResponseData = ApiHelper.Instance.SendMessage(new HttpItem
|
||||
|
@ -104,7 +104,7 @@ namespace DeviceRepairAndOptimization.Biz
|
|||
APIResponseData apiResponseData = new APIResponseData { Code = -1, Message = "查询失败!" };
|
||||
try
|
||||
{
|
||||
switch (Models.Config.Configurations.Properties.ConnType?.ToLower())
|
||||
switch (DeviceRepair.Utils.Config.Configurations.Properties.ConnType?.ToLower())
|
||||
{
|
||||
case "api":
|
||||
apiResponseData = ApiHelper.Instance.SendMessage(new HttpItem
|
||||
|
@ -138,7 +138,7 @@ namespace DeviceRepairAndOptimization.Biz
|
|||
APIResponseData apiResponseData = new APIResponseData { Code = -1, Message = "查询失败!" };
|
||||
try
|
||||
{
|
||||
switch (Models.Config.Configurations.Properties.ConnType?.ToLower())
|
||||
switch (DeviceRepair.Utils.Config.Configurations.Properties.ConnType?.ToLower())
|
||||
{
|
||||
case "api":
|
||||
apiResponseData = ApiHelper.Instance.SendMessage(new HttpItem
|
||||
|
@ -173,7 +173,7 @@ namespace DeviceRepairAndOptimization.Biz
|
|||
APIResponseData apiResponseData = new APIResponseData { Code = -1, Message = "查询失败!" };
|
||||
try
|
||||
{
|
||||
switch (Models.Config.Configurations.Properties.ConnType?.ToLower())
|
||||
switch (DeviceRepair.Utils.Config.Configurations.Properties.ConnType?.ToLower())
|
||||
{
|
||||
case "api":
|
||||
#region api
|
||||
|
|
|
@ -30,7 +30,7 @@ namespace DeviceRepairAndOptimization.Biz
|
|||
APIResponseData apiResponseData = new APIResponseData { Code = -1, Message = "没有查询到数据!" };
|
||||
try
|
||||
{
|
||||
switch (Models.Config.Configurations.Properties.ConnType?.ToLower())
|
||||
switch (DeviceRepair.Utils.Config.Configurations.Properties.ConnType?.ToLower())
|
||||
{
|
||||
case "api":
|
||||
|
||||
|
@ -66,7 +66,7 @@ namespace DeviceRepairAndOptimization.Biz
|
|||
APIResponseData apiResponseData = new APIResponseData { Code = -1, Message = "没有查询到数据!" };
|
||||
try
|
||||
{
|
||||
switch (Models.Config.Configurations.Properties.ConnType?.ToLower())
|
||||
switch (DeviceRepair.Utils.Config.Configurations.Properties.ConnType?.ToLower())
|
||||
{
|
||||
case "api":
|
||||
|
||||
|
@ -102,7 +102,7 @@ namespace DeviceRepairAndOptimization.Biz
|
|||
APIResponseData apiResponseData = new APIResponseData { Code = -1, Message = "没有查询到数据!" };
|
||||
try
|
||||
{
|
||||
switch (Models.Config.Configurations.Properties.ConnType?.ToLower())
|
||||
switch (DeviceRepair.Utils.Config.Configurations.Properties.ConnType?.ToLower())
|
||||
{
|
||||
case "api":
|
||||
|
||||
|
@ -140,7 +140,7 @@ namespace DeviceRepairAndOptimization.Biz
|
|||
APIResponseData apiResponseData = new APIResponseData { Code = -1, Message = "没有查询到数据!" };
|
||||
try
|
||||
{
|
||||
switch (Models.Config.Configurations.Properties.ConnType?.ToLower())
|
||||
switch (DeviceRepair.Utils.Config.Configurations.Properties.ConnType?.ToLower())
|
||||
{
|
||||
case "api":
|
||||
|
||||
|
|
|
@ -33,7 +33,7 @@ namespace DeviceRepairAndOptimization.Biz
|
|||
APIResponseData apiResponseData = new APIResponseData { Code = -1, Message = "操作失败!" };
|
||||
try
|
||||
{
|
||||
switch (Models.Config.Configurations.Properties.ConnType?.ToLower())
|
||||
switch (DeviceRepair.Utils.Config.Configurations.Properties.ConnType?.ToLower())
|
||||
{
|
||||
case "api":
|
||||
|
||||
|
@ -70,7 +70,7 @@ namespace DeviceRepairAndOptimization.Biz
|
|||
APIResponseData apiResponseData = new APIResponseData { Code = -1, Message = "操作失败!" };
|
||||
try
|
||||
{
|
||||
switch (Models.Config.Configurations.Properties.ConnType?.ToLower())
|
||||
switch (DeviceRepair.Utils.Config.Configurations.Properties.ConnType?.ToLower())
|
||||
{
|
||||
case "api":
|
||||
|
||||
|
@ -109,7 +109,7 @@ namespace DeviceRepairAndOptimization.Biz
|
|||
string FileExtension = Path.GetExtension(filePath);
|
||||
string newName = $"{Guid.NewGuid()}{FileExtension}";
|
||||
|
||||
switch (Models.Config.Configurations.Properties.ConnType?.ToLower())
|
||||
switch (DeviceRepair.Utils.Config.Configurations.Properties.ConnType?.ToLower())
|
||||
{
|
||||
case "api":
|
||||
using (var fileStream = new FileStream(filePath, FileMode.Open, FileAccess.Read))
|
||||
|
@ -139,7 +139,7 @@ namespace DeviceRepairAndOptimization.Biz
|
|||
APIResponseData apiResponseData = new APIResponseData { Code = -1, Message = "未能获取到数据!" };
|
||||
try
|
||||
{
|
||||
switch (Models.Config.Configurations.Properties.ConnType?.ToLower())
|
||||
switch (DeviceRepair.Utils.Config.Configurations.Properties.ConnType?.ToLower())
|
||||
{
|
||||
case "api":
|
||||
|
||||
|
@ -174,7 +174,7 @@ namespace DeviceRepairAndOptimization.Biz
|
|||
APIResponseData apiResponseData = new APIResponseData { Code = -1, Message = "未能获取到数据!" };
|
||||
try
|
||||
{
|
||||
switch (Models.Config.Configurations.Properties.ConnType?.ToLower())
|
||||
switch (DeviceRepair.Utils.Config.Configurations.Properties.ConnType?.ToLower())
|
||||
{
|
||||
case "api":
|
||||
|
||||
|
@ -209,7 +209,7 @@ namespace DeviceRepairAndOptimization.Biz
|
|||
APIResponseData apiResponseData = new APIResponseData { Code = -1, Message = "操作失败!" };
|
||||
try
|
||||
{
|
||||
switch (Models.Config.Configurations.Properties.ConnType?.ToLower())
|
||||
switch (DeviceRepair.Utils.Config.Configurations.Properties.ConnType?.ToLower())
|
||||
{
|
||||
case "api":
|
||||
apiResponseData = ApiHelper.Instance.SendMessage(new HttpItem
|
||||
|
@ -244,7 +244,7 @@ namespace DeviceRepairAndOptimization.Biz
|
|||
APIResponseData apiResponseData = new APIResponseData { Code = -1, Message = "操作失败!" };
|
||||
try
|
||||
{
|
||||
switch (Models.Config.Configurations.Properties.ConnType?.ToLower())
|
||||
switch (DeviceRepair.Utils.Config.Configurations.Properties.ConnType?.ToLower())
|
||||
{
|
||||
case "api":
|
||||
apiResponseData = ApiHelper.Instance.SendMessage(new HttpItem
|
||||
|
@ -276,7 +276,7 @@ namespace DeviceRepairAndOptimization.Biz
|
|||
APIResponseData apiResponseData = new APIResponseData { Code = -1 };
|
||||
try
|
||||
{
|
||||
switch (Models.Config.Configurations.Properties.ConnType?.ToLower())
|
||||
switch (DeviceRepair.Utils.Config.Configurations.Properties.ConnType?.ToLower())
|
||||
{
|
||||
case "api":
|
||||
|
||||
|
@ -316,7 +316,7 @@ namespace DeviceRepairAndOptimization.Biz
|
|||
|
||||
try
|
||||
{
|
||||
switch (Models.Config.Configurations.Properties.ConnType?.ToLower())
|
||||
switch (DeviceRepair.Utils.Config.Configurations.Properties.ConnType?.ToLower())
|
||||
{
|
||||
case "api":
|
||||
apiResponseData = ApiHelper.Instance.SendMessage(new HttpItem
|
||||
|
|
|
@ -33,7 +33,7 @@ namespace DeviceRepairAndOptimization.Biz
|
|||
APIResponseData apiResponseData = new APIResponseData { Code = -1, Message = "未能获取到数据!" };
|
||||
try
|
||||
{
|
||||
switch (Models.Config.Configurations.Properties.ConnType?.ToLower())
|
||||
switch (DeviceRepair.Utils.Config.Configurations.Properties.ConnType?.ToLower())
|
||||
{
|
||||
case "api":
|
||||
|
||||
|
@ -72,7 +72,7 @@ namespace DeviceRepairAndOptimization.Biz
|
|||
APIResponseData apiResponseData = new APIResponseData { Code = -1, Message = "操作未能成功!" };
|
||||
try
|
||||
{
|
||||
switch (Models.Config.Configurations.Properties.ConnType?.ToLower())
|
||||
switch (DeviceRepair.Utils.Config.Configurations.Properties.ConnType?.ToLower())
|
||||
{
|
||||
case "api":
|
||||
|
||||
|
@ -112,7 +112,7 @@ namespace DeviceRepairAndOptimization.Biz
|
|||
APIResponseData apiResponseData = new APIResponseData { Code = -1, Message = "操作未能成功!" };
|
||||
try
|
||||
{
|
||||
switch (Models.Config.Configurations.Properties.ConnType?.ToLower())
|
||||
switch (DeviceRepair.Utils.Config.Configurations.Properties.ConnType?.ToLower())
|
||||
{
|
||||
case "api":
|
||||
|
||||
|
@ -152,7 +152,7 @@ namespace DeviceRepairAndOptimization.Biz
|
|||
APIResponseData apiResponseData = new APIResponseData { Code = -1, Message = "操作未能成功!" };
|
||||
try
|
||||
{
|
||||
switch (Models.Config.Configurations.Properties.ConnType?.ToLower())
|
||||
switch (DeviceRepair.Utils.Config.Configurations.Properties.ConnType?.ToLower())
|
||||
{
|
||||
case "api":
|
||||
|
||||
|
|
|
@ -35,7 +35,7 @@ namespace DeviceRepairAndOptimization.Biz
|
|||
APIResponseData apiResponseData = new APIResponseData { Code = -1, Message = "操作失败!" };
|
||||
try
|
||||
{
|
||||
switch (Models.Config.Configurations.Properties.ConnType?.ToLower())
|
||||
switch (DeviceRepair.Utils.Config.Configurations.Properties.ConnType?.ToLower())
|
||||
{
|
||||
case "api":
|
||||
apiResponseData = ApiHelper.Instance.SendMessage(new HttpItem
|
||||
|
@ -69,7 +69,7 @@ namespace DeviceRepairAndOptimization.Biz
|
|||
APIResponseData apiResponseData = new APIResponseData { Code = -1, Message = "未能获取到数据!" };
|
||||
try
|
||||
{
|
||||
switch (Models.Config.Configurations.Properties.ConnType?.ToLower())
|
||||
switch (DeviceRepair.Utils.Config.Configurations.Properties.ConnType?.ToLower())
|
||||
{
|
||||
case "api":
|
||||
apiResponseData = ApiHelper.Instance.SendMessage(new HttpItem
|
||||
|
@ -105,7 +105,7 @@ namespace DeviceRepairAndOptimization.Biz
|
|||
APIResponseData apiResponseData = new APIResponseData { Code = -1 };
|
||||
try
|
||||
{
|
||||
switch (Models.Config.Configurations.Properties.ConnType?.ToLower())
|
||||
switch (DeviceRepair.Utils.Config.Configurations.Properties.ConnType?.ToLower())
|
||||
{
|
||||
case "api":
|
||||
apiResponseData = ApiHelper.Instance.SendMessage(new HttpItem
|
||||
|
@ -141,7 +141,7 @@ namespace DeviceRepairAndOptimization.Biz
|
|||
int Count = -1;
|
||||
try
|
||||
{
|
||||
switch (Models.Config.Configurations.Properties.ConnType?.ToLower())
|
||||
switch (DeviceRepair.Utils.Config.Configurations.Properties.ConnType?.ToLower())
|
||||
{
|
||||
case "api":
|
||||
ApiHelper.Instance.SendMessageAsync(new HttpItem
|
||||
|
@ -176,7 +176,7 @@ namespace DeviceRepairAndOptimization.Biz
|
|||
APIResponseData apiResponseData = null;
|
||||
try
|
||||
{
|
||||
switch (Models.Config.Configurations.Properties.ConnType?.ToLower())
|
||||
switch (DeviceRepair.Utils.Config.Configurations.Properties.ConnType?.ToLower())
|
||||
{
|
||||
case "api":
|
||||
apiResponseData = ApiHelper.Instance.SendMessage(new HttpItem
|
||||
|
@ -212,7 +212,7 @@ namespace DeviceRepairAndOptimization.Biz
|
|||
|
||||
try
|
||||
{
|
||||
switch (Models.Config.Configurations.Properties.ConnType?.ToLower())
|
||||
switch (DeviceRepair.Utils.Config.Configurations.Properties.ConnType?.ToLower())
|
||||
{
|
||||
case "api":
|
||||
apiResponseData = ApiHelper.Instance.SendMessage(new HttpItem
|
||||
|
@ -249,7 +249,7 @@ namespace DeviceRepairAndOptimization.Biz
|
|||
|
||||
try
|
||||
{
|
||||
switch (Models.Config.Configurations.Properties.ConnType?.ToLower())
|
||||
switch (DeviceRepair.Utils.Config.Configurations.Properties.ConnType?.ToLower())
|
||||
{
|
||||
case "api":
|
||||
apiResponseData = ApiHelper.Instance.SendMessage(new HttpItem
|
||||
|
@ -286,7 +286,7 @@ namespace DeviceRepairAndOptimization.Biz
|
|||
APIResponseData apiResponseData = null;
|
||||
try
|
||||
{
|
||||
switch (Models.Config.Configurations.Properties.ConnType?.ToLower())
|
||||
switch (DeviceRepair.Utils.Config.Configurations.Properties.ConnType?.ToLower())
|
||||
{
|
||||
case "api":
|
||||
apiResponseData = ApiHelper.Instance.SendMessage(
|
||||
|
@ -322,7 +322,7 @@ namespace DeviceRepairAndOptimization.Biz
|
|||
APIResponseData apiResponseData = null;
|
||||
try
|
||||
{
|
||||
switch (Models.Config.Configurations.Properties.ConnType?.ToLower())
|
||||
switch (DeviceRepair.Utils.Config.Configurations.Properties.ConnType?.ToLower())
|
||||
{
|
||||
case "api":
|
||||
apiResponseData = ApiHelper.Instance.SendMessage(
|
||||
|
|
|
@ -37,7 +37,7 @@ namespace DeviceRepairAndOptimization.Biz
|
|||
string filePath = string.Empty;
|
||||
try
|
||||
{
|
||||
switch (Models.Config.Configurations.Properties.ConnType?.ToLower())
|
||||
switch (DeviceRepair.Utils.Config.Configurations.Properties.ConnType?.ToLower())
|
||||
{
|
||||
case "api":
|
||||
filePath = ApiHelper.Instance.DownLoadFile(new HttpItem()
|
||||
|
@ -66,7 +66,7 @@ namespace DeviceRepairAndOptimization.Biz
|
|||
string filePath = string.Empty;
|
||||
try
|
||||
{
|
||||
switch (Models.Config.Configurations.Properties.ConnType?.ToLower())
|
||||
switch (DeviceRepair.Utils.Config.Configurations.Properties.ConnType?.ToLower())
|
||||
{
|
||||
case "api":
|
||||
filePath = ApiHelper.Instance.DownLoadFile(new HttpItem()
|
||||
|
@ -98,7 +98,7 @@ namespace DeviceRepairAndOptimization.Biz
|
|||
APIResponseData apiResponseData = new APIResponseData { Code = -1, Message = "获取数据失败!" };
|
||||
try
|
||||
{
|
||||
switch (Models.Config.Configurations.Properties.ConnType?.ToLower())
|
||||
switch (DeviceRepair.Utils.Config.Configurations.Properties.ConnType?.ToLower())
|
||||
{
|
||||
case "api":
|
||||
#region api
|
||||
|
@ -140,7 +140,7 @@ namespace DeviceRepairAndOptimization.Biz
|
|||
APIResponseData apiResponseData = new APIResponseData { Code = -1, Message = "未能获取到数据!" };
|
||||
try
|
||||
{
|
||||
switch (Models.Config.Configurations.Properties.ConnType?.ToLower())
|
||||
switch (DeviceRepair.Utils.Config.Configurations.Properties.ConnType?.ToLower())
|
||||
{
|
||||
case "api":
|
||||
apiResponseData = ApiHelper.Instance.SendMessage(new HttpItem
|
||||
|
@ -176,7 +176,7 @@ namespace DeviceRepairAndOptimization.Biz
|
|||
APIResponseData apiResponseData = new APIResponseData { Code = -1, Message = "未能获取到数据!" };
|
||||
try
|
||||
{
|
||||
switch (Models.Config.Configurations.Properties.ConnType?.ToLower())
|
||||
switch (DeviceRepair.Utils.Config.Configurations.Properties.ConnType?.ToLower())
|
||||
{
|
||||
case "api":
|
||||
apiResponseData = ApiHelper.Instance.SendMessage(new HttpItem
|
||||
|
@ -210,7 +210,7 @@ namespace DeviceRepairAndOptimization.Biz
|
|||
APIResponseData apiResponseData = new APIResponseData { Code = -1, Data = null, Message = "获取数据失败" };
|
||||
try
|
||||
{
|
||||
switch (Models.Config.Configurations.Properties.ConnType?.ToLower())
|
||||
switch (DeviceRepair.Utils.Config.Configurations.Properties.ConnType?.ToLower())
|
||||
{
|
||||
case "api":
|
||||
apiResponseData = ApiHelper.Instance.SendMessage(new HttpItem
|
||||
|
@ -245,7 +245,7 @@ namespace DeviceRepairAndOptimization.Biz
|
|||
APIResponseData apiResponseData = new APIResponseData { Code = -1, Data = null, Message = "获取数据失败" };
|
||||
try
|
||||
{
|
||||
switch (Models.Config.Configurations.Properties.ConnType?.ToLower())
|
||||
switch (DeviceRepair.Utils.Config.Configurations.Properties.ConnType?.ToLower())
|
||||
{
|
||||
case "api":
|
||||
apiResponseData = ApiHelper.Instance.SendMessage(new HttpItem
|
||||
|
@ -282,7 +282,7 @@ namespace DeviceRepairAndOptimization.Biz
|
|||
|
||||
try
|
||||
{
|
||||
switch (Models.Config.Configurations.Properties.ConnType?.ToLower())
|
||||
switch (DeviceRepair.Utils.Config.Configurations.Properties.ConnType?.ToLower())
|
||||
{
|
||||
case "api":
|
||||
apiResponseData = ApiHelper.Instance.SendMessage(new HttpItem
|
||||
|
|
|
@ -32,7 +32,7 @@ namespace DeviceRepairAndOptimization.Biz
|
|||
APIResponseData apiResponseData = new APIResponseData { Code = -1, Message = "没有查询到数据!" };
|
||||
try
|
||||
{
|
||||
switch (Models.Config.Configurations.Properties.ConnType?.ToLower())
|
||||
switch (DeviceRepair.Utils.Config.Configurations.Properties.ConnType?.ToLower())
|
||||
{
|
||||
case "api":
|
||||
#region api
|
||||
|
@ -74,7 +74,7 @@ namespace DeviceRepairAndOptimization.Biz
|
|||
APIResponseData apiResponseData = new APIResponseData { Code = -1, Message = "没有查询到数据!" };
|
||||
try
|
||||
{
|
||||
switch (Models.Config.Configurations.Properties.ConnType?.ToLower())
|
||||
switch (DeviceRepair.Utils.Config.Configurations.Properties.ConnType?.ToLower())
|
||||
{
|
||||
case "api":
|
||||
#region api
|
||||
|
@ -116,7 +116,7 @@ namespace DeviceRepairAndOptimization.Biz
|
|||
APIResponseData apiResponseData = new APIResponseData { Code = -1, Message = "没有查询到数据!" };
|
||||
try
|
||||
{
|
||||
switch (Models.Config.Configurations.Properties.ConnType?.ToLower())
|
||||
switch (DeviceRepair.Utils.Config.Configurations.Properties.ConnType?.ToLower())
|
||||
{
|
||||
case "api":
|
||||
#region api
|
||||
|
@ -159,7 +159,7 @@ namespace DeviceRepairAndOptimization.Biz
|
|||
APIResponseData apiResponseData = new APIResponseData { Code = -1, Message = "操作失败!" };
|
||||
try
|
||||
{
|
||||
switch (Models.Config.Configurations.Properties.ConnType?.ToLower())
|
||||
switch (DeviceRepair.Utils.Config.Configurations.Properties.ConnType?.ToLower())
|
||||
{
|
||||
case "api":
|
||||
#region api
|
||||
|
@ -196,7 +196,7 @@ namespace DeviceRepairAndOptimization.Biz
|
|||
APIResponseData apiResponseData = new APIResponseData { Code = -1, Message = "操作失败!" };
|
||||
try
|
||||
{
|
||||
switch (Models.Config.Configurations.Properties.ConnType?.ToLower())
|
||||
switch (DeviceRepair.Utils.Config.Configurations.Properties.ConnType?.ToLower())
|
||||
{
|
||||
case "api":
|
||||
#region api
|
||||
|
@ -233,7 +233,7 @@ namespace DeviceRepairAndOptimization.Biz
|
|||
APIResponseData apiResponseData = new APIResponseData { Code = -1, Message = "没有查询到数据!" };
|
||||
try
|
||||
{
|
||||
switch (Models.Config.Configurations.Properties.ConnType?.ToLower())
|
||||
switch (DeviceRepair.Utils.Config.Configurations.Properties.ConnType?.ToLower())
|
||||
{
|
||||
case "api":
|
||||
#region api
|
||||
|
@ -269,7 +269,7 @@ namespace DeviceRepairAndOptimization.Biz
|
|||
APIResponseData apiResponseData = new APIResponseData { Code = -1, Message = "没有查询到数据!" };
|
||||
try
|
||||
{
|
||||
switch (Models.Config.Configurations.Properties.ConnType?.ToLower())
|
||||
switch (DeviceRepair.Utils.Config.Configurations.Properties.ConnType?.ToLower())
|
||||
{
|
||||
case "api":
|
||||
#region api
|
||||
|
@ -314,7 +314,7 @@ namespace DeviceRepairAndOptimization.Biz
|
|||
{
|
||||
Item.ModifyBy = GlobalInfo.CurrentUser.AutoID;
|
||||
|
||||
switch (Models.Config.Configurations.Properties.ConnType?.ToLower())
|
||||
switch (DeviceRepair.Utils.Config.Configurations.Properties.ConnType?.ToLower())
|
||||
{
|
||||
case "api":
|
||||
|
||||
|
@ -360,7 +360,7 @@ namespace DeviceRepairAndOptimization.Biz
|
|||
APIResponseData apiResponseData = new APIResponseData { Code = -1, Message = "操作失败!" };
|
||||
try
|
||||
{
|
||||
switch (Models.Config.Configurations.Properties.ConnType?.ToLower())
|
||||
switch (DeviceRepair.Utils.Config.Configurations.Properties.ConnType?.ToLower())
|
||||
{
|
||||
case "api":
|
||||
|
||||
|
|
|
@ -32,7 +32,7 @@ namespace DeviceRepairAndOptimization.Biz
|
|||
APIResponseData apiResponseData = new APIResponseData { Code = -1, Message = "登录失败!" };
|
||||
try
|
||||
{
|
||||
switch (Models.Config.Configurations.Properties.ConnType?.ToLower())
|
||||
switch (DeviceRepair.Utils.Config.Configurations.Properties.ConnType?.ToLower())
|
||||
{
|
||||
case "api":
|
||||
apiResponseData = ApiHelper.Instance.SendMessage(new HttpItem
|
||||
|
@ -65,7 +65,7 @@ namespace DeviceRepairAndOptimization.Biz
|
|||
{
|
||||
try
|
||||
{
|
||||
switch (Models.Config.Configurations.Properties.ConnType?.ToLower())
|
||||
switch (DeviceRepair.Utils.Config.Configurations.Properties.ConnType?.ToLower())
|
||||
{
|
||||
case "api":
|
||||
ApiHelper.Instance.SendMessage(new HttpItem
|
||||
|
@ -98,7 +98,7 @@ namespace DeviceRepairAndOptimization.Biz
|
|||
APIResponseData apiResponseData = new APIResponseData { Code = -1, Message = "账户或密码不正确!" };
|
||||
try
|
||||
{
|
||||
switch (Models.Config.Configurations.Properties.ConnType?.ToLower())
|
||||
switch (DeviceRepair.Utils.Config.Configurations.Properties.ConnType?.ToLower())
|
||||
{
|
||||
case "api":
|
||||
|
||||
|
@ -144,7 +144,7 @@ namespace DeviceRepairAndOptimization.Biz
|
|||
APIResponseData apiResponseData = new APIResponseData { Code = -1, Message = "账户或密码不正确!" };
|
||||
try
|
||||
{
|
||||
switch (Models.Config.Configurations.Properties.ConnType?.ToLower())
|
||||
switch (DeviceRepair.Utils.Config.Configurations.Properties.ConnType?.ToLower())
|
||||
{
|
||||
case "api":
|
||||
|
||||
|
@ -189,7 +189,7 @@ namespace DeviceRepairAndOptimization.Biz
|
|||
APIResponseData apiResponseData = new APIResponseData { Code = -1, Message = "账户或密码不正确!" };
|
||||
try
|
||||
{
|
||||
switch (Models.Config.Configurations.Properties.ConnType?.ToLower())
|
||||
switch (DeviceRepair.Utils.Config.Configurations.Properties.ConnType?.ToLower())
|
||||
{
|
||||
case "api":
|
||||
|
||||
|
@ -233,7 +233,7 @@ namespace DeviceRepairAndOptimization.Biz
|
|||
APIResponseData apiResponseData = new APIResponseData { Code = -1, Message = "没有查询到数据!" };
|
||||
try
|
||||
{
|
||||
switch (Models.Config.Configurations.Properties.ConnType?.ToLower())
|
||||
switch (DeviceRepair.Utils.Config.Configurations.Properties.ConnType?.ToLower())
|
||||
{
|
||||
case "api":
|
||||
#region api
|
||||
|
@ -275,7 +275,7 @@ namespace DeviceRepairAndOptimization.Biz
|
|||
APIResponseData apiResponseData = new APIResponseData { Code = -1, Message = "没有查询到数据!" };
|
||||
try
|
||||
{
|
||||
switch (Models.Config.Configurations.Properties.ConnType?.ToLower())
|
||||
switch (DeviceRepair.Utils.Config.Configurations.Properties.ConnType?.ToLower())
|
||||
{
|
||||
case "api":
|
||||
#region api
|
||||
|
@ -321,7 +321,7 @@ namespace DeviceRepairAndOptimization.Biz
|
|||
{
|
||||
Item.ModifyBy = GlobalInfo.CurrentUser.AutoID;
|
||||
|
||||
switch (Models.Config.Configurations.Properties.ConnType?.ToLower())
|
||||
switch (DeviceRepair.Utils.Config.Configurations.Properties.ConnType?.ToLower())
|
||||
{
|
||||
case "api":
|
||||
|
||||
|
@ -369,7 +369,7 @@ namespace DeviceRepairAndOptimization.Biz
|
|||
{
|
||||
Item.ModifyBy = GlobalInfo.CurrentUser.AutoID;
|
||||
|
||||
switch (Models.Config.Configurations.Properties.ConnType?.ToLower())
|
||||
switch (DeviceRepair.Utils.Config.Configurations.Properties.ConnType?.ToLower())
|
||||
{
|
||||
case "api":
|
||||
|
||||
|
@ -415,7 +415,7 @@ namespace DeviceRepairAndOptimization.Biz
|
|||
APIResponseData apiResponseData = new APIResponseData { Code = -1, Message = "账户或密码不正确!" };
|
||||
try
|
||||
{
|
||||
switch (Models.Config.Configurations.Properties.ConnType?.ToLower())
|
||||
switch (DeviceRepair.Utils.Config.Configurations.Properties.ConnType?.ToLower())
|
||||
{
|
||||
case "api":
|
||||
|
||||
|
|
BIN
DeviceRepairAndOptimization/DLLs/HttpHelper.dll
(Stored with Git LFS)
Normal file
BIN
DeviceRepairAndOptimization/DLLs/HttpHelper.dll
(Stored with Git LFS)
Normal file
Binary file not shown.
|
@ -192,7 +192,7 @@
|
|||
<HintPath>..\..\TsSFC.App5\DLLs\FastReport.Editor.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="HttpHelper">
|
||||
<HintPath>..\..\nuget\HttpHelper\HttpHelper.dll</HintPath>
|
||||
<HintPath>DLLs\HttpHelper.dll</HintPath>
|
||||
<Private>False</Private>
|
||||
</Reference>
|
||||
<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">
|
||||
<DependentUpon>DialogWindow.cs</DependentUpon>
|
||||
</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">
|
||||
<SubType>Form</SubType>
|
||||
</Compile>
|
||||
|
@ -501,12 +489,6 @@
|
|||
<Compile Include="Pages\Plan\page_PlanEdit.Designer.cs">
|
||||
<DependentUpon>page_PlanEdit.cs</DependentUpon>
|
||||
</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">
|
||||
<SubType>Form</SubType>
|
||||
</Compile>
|
||||
|
@ -655,12 +637,6 @@
|
|||
<EmbeddedResource Include="Pages\DialogWindow.resx">
|
||||
<DependentUpon>DialogWindow.cs</DependentUpon>
|
||||
</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">
|
||||
<DependentUpon>FormBase.cs</DependentUpon>
|
||||
</EmbeddedResource>
|
||||
|
@ -712,9 +688,6 @@
|
|||
<EmbeddedResource Include="Pages\Plan\page_PlanEdit.resx">
|
||||
<DependentUpon>page_PlanEdit.cs</DependentUpon>
|
||||
</EmbeddedResource>
|
||||
<EmbeddedResource Include="Pages\RepairView\page_RepairRecordEdit.resx">
|
||||
<DependentUpon>page_RepairRecordEdit.cs</DependentUpon>
|
||||
</EmbeddedResource>
|
||||
<EmbeddedResource Include="Pages\Users\frmPwdModify.resx">
|
||||
<DependentUpon>frmPwdModify.cs</DependentUpon>
|
||||
</EmbeddedResource>
|
||||
|
@ -805,14 +778,6 @@
|
|||
<Project>{2ae8089a-c70a-47be-921b-de6a502f8d04}</Project>
|
||||
<Name>DeviceRepair.Utils</Name>
|
||||
</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>
|
||||
<Content Include="net.ico" />
|
||||
|
@ -876,6 +841,7 @@
|
|||
<ItemGroup>
|
||||
<Folder Include="DLLs\" />
|
||||
<Folder Include="Labels\" />
|
||||
<Folder Include="Pages\RepairView\" />
|
||||
</ItemGroup>
|
||||
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
|
||||
</Project>
|
|
@ -1,4 +1,5 @@
|
|||
using DeviceRepair.Models;
|
||||
using DeviceRepair.Utils;
|
||||
using System;
|
||||
using System.Linq;
|
||||
using System.Windows.Forms;
|
||||
|
|
|
@ -1,4 +1,6 @@
|
|||
using DevExpress.Spreadsheet;
|
||||
using DeviceRepair.Models;
|
||||
using DeviceRepair.Utils;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
|
|
|
@ -41,12 +41,12 @@ namespace DeviceRepairAndOptimization
|
|||
AutoUpdater.Synchronous = true;
|
||||
AutoUpdater.ShowSkipButton = 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
|
||||
{
|
||||
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);
|
||||
|
||||
|
||||
|
|
|
@ -62,7 +62,7 @@
|
|||
<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="HttpHelper">
|
||||
<HintPath>..\..\nuget\HttpHelper\HttpHelper.dll</HintPath>
|
||||
<HintPath>..\DeviceRepairAndOptimization\DLLs\HttpHelper.dll</HintPath>
|
||||
</Reference>
|
||||
<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>
|
||||
|
|
Loading…
Reference in New Issue
Block a user