// GET: CentersCostsTable
        public ActionResult Index()
        {
            DBL.CentersCostsTableDBL      oCentersCostsTableDBL = new DBL.CentersCostsTableDBL();
            List <POCO.CentersCostsTable> oLCentersCostsTable   = oCentersCostsTableDBL.M_CentersCostsTable_Get().ToList();



            return(View(oLCentersCostsTable));
        }
 public ActionResult Edit(Int64 ParCentersCostsNo, POCO.CentersCostsTable oCentersCostsTable)
 {
     if (ModelState.IsValid)
     {
         //TODO: Add update logic here
         oCentersCostsTable.CentersCostsNo = ParCentersCostsNo;
         DBL.CentersCostsTableDBL oCentersCostsTableDBL = new DBL.CentersCostsTableDBL();
         oCentersCostsTable = oCentersCostsTableDBL.M_CentersCostsTable_Update(oCentersCostsTable);
         return(RedirectToAction("Index"));
     }
     return(View());
 }
Exemple #3
0
        // GET: AccountsWithCentersCostsTable/Edit/5
        public ActionResult Edit(Int64 ParID, Int64 ParAccountNo, Int64 ParCentersCostsNo)
        {
            DBL.AccountTableDBL      oAccountTableDBL = new DBL.AccountTableDBL();
            List <POCO.AccountTable> oLAccountTable   = oAccountTableDBL.M_AccountTable_Get().ToList();

            DBL.CentersCostsTableDBL      oCentersCostsTableDBL = new DBL.CentersCostsTableDBL();
            List <POCO.CentersCostsTable> oLCentersCostsTable   = oCentersCostsTableDBL.M_CentersCostsTable_Get().ToList();

            ViewBag.AccountNo      = new SelectList(oLAccountTable.Where(a => a.AccountNo != 0), "AccountNo", "AccountName", ParAccountNo);
            ViewBag.CentersCostsNo = new SelectList(oLCentersCostsTable.Where(a => a.CentersCostsNo != 0), "CentersCostsNo", "CentersCostsName", ParCentersCostsNo);
            return(View());
        }
 // GET: CentersCostsTable/Edit/5
 public ActionResult Edit(Int64 ParCentersCostsNo)
 {
     DBL.CentersCostsTableDBL oCentersCostsTableDBL = new DBL.CentersCostsTableDBL();
     POCO.CentersCostsTable   oCentersCostsTable    = oCentersCostsTableDBL.M_CentersCostsTable_Find(ParCentersCostsNo);
     return(View(oCentersCostsTable));
 }