Files
RBMESAPICore/Context/LocalStatic/LocalStaticRequest.cs
liangjunyu 63b5b02b23 1
2025-09-19 10:04:01 +08:00

38 lines
1.4 KiB
C#

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>
/// ±¾µØÈ«¾Ö±äÁ¿
/// </summary>
public static class LocalStaticRequest
{
public static K3CloudApi cloudApi { get; set; } = new K3CloudApi();
public static bool Islogin { get; set; } = false;
public static string LoginMsg { get; set; } = string.Empty;
public static bool NeedRefresh { get; set; } = true;
public static List<int> HashCode { get; set; } = new List<int>();
public static List<SystemProfile> sysprofile = new List<SystemProfile>();
public static string GetSystemProfile(int categoryid, string key)
{
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>();
}
}