2023-01-05

This commit is contained in:
2023-01-05 17:42:44 +08:00
parent bbb4bfab19
commit c25427af5e
8 changed files with 40 additions and 15 deletions
+27 -2
View File
@@ -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();