qqq
This commit is contained in:
37
Context/LocalStatic/LocalStaticRequest.cs
Normal file
37
Context/LocalStatic/LocalStaticRequest.cs
Normal file
@@ -0,0 +1,37 @@
|
||||
|
||||
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>();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user