20250402 附件查看

This commit is contained in:
毕文静 2025-04-02 09:11:50 +08:00
parent bd49907a8d
commit 98e79d401c
2 changed files with 37 additions and 15 deletions

View File

@ -51,6 +51,19 @@ namespace FineUIPro.Web.AttachFile
} }
} }
public string AType
{
get
{
return (string)ViewState["AType"];
}
set
{
ViewState["AType"] = value;
}
}
protected void Page_Load(object sender, EventArgs e) protected void Page_Load(object sender, EventArgs e)
{ {
if (!IsPostBack) if (!IsPostBack)
@ -68,12 +81,21 @@ namespace FineUIPro.Web.AttachFile
AttachPath = Request.QueryString["path"]; AttachPath = Request.QueryString["path"];
ParamStr = sessionName + "|" + AttachPath; ParamStr = sessionName + "|" + AttachPath;
MenuId = Request.QueryString["menuId"]; MenuId = Request.QueryString["menuId"];
try
string t = Request.QueryString["type"]; {
if (t == "-1") AType = Request.QueryString["type"];
if (!string.IsNullOrEmpty(AType))
{
if (AType == "view")
{ {
this.Toolbar1.Hidden = true; this.Toolbar1.Hidden = true;
this.Grid1.Columns[4].Hidden = true; this.Grid1.Columns[4].Hidden = true;
}
}
}
catch {
} }
BindGrid(); BindGrid();
} }

View File

@ -1678,7 +1678,7 @@ namespace FineUIPro.Web.ContractorQuality
{ {
this.hdId.Text = SQLHelper.GetNewID(typeof(Model.EMC_Punishment)); this.hdId.Text = SQLHelper.GetNewID(typeof(Model.EMC_Punishment));
} }
PageContext.RegisterStartupScript(WindowAtt.GetShowReference(String.Format("../AttachFile/webuploader2.aspx?type=0&toKeyId={0}&path=FileUpload/SES/EMC_Punishment&menuId={1}&strParam=1", this.hdId.Text, BLL.Const.IncidentInvestigationMenuId))); PageContext.RegisterStartupScript(WindowAtt.GetShowReference(String.Format("../AttachFile/webuploader2.aspx?type=edit&toKeyId={0}&path=FileUpload/SES/EMC_Punishment&menuId={1}&strParam=1", this.hdId.Text, BLL.Const.IncidentInvestigationMenuId)));
} }
/// <summary> /// <summary>
@ -1688,7 +1688,7 @@ namespace FineUIPro.Web.ContractorQuality
/// <param name="e"></param> /// <param name="e"></param>
protected void lbtnViewAttach_Click(object sender, EventArgs e) protected void lbtnViewAttach_Click(object sender, EventArgs e)
{ {
PageContext.RegisterStartupScript(WindowAtt.GetShowReference(String.Format("../AttachFile/webuploader2.aspx?type=-1&toKeyId={0}&path=FileUpload/SES/EMC_Punishment&menuId={1}&strParam=1", this.hdId.Text, BLL.Const.IncidentInvestigationMenuId))); PageContext.RegisterStartupScript(WindowAtt.GetShowReference(String.Format("../AttachFile/webuploader2.aspx?type=view&toKeyId={0}&path=FileUpload/SES/EMC_Punishment&menuId={1}&strParam=1", this.hdId.Text, BLL.Const.IncidentInvestigationMenuId)));
} }
/// <summary> /// <summary>
@ -1702,7 +1702,7 @@ namespace FineUIPro.Web.ContractorQuality
{ {
this.hdId.Text = SQLHelper.GetNewID(typeof(Model.EMC_Punishment)); this.hdId.Text = SQLHelper.GetNewID(typeof(Model.EMC_Punishment));
} }
PageContext.RegisterStartupScript(WindowAtt.GetShowReference(String.Format("../AttachFile/webuploader2.aspx?type=0&toKeyId={0}&path=FileUpload/SES/EMC_Punishment&menuId={1}&strParam=2", this.hdId.Text, BLL.Const.IncidentInvestigationMenuId))); PageContext.RegisterStartupScript(WindowAtt.GetShowReference(String.Format("../AttachFile/webuploader2.aspx?type=edit&toKeyId={0}&path=FileUpload/SES/EMC_Punishment&menuId={1}&strParam=2", this.PunishmentId, BLL.Const.IncidentInvestigationMenuId)));
} }
/// <summary> /// <summary>
@ -1712,7 +1712,7 @@ namespace FineUIPro.Web.ContractorQuality
/// <param name="e"></param> /// <param name="e"></param>
protected void lbtnViewAttach2_Click(object sender, EventArgs e) protected void lbtnViewAttach2_Click(object sender, EventArgs e)
{ {
PageContext.RegisterStartupScript(WindowAtt.GetShowReference(String.Format("../AttachFile/webuploader2.aspx?type=-1&toKeyId={0}&path=FileUpload/SES/EMC_Punishment&menuId={1}&strParam=2", this.hdId.Text, BLL.Const.IncidentInvestigationMenuId))); PageContext.RegisterStartupScript(WindowAtt.GetShowReference(String.Format("../AttachFile/webuploader2.aspx?type=view&toKeyId={0}&path=FileUpload/SES/EMC_Punishment&menuId={1}&strParam=2", this.PunishmentId, BLL.Const.IncidentInvestigationMenuId)));
} }
#endregion #endregion