修改标准规范附件

This commit is contained in:
2023-05-30 17:17:24 +08:00
parent ea1634cbc7
commit 6b1271387c
2 changed files with 8 additions and 4 deletions
@@ -181,7 +181,8 @@ namespace FineUIPro.Web.CQMS.DataBase
}
for (int i = 0; i < Grid1.Rows.Count; i++)
{
var attachFile = Funs.DB.AttachFile.FirstOrDefault(x => x.ToKeyId == Grid1.Rows[i].RowID + this.CurrUser.LoginProjectId);
//var attachFile = Funs.DB.AttachFile.FirstOrDefault(x => x.ToKeyId == Grid1.Rows[i].RowID + this.CurrUser.LoginProjectId);
var attachFile = Funs.DB.AttachFile.FirstOrDefault(x => x.ToKeyId == Grid1.Rows[i].RowID);
if (attachFile != null && !string.IsNullOrEmpty(attachFile.AttachUrl))
{
Grid1.Rows[i].CellCssClasses[18] = "green";
@@ -272,7 +273,8 @@ namespace FineUIPro.Web.CQMS.DataBase
string id = Grid1.DataKeys[e.RowIndex][0].ToString();
if (e.CommandName == "AttachUrl")
{
PageContext.RegisterStartupScript(WindowAtt.GetShowReference(String.Format("../../AttachFile/webuploader.aspx?type=-1&toKeyId={0}&path=FileUpload/DataBase/ConstructionStandardProject&menuId={1}", id + this.CurrUser.LoginProjectId, BLL.Const.CQMSConstructionStandardListProjectMenuId)));
//PageContext.RegisterStartupScript(WindowAtt.GetShowReference(String.Format("../../AttachFile/webuploader.aspx?type=-1&toKeyId={0}&path=FileUpload/DataBase/ConstructionStandardProject&menuId={1}", id + this.CurrUser.LoginProjectId, BLL.Const.CQMSConstructionStandardListProjectMenuId)));
PageContext.RegisterStartupScript(WindowAtt.GetShowReference(String.Format("../../AttachFile/webuploader.aspx?type=-1&toKeyId={0}&path=FileUpload/DataBase/ConstructionStandardProject&menuId={1}", id, BLL.Const.CQMSConstructionStandardListProjectMenuId)));
}
}
#endregion