Example #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));
        }
Example #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));
        }
Example #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));
        }
Example #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"));
        }
Example #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"));
        }
Example #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"));
        }