Beispiel #1
0
        public JsonResult get_info_tipo_cliente(int IdEmpresa = 0, int IdCliente_tipo = 0)
        {
            fa_cliente_tipo_Bus bus_cliente_tipo = new fa_cliente_tipo_Bus();
            var resultado = bus_cliente_tipo.get_info(IdEmpresa, IdCliente_tipo);

            return(Json(resultado, JsonRequestBehavior.AllowGet));
        }
        private void cargar_combos(cl_filtros_facturacion_Info model)
        {
            int IdEmpresa = Convert.ToInt32(SessionFixed.IdEmpresa);

            var lst_sucursal = bus_sucursal.get_list(IdEmpresa, false);

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

            fa_Vendedor_Bus bus_vendedor = new fa_Vendedor_Bus();
            var             lst_vendedor = bus_vendedor.get_list(IdEmpresa, false);

            lst_vendedor.Add(new Info.Facturacion.fa_Vendedor_Info
            {
                IdVendedor  = 0,
                Ve_Vendedor = "Todos"
            });
            ViewBag.lst_vendedor = lst_vendedor;

            fa_cliente_tipo_Bus bus_cliente_tipo = new fa_cliente_tipo_Bus();
            var lst_cliente_tipo = bus_cliente_tipo.get_list(IdEmpresa, false);

            lst_cliente_tipo.Add(new Info.Facturacion.fa_cliente_tipo_Info
            {
                Idtipo_cliente          = 0,
                Descripcion_tip_cliente = "Todos"
            });
            ViewBag.lst_cliente_tipo = lst_cliente_tipo;
        }
Beispiel #3
0
        private void XCXC_Rpt009_frm_Load(object sender, EventArgs e)
        {
            try
            {
                fa_cliente_tipo_Bus         BusCliente      = new fa_cliente_tipo_Bus();
                List <fa_cliente_tipo_Info> ListInfoCliente = new List <fa_cliente_tipo_Info>();


                ListInfoCliente = BusCliente.Get_List_fa_cliente_tipo(param.IdEmpresa);
                ListInfoCliente.Add(new fa_cliente_tipo_Info(param.IdEmpresa, 0, "0", "TODOS", "A"));

                cmb_tipo_Cliente.Properties.DataSource = ListInfoCliente;
                cmb_tipo_Cliente.EditValue             = 1;



                uccxC_MenuReportes.dtpDesde.EditValue = DateTime.Now;
                uccxC_MenuReportes.dtpDesde.Caption   = "Fecha Corte:";
            }
            catch (Exception ex)
            {
                Log_Error_bus.Log_Error(ex.ToString());
                MessageBox.Show(ex.Message, param.Nombre_sistema, MessageBoxButtons.OK, MessageBoxIcon.Error);
            }
        }
Beispiel #4
0
        private void cargar_combos(int IdEmpresa)
        {
            fa_cliente_Bus bus_cliente = new fa_cliente_Bus();
            var            lst_cliente = bus_cliente.get_list(IdEmpresa, false);

            ViewBag.lst_cliente = lst_cliente;

            tb_sucursal_Bus bus_sucursal = new tb_sucursal_Bus();
            var             lst_sucursal = bus_sucursal.get_list(IdEmpresa, false);

            lst_sucursal.Add(new Info.General.tb_sucursal_Info
            {
                IdSucursal     = 0,
                Su_Descripcion = "TODAS"
            });
            ViewBag.lst_sucursal = lst_sucursal;

            cxc_cobro_tipo_Bus bus_cobro = new cxc_cobro_tipo_Bus();
            var lst_cobro = bus_cobro.get_list(false);

            lst_cobro.Add(new Info.CuentasPorCobrar.cxc_cobro_tipo_Info
            {
                IdCobro_tipo   = "",
                tc_descripcion = "TODOS"
            });
            ViewBag.lst_cobro = lst_cobro;

            fa_cliente_tipo_Bus bus_cliente_tipo = new fa_cliente_tipo_Bus();
            var lst_cliente_tipo = bus_cliente_tipo.get_list(IdEmpresa, false);

            lst_cliente_tipo.Add(new Info.Facturacion.fa_cliente_tipo_Info
            {
                Idtipo_cliente          = 0,
                Descripcion_tip_cliente = "Todos"
            });
            ViewBag.lst_cliente_tipo = lst_cliente_tipo;

            fa_Vendedor_Bus bus_vendedor = new fa_Vendedor_Bus();
            var             lst_vendedor = bus_vendedor.get_list(IdEmpresa, false);

            lst_vendedor.Add(new Info.Facturacion.fa_Vendedor_Info
            {
                IdVendedor  = 0,
                Ve_Vendedor = "Todos"
            });
            ViewBag.lst_vendedor = lst_vendedor;
        }
Beispiel #5
0
        private void cargar_combos(fa_cliente_Info info)
        {
            fa_NivelDescuento_Bus bus_nivel = new fa_NivelDescuento_Bus();
            var lst_nivel = bus_nivel.GetList(info.IdEmpresa, false);

            ViewBag.lst_nivel = lst_nivel;

            fa_formaPago_Bus bus_formapago = new fa_formaPago_Bus();
            var lst_formapago = bus_formapago.get_list(false);

            ViewBag.lst_formapago = lst_formapago;

            fa_cliente_tipo_Bus bus_clientetipo = new fa_cliente_tipo_Bus();
            var lst_clientetipo = bus_clientetipo.get_list(info.IdEmpresa, false);

            ViewBag.lst_clientetipo = lst_clientetipo;


            fa_TerminoPago_Bus bus_termino_pago = new fa_TerminoPago_Bus();
            var lst_termino_pago = bus_termino_pago.get_list(false);

            ViewBag.lst_termino_pago = lst_termino_pago;

            ct_plancta_Bus bus_plancta = new ct_plancta_Bus();
            var            lst_ctacble = bus_plancta.get_list(info.IdEmpresa, false, true);

            ViewBag.lst_cuentas = lst_ctacble;

            tb_Catalogo_Bus bus_catalogo = new tb_Catalogo_Bus();
            var             lst_tipo_doc = bus_catalogo.get_list(Convert.ToInt32(cl_enumeradores.eTipoCatalogoGeneral.TIPODOC), false);

            ViewBag.lst_tipo_doc = lst_tipo_doc;

            var lst_tipo_naturaleza = bus_catalogo.get_list(Convert.ToInt32(cl_enumeradores.eTipoCatalogoGeneral.TIPONATPER), false);

            ViewBag.lst_tipo_naturaleza = lst_tipo_naturaleza;

            tb_ciudad_Bus bus_ciudad = new tb_ciudad_Bus();
            var           lst_ciudad = bus_ciudad.get_list("", false);

            ViewBag.lst_ciudad = lst_ciudad;
        }
Beispiel #6
0
        private void cargar_combos(fa_cliente_Info info)
        {
            fa_formaPago_Bus bus_formapago = new fa_formaPago_Bus();
            var lst_formapago = bus_formapago.get_list();

            ViewBag.lst_formapago = lst_formapago;

            fa_cliente_tipo_Bus bus_clientetipo = new fa_cliente_tipo_Bus();
            var lst_clientetipo = bus_clientetipo.get_list(info.IdEmpresa, false);

            ViewBag.lst_clientetipo = lst_clientetipo;

            Dictionary <int, string> lst_nivel_precio = new Dictionary <int, string>();

            lst_nivel_precio.Add(1, "Nivel 1");
            lst_nivel_precio.Add(2, "Nivel 2");
            lst_nivel_precio.Add(3, "Nivel 3");
            lst_nivel_precio.Add(4, "Nivel 4");
            lst_nivel_precio.Add(5, "Nivel 5");
            ViewBag.lst_nivel_precio = lst_nivel_precio;

            fa_TerminoPago_Bus bus_termino_pago = new fa_TerminoPago_Bus();
            var lst_termino_pago = bus_termino_pago.get_list(false);

            ViewBag.lst_termino_pago = lst_termino_pago;

            ct_plancta_Bus bus_plancta = new ct_plancta_Bus();
            var            lst_ctacble = bus_plancta.get_list(info.IdEmpresa, false, true);

            ViewBag.lst_cuentas = lst_ctacble;

            tb_Catalogo_Bus bus_catalogo = new tb_Catalogo_Bus();
            var             lst_tipo_doc = bus_catalogo.get_list(Convert.ToInt32(cl_enumeradores.eTipoCatalogoGeneral.TIPODOC), false);

            ViewBag.lst_tipo_doc = lst_tipo_doc;
            var lst_tipo_naturaleza = bus_catalogo.get_list(Convert.ToInt32(cl_enumeradores.eTipoCatalogoGeneral.TIPONATPER), false);

            ViewBag.lst_tipo_naturaleza = lst_tipo_naturaleza;
        }
Beispiel #7
0
        private void cargar_cliente_contacto(cl_filtros_facturacion_Info model)
        {
            tb_sucursal_Bus bus_sucursal = new tb_sucursal_Bus();
            var             lst_sucursal = bus_sucursal.get_list(model.IdEmpresa, false);

            lst_sucursal.Add(new Info.General.tb_sucursal_Info
            {
                IdSucursal     = 0,
                Su_Descripcion = "TODAS"
            });
            ViewBag.lst_sucursal = lst_sucursal;

            fa_cliente_Bus bus_cliente = new fa_cliente_Bus();
            var            lst_cliente = bus_cliente.get_list(model.IdEmpresa, false);

            ViewBag.lst_cliente = lst_cliente;

            fa_cliente_tipo_Bus bus_tipo_cliente = new fa_cliente_tipo_Bus();
            var lst_tipo_cliente = bus_tipo_cliente.get_list(model.IdEmpresa, false);

            lst_tipo_cliente.Add(new fa_cliente_tipo_Info
            {
                IdEmpresa               = model.IdEmpresa,
                Idtipo_cliente          = 0,
                Descripcion_tip_cliente = "Todos"
            });
            ViewBag.lst_tipo_cliente = lst_tipo_cliente;

            fa_cliente_contactos_Bus bus_contacto = new fa_cliente_contactos_Bus();
            var lst_contacto = bus_contacto.get_list(model.IdEmpresa, model.IdCliente == null ? 0 : Convert.ToDecimal(model.IdCliente));

            lst_contacto.Add(new fa_cliente_contactos_Info
            {
                IdContacto = 0,
                Nombres    = "Todos"
            });
            ViewBag.lst_contacto = lst_contacto;
        }