This commit is contained in:
2024-12-19 10:34:50 +08:00
parent a4a6460b56
commit 1955a07538
5 changed files with 60 additions and 50 deletions
@@ -69,6 +69,20 @@ namespace FineUIPro.Web.ContractorQuality
this.PunishmentId = Request.Params["punishmentId"];
if (!string.IsNullOrEmpty(this.PunishmentId))
{
var att1 = from x in Funs.DB.AttachFile where x.ToKeyId == this.PunishmentId + "#1" select x;
if (att1.Count() == 0)
{
lbtnViewAttach.Hidden = true;
}
var att2 = from x in Funs.DB.AttachFile where x.ToKeyId == this.PunishmentId + "#2" select x;
if (att2.Count() == 0)
{
lbtnViewAttach2.Hidden = true;
lbtnAttach3.Hidden = true;
}
Model.EMC_Punishment pun = BLL.PunishmentService.GetPunishmentById(this.PunishmentId);
if (pun != null)
{