示例#1
0
        private void Nuevo_Grupo_Load(object sender, EventArgs e)
        {
            csResizeForm ResizeForm = new csResizeForm();

            ResizeForm.ResizeForm(this, 800, 600);

            if (bandera == true)
            {
                eliminar_button.Text = "Eliminar";
                var nombre_grupo = (from nombre in contexto.Grupos where nombre.id_grupo == id_grupo select nombre).First();
                nombre_grupo_textBox.Text = nombre_grupo.nombre_grupo;

                id_responsable = Convert.ToInt32(nombre_grupo.id_cliente_responsable);

                if (id_responsable != 0)
                {
                    var id_responsable     = (from responsable in contexto.Grupos where responsable.id_grupo == id_grupo select responsable).First();
                    var nombre_responsable = (from responsable in contexto.Catalogo_Clientes where responsable.id_cliente == id_responsable.id_cliente_responsable select responsable).First();
                    responsable_textBox.Text = nombre_responsable.nombre + " " + nombre_responsable.apellido_paterno + " " + nombre_responsable.apellido_materno;
                    entrada = false;
                }
            }
            else
            {
                eliminar_button.Text = "Limpiar";
            }

            Cargar_Gridviews();
        }
示例#2
0
        private void Principal_Load(object sender, EventArgs e)
        {
            csResizeForm ResizeForm = new csResizeForm();

            ResizeForm.ResizeForm(this, 800, 600);
            //Sporting_Gym.App_Code.Utility.csDynamicColumns g = new App_Code.Utility.csDynamicColumns();
            //string uri = @"C:\Users\User\Documents\Visual Studio 2015\Projects\Sporting_Gym\Sporting_Gym\Reportes\Proyeccion_Ingrensos.rdlc";
            //g.Genera_RDLC(, uri);

            for (int x = 0; x < Modulos.Count; x++)
            {
                foreach (Control c in this.Controls)
                {
                    if (!(c.Name == "Salir_Button"))
                    {
                        if (c.GetType().Name == "Button")
                        {
                            var v = Modulos.Where(s => s.nombre_Form == c.Name).ToList();

                            if (!(v.Count > 0))
                            {
                                c.Visible = false;
                            }
                        }
                    }
                }
            }
        }
示例#3
0
        private void Cobro_Load(object sender, EventArgs e)
        {
            csResizeForm ResizeForm = new csResizeForm();

            ResizeForm.ResizeForm(this, 800, 600);

            llenar_comoboBox();

            int id_cliente = Convert.ToInt32(tipo_cliente_comboBox.SelectedValue);
            int id_periodo = Convert.ToInt32(periodo_comboBox.SelectedValue);

            //var importepagar = contexto.sp_Importe_Pagar(a, b).ToString();
            var importePagar = (from x in contexto.Costo_Cliente_Periodo where x.id_periodo == id_periodo && x.id_tipo_cliente == id_cliente select x).ToList();

            //"Tipo cliente: " + tipo_cliente_comboBox.SelectedValue + ", Periodo: " + periodo_comboBox.SelectedValue
            //MessageBox.Show(Convert.ToString( importePagar[0].costo));
            if (importePagar.Count != 0)
            {
                importe_pagar_textBox.Text = Convert.ToString(importePagar[0].costo);
                total_textBox.Text         = importe_pagar_textBox.Text;
            }
            else
            {
                this.Close();
                MessageBox.Show("Verifique catalogo de periodos y/o tipo cliente", "Information", MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
            }
            primeravez = false;
            this.reporte_reportViewer.RefreshReport();
        }
示例#4
0
        private void Registro_Cliente_Load(object sender, EventArgs e)
        {
            csResizeForm ResizeForm = new csResizeForm();

            ResizeForm.ResizeForm(this, 800, 600);


            dispositivos = new FilterInfoCollection(FilterCategory.VideoInputDevice);

            foreach (FilterInfo x in dispositivos)
            {
                dispositivos_comboBox.Items.Add(x.Name);
            }

            try
            {
                dispositivos_comboBox.SelectedIndex = 0;
            }
            catch
            {
                MessageBox.Show("Instale un dispositivo de video", "Information", MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
            }

            if (id_cliente == 0)
            {
                sexo_comboBox.SelectedIndex     = 0;
                alergias_comboBox.SelectedIndex = 0;
            }
        }
示例#5
0
        private void Reportes_Load(object sender, EventArgs e)
        {
            csResizeForm ResizeForm = new csResizeForm();

            ResizeForm.ResizeForm(this, 800, 600);
            this.corte_caja_reportViewer.RefreshReport();
            this.Balance_reportViewer.RefreshReport();
        }
示例#6
0
        private void Catalogos_Load(object sender, EventArgs e)
        {
            csResizeForm ResizeForm = new csResizeForm();

            ResizeForm.ResizeForm(this, 800, 600);

            //Catalogos_tabControl.TabPages.Remove(Catalogos_tabControl.TabPages["Instructores_tabPage"]);
            carga_gridview("");
        }
示例#7
0
        private void Usuarios_Load(object sender, EventArgs e)
        {
            csResizeForm ResizeForm = new csResizeForm();

            ResizeForm.ResizeForm(this, 800, 600);

            LlenarComboBoxUsuarios();
            LlenarTreeView();
        }
示例#8
0
        private void Actualizar_Costos_Load(object sender, EventArgs e)
        {
            csResizeForm ResizeForm = new csResizeForm();

            ResizeForm.ResizeForm(this, 800, 600);

            Cargar_Datos();
            Cambiar_Valores_Gridview(null, null);
        }
示例#9
0
        private void Grupos_Load(object sender, EventArgs e)
        {
            csResizeForm ResizeForm = new csResizeForm();

            ResizeForm.ResizeForm(this, 800, 600);

            List <Catalogo_Tipos_Clientes> tipos_clientes = (from leer in contexto.Catalogo_Tipos_Clientes select leer).ToList();

            tipo_cliente_comboBox.ValueMember   = "id_tipo_cliente";
            tipo_cliente_comboBox.DisplayMember = "nombre_tipo_cliente";
            tipo_cliente_comboBox.DataSource    = tipos_clientes;
        }
示例#10
0
        private void Leer_Huella_Load(object sender, EventArgs e)
        {
            csResizeForm ResizeForm = new csResizeForm();

            ResizeForm.ResizeForm(this, 800, 600);

            List_Usuarios = contexto.Catalogo_Clientes.Select(x => x).ToList();
            Init();
            Start();

            intentos_label.Text = Convert.ToString(intentos);
        }
示例#11
0
        private void Egresos_Load(object sender, EventArgs e)
        {
            csResizeForm ResizeForm = new csResizeForm();

            ResizeForm.ResizeForm(this, 800, 600);

            var egresos = (from x in contexto.Catalogo_Tipos_Egresos select x).ToList();

            tipo_egreso_comboBox.ValueMember   = "id_tipo_egreso";
            tipo_egreso_comboBox.DisplayMember = "nombre_tipo_egreso";
            tipo_egreso_comboBox.DataSource    = egresos;

            fecha_dateTimePicker.Text = DateTime.Now.ToString("dd-MM-yyyy");
        }
示例#12
0
        private void Actualizar_Tipo_Pago_Load(object sender, EventArgs e)
        {
            csResizeForm ResizeForm = new csResizeForm();

            ResizeForm.ResizeForm(this, 800, 600);

            if (bandera == true)
            {
                eliminar_button.Text = "Eliminar";
            }
            else
            {
                eliminar_button.Text = "Limpiar";
            }
        }
示例#13
0
        private void Cancelar_Pago_Load(object sender, EventArgs e)
        {
            if (entre == true)
            {
                csResizeForm ResizeForm = new csResizeForm();
                ResizeForm.ResizeForm(this, 800, 600);
            }
            var pago = contexto.sp_Leer_Fechas_Pagos();

            //var pago = (from x in contexto.Tabla_Pagos
            //            join c in contexto.Catalogo_Clientes on x.id_cliente equals c.id_cliente
            //            where x.cancelado == false
            //            orderby x.fecha_pago descending
            //            select new { Pago = x.id_pago, Nombre_Cliente = c.nombre + "  " + c.apellido_paterno + " " + c.apellido_materno, Fecha_Pago = x.fecha_pago, Importe_Pagado = x.importe_pagado }).ToList();
            pagos_dataGridView.DataSource = pago;
        }
示例#14
0
        private void Historial_Asistencias_Load(object sender, EventArgs e)
        {
            csResizeForm ResizeForm = new csResizeForm();

            ResizeForm.ResizeForm(this, 800, 600);

            if (instructor == false)
            {
                var historial = (from x in contexto.Bitacora_Asistencias where x.id_cliente == id_cliente && x.estatus == true orderby x.fecha_ingreso descending select new { fecha_ingreso = x.fecha_ingreso }).ToList();
                historial_asistencias_dataGridView.DataSource = historial;
            }
            else
            {
                var historial = (from x in contexto.Bitacora_Asistencias where x.id_cliente == id_cliente && x.estatus == false select new { fecha_ingreso = x.fecha_ingreso }).ToList();
                historial_asistencias_dataGridView.DataSource = historial;
            }
        }
示例#15
0
        private void Buscar_Load(object sender, EventArgs e)
        {
            csResizeForm ResizeForm = new csResizeForm();

            ResizeForm.ResizeForm(this, 800, 600);

            if (tipo == true)
            {
                var cliente = contexto.sp_Buscar_Cliente(apellido_paterno).ToList();
                Clientes_dataGridView.DataSource = cliente;
            }
            else if (tipo == false)
            {
                var cliente = contexto.sp_Buscar_Instructor(nombre).ToList();
                Clientes_dataGridView.DataSource = cliente;
            }

            Clientes_dataGridView.Columns[0].Visible = false;
        }
        private void Actualizar_Tipo_Cliente_Load(object sender, EventArgs e)
        {
            csResizeForm ResizeForm = new csResizeForm();

            ResizeForm.ResizeForm(this, 800, 600);

            contexto = new db_sporting_gymContainer();

            if (insertar == true)
            {
                eliminar_button.Text = "Eliminar";
                var nom = (from x in contexto.Catalogo_Tipos_Clientes where x.id_tipo_cliente == id_seleccion select x).ToList();
                nombre_tipo_cliente_textBox.Text = nom[0].nombre_tipo_cliente;
            }
            else
            {
                eliminar_button.Text = "Limpiar";
            }
        }
示例#17
0
        private void Checador_Load(object sender, EventArgs e)
        {
            csResizeForm ResizeForm = new csResizeForm();
            ResizeForm.ResizeForm(this, 800, 600);

            this.Init();
            this.Start();

            Verificator = new DPFP.Verification.Verification();

            var today = DateTime.Today;

            //List_Usuarios = (from cliente in contexto.Lista_Checador select new csCliente() {id_Cliente = cliente.id_usuario.Value, fingerPrint = cliente.huella}).ToList<csCliente>();

            //for(int x = 0; x < lista)

            lista = contexto.sp_Lista_Checador().ToList();

            int a = lista.Count;
        }
示例#18
0
        private void Actualizar_Periodo_Load(object sender, EventArgs e)
        {
            csResizeForm ResizeForm = new csResizeForm();

            ResizeForm.ResizeForm(this, 800, 600);

            contexto = new db_sporting_gymContainer();

            if (insertar == true)
            {
                Eliminar_button.Text = "Eliminar";
                var nom = (from x in contexto.Catalogo_Periodos where x.id_periodo == id_seleccion select x).ToList();
                nombre_periodo_textBox.Text = nom[0].nombre_periodo;
                dias_periodo_textBox.Text   = nom[0].dias.ToString();
            }
            else
            {
                Eliminar_button.Text = "Limpiar";
            }
        }
示例#19
0
        private void Actualizar_Instructor_Load(object sender, EventArgs e)
        {
            csResizeForm ResizeForm = new csResizeForm();

            ResizeForm.ResizeForm(this, 800, 600);

            dispositivos = new FilterInfoCollection(FilterCategory.VideoInputDevice);

            foreach (FilterInfo x in dispositivos)
            {
                dispositivos_comboBox.Items.Add(x.Name);
            }

            dispositivos_comboBox.SelectedIndex = 0;

            var contexto = new db_sporting_gymContainer();

            if (id_instructor == 0)
            {
                sexo_comboBox.SelectedIndex = 0;
            }
        }
示例#20
0
        private void Historial_Load(object sender, EventArgs e)
        {
            csResizeForm ResizeForm = new csResizeForm();

            ResizeForm.ResizeForm(this, 800, 600);

            var info = contexto.sp_Buscar_Pago(id_pago).ToList();

            int id_cliente = Convert.ToInt32(info[0].id_cliente);

            var nombre_cliente = (from x in contexto.Catalogo_Clientes where x.id_cliente == id_cliente select x).Single();

            nombre_label.Text           = nombre_cliente.nombre + " " + nombre_cliente.apellido_paterno + " " + nombre_cliente.apellido_materno;
            fecha_pago_textBox.Text     = info[0].Fecha.ToString();
            metodo_pago_textBox.Text    = info[0].Método_de_Pago;
            periodo_textBox.Text        = info[0].Período;
            tipo_cliente_textBox.Text   = info[0].Tipo_Cliente;
            impore_pagar_textBox.Text   = info[0].importe_a_pagar.ToString();
            importe_pagado_textBox.Text = info[0].importe_pagado.ToString();
            justificacion_textBox.Text  = info[0].justificacion;
            observacion_textBox.Text    = info[0].observaciones;

            this.reporte_reportViewer.RefreshReport();
        }
示例#21
0
        private void Cambio_Usuario_Load(object sender, EventArgs e)
        {
            csResizeForm ResizeForm = new csResizeForm();

            ResizeForm.ResizeForm(this, 800, 600);
        }
示例#22
0
        private void Login_Load(object sender, EventArgs e)
        {
            csResizeForm ResizeForm = new csResizeForm();

            ResizeForm.ResizeForm(this, 800, 600);
        }
示例#23
0
        private void Egresos_Principal_Load(object sender, EventArgs e)
        {
            csResizeForm ResizeForm = new csResizeForm();

            ResizeForm.ResizeForm(this, 800, 600);
        }