Ejemplo n.º 1
0
        public ActionResult PaymentHistory(String selectedDB, String idClient)
        {
            if ((bool)Session["admin"] != true)
            {
                selectedDB = null;
            }
            selectedDB = selectedDB == null ? "sucursal" + Session["defaultDB"] : "sucursal" + selectedDB;

            ResponseList <PaymentHistoryModel> response = new BillsReceivableDAO().getHistory(selectedDB, idClient);

            return(PartialView("PaymentHistory", response));
        }
Ejemplo n.º 2
0
        public ActionResult Filtered(String initDate, String endDate, String selectedDB, String User, String Client)
        {
            DateTime date = DateTime.Today;

            if ((bool)Session["admin"] != true)
            {
                selectedDB = null;
            }

            initDate = initDate == null?date.ToString("yyyy-MM-dd") : initDate;

            endDate = endDate == null?date.ToString("yyyy-MM") + "-01" : endDate;

            selectedDB = selectedDB == null ? "sucursal" + Session["defaultDB"] : "sucursal" + selectedDB;

            ResponseList <BillsReceivableModel> response = new BillsReceivableDAO().getBills(initDate, endDate, selectedDB, User, Client);

            return(PartialView("Filtered", response));
        }