Beispiel #1
0
        //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();
        }
Beispiel #4
0
        //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));
        }
Beispiel #5
0
        //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));
        }
Beispiel #6
0
        //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));
        }
Beispiel #7
0
 public FM_AccountableForm()
 {
     getAccountableForm        = new List <AccountableFormTable>();
     getAccountableFormcolumns = new AccountableFormTable();
     getAccountableFormList    = new List <AccountableFormList>();
 }