Esempio n. 1
0
        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"));
            }
        }
Esempio n. 2
0
        private SYS_HALL GetEdtDT(string id)
        {
            var hall = dao.GetEntity("HALL_NO", id);

            hall.HALLORG = DaoOrganize.GetEntity("ORG_ID", hall.ORG_ID);
            return(hall);
        }
Esempio n. 3
0
        public ActionResult Create(string orgid)
        {
            var org = DaoOrganize.GetEntity("ORG_ID", orgid);

            ViewBag.ORG = org;
            GetCreateDT();
            return(View());
        }
Esempio n. 4
0
 public ActionResult Create(string orgid)
 {
     if (null != orgid)
     {
         ViewBag.ORG = DaoOrganize.GetEntity("ORG_ID", orgid);
     }
     GetCreateData(null, orgid);
     return(View());
 }
Esempio n. 5
0
 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"));
     }
 }