예제 #1
0
        public ActionResult DeleteConfirmed(int id)
        {
            GoodMovement goodMovement = db.GoodMovement.Find(id);

            db.GoodMovement.Remove(goodMovement);
            db.SaveChanges();
            return(RedirectToAction("Index"));
        }
예제 #2
0
 public ActionResult Edit([Bind(Include = "ID,pstng_date,doc_date,pr_uname,ref_doc_no,material,plant,stge_loc,move_type,po_number,po_item,entry_qnt,entry_uom,ref_doc,prod_date,mvt_ind,gm_code,SAP_quantity,move_reas")] GoodMovement goodMovement)
 {
     if (ModelState.IsValid)
     {
         db.Entry(goodMovement).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     return(View(goodMovement));
 }
예제 #3
0
        // GET: GoodMovements/Details/5
        public ActionResult Details(int?id)
        {
            if (id == null)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }
            GoodMovement goodMovement = db.GoodMovement.Find(id);

            if (goodMovement == null)
            {
                return(HttpNotFound());
            }
            return(View(goodMovement));
        }
예제 #4
0
 protected override Tuple <long, int> GetIndexKey(GoodMovement record) => record.GetIndexKey();