2023-01-05
This commit is contained in:
@@ -1,4 +1,6 @@
|
||||
using System.Linq;
|
||||
using System;
|
||||
using System.Linq;
|
||||
using System.Web;
|
||||
|
||||
namespace BLL
|
||||
{
|
||||
@@ -14,9 +16,32 @@ namespace BLL
|
||||
if (q.Count() == 0)
|
||||
{
|
||||
return "";
|
||||
}
|
||||
}
|
||||
return q.First().SetValue;
|
||||
}
|
||||
public static string GetAvevaNetUrl_Item(string projectId)
|
||||
{
|
||||
string url="";
|
||||
var q = from x in Funs.DB.Project_Sys_Set where x.SetId == "9" && x.ProjectId == projectId select x;
|
||||
if (q.Count() == 0)
|
||||
{
|
||||
return "";
|
||||
}
|
||||
try
|
||||
{
|
||||
var uri = new Uri(q.First().SetValue);
|
||||
var collection = HttpUtility.ParseQueryString(uri.Query);
|
||||
string value = collection["portalid"];
|
||||
url = q.First().SetValue + "item/" + value + "%7C";
|
||||
}
|
||||
catch (Exception ex )
|
||||
{
|
||||
|
||||
url = "";
|
||||
}
|
||||
|
||||
return url;
|
||||
}
|
||||
public static Model.ColorModel GetColorModel(string projectId)
|
||||
{
|
||||
Model.ColorModel colorModel = new Model.ColorModel();
|
||||
|
||||
Reference in New Issue
Block a user