コード例 #1
0
        //
        // GET: /OperationTheatreMaster/Edit/5

        public ActionResult Edit(int id, int PatientId)
        {
            EHMSEntities ent = new EHMSEntities();
            OperationTheatreMasterModel model = pro.GetObject(id);

            model.refOfOpdModel = new OpdModel();
            OpdModel    opdmodel = new OpdModel();
            OpdProvider proopd   = new OpdProvider();

            opdmodel.OpdModelList = proopd.Getlist().Where(x => x.OpdID == PatientId).ToList();

            foreach (var item in opdmodel.OpdModelList)
            {
                model.refOfOpdModel.FirstName  = item.FirstName;
                model.refOfOpdModel.MiddleName = item.MiddleName;
                model.refOfOpdModel.LastName   = item.LastName;
            }

            //model.SourceID = id;
            model.SourceID            = PatientId;
            model.PersonAllocatedList = new List <PersonAllocated>();
            foreach (var item in pro.GetTheatreDetailsList(id))
            {
                PersonAllocated pa = new PersonAllocated();
                pa.PersonAllocateId      = item.PersonAllocatedID;
                pa.PersonAllocatedTypeId = item.PersonAllocatedTypeID;
                model.PersonAllocatedList.Add(pa);
            }
            //model.ChargeName = ent.SurgeryCharge.Where(x=>x.ChargeAmount==model.Charge).FirstOrDefault().ChargeName;
            return(View(model));
        }
コード例 #2
0
        public ActionResult PersonAllocated()
        {
            PersonAllocated model = new PersonAllocated();

            return(PartialView("PersonAllocated"));
        }