2023-09-12
This commit is contained in:
@@ -61,9 +61,30 @@ namespace FineUIPro.Web.DocManage
|
||||
DocId = Request.Params["DocId"];
|
||||
BindForm();
|
||||
InitCopyMan();
|
||||
AddAttachTab();
|
||||
}
|
||||
}
|
||||
|
||||
private void AddAttachTab()
|
||||
{
|
||||
if (string.IsNullOrEmpty(hdDocId.Text)) //新增记录
|
||||
{
|
||||
hdDocId.Text = SQLHelper.GetNewID(typeof(Model.Doc_DocManage));
|
||||
}
|
||||
//string SourcePath = Request.RawUrl;
|
||||
string SourcePath = "/DocManage/DocManageView.aspx?DocId=" + hdDocId.Text;
|
||||
//SourcePath= SourcePath.Replace("DocManageEdit", "DocManageView");
|
||||
string Classify = "文档管理-文档管理";
|
||||
if (CCfile.Hidden!=true)
|
||||
{
|
||||
PageContext.RegisterStartupScript(TabStrip1.GetAddTabReference("dynamic_tab2", String.Format("../AttachFile/webuploader.aspx?toKeyId={0}&path=FileUpload/DocManage&menuId={1}", hdDocId.Text, Const.DocManageMenuId), "附件", IconHelper.GetIconUrl(Icon.Attach), false));
|
||||
|
||||
}
|
||||
|
||||
// PageContext.RegisterStartupScript(WindowAtt.GetShowReference(String.Format("../AttachFile/webuploader.aspx?toKeyId={0}&path=FileUpload/DocManage&menuId={1}", hdDocId.Text, Const.DocManageMenuId)));
|
||||
|
||||
}
|
||||
|
||||
private void InitCopyMan()
|
||||
{
|
||||
this.trCopyMan.Nodes.Clear();
|
||||
@@ -258,7 +279,7 @@ namespace FineUIPro.Web.DocManage
|
||||
{
|
||||
this.txtFinishTime.Text = string.Format("{0:yyyy-MM-dd}", doc.FinishTime);
|
||||
}
|
||||
txtDocContent.Text = doc.DocContent;
|
||||
txtDocContent.Text = HttpUtility.HtmlDecode(doc.DocContent);
|
||||
if (!string.IsNullOrEmpty(doc.State))
|
||||
{
|
||||
State = doc.State;
|
||||
|
||||
Reference in New Issue
Block a user