public void AddRow_det(ba_Conciliacion_det_Info info_det, decimal IdTransaccionSession) { List <ba_Conciliacion_det_Info> list = get_list(IdTransaccionSession); info_det.Secuencia = list.Count == 0 ? 1 : list.Max(q => q.Secuencia) + 1; var tipo = bus_tipo.GetList(Convert.ToInt32(SessionFixed.IdEmpresa)).Where(q => q.IdTipoCbteCble == info_det.IdTipocbte).FirstOrDefault(); if (tipo != null) { info_det.tipo_IngEgr = tipo.Tipo_DebCred == "C" ? "+" : "-"; } list.Add(info_det); }
private void cargar_combos_Detalle() { ba_Cbte_Ban_tipo_x_ct_CbteCble_tipo_Bus bus_tipo = new ba_Cbte_Ban_tipo_x_ct_CbteCble_tipo_Bus(); var lst_tipo = bus_tipo.GetList(Convert.ToInt32(SessionFixed.IdEmpresa)); ViewBag.lst_tipo = lst_tipo; }
private void cargar_banco(int IdEmpresa) { var lst_banco = bus_banco.get_list(IdEmpresa, 0, false); lst_banco.Add(new Info.Banco.ba_Banco_Cuenta_Info { IdBanco = 0, ba_descripcion = "Todos" }); ViewBag.lst_banco = lst_banco; tb_persona_Bus bus_persona = new tb_persona_Bus(); var lst_persona = bus_persona.get_list(false); ViewBag.lst_persona = lst_persona; ba_Catalogo_Bus bus_catalogo = new ba_Catalogo_Bus(); var lst_catalogo = bus_catalogo.get_list(Convert.ToString(cl_enumeradores.eTipoCatalogoBanco.EST_CB_BA.ToString()), false); lst_catalogo.Add(new Info.Banco.ba_Catalogo_Info { IdCatalogo = "", ca_descripcion = "Todos" }); ViewBag.lst_catalogo = lst_catalogo; tb_sucursal_Bus bus_suc = new tb_sucursal_Bus(); var lst_suc = bus_suc.get_list(IdEmpresa, false); ViewBag.lst_suc = lst_suc; ba_Cbte_Ban_tipo_x_ct_CbteCble_tipo_Bus bus_tipoCbte = new ba_Cbte_Ban_tipo_x_ct_CbteCble_tipo_Bus(); var lst_TipoCbte = bus_tipoCbte.GetList(IdEmpresa); lst_TipoCbte.Add(new ba_Cbte_Ban_tipo_x_ct_CbteCble_tipo_Info { IdTipoCbteCble = 0, CodTipoCbteBan = "TODOS" }); ViewBag.lst_TipoCbte = lst_TipoCbte; }
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 #region Permisos seg_Menu_x_Empresa_x_Usuario_Info info = bus_permisos.get_list_menu_accion(Convert.ToInt32(SessionFixed.IdEmpresa), SessionFixed.IdUsuario, "Banco", "ParametroBanco", "Index"); ViewBag.Nuevo = info.Nuevo; ViewBag.Modificar = info.Modificar; ViewBag.Anular = info.Anular; #endregion int IdEmpresa = Convert.ToInt32(SessionFixed.IdEmpresa); ba_parametros_Info model = bus_parametro.get_info(IdEmpresa); //SessionFixed.IdTransaccionSessionActual = Request.Params["TransaccionFixed"] != null ? Request.Params["TransaccionFixed"].ToString() : SessionFixed.IdTransaccionSessionActual; model.IdTransaccionSession = Convert.ToDecimal(SessionFixed.IdTransaccionSessionActual); if (model == null) { model = new ba_parametros_Info { IdEmpresa = IdEmpresa }; model.Lista_CbteBan_x_CbteCble = new List <ba_Cbte_Ban_tipo_x_ct_CbteCble_tipo_Info>(); Lista_CbteBan_CbteCble.set_list(model.Lista_CbteBan_x_CbteCble, model.IdTransaccionSession); } else { model.Lista_CbteBan_x_CbteCble = bus_cbteban_x_cbtecble.GetList(model.IdEmpresa); Lista_CbteBan_CbteCble.set_list(model.Lista_CbteBan_x_CbteCble, model.IdTransaccionSession); } cargar_combos(IdEmpresa); return(View(model)); }
public ActionResult Index() { int IdEmpresa = Convert.ToInt32(SessionFixed.IdEmpresa); ba_parametros_Info model = bus_parametro.get_info(IdEmpresa); SessionFixed.IdTransaccionSessionActual = Request.Params["TransaccionFixed"] != null ? Request.Params["TransaccionFixed"].ToString() : SessionFixed.IdTransaccionSessionActual; model.IdTransaccionSession = Convert.ToDecimal(SessionFixed.IdTransaccionSessionActual); if (model == null) { model = new ba_parametros_Info { IdEmpresa = IdEmpresa }; model.Lista_CbteBan_x_CbteCble = new List <ba_Cbte_Ban_tipo_x_ct_CbteCble_tipo_Info>(); Lista_CbteBan_CbteCble.set_list(model.Lista_CbteBan_x_CbteCble, model.IdTransaccionSession); } else { model.Lista_CbteBan_x_CbteCble = bus_cbteban_x_cbtecble.GetList(model.IdEmpresa); Lista_CbteBan_CbteCble.set_list(model.Lista_CbteBan_x_CbteCble, model.IdTransaccionSession); } cargar_combos(IdEmpresa); return(View(model)); }