46 lines
1.5 KiB
C#
46 lines
1.5 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Web;
|
|
using System.Web.Mvc;
|
|
|
|
namespace dccdc.Controllers
|
|
{
|
|
public class validateController : Controller
|
|
{
|
|
[AllowAnonymous]
|
|
// GET: validate
|
|
public ActionResult Index(string pno, string yzcod)
|
|
{
|
|
if (string.IsNullOrEmpty(pno) || string.IsNullOrEmpty(yzcod))
|
|
{
|
|
return View("error");
|
|
}
|
|
BLL.yanzhengBLL yzbll = new BLL.yanzhengBLL();
|
|
var yz = yzbll.yanZhen(pno, yzcod);
|
|
if (yz == null)
|
|
{
|
|
return View("error");
|
|
}
|
|
var regbll = new BLL.ProfessionalExamRegisterBll();
|
|
var regms = regbll.getAllByIds(yz.pno).First();
|
|
if (regms.category.Contains("公共"))
|
|
ViewBag.cylx = "公共场所";
|
|
else if (regms.category.Contains("药品"))
|
|
ViewBag.cylx = "药品";
|
|
if (regms.category.Contains("食品"))
|
|
ViewBag.cylx = "食品";
|
|
else
|
|
ViewBag.cylx = "公共场所";
|
|
ViewBag.bm = regms.physical_num;
|
|
ViewBag.xm = regms.person_name;
|
|
ViewBag.xb = regms.sex;
|
|
ViewBag.nl = regms.person_age;
|
|
ViewBag.sfzh = regms.card_number;
|
|
ViewBag.tjrq = regms.register_date;
|
|
ViewBag.bgrq = regms.main_review_date;
|
|
ViewBag.img = "data:image/jpeg;base64,"+ regms.phone_path;
|
|
return View();
|
|
}
|
|
}
|
|
} |