private List<PartPacificCodeViewModel> GetBrowseViewModel(List<PartPacificCode> lstPPC)
        {
            List<PartPacificCodeViewModel> lstResult = new List<PartPacificCodeViewModel>();
            for(int i = 0; i < lstPPC.Count; i++)
            {
                PartPacificCodeViewModel newItemViewModel = new PartPacificCodeViewModel();

                newItemViewModel.Id = lstPPC[i].Id;
                newItemViewModel.Stt = i + 1;
                newItemViewModel.PartCodeNumber = lstPPC[i].PartCodeNumber.Trim() + "xxxx";
                newItemViewModel.CustomerPhone = CustomerBUS.GetPhone(lstPPC[i].CustomerId);
                newItemViewModel.StorePhone = StoreUserBUS.GetPhone(lstPPC[i].StoreUserId);

                PacificCodeViewModel pacificCode = PartPacificCodeBUS.GetPacificCodeViewModel(lstPPC[i].PartCodeNumber);
                if (pacificCode != null)
                {
                    newItemViewModel.InitialAmount = pacificCode.InitialAmount;
                    newItemViewModel.ActualAmount = pacificCode.ActualAmount;
                    newItemViewModel.ExpireDate = pacificCode.ExpireDate;

                    lstResult.Add(newItemViewModel);
                }
            }

            return lstResult;
        }
        public ActionResult Detail(string partCodeNumber)
        {
            PartPacificCodeViewModel model = new PartPacificCodeViewModel();

            PartPacificCode existPPC = PartPacificCodeBUS.GetObject(partCodeNumber);
            PacificCodeViewModel pacificCode = PartPacificCodeBUS.GetPacificCodeViewModel(partCodeNumber);
                        
            model.PartCodeNumber = pacificCode.CodeNumber;
            model.InitialAmount = (int)pacificCode.InitialAmount;
            model.ActualAmount = (int)pacificCode.ActualAmount;
            
            model.ExpireDate = (DateTime)pacificCode.ExpireDate;
            model.CustomerPhone = CustomerBUS.GetPhone(existPPC.CustomerId);

            return View(model);
        }