Ejemplo n.º 1
0
        //Delete Internal Revenue Allotment
        public ActionResult DeleteInternalRevenueAllotment(FM_GeneralReference_IRA model, int IRAID)
        {
            IRA_Table tblMemoAccount = (from e in TOSSDB.IRA_Table where e.IRAID == IRAID select e).FirstOrDefault();

            TOSSDB.IRA_Table.Remove(tblMemoAccount);
            TOSSDB.SaveChanges();
            return(RedirectToAction("Index"));
        }
Ejemplo n.º 2
0
        //Get Update Internal Revenue Allotment
        public ActionResult Get_UpdateInternalRevenueAllotment(FM_GeneralReference_IRA model, int IRAID)
        {
            IRA_Table tblMemoAccount = (from e in TOSSDB.IRA_Table where e.IRAID == IRAID select e).FirstOrDefault();

            model.getIRAcolumns.IRAID = tblMemoAccount.IRAID;
            model.getIRAcolumns.IRAPercentageShare = tblMemoAccount.IRAPercentageShare;
            model.getIRAcolumns.IRAPercent         = tblMemoAccount.IRAPercent;
            model.getIRAcolumns.IRABase            = tblMemoAccount.IRABase;
            return(PartialView("IRAShares/_UpdateInternalRevenueAllotment", model));
        }
Ejemplo n.º 3
0
        //Update Internal Revenue Allotment
        public ActionResult UpdateInternalRevenueAllotment(FM_GeneralReference_IRA model)
        {
            IRA_Table tblMemoAccount = (from e in TOSSDB.IRA_Table where e.IRAID == model.getIRAcolumns.IRAID select e).FirstOrDefault();

            tblMemoAccount.IRAPercentageShare = model.getIRAcolumns.IRAPercentageShare;
            tblMemoAccount.IRAPercent         = model.getIRAcolumns.IRAPercent;
            tblMemoAccount.IRABase            = model.getIRAcolumns.IRABase;
            TOSSDB.Entry(tblMemoAccount);
            TOSSDB.SaveChanges();
            return(PartialView("IRAShares/_UpdateInternalRevenueAllotment", model));
        }
Ejemplo n.º 4
0
        //Add Internal Revenue Allotment
        public JsonResult AddInternalRevenueAllotmentTable(FM_GeneralReference_IRA model)
        {
            IRA_Table tblIRA = new IRA_Table();

            tblIRA.IRAPercentageShare = model.getIRAcolumns.IRAPercentageShare;
            tblIRA.IRAPercent         = model.getIRAcolumns.IRAPercent;
            tblIRA.IRABase            = model.getIRAcolumns.IRABase;
            TOSSDB.IRA_Table.Add(tblIRA);
            TOSSDB.SaveChanges();
            return(Json(tblIRA));
        }
Ejemplo n.º 5
0
 public FM_IRA_IRA()
 {
     getIRA        = new List <IRA_Table>();
     getIRAcolumns = new IRA_Table();
     getIRAList    = new List <IRAList>();
 }
Ejemplo n.º 6
0
 public FM_GeneralReference_IRA()
 {
     getIRA        = new List <IRA_Table>();
     getIRAcolumns = new IRA_Table();
     getIRAList    = new List <IRAList>();
 }