예제 #1
0
        public ActionResult Transfer(int id)
        {
            try
            {
                if (Session["UserName"] == null)
                {
                    return(RedirectToAction("Index", "Account"));
                }
                ViewBag.ReportTitle = "Transfer Fund To Landlord";

                OperationRecord model = OperationRecordManager.GetExpenseByRentID(id);
                model = OperationRecordManager.GetExpenseByID(model.ID);

                model.AllBankAccount = GetSelectListItems((short)Helpers.Helpers.ListType.bankaccount);
                model.AllTenant      = GetSelectListItems((short)Helpers.Helpers.ListType.allTenantWithUnit);
                model.AllCategory    = GetSelectListItems((short)Helpers.Helpers.ListType.allExpenseCategory);
                model.AllStatus      = GetSelectListItems((short)Helpers.Helpers.ListType.allStatus);

                return(View(model));
            }
            catch (Exception ex)
            {
                LogException(ex.Message);
                return(View());
            }
        }
예제 #2
0
        public ActionResult Remind(int id)
        {
            if (Session["UserName"] == null)
            {
                return(RedirectToAction("Index", "Account"));
            }
            var record = OperationRecordManager.GetExpenseByID(id);

            Email.EmailInvoice(record.ID);
            return(RedirectToAction("Index"));
        }
예제 #3
0
        public ActionResult Reimburse(int id)
        {
            if (Session["UserName"] == null)
            {
                return(RedirectToAction("Index", "Account"));
            }
            ViewBag.ReportTitle = "Reimburse Expense";

            OperationRecord model = OperationRecordManager.GetExpenseByID(id);

            model.AllUnits       = GetSelectListItems((short)Helpers.Helpers.ListType.unit);
            model.AllBankAccount = GetSelectListItems((short)Helpers.Helpers.ListType.bankaccount);
            model.AllTenant      = GetSelectListItems((short)Helpers.Helpers.ListType.allUser);
            model.AllStatus      = GetSelectListItems((short)Helpers.Helpers.ListType.allStatus);
            model.AllCategory    = GetSelectListItems((short)Helpers.Helpers.ListType.allExpenseCategory);

            return(View(model));
        }