Files
RBMESAPICore/Context/LocalStatic/LocalStaticRequest.cs

38 lines
1.4 KiB
C#
Raw Normal View History

2025-09-09 22:41:29 +08:00
using RB_MES_API.Controllers.Cloud;
using RB_MES_API.Controllers;
using RB_MES_API.Models;
using System.Threading;
using static Org.BouncyCastle.Math.EC.ECCurve;
using RB_MES_API.Models.Cloud;
using Kingdee.CDP.WebApi.SDK;
namespace RB_MES_API.Context
{
/// <summary>
/// <20><><EFBFBD><EFBFBD>ȫ<EFBFBD>ֱ<EFBFBD><D6B1><EFBFBD>
/// </summary>
public static class LocalStaticRequest
{
2025-09-19 10:04:01 +08:00
public static K3CloudApi cloudApi { get; set; } = new K3CloudApi();
2025-09-09 22:41:29 +08:00
public static bool Islogin { get; set; } = false;
2025-09-19 10:04:01 +08:00
public static string LoginMsg { get; set; } = string.Empty;
2025-09-09 22:41:29 +08:00
public static bool NeedRefresh { get; set; } = true;
2025-09-19 10:04:01 +08:00
public static List<int> HashCode { get; set; } = new List<int>();
2025-09-09 22:41:29 +08:00
public static List<SystemProfile> sysprofile = new List<SystemProfile>();
2025-09-19 10:04:01 +08:00
public static string GetSystemProfile(int categoryid, string key)
2025-09-09 22:41:29 +08:00
{
if (sysprofile.Any(s => s.FCategoryID == categoryid && s.FKey == key))
{
return sysprofile.Find(s => s.FCategoryID == categoryid && s.FKey == key).FValue;
}
return null;
}
public static int DefaultOrgID { get; set; }
public static string DefaultOrg { get; set; }
public static int UserID { get; set; }
public static bool LocasServerStatus { get; set; } = false;
public static Dictionary<string, string> BillTypeDic { get; set; } = new Dictionary<string, string>();
}
}