提交代码
This commit is contained in:
parent
6e7bff7cdf
commit
16638e5e5e
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue