Esempio n. 1
0
        public ActionResult Changedepart(string departId, string departCode, decimal bigNum, decimal smartNum, decimal predictTime, decimal dynamicTime, DateTime synchronTime)
        {
            T_DEPART_MANAGE depart = depepartManageService.GetDepartByKey(Convert.ToInt32(departId));

            depart.DEPT_CODE       = departCode;
            depart.BIGSCREEN_NUM   = bigNum;
            depart.SMALLSCREEN_NUM = smartNum;
            depart.PREDICT_TIME    = predictTime;
            depart.DYNAMIC_TIME    = dynamicTime;

            depart.SYNCHRON_TIME = synchronTime;
            depepartManageService.ChangeDepart(depart);
            return(RedirectToAction("Index"));
        }
Esempio n. 2
0
        /// <summary>
        /// 通过科室id查找对应的科室
        /// </summary>
        /// <param name="departId"></param>
        /// <returns></returns>
        public T_DEPART_MANAGE getDepartByid(string departId)
        {
            T_DEPART_MANAGE depart = db.T_DEPART_MANAGE.Where(x => x.DEPT_CODE == departId).Single();

            return(depart);
        }
Esempio n. 3
0
 /// <summary>
 /// 更改科室信息
 /// </summary>
 /// <param name="newdeparrt"></param>
 public void ChangeDepart(T_DEPART_MANAGE newdeparrt)
 {
     db.T_DEPART_MANAGE.Attach(newdeparrt);
     db.Entry(newdeparrt).State = EntityState.Modified;   //直接修改数据库上下文
     db.SaveChanges();
 }
Esempio n. 4
0
 /// <summary>
 /// 修改科室信息
 /// </summary>
 /// <param name="newuser">新用户对象</param>
 public void ChangeDepart(T_DEPART_MANAGE newdepart)
 {
     departDao.ChangeDepart(newdepart);
 }