升级
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user