public ActionResult Index() { #region Validar Session if (string.IsNullOrEmpty(SessionFixed.IdTransaccionSession)) { return(RedirectToAction("Login", new { Area = "", Controller = "Account" })); } SessionFixed.IdTransaccionSession = (Convert.ToDecimal(SessionFixed.IdTransaccionSession) + 1).ToString(); SessionFixed.IdTransaccionSessionActual = SessionFixed.IdTransaccionSession; #endregion cp_orden_pago_aprobacion_Info model = new cp_orden_pago_aprobacion_Info { IdEmpresa = string.IsNullOrEmpty(SessionFixed.IdEmpresa) ? 0 : Convert.ToInt32(SessionFixed.IdEmpresa), IdSucursal = string.IsNullOrEmpty(SessionFixed.IdSucursal) ? 0 : Convert.ToInt32(SessionFixed.IdSucursal), IdUsuarioAprobacion = string.IsNullOrEmpty(SessionFixed.IdUsuario) ? "" : SessionFixed.IdUsuario, IdTransaccionSession = Convert.ToDecimal(SessionFixed.IdTransaccionSessionActual), fecha_ini = DateTime.Now.Date.AddMonths(-1), fecha_fin = DateTime.Now.Date, }; //List_aprobacion_op.set_list(new List<cp_orden_pago_Info>(), model.IdTransaccionSession); var lst = bus_orden_pago.get_list(model.IdEmpresa, model.fecha_ini, model.fecha_fin, model.IdSucursal); List_aprobacion_op.set_list(lst, model.IdTransaccionSession); cargar_combos_consulta(model.IdEmpresa); return(View(model)); }
public ActionResult Index(cp_orden_pago_aprobacion_Info model) { model.IdEmpresa = string.IsNullOrEmpty(SessionFixed.IdEmpresa) ? 0 : Convert.ToInt32(SessionFixed.IdEmpresa); List_aprobacion_op.get_list(model.IdTransaccionSession); cargar_combos_consulta(model.IdEmpresa); return(View(model)); }
public ActionResult Index(cp_orden_pago_aprobacion_Info model) { //model.IdEmpresa = string.IsNullOrEmpty(SessionFixed.IdEmpresa) ? 0 : Convert.ToInt32(SessionFixed.IdEmpresa); //List_aprobacion_op.get_list(model.IdTransaccionSession); SessionFixed.IdTransaccionSessionActual = model.IdTransaccionSession.ToString(); var lst = bus_orden_pago.get_list(model.IdEmpresa, model.fecha_ini, model.fecha_fin, model.IdSucursal); List_aprobacion_op.set_list(lst, model.IdTransaccionSession); cargar_combos_consulta(model.IdEmpresa); return(View(model)); }
public ActionResult Index() { cp_orden_pago_aprobacion_Info model = new cp_orden_pago_aprobacion_Info { IdEmpresa = string.IsNullOrEmpty(SessionFixed.IdEmpresa) ? 0 : Convert.ToInt32(SessionFixed.IdEmpresa), IdSucursal = string.IsNullOrEmpty(SessionFixed.IdSucursal) ? 0 : Convert.ToInt32(SessionFixed.IdSucursal), IdUsuarioAprobacion = string.IsNullOrEmpty(SessionFixed.IdUsuario) ? "" : SessionFixed.IdUsuario, IdTransaccionSession = Convert.ToDecimal(SessionFixed.IdTransaccionSessionActual) }; List_aprobacion_op.set_list(new List <cp_orden_pago_Info>(), model.IdTransaccionSession); cargar_combos_consulta(model.IdEmpresa); return(View(model)); }