public ActionResult UpdateDesignRate(int ProductGroupId, decimal?Rate, decimal?Incentive, decimal?Discount, decimal?Loss, int RateListHeaderId)
        {
            XElement Modifications;
            bool     Flag = new RateListLineService(_unitOfWork).UpdateRateListLineForDesign(ProductGroupId, Rate ?? 0, Incentive ?? 0, Discount ?? 0, Loss ?? 0, RateListHeaderId, User.Identity.Name, out Modifications);

            if (Flag)
            {
                LogActivity.LogActivityDetail(LogVm.Map(new ActiivtyLogViewModel
                {
                    DocTypeId       = new DocumentTypeService(_unitOfWork).FindByName(MasterDocTypeConstants.RateListHeader).DocumentTypeId,
                    ActivityType    = (int)ActivityTypeContants.Modified,
                    xEModifications = Modifications,
                }));
            }

            return(Json(new { Success = Flag }));

            //return View();
        }
Esempio n. 2
0
        public ActionResult UpdateProductRate(int ProductId, decimal Rate, int RateListHeaderId)
        {
            XElement Modifications;
            bool     Flag = new RateListLineService(_unitOfWork).UpdateRateListLineForProduct(ProductId, Rate, RateListHeaderId, User.Identity.Name, out Modifications);

            if (Flag)
            {
                LogActivity.LogActivityDetail(LogVm.Map(new ActiivtyLogViewModel
                {
                    DocTypeId       = new DocumentTypeService(_unitOfWork).FindByName(MasterDocTypeConstants.RateListHeader).DocumentTypeId,
                    ActivityType    = (int)ActivityTypeContants.Modified,
                    DocId           = RateListHeaderId,
                    xEModifications = Modifications,
                }));
            }

            return(Json(new { Success = Flag }));

            //return View();
        }
Esempio n. 3
0
        public ActionResult UpdateRateList(int LineId, string Type, decimal Value)
        {
            bool Flag = new RateListLineService(_unitOfWork).UpdateRateList(LineId, Type, Value);

            return(Json(new { Success = Flag }));
        }