private void OpenURLWindow() { Kingdee.BOS.JSON.JSONArray jSONArray = new Kingdee.BOS.JSON.JSONArray(); Kingdee.BOS.JSON.JSONObject jSONObject = new Kingdee.BOS.JSON.JSONObject(); string url = Convert.ToString(this.View.Model.GetValue("F_VTR_TAXLink")); jSONObject.Put("url", System.Web.HttpUtility.UrlEncode(url)); // 需引用System.Web.dll jSONObject.Put("title", "电子发票路径"); jSONArray.Add(jSONObject); // 要求前端,调用openUrlWindow方法,显示一个小窗口,窗口中包含一个Url链接 this.View.AddAction("openUrlWindow", jSONArray); }