public ActionResult Details(string id, string orgid) { try { SYS_HALL info = new SYS_HALL(); if (!string.IsNullOrEmpty(id)) { info = GetEdtDT(id); } if (!string.IsNullOrEmpty(orgid)) { info = dao.GetEntity("ORG_ID", orgid); } if (null != info) { info.HALLORG = DaoOrganize.GetEntity("ORG_ID", info.ORG_ID); } return(View(info)); } catch (Exception ex) { LogHelper.ErrorLog("查看信息出错", ex); return(Redirect("/Home/Error")); } }
private SYS_HALL GetEdtDT(string id) { var hall = dao.GetEntity("HALL_NO", id); hall.HALLORG = DaoOrganize.GetEntity("ORG_ID", hall.ORG_ID); return(hall); }
public ActionResult Create(string orgid) { var org = DaoOrganize.GetEntity("ORG_ID", orgid); ViewBag.ORG = org; GetCreateDT(); return(View()); }
public ActionResult Create(string orgid) { if (null != orgid) { ViewBag.ORG = DaoOrganize.GetEntity("ORG_ID", orgid); } GetCreateData(null, orgid); return(View()); }
public ActionResult Details(string id) { try { var detail = dao.GetEntity("STAFF_ID", id); detail.ORG = DaoOrganize.GetEntity("ORG_ID", detail.ORG_ID); return(View(detail)); } catch (Exception ex) { LogHelper.ErrorLog("查看信息出错", ex); return(Redirect("/Home/Error")); } }