修改标准规范附件
This commit is contained in:
parent
ea1634cbc7
commit
6b1271387c
|
@ -181,7 +181,8 @@ namespace FineUIPro.Web.CQMS.DataBase
|
||||||
}
|
}
|
||||||
for (int i = 0; i < Grid1.Rows.Count; i++)
|
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))
|
if (attachFile != null && !string.IsNullOrEmpty(attachFile.AttachUrl))
|
||||||
{
|
{
|
||||||
Grid1.Rows[i].CellCssClasses[18] = "green";
|
Grid1.Rows[i].CellCssClasses[18] = "green";
|
||||||
|
@ -272,7 +273,8 @@ namespace FineUIPro.Web.CQMS.DataBase
|
||||||
string id = Grid1.DataKeys[e.RowIndex][0].ToString();
|
string id = Grid1.DataKeys[e.RowIndex][0].ToString();
|
||||||
if (e.CommandName == "AttachUrl")
|
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
|
#endregion
|
||||||
|
|
|
@ -63,7 +63,8 @@ namespace FineUIPro.Web.CQMS.DataBase
|
||||||
this.cbIsSelected6.Checked = true;
|
this.cbIsSelected6.Checked = true;
|
||||||
}
|
}
|
||||||
this.txtRemark.Text = standard.Memo;
|
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);
|
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)));
|
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)));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue