using Kingdee.BOS.ServiceHelper.FileServer;
JSONObject webobj = new JSONObject();
string ticks = DateTime.Now.Ticks.ToString();
string fileId = "7da03cadfb764f92a492d112f1568ca2";
string webSiteUrl = FileServerHelper.GetAppSiteOuterNetUrl(this.Context, HttpContext.Current.Request);
webobj["source"] = string.Format(
"{0}FileUpLoadServices/download.aspx?filepath=2&fileId={1}&token={2}&ticks={3}",
webSiteUrl, fileId, this.Context.UserToken, ticks);
webobj["data"] = new JSONArray
{
new JSONObject { { "PreviewFileName", string.Format("{0}_{1}", fileId, ticks) } }
};
webobj["height"] = 545;
webobj["width"] = 810;
webobj["isweb"] = false;
webobj["ismodal"] = false;
webobj["title"] = "测试";
this.View.AddAction("ShowKDWebbrowseForm", webobj);
this.View.SendDynamicFormAction(this.View);