コード例 #1
0
        private void cargar_combos(fa_PuntoVta_Info model)
        {
            tb_sucursal_Bus bus_sucursal = new tb_sucursal_Bus();
            var             lst_sucursal = bus_sucursal.get_list(model.IdEmpresa, false);

            ViewBag.lst_sucursal = lst_sucursal;

            tb_bodega_Bus bus_bodega = new tb_bodega_Bus();
            var           lst_bodega = bus_bodega.get_list(model.IdEmpresa, model.IdSucursal, false);

            ViewBag.lst_bodega = lst_bodega;

            Dictionary <string, string> lst_signos = new Dictionary <string, string>();

            lst_signos.Add("-", "-");
            lst_signos.Add("+", "+");
            ViewBag.lst_signos = lst_signos;

            caj_Caja_Bus bus_caja = new caj_Caja_Bus();
            var          lst_caja = bus_caja.get_list(model.IdEmpresa, false);

            ViewBag.lst_caja = lst_caja;

            tb_sis_Documento_Tipo_Bus bus_doc = new tb_sis_Documento_Tipo_Bus();
            var lst_doc = bus_doc.get_list(false);

            ViewBag.lst_doc = lst_doc;
        }
コード例 #2
0
        private void cargar_combos_consulta()
        {
            int IdEmpresa    = Convert.ToInt32(SessionFixed.IdEmpresa);
            var lst_sucursal = bus_sucursal.GetList(IdEmpresa, Convert.ToString(SessionFixed.IdUsuario), false);

            lst_sucursal.Add(new tb_sucursal_Info
            {
                IdEmpresa      = IdEmpresa,
                IdSucursal     = 0,
                Su_Descripcion = "Todos"
            });
            ViewBag.lst_sucursal = lst_sucursal;

            tb_sis_Documento_Tipo_Bus bus_tipo = new tb_sis_Documento_Tipo_Bus();
            var lst_doc = bus_tipo.get_list(false);

            lst_doc.Add(new tb_sis_Documento_Tipo_Info
            {
                codDocumentoTipo = "",
                descripcion      = "Todos"
            });
            ViewBag.lst_doc = lst_doc;
        }