//Delete Accountable Form public ActionResult DeleteAccountableForm(FM_AccountableForm model, int AccountFormID) { AccountableFormTable tblAccountableForm = (from e in TOSSDB.AccountableFormTables where e.AccountFormID == AccountFormID select e).FirstOrDefault(); TOSSDB.AccountableFormTables.Remove(tblAccountableForm); TOSSDB.SaveChanges(); return(RedirectToAction("Index")); }
public FM_AccountableForm() { getAccountableForm = new List <AccountableFormTable>(); getAccountableFormcolumns = new AccountableFormTable(); getAccountableFormList = new List <AccountableFormList>(); getDescription = new List <AF_Description>(); getDescriptionColumns = new AF_Description(); }
public FM_CollectionAndDeposit_AccountableForm() { getAccountableForm = new List <AccountableFormTable>(); getAccountableFormcolumns = new AccountableFormTable(); getAccountableFormList = new List <AccountableFormList>(); getDescription = new List <AccountableForm_Description>(); getDescriptionColumns = new AccountableForm_Description(); }
//Get Update Accountable Form public ActionResult Get_UpdateAccountableForm(FM_AccountableForm model, int AccountFormID) { AccountableFormTable tblAccountableForm = (from e in TOSSDB.AccountableFormTables where e.AccountFormID == AccountFormID select e).FirstOrDefault(); model.getAccountableFormcolumns.AccountFormID = tblAccountableForm.AccountFormID; model.getAccountableFormcolumns.AccountFormName = tblAccountableForm.AccountFormName; model.getAccountableFormcolumns.isCTC = tblAccountableForm.isCTC; model.getAccountableFormcolumns.Description = tblAccountableForm.Description; return(PartialView("AccountableForm/_UpdateAccountableForm", model)); }
//Update Accountable Form public ActionResult UpdateAccountableForm(FM_AccountableForm model) { AccountableFormTable tblAccountableForm = (from e in TOSSDB.AccountableFormTables where e.AccountFormID == model.getAccountableFormcolumns.AccountFormID select e).FirstOrDefault(); tblAccountableForm.AccountFormName = model.getAccountableFormcolumns.AccountFormName; tblAccountableForm.isCTC = model.getAccountableFormcolumns.isCTC; tblAccountableForm.Description = model.getAccountableFormcolumns.Description; TOSSDB.Entry(tblAccountableForm); TOSSDB.SaveChanges(); return(PartialView("AccountableForm/_UpdateAccountableForm", model)); }
//Add Accountable Form public JsonResult AddAccountableForm(FM_AccountableForm model) { AccountableFormTable tblAccountableForm = new AccountableFormTable(); tblAccountableForm.AccountFormName = model.getAccountableFormcolumns.AccountFormName; tblAccountableForm.isCTC = model.getAccountableFormcolumns.isCTC; tblAccountableForm.Description = model.getAccountableFormcolumns.Description; TOSSDB.AccountableFormTables.Add(tblAccountableForm); TOSSDB.SaveChanges(); return(Json(tblAccountableForm)); }
public FM_AccountableForm() { getAccountableForm = new List <AccountableFormTable>(); getAccountableFormcolumns = new AccountableFormTable(); getAccountableFormList = new List <AccountableFormList>(); }