public ActionResult DeleteConfirmed(long id) { T_ProducersPays t_producerspays = db.T_ProducersPays.Find(id); db.T_ProducersPays.Remove(t_producerspays); db.SaveChanges(); return(RedirectToAction("Index")); }
public ActionResult DeletePayConfirmed(long id) { T_ProducersPays t_producerspays = db.T_ProducersPays.Find(id); long? pfsid = t_producerspays._PFSID; db.T_ProducersPays.Remove(t_producerspays); db.SaveChanges(); return(RedirectToAction("Details", new { id = pfsid })); }
// // GET: /Management/ProducerPay/Details/5 public ActionResult Details(long id = 0) { T_ProducersPays t_producerspays = db.T_ProducersPays.Find(id); if (t_producerspays == null) { return(HttpNotFound()); } return(View(t_producerspays)); }
public ActionResult Edit(T_ProducersPays t_producerspays) { if (ModelState.IsValid) { db.Entry(t_producerspays).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } ViewBag.PayStateID = new SelectList(db.T_PayState, "PayStateID", "PayStateName", t_producerspays.PayStateID); ViewBag.PayTypeID = new SelectList(db.T_PayType, "PayTypeID", "PayTypeName", t_producerspays.PayTypeID); ViewBag.PFSID = new SelectList(db.T_ProducerFinancialStatements, "ProducerFinancialStatementID", "RegisterDate", t_producerspays.PFSID); return(View(t_producerspays)); }
// // GET: /Management/ProducerPay/Edit/5 public ActionResult Edit(long id = 0) { T_ProducersPays t_producerspays = db.T_ProducersPays.Find(id); if (t_producerspays == null) { return(HttpNotFound()); } ViewBag.PayStateID = new SelectList(db.T_PayState, "PayStateID", "PayStateName", t_producerspays.PayStateID); ViewBag.PayTypeID = new SelectList(db.T_PayType, "PayTypeID", "PayTypeName", t_producerspays.PayTypeID); ViewBag.PFSID = new SelectList(db.T_ProducerFinancialStatements, "ProducerFinancialStatementID", "RegisterDate", t_producerspays.PFSID); return(View(t_producerspays)); }
public ActionResult InsertPay(long id) { ViewBag.TotalPrice = db.T_ProducerFinancialStatements.Find(id)._BurdonsSumPrices; ViewBag.Payed = db.T_ProducerFinancialStatements.Find(id)._Payed; ViewBag.Creditor = db.T_ProducerFinancialStatements.Find(id)._Creditor; ViewBag.BankID = new SelectList(db.T_BankMyAcount, "BankId", "_BankNumber"); ViewBag.TitleID = new SelectList(db.T_Producer_Pay_Title, "TitleID", "TitleName"); ViewBag.PayStateID = new SelectList(db.T_PayState, "PayStateID", "PayStateName"); ViewBag.PayTypeID = new SelectList(db.T_PayType, "PayTypeID", "PayTypeName"); T_ProducersPays t_prods = new T_ProducersPays(); t_prods.PFSID = id; return(View(t_prods)); }
public ActionResult InsertPay(T_ProducersPays t_producersspays) { if (ModelState.IsValid) { db.T_ProducersPays.Add(t_producersspays); db.SaveChanges(); return(RedirectToAction("Details", new { id = t_producersspays._PFSID })); } ViewBag.TotalPrice = db.T_ProducerFinancialStatements.Find(t_producersspays._PFSID)._BurdonsSumPrices; ViewBag.Payed = db.T_ProducerFinancialStatements.Find(t_producersspays._PFSID)._Payed; ViewBag.Creditor = db.T_ProducerFinancialStatements.Find(t_producersspays._PFSID)._Creditor; ViewBag.BankID = new SelectList(db.T_BankMyAcount, "BankId", "_BankNumber"); ViewBag.TitleID = new SelectList(db.T_Producer_Pay_Title, "TitleID", "TitleName"); ViewBag.PayStateID = new SelectList(db.T_PayState, "PayStateID", "PayStateName"); ViewBag.PayTypeID = new SelectList(db.T_PayType, "PayTypeID", "PayTypeName"); return(View(t_producersspays)); }
public ActionResult EditPay(long id = 0) { T_ProducersPays t_producerspays = db.T_ProducersPays.Find(id); if (t_producerspays == null) { return(HttpNotFound()); } ViewBag.TotalPrice = db.T_ProducerFinancialStatements.Find(t_producerspays._PFSID)._BurdonsSumPrices; ViewBag.Payed = db.T_ProducerFinancialStatements.Find(t_producerspays._PFSID)._Payed; ViewBag.Creditor = db.T_ProducerFinancialStatements.Find(t_producerspays._PFSID)._Creditor; ViewBag.BankID = new SelectList(db.T_BankMyAcount, "BankId", "_BankNumber", t_producerspays.BankId); ViewBag.TitleID = new SelectList(db.T_Producer_Pay_Title, "TitleID", "TitleName", t_producerspays.TitleID); ViewBag.PayStateID = new SelectList(db.T_PayState, "PayStateID", "PayStateName", t_producerspays.PayStateID); ViewBag.PayTypeID = new SelectList(db.T_PayType, "PayTypeID", "PayTypeName", t_producerspays.PayTypeID); return(View(t_producerspays)); }