This commit is contained in:
2024-01-29 18:34:54 +08:00
parent 12ecb5309e
commit 7f67a750c8
27 changed files with 1217 additions and 404 deletions
@@ -184,6 +184,23 @@ namespace FineUIPro.Web.Controls
}
}
}
else if (!string.IsNullOrEmpty(Request.Params["HazardSelectedItemId"]))
{
var hazardSelectedItem = Funs.DB.Hazard_HazardSelectedItem.FirstOrDefault(e => e.HazardSelectedItemId == Request.Params["HazardSelectedItemId"]);
if (hazardSelectedItem != null)
{
if (!string.IsNullOrEmpty(hazardSelectedItem.QRCodeAttachUrl) && CreateQRCodeService.isHaveImage(hazardSelectedItem.QRCodeAttachUrl))
{
this.QRCodeAttachUrl = hazardSelectedItem.QRCodeAttachUrl;
}
else
{
this.QRCodeAttachUrl = CreateQRCodeService.CreateCode_Simple(Request.Params["strCode"]);
hazardSelectedItem.QRCodeAttachUrl = this.QRCodeAttachUrl;
Funs.DB.SubmitChanges();
}
}
}
this.Image1.ImageUrl = "~/" + this.QRCodeAttachUrl;
}