コード例 #1
0
        public IActionResult Create()
        {
            int reportDtYear  = Convert.ToInt32(User.Claims.ToList().FirstOrDefault(x => x.Type == "reportDtYear").Value);
            int reportDtMonth = Convert.ToInt32(User.Claims.ToList().FirstOrDefault(x => x.Type == "reportDtMonth").Value);

            ViewBag.RepMoList   = spDAL.RepMO1YearList(reportDtYear, reportDtMonth);
            ViewBag.VetPrepList = spDAL.VetPrepList();
            //ViewBag.EdIzmList = spDAL.EdIzmList();

            string _kidro = User.Claims.ToList().FirstOrDefault(x => x.Type == "KIDro").Value;
            long?  b      = BioPrepDAL.GetByloById(_kidro,
                                                   DateTime.Today,
                                                   "AZIN"
                                                   );
            BioPrep tmp = new BioPrep
            {
                KIDro             = _kidro,
                RepMO             = new DateTime(DateTime.Now.Year, DateTime.Now.Month, 1),
                VetPrep           = "AZIN",
                Bylo              = b,
                Ostatok_za_mesyac = b
            };

            ViewBag.Page = "BioPrep";
            return(View(tmp));
        }
コード例 #2
0
 public long?GetByloById(string IDro, DateTime repMo, string VetPrep)
 => BioPrepDAL.GetByloById(IDro, repMo, VetPrep);