Пример #1
0
        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));
        }
Пример #2
0
        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));
        }
Пример #3
0
        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));
        }
Пример #4
0
        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"));
        }
Пример #5
0
        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"));
        }
Пример #6
0
        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"));
        }