Beispiel #1
0
        //科室字典表
        public ActionResult Division()
        {
            List<Hospital> division = new List<Hospital>();
            DataSet info = _ServicesSoapClient.GetDivision();
            foreach (DataRow row in info.Tables[0].Rows)
            {
                Hospital divisioninfo = new Hospital();

                divisioninfo.Type = row[0].ToString();
                divisioninfo.Code = row[1].ToString();
                divisioninfo.TypeName = row[2].ToString();
                divisioninfo.Name = row[3].ToString();
                divisioninfo.InputCode = row[4].ToString();
                divisioninfo.Description = row[5].ToString();

                division.Add(divisioninfo);
            }
            return View(division);
        }
Beispiel #2
0
        //医院字典表
        public ActionResult Hospital()
        {
            List<Hospital> hospital = new List<Hospital>();
            DataSet info = _ServicesSoapClient.GetHospital();
            foreach (DataRow row in info.Tables[0].Rows)
            {
                Hospital hospitalinfo = new Hospital();

                hospitalinfo.Type = Convert.ToInt32(row[1]);
                hospitalinfo.Code = row[0].ToString();       //数据库调用方法写反了,故此处也交换次序
                hospitalinfo.Name = row[2].ToString();
                hospitalinfo.SortNo = Convert.ToInt32(row[3]);
                hospitalinfo.StartDate = row[4].ToString();
                hospitalinfo.EndDate = row[5].ToString();

                hospital.Add(hospitalinfo);
            }
            return View(hospital);
        }
Beispiel #3
0
        //医院字典表
        public ActionResult Hospital()
        {
            List<Hospital> hospital = new List<Hospital>();
            DataSet info = _ServicesSoapClient.GetHospital();
            foreach (DataRow row in info.Tables[0].Rows)
            {
                Hospital hospitalinfo = new Hospital();

                hospitalinfo.Type = row[1].ToString();
                hospitalinfo.Code = row[0].ToString();       //数据库调用方法写反了,故此处也交换次序
                hospitalinfo.TypeName = row[2].ToString();
                hospitalinfo.Name = row[3].ToString();
                hospitalinfo.InputCode = row[4].ToString();
                hospitalinfo.Description = row[5].ToString();

                hospital.Add(hospitalinfo);
            }
            return View(hospital);
        }
Beispiel #4
0
        //科室字典表
        public ActionResult Division()
        {
            List<Hospital> division = new List<Hospital>();
            DataSet info = _ServicesSoapClient.GetDivision();
            foreach (DataRow row in info.Tables[0].Rows)
            {
                Hospital divisioninfo = new Hospital();

                divisioninfo.Type = Convert.ToInt32(row[0]);
                divisioninfo.Code = row[1].ToString();
                divisioninfo.Name = row[2].ToString();
                divisioninfo.SortNo = Convert.ToInt32(row[3]);
                divisioninfo.StartDate = row[4].ToString();
                divisioninfo.EndDate = row[5].ToString();

                division.Add(divisioninfo);
            }
            return View(division);
        }