修改标准规范附件

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

View File

@ -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

View File

@ -63,7 +63,8 @@ namespace FineUIPro.Web.CQMS.DataBase
this.cbIsSelected6.Checked = true;
}
this.txtRemark.Text = standard.Memo;
this.hdStandardCode.Text = standard.StandardCode + this.CurrUser.LoginProjectId;
//this.hdStandardCode.Text = standard.StandardCode + this.CurrUser.LoginProjectId;
this.hdStandardCode.Text = standard.StandardCode.ToString();
}
}
}
@ -85,7 +86,8 @@ namespace FineUIPro.Web.CQMS.DataBase
{
maxStandardCode = BLL.ConstructionStandardListProjectService.GetMaxStandardCode(this.CurrUser.LoginProjectId);
}
this.hdStandardCode.Text = (maxStandardCode + 1).ToString() + this.CurrUser.LoginProjectId;
//this.hdStandardCode.Text = (maxStandardCode + 1).ToString() + this.CurrUser.LoginProjectId;
this.hdStandardCode.Text = (maxStandardCode + 1).ToString();
}
PageContext.RegisterStartupScript(WindowAtt.GetShowReference(String.Format("../../AttachFile/webuploader.aspx?type=0&toKeyId={0}&path=FileUpload/DataBase/ConstructionStandardProject&menuId={1}", this.hdStandardCode.Text, BLL.Const.CQMSConstructionStandardListProjectMenuId)));
}