From 16638e5e5ea25adb43a903d666faf6c1e523b6d8 Mon Sep 17 00:00:00 2001 From: gaofei1985 <181547018@qq.com> Date: Mon, 16 Oct 2023 15:14:41 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8F=90=E4=BA=A4=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- SGGL/FineUIPro.Web/Controls/SeeQRImage.aspx.cs | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/SGGL/FineUIPro.Web/Controls/SeeQRImage.aspx.cs b/SGGL/FineUIPro.Web/Controls/SeeQRImage.aspx.cs index 3dd05f4e..791293e1 100644 --- a/SGGL/FineUIPro.Web/Controls/SeeQRImage.aspx.cs +++ b/SGGL/FineUIPro.Web/Controls/SeeQRImage.aspx.cs @@ -167,6 +167,23 @@ namespace FineUIPro.Web.Controls } } } + else if (!string.IsNullOrEmpty(Request.Params["TrainingId"])) + { + var serverTestPlan = Funs.DB.EduTrain_TrainRecord.FirstOrDefault(e => e.TrainingId == Request.Params["TrainingId"]); + if (serverTestPlan != null) + { + if (!string.IsNullOrEmpty(serverTestPlan.QRCodeUrl) && CreateQRCodeService.isHaveImage(serverTestPlan.QRCodeUrl)) + { + this.QRCodeAttachUrl = serverTestPlan.QRCodeUrl; + } + else + { + this.CreateCode_Simple(Request.Params["strCode"]); + serverTestPlan.QRCodeUrl = this.QRCodeAttachUrl; + Funs.DB.SubmitChanges(); + } + } + } this.Image1.ImageUrl = "~/" + this.QRCodeAttachUrl; }