public void CargarComboBox()
        {
            Compartido_Negocio CompN = new Compartido_Negocio();

            //////////////LISTAR EMPLEADO INFORME PEDIDO/////////////////
            cmb_Empl_info.ItemsSource       = CompN.ListarEmpleado();
            cmb_Empl_info.DisplayMemberPath = "p_nombre_empleado";
            cmb_Empl_info.SelectedValuePath = "id_empleado";



            //////////////LISTAR PROVEEDOR/////////////////
            cmb_prov_info.ItemsSource       = CompN.ListarProveedor();
            cmb_prov_info.DisplayMemberPath = "razon_social_prov";
            cmb_prov_info.SelectedValuePath = "id_proveedor";

            //////////////LISTAR TIPO DOCUMENTO VENTA/////////////////
            cmb_Tipo_Doc_info_vta.ItemsSource       = CompN.ListarDocumentos();
            cmb_Tipo_Doc_info_vta.DisplayMemberPath = "descr_documento";
            cmb_Tipo_Doc_info_vta.SelectedValuePath = "id_documento";


            //////////////LISTAR FAMILIA PRODUCTO VENTA/////////////////
            cmb_familiaProd_info_vta.ItemsSource       = CompN.ListarFamProd();
            cmb_familiaProd_info_vta.DisplayMemberPath = "descr_familia";
            cmb_familiaProd_info_vta.SelectedValuePath = "id_familia_prod";
        }
예제 #2
0
        public void CargarComboBoxPedido()
        {
            //////////////LISTAR FAMILIA/////////////////
            Compartido_Negocio ComparN = new Compartido_Negocio();

            cmb_Familia_P.ItemsSource       = ComparN.ListarFamProd();
            cmb_Familia_P.DisplayMemberPath = "descr_familia";
            cmb_Familia_P.SelectedValuePath = "id_familia_prod";


            //////////////LISTAR ESTADO/////////////////
            cmb_Estado_P.ItemsSource       = ComparN.ListarEstadoPedido();
            cmb_Estado_P.DisplayMemberPath = "desc_estado";
            cmb_Estado_P.SelectedValuePath = "id_estado";

            //////////////LISTAR EMPLEADO/////////////////
            cmb_Empleado_P.ItemsSource       = ComparN.ListarEmpleado();
            cmb_Empleado_P.DisplayMemberPath = "p_nombre_empleado";
            cmb_Empleado_P.SelectedValuePath = "id_empleado";

            //////////////LISTAR PROVEEDOR/////////////////
            cmb_Proveedor_P.ItemsSource       = ComparN.ListarProveedor();
            cmb_Proveedor_P.DisplayMemberPath = "razon_social_prov";
            cmb_Proveedor_P.SelectedValuePath = "id_proveedor";
        }
예제 #3
0
        public void CargarComboBox()
        {
            Tipo_Documento_Negocio Docu_Neg = new Tipo_Documento_Negocio();

            //////////////LISTAR FAMILIA/////////////////
            cmb_Documento_Vta.ItemsSource       = Docu_Neg.ListarDocumento();
            cmb_Documento_Vta.DisplayMemberPath = "descr_documento";
            cmb_Documento_Vta.SelectedValuePath = "id_documento";

            TallerNegocio TallerN = new TallerNegocio();

            //////////////LISTAR taller/////////////////
            cmb_taller_Vta.ItemsSource       = TallerN.ListarTaller();
            cmb_taller_Vta.DisplayMemberPath = "nombre";
            cmb_taller_Vta.SelectedValuePath = "id_taller";


            Servicio_Negocio Serv_N = new Servicio_Negocio();

            //////////////LISTAR ESTADO/////////////////
            cmb_servicio_Vta.ItemsSource       = Serv_N.ListaServicio();
            cmb_servicio_Vta.DisplayMemberPath = "Descripción";
            cmb_servicio_Vta.SelectedValuePath = "ID";

            //////////////LISTAR FAMILIA/////////////////
            Compartido_Negocio ComparN = new Compartido_Negocio();

            cmb_Familia_prod_Vta.ItemsSource       = ComparN.ListarFamProd();
            cmb_Familia_prod_Vta.DisplayMemberPath = "descr_familia";
            cmb_Familia_prod_Vta.SelectedValuePath = "id_familia_prod";

            Cliente_Negocio ClienN = new Cliente_Negocio();

            cmb_Cliente_Vta.ItemsSource       = ClienN.ListarClienteCMB();
            cmb_Cliente_Vta.DisplayMemberPath = "nombre_cliente";
            cmb_Cliente_Vta.SelectedValuePath = "id_cliente";
        }