示例#1
0
 public String getText(DateOfOrder date, DoctorsOrder order, StringBuilder stringBuilder)
 {
     foreach (MedicineForOrdering medicine in MedicineService.GetAll())
     {
         if (isOrderInRequiredPeriod(medicine, date, order))
         {
             stringBuilder.Append("\n     Medicine name: " + medicine.Name + "\n     Ordered quantity: " + medicine.Quantity + " (Date:  " + order.DateEnd.Date.ToString() + ")\n");
         }
     }
     return(stringBuilder.ToString());
 }
示例#2
0
 public List <Medicine> GetAll()
 {
     return(medicineService.GetAll());
 }
示例#3
0
 public IActionResult Get()
 {
     return(Ok(MedicineService.GetAll()));
 }
示例#4
0
 public IEnumerable <Medicine> GetAll()
 => medicineService.GetAll();
示例#5
0
 public IEnumerable <MedicineInfo> GetAll()
 {
     return(_medicineService.GetAll());
 }
示例#6
0
 private int getQuantity(DateOfOrder date, int totalQuatity, DoctorsOrder order)
 {
     return(MedicineService.GetAll().Where(medicine => isOrderInRequiredPeriod(medicine, date, order)).Sum(medicine => medicine.Quantity));
 }
示例#7
0
 public MedicineSearchModel(string medicineName, string medicineSize, string medicineType) : this()
 {
     this.Medicines = _medicineService.GetAll(medicineName, medicineSize, medicineType);
 }