public ActionResult IsOut(string ItemUPCFK) { var isChecked = new tb_CSULabInventoryItems(); isChecked.isCheckedOut = true; return(View()); }
public ActionResult Edit([Bind(Include = "ItemId,ItemUPC,ItemDescription,ItemSerialNumber,ItemLocationFK,isWaitlistItem")] tb_CSULabInventoryItems tb_CSULabInventoryItems) { if (ModelState.IsValid) { tb_CSULabInventoryItems.ItemSerialNumber = tb_CSULabInventoryItems.ItemSerialNumber.ToUpper(); tb_CSULabInventoryItems.ItemUPC = tb_CSULabInventoryItems.ItemUPC.ToUpper(); tb_CSULabInventoryItems.UpdatedOn = DateTime.Now; tb_CSULabInventoryItems.UpdatedBy = SessionVariables.CurrentUserId; db.Entry(tb_CSULabInventoryItems).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } return(View(tb_CSULabInventoryItems)); }
public void WaitlistReservationProblemEmail(tb_CSUStudent student, tb_CSULabInventoryItems item, bool isTest = false) { mailMessage.To.Clear(); mailMessage.From = new MailAddress("*****@*****.**"); mailMessage.To.Add(isTest ? SessionVariables.CurrentUser.EMAIL : student.EMAIL_ADDRESS); // add subject mailMessage.Subject = "Your waitlist reservation had a problem"; text = student.FIRST_NAME + " " + student.LAST_NAME + ", </br> </br>" + "There was an issue with the available laptop and unfortunately it is no longer available for you to checkout. You are at the " + "top of the waitlist and will be notified as soon as an item becomes available. If you have " + "any questions, please feel free to contact a manager at the BSB checkout desk during the following times:" + "</br></br><strong>MONDAY: </strong>1:00pm-3:00pm" + "</br><strong>TUESDAY: </strong>1:00pm-4:00pm" + "</br><strong>THURSDAY: </strong>2:00pm-6:00pm" + "</br><strong>FRIDAY: </strong>2:00pm-5:00pm" + "</br></br> -UTRC Management"; SendMailHtml(mailMessage, text); }
public ActionResult Create([Bind(Include = "ItemId,ItemUPC,ItemDescription,ItemSerialNumber,ItemLocationFK,CreatedBy,CreatedOn,UpdatedBy,UpdatedOn,isWaitlistItem")] tb_CSULabInventoryItems tb_CSULabInventoryItems) { if (ModelState.IsValid) { tb_CSULabInventoryItems.ItemSerialNumber = tb_CSULabInventoryItems.ItemSerialNumber.ToUpper(); tb_CSULabInventoryItems.ItemUPC = tb_CSULabInventoryItems.ItemUPC.ToUpper(); tb_CSULabInventoryItems.CreatedOn = DateTime.Now; tb_CSULabInventoryItems.CreatedBy = SessionVariables.CurrentUserId; db.tb_CSULabInventoryItems.Add(tb_CSULabInventoryItems); var itemLocation = tb_CSULabInventoryItems.ItemLocationFK; db.SaveChanges(); // run Trello UPC check to add a repair card for the new item Trello t = new Trello(); t.GenerateCards(itemLocation); ViewBag.Message = "Item Added to Inventory"; return(RedirectToAction("Index")); } return(View(tb_CSULabInventoryItems)); }