public ActionResult EditIncoTerm(string lookupCode) { var uom = new NetStock.Contract.Lookup(); if (lookupCode != null && lookupCode.Length > 0) { uom = new NetStock.BusinessFactory.LookupBO().GetList().Where(dt => dt.Category == "INCOTERM" && dt.LookupCode == lookupCode).FirstOrDefault(); } return(PartialView("IncoTerm", uom)); }
public ActionResult EditPaymentType(string lookupCode) { var location = new NetStock.Contract.Lookup(); if (lookupCode != null && lookupCode.Length > 0) { location = new NetStock.BusinessFactory.LookupBO().GetList().Where(dt => dt.Category == "PAYMENTTYPE" && dt.LookupCode == lookupCode).FirstOrDefault(); } return(PartialView("PaymentType", location)); }
public ActionResult EditLocation(string lookupCode) { var location = new NetStock.Contract.Lookup(); if (lookupCode != null && lookupCode.Length > 0) { location = new NetStock.BusinessFactory.LookupBO().GetList().Where(dt => dt.Category == "LOCATION" && dt.LookupCode == lookupCode).FirstOrDefault(); } return(PartialView("WareHouseLocation", location)); }
public ActionResult SaveIncoTerm(NetStock.Contract.Lookup uomItem) { try { if (uomItem == null) { return(new HttpStatusCodeResult(System.Net.HttpStatusCode.BadRequest)); } uomItem.Status = true; uomItem.Category = "INCOTERM"; uomItem.Description2 = ""; var result = new NetStock.BusinessFactory.LookupBO().SaveLookup(uomItem); } catch (Exception ex) { ModelState.AddModelError("Error", ex.Message); } return(RedirectToAction("IncoTermList")); }
public ActionResult SavePaymentType(NetStock.Contract.Lookup paymentTypeItem) { try { if (paymentTypeItem == null) { return(new HttpStatusCodeResult(System.Net.HttpStatusCode.BadRequest)); } paymentTypeItem.Status = true; paymentTypeItem.Category = "PAYMENTTYPE"; paymentTypeItem.Description2 = ""; var result = new NetStock.BusinessFactory.LookupBO().SaveLookup(paymentTypeItem); } catch (Exception ex) { ModelState.AddModelError("Error", ex.Message); } return(RedirectToAction("PaymentTypeList")); }
public ActionResult SaveLocation(NetStock.Contract.Lookup locationItem) { try { if (locationItem == null) { return(new HttpStatusCodeResult(System.Net.HttpStatusCode.BadRequest)); } locationItem.Status = true; locationItem.Category = "LOCATION"; locationItem.Description2 = ""; var result = new NetStock.BusinessFactory.LookupBO().SaveLookup(locationItem); } catch (Exception ex) { ModelState.AddModelError("Error", ex.Message); } return(RedirectToAction("LocationList")); }