Beispiel #1
0
        public IActionResult Edit(Guid id)
        {
            if (id == null)
            {
                return(NotFound());
            }
            BioPrep tmp = BioPrepDAL.GetById_BioPrep(id);

            if (tmp == null)
            {
                return(NotFound());
            }

            int Y = Convert.ToInt32(User.Claims.ToList().FirstOrDefault(x => x.Type == "reportDtYear").Value);
            int M = Convert.ToInt32(User.Claims.ToList().FirstOrDefault(x => x.Type == "reportDtMonth").Value);

            ViewBag.RepMoList   = spDAL.RepMO1YearList(Y, M);
            ViewBag.VetPrepList = spDAL.VetPrepList();
            ViewBag.EdIzmList   = spDAL.EdIzmList();

            ViewBag.Page = "BioPrep";
            //if(tmp.ByloPredMonth!=tmp.Bylo)
            //    TempData["EM"] = "Остаток на нач. месяца не совпадает с введенными ранее данными";
            return(View(tmp));
        }
Beispiel #2
0
        public IActionResult Delete(Guid id)
        {
            if (id == null)
            {
                return(NotFound());
            }
            BioPrep tmp = BioPrepDAL.GetById_BioPrep(id);

            if (tmp == null)
            {
                return(NotFound());
            }
            ViewBag.Page = "BioPrep";
            return(View(tmp));
        }