提交代码

This commit is contained in:
高飞 2023-10-16 15:14:41 +08:00
parent 6e7bff7cdf
commit 16638e5e5e
1 changed files with 17 additions and 0 deletions

View File

@ -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; this.Image1.ImageUrl = "~/" + this.QRCodeAttachUrl;
} }