Example #1
0
        public string getNxtDeptName(string deptCode, decimal clinicId)
        {
            string prePId      = patientDao.getId(deptCode, clinicId, 2);
            string nxtdeptCode = departDao.getId(prePId, 0);

            return(departDao.getName(nxtdeptCode));
        }
Example #2
0
 // GET: Algorithm
 /// <summary>
 /// 根据ip信息初始化科室信息
 /// </summary>
 /// <param name="IP"></param>
 /// <returns></returns>
 public ActionResult Algo(string IP)
 {
     ViewBag.deptName = aService.getDeptName(IP);
     ViewBag.clinicId = adao.getClinicId(IP);
     ViewBag.floor    = clinicDao.getFloor(IP);
     ViewBag.deptCode = departDao.getId(ViewBag.clinicId);
     ViewBag.doctorId = (decimal)123;
     aService.rollback(ViewBag.deptName, ViewBag.clinicId);
     return(View());
 }
Example #3
0
        /// <summary>
        /// 获取当前科室下所有诊室的上一个病人 下一站
        /// </summary>
        /// <param name="deptCode"></param>
        /// <returns></returns>
        public List <String[]> getPatientAndDept(string deptCode)
        {
            List <string[]> patientAndDept = new List <string[]>();
            List <decimal>  cids           = clinicDao.getIds(deptCode);

            foreach (decimal cid in cids)
            {
                string patientid   = patientDao.getId(deptCode, cid, 2);
                string patientName = patientDao.getName(patientid);
                string nxtDeptCode = departDao.getId(patientid, 0);
                string nxtDeptName = departDao.getName(nxtDeptCode);
                patientAndDept.Add(new string[] { patientName, nxtDeptName });
            }
            return(patientAndDept);
        }