项目主数据对接
This commit is contained in:
@@ -174,11 +174,11 @@
|
||||
|
||||
|
||||
|
||||
public static string WuHuanMDMPath
|
||||
public static string WuHuanPMPPath
|
||||
{
|
||||
get
|
||||
{
|
||||
var sysSet5 = (from x in Funs.DB.Sys_Set where x.SetName == "MDM接口地址" select x).ToList().FirstOrDefault();
|
||||
var sysSet5 = (from x in Funs.DB.Sys_Set where x.SetName == "PMP接口地址" select x).ToList().FirstOrDefault();
|
||||
if (sysSet5 != null)
|
||||
{
|
||||
_CNCECPath = sysSet5.SetValue;
|
||||
@@ -194,11 +194,11 @@
|
||||
_CNCECPath = value;
|
||||
}
|
||||
}
|
||||
public static string WuHuanMDMToken
|
||||
public static string WuHuanPMPToken
|
||||
{
|
||||
get
|
||||
{
|
||||
var sysSet5 = (from x in Funs.DB.Sys_Set where x.SetName == "MDMToken" select x).ToList().FirstOrDefault();
|
||||
var sysSet5 = (from x in Funs.DB.Sys_Set where x.SetName == "PMPToken" select x).ToList().FirstOrDefault();
|
||||
if (sysSet5 != null)
|
||||
{
|
||||
_CNCECToken = sysSet5.SetValue;
|
||||
@@ -210,11 +210,11 @@
|
||||
return _CNCECToken;
|
||||
}
|
||||
}
|
||||
public static string WuHuanMDMTokenExTime
|
||||
public static string WuHuanPMPTokenExTime
|
||||
{
|
||||
get
|
||||
{
|
||||
var sysSet5 = (from x in Funs.DB.Sys_Set where x.SetName == "MDMTokenExTime" select x).ToList().FirstOrDefault();
|
||||
var sysSet5 = (from x in Funs.DB.Sys_Set where x.SetName == "PMPTokenExTime" select x).ToList().FirstOrDefault();
|
||||
if (sysSet5 != null)
|
||||
{
|
||||
_CNCECTokenExTime = sysSet5.SetValue;
|
||||
@@ -226,9 +226,9 @@
|
||||
return _CNCECTokenExTime;
|
||||
}
|
||||
}
|
||||
public static void SetWuHuanMDMToken(string token)
|
||||
public static void SetWuHuanPMPToken(string token)
|
||||
{
|
||||
Model.Sys_Set sysSet = Funs.DB.Sys_Set.FirstOrDefault(x => x.SetName == "MDMToken");
|
||||
Model.Sys_Set sysSet = Funs.DB.Sys_Set.FirstOrDefault(x => x.SetName == "PMPToken");
|
||||
if (sysSet != null)
|
||||
{
|
||||
if (!string.IsNullOrEmpty(token))
|
||||
@@ -253,14 +253,14 @@
|
||||
{
|
||||
newSysSet5.SetValue = token;
|
||||
}
|
||||
newSysSet5.SetName = "MDMToken";
|
||||
newSysSet5.SetName = "PMPToken";
|
||||
Funs.DB.Sys_Set.InsertOnSubmit(newSysSet5);
|
||||
Funs.DB.SubmitChanges();
|
||||
}
|
||||
}
|
||||
public static void SetWuHuanMDMTokenExpirationTime(string ExpirationTime)
|
||||
public static void SetWuHuanPMPTokenExpirationTime(string ExpirationTime)
|
||||
{
|
||||
Model.Sys_Set sysSet = Funs.DB.Sys_Set.FirstOrDefault(x => x.SetName == "MDMTokenExTime");
|
||||
Model.Sys_Set sysSet = Funs.DB.Sys_Set.FirstOrDefault(x => x.SetName == "PMPTokenExTime");
|
||||
if (sysSet != null)
|
||||
{
|
||||
if (!string.IsNullOrEmpty(ExpirationTime))
|
||||
@@ -285,7 +285,7 @@
|
||||
{
|
||||
newSysSet5.SetValue = ExpirationTime;
|
||||
}
|
||||
newSysSet5.SetName = "MDMTokenExTime";
|
||||
newSysSet5.SetName = "PMPTokenExTime";
|
||||
Funs.DB.Sys_Set.InsertOnSubmit(newSysSet5);
|
||||
Funs.DB.SubmitChanges();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user