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
{
///
/// 本地全局变量
///
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 HashCode { get; set; } = new List();
public static List sysprofile = new List();
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 BillTypeDic { get; set; } = new Dictionary();
}
}