|
|
@@ -14,7 +14,7 @@ using System.Data;
|
|
|
using System.Linq;
|
|
|
using System.Reflection;
|
|
|
using System.Windows.Forms;
|
|
|
-
|
|
|
+using Curtain.Helpers;
|
|
|
using Dongke.IBOSS.PRD.Basics.BaseControls;
|
|
|
using Dongke.IBOSS.PRD.Basics.BaseResources;
|
|
|
using Dongke.IBOSS.PRD.Basics.DockPanel;
|
|
|
@@ -79,6 +79,7 @@ namespace Dongke.IBOSS.PRD.Client
|
|
|
//this.tvwNavigation.SetMenuDictionart(dicTemp);
|
|
|
// 纯树形菜单
|
|
|
this.InitNavigationTreeView(dtTemp);
|
|
|
+
|
|
|
}
|
|
|
|
|
|
/// <summary>
|
|
|
@@ -174,17 +175,24 @@ namespace Dongke.IBOSS.PRD.Client
|
|
|
{
|
|
|
if (((TreeView)sender).SelectedNode != null)
|
|
|
{
|
|
|
- //xuwei add 2019-11-28 如果定义了url 跳转到url
|
|
|
+ //xuwei add 2020-01-03 如果定义了url 跳转到url 用于转到webmes
|
|
|
if(((TreeView)sender).SelectedNode.Tag is object)
|
|
|
{
|
|
|
string tag = ((TreeView)sender).SelectedNode.Tag.ToString();
|
|
|
- if(tag!="" & tag!=",,,")
|
|
|
+ string title = ((TreeView)sender).SelectedNode.Text.ToString();
|
|
|
+ if (tag!="" & tag!=",,,")
|
|
|
{
|
|
|
- string[] tagArray = tag.Split(',');
|
|
|
- if (tagArray.Length == 1 && tagArray[0].ToString() != "")
|
|
|
- System.Diagnostics.Process.Start(tagArray[0] + "?sessionkey=" + LogInUserInfo.CurrentUser.SessionKey);
|
|
|
+ //静态配置
|
|
|
+ //string goUrl = "http://192.168.0.237:9000/mes/mesgo.ashx";
|
|
|
+
|
|
|
+ //从配置文件读取
|
|
|
+ string goUrl = "http://" + Utility.ReadIniFile(Constant.INI_SECTION_NET, Constant.INI_KEY_IP, AppDomain.CurrentDomain.BaseDirectory + Constant.INI_FILE_NAME) + ":9000/mes/mesgo.ashx";
|
|
|
+
|
|
|
+ string[] tagArray = tag.Split(',');
|
|
|
+ if (tagArray.Length == 1 && tagArray[0].ToString() != "")
|
|
|
+ System.Diagnostics.Process.Start(goUrl + "?go=" + tagArray[0] + "&title=" + title + "&sessionkey=" + LogInUserInfo.CurrentUser.SessionKey);
|
|
|
if (tagArray.Length == 4 && tagArray[3].ToString() != "")
|
|
|
- System.Diagnostics.Process.Start(tagArray[3] + "?sessionkey=" + LogInUserInfo.CurrentUser.SessionKey);
|
|
|
+ System.Diagnostics.Process.Start(goUrl + "?go=" + tagArray[3] + "&title=" + title + "&sessionkey=" + LogInUserInfo.CurrentUser.SessionKey);
|
|
|
}
|
|
|
}
|
|
|
//xuwei end
|