public ActionResult DisChargeReport(long id)
        {
            try
            {
                var user        = (ViewUser)Session["user"];
                var actionModel =
                    _iCommonManager.GetActionListModelByAreaControllerActionName("Services", "WarrantyBattery",
                                                                                 "DisChargeReport");

                var product = _iServiceManager.GetReceivedServiceProductById(id);

                var proudctHistory = _iInventoryManager.GetProductHistoryByBarcode(product.Barcode) ?? new ViewProductHistory();
                product.ProductHistory  = proudctHistory;
                product.ForwardToModels = _iCommonManager.GetAllForwardToModelsByUserAndActionId(user.UserId, actionModel.Id).ToList();

                int month = GetMonthDifference(Convert.ToDateTime(proudctHistory.SaleDate), product.ReceiveDatetime);


                ViewTestPolicy policy = _iPolicyManager.DischargeTestPolicyByProductIdCategoryIdAndMonth(proudctHistory.ProductId, 3, month);
                product.RecBackupTime = policy.AcceptableValue;
                return(View(product));
            }
            catch (Exception exception)
            {
                Log.WriteErrorLog(exception);
                return(PartialView("_ErrorPartial", exception));
            }
        }