2023-10-12
This commit is contained in:
@@ -244,7 +244,7 @@
|
||||
editorAttrs: { //编辑器配置
|
||||
editorWidth: '100%',
|
||||
editorHeight: '100%',
|
||||
editorMode: 'edit',
|
||||
editorMode: '<%=editorMode%>',
|
||||
editorType: 'document', //编辑器类型,可不配置,程序根据文件类型获取,结果为 document,presentation,spreadsheet
|
||||
platform: 'windows', //编辑器平台类型,可选windows, mobile, embedded
|
||||
viewLanguage: 'zh', //平台界面展示语言可选en/zh
|
||||
|
||||
@@ -78,6 +78,17 @@ namespace FineUIPro.Web.AttachFile
|
||||
ViewState["PCUrl"] = value;
|
||||
}
|
||||
}
|
||||
public string editorMode
|
||||
{
|
||||
get
|
||||
{
|
||||
return (string)ViewState["editorMode"];
|
||||
}
|
||||
set
|
||||
{
|
||||
ViewState["editorMode"] = value;
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
@@ -88,6 +99,7 @@ namespace FineUIPro.Web.AttachFile
|
||||
AttachFileId = Request.Params["AttachFileId"];
|
||||
ReadOnly = Request.Params["ReadOnly"];*/
|
||||
PCUrl = Request.Params["fileUrl"];
|
||||
editorMode = Request.Params["editorMode"];
|
||||
|
||||
|
||||
}
|
||||
|
||||
@@ -84,6 +84,17 @@ namespace FineUIPro.Web.AttachFile
|
||||
ViewState["JointCheck"] = value;
|
||||
}
|
||||
}
|
||||
public string editorMode
|
||||
{
|
||||
get
|
||||
{
|
||||
return (string)ViewState["editorMode"];
|
||||
}
|
||||
set
|
||||
{
|
||||
ViewState["editorMode"] = value;
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region 加载页面
|
||||
@@ -112,6 +123,12 @@ namespace FineUIPro.Web.AttachFile
|
||||
this.Type = Request.Params["type"];
|
||||
JointCheck = Request.Params["JointCheck"];//是否共检页面
|
||||
Source = Request.QueryString["source"];//如果等于1则是文件柜
|
||||
|
||||
editorMode = Request.Params["editorMode"];
|
||||
if (string.IsNullOrEmpty(editorMode))
|
||||
{
|
||||
editorMode = "edit";
|
||||
}
|
||||
//Request.QueryString["type"]; ////类型:0时是上传资源页面,附件权限不需要判断 -1时只查看权限 -2查看集团公司
|
||||
this.GetButtonPower();
|
||||
this.BindGrid();
|
||||
@@ -760,7 +777,7 @@ namespace FineUIPro.Web.AttachFile
|
||||
if (isSupportType)
|
||||
{
|
||||
url = url.Replace(Funs.RootPath, "");
|
||||
PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("../AttachFile/OnlineEditing.aspx?fileUrl={0}", url, "编辑 -")));
|
||||
PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("../AttachFile/OnlineEditing.aspx?fileUrl={0}&&editorMode={1}", url,editorMode, "编辑 -")));
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user