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
{
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>();
}
}