Esempio n. 1
0
        // GET: InterestGain
        public ActionResult Index(int?EmpId, int?OfcId)
        {
            int EmpCode = Convert.ToInt32(Session["EmpCode"]);

            if (OfcId == null && EmpId == null)
            {
                OfcId = Convert.ToInt32(Session["OfficeId"]);
            }
            IEnumerable <PayrollIntrestGainDTO> Record = _IntGainService.GetInterestGainList(EmpId, OfcId);

            ViewBag.OfficeList = _DynamicSelectList.GetBranchSelectList();
            ViewBag.EmpList    = _DynamicSelectList.GetEmployeeSelectList().ToList();
            ViewBag.EmpCode    = EmpId;
            ViewBag.OfficeId   = OfcId;
            return(View(Record));
        }