public ActionResult EditPPItem(Guid id)
        {
            ProcurementPlanItem model = ppService.GetProcurementPlanItemById(id);

            model.Items       = new SelectList(orService.GetItems(), "Id", "Name", model.ItemId);
            model.BudgetLines = new SelectList(orService.GetProjectBugdetLines(model.ProcurementPlan.ProjectDonorId), "Id", "Description", model.BudgetLineId);
            model.UnitCost    = Math.Round(model.UnitCost, 2);
            model.TotalCost   = Math.Round(model.TotalCost, 2);
            model.Currencies  = new SelectList(orService.GetCurrencies(), "Id", "ShortName", model.CurrencyId);
            ViewBag.Action    = Resources.Global_String_Update;
            model.EditMode    = true;
            return(View("CreatePPItem", model));
        }
        public ActionResult CreatePPItem(Guid ppId)
        {
            ProcurementPlanItem model = new ProcurementPlanItem();
            ProcurementPlan     pp    = ppService.GetProcurementPlanById(ppId);

            model.ProcurementPlanId = ppId;
            model.Items             = new SelectList(orService.GetItems(), "Id", "Name");
            model.BudgetLines       = new SelectList(orService.GetProjectBugdetLines(pp.ProjectDonorId), "Id", "Description");
            model.CurrencyId        = countryProg.Country.CurrencyId.Value;
            model.Currencies        = new SelectList(orService.GetCurrencies(), "Id", "ShortName", countryProg.Country.CurrencyId);
            ViewBag.Action          = Resources.Global_String_AddItem;
            return(View("CreatePPItem", model));
        }
 public ActionResult SaveProcPlanItem(ProcurementPlanItem model)
 {
     ppService.SaveProcurementPlanItem(model);
     return(PPDetails(model.ProcurementPlanId));
 }