示例#1
0
        public IActionResult SearchWardBayBeds(WardBayBedIndexViewModel wardBayBedIndexView)
        {
            WardBayBedIndexViewModel wardBayBedIndexViewModel = new WardBayBedIndexViewModel();

            wardBayBedIndexViewModel.Wards       = GetWards();
            wardBayBedIndexViewModel.WardBays    = GetWardBays(wardBayBedIndexView.selectedWardCode);
            wardBayBedIndexViewModel.WardBayBeds = GetWardBayBeds(wardBayBedIndexView.selectedWardCode, wardBayBedIndexView.selectedBayCode);

            return(View("WardBayBedList", wardBayBedIndexViewModel));
        }
示例#2
0
        public IActionResult WardBayBedList()
        {
            string token = HttpContext.Session.GetString("access_token");

            WardBayBedIndexViewModel wardBayBedIndexViewModel = new WardBayBedIndexViewModel();

            wardBayBedIndexViewModel.Wards    = GetWards();
            wardBayBedIndexViewModel.WardBays = new List <WardBayModel>();

            wardBayBedIndexViewModel.WardBayBeds = APIservice.GetList <WardBayBedModel>("synapsenamespace=meta&synapseentityname=wardbaybed", token).OrderBy(w => w.wardcode).ThenBy(w => w.baycode).ThenBy(w => w.bedcode).ToList();

            return(View(wardBayBedIndexViewModel));
        }