private void ObtenerTotalesEntregados() { EventosCupones EvntCpn = new EventosCupones(); EventosExepciones EvntExp = new EventosExepciones(); txt_total_cupones.Text = EvntCpn.GetCantidadCupones().ToString(); txt_total_exepciones.Text = EvntExp.GetCantidadExepciones().ToString(); }
private void cargar_exepciones() { EventosExepciones evntexp = new EventosExepciones(); Func_Utiles func_util = new Func_Utiles(); Parentesco prnt = new Parentesco(); foreach (var item in evntexp.GetListadoExepciones(_cuil)) { dgv_titu_benef.Rows.Add(); int fila = dgv_titu_benef.Rows.Count - 1; dgv_titu_benef.Rows[fila].Cells["nombre"].Value = item.EventExepApellido + " " + item.EventExepNombre; dgv_titu_benef.Rows[fila].Cells["Parentesco"].Value = prnt.GetParentescoDescrip(item.EventExepParent).parent_descrip; dgv_titu_benef.Rows[fila].Cells["CodigoFliar"].Value = 0; dgv_titu_benef.Rows[fila].Cells["dni"].Value = item.EventExepDni; dgv_titu_benef.Rows[fila].Cells["sexo"].Value = item.EventExpSexo; dgv_titu_benef.Rows[fila].Cells["Edad"].Value = func_util.calcular_edad(item.EventFechaNac); dgv_titu_benef.Rows[fila].Cells["Exepcion"].Value = 1; dgv_titu_benef.Rows[fila].Cells["ExepcionID"].Value = item.EventExepId; dgv_titu_benef.Rows[fila].Cells["Emitir"].Value = Properties.Resources.impresora_PNG_24; //D:\Proyectos\entrega_cupones\entrega_cupones\Resources\impresora (1).png; } }
private void btn_cargar_exepcion_Click(object sender, EventArgs e) { EventosExepciones EventExep = new EventosExepciones(); if (EventExep.GetExisteExepcion(txt_dni.Text.Trim()).EventExepDni != null) { MessageBox.Show("Ya se cargo la exepcion.!!!"); txt_dni.Focus(); } else { Clases.Parentesco prnt = new Clases.Parentesco(); var insert = EventExep.InsertarExepciones( txt_apellido.Text.Trim(), txt_nombre.Text.Trim(), txt_dni.Text.Trim(), Convert.ToDateTime(msk_fecha_nac.Text), cbx_sexo.SelectedItem.ToString(), Convert.ToInt32(cbx_parentesco.SelectedValue), _cuil ); dgv_titu_benef.Rows.Add(); int fila = dgv_titu_benef.Rows.Count - 1; dgv_titu_benef.Rows[fila].Cells["nombre"].Value = insert.EventExepApellido + " " + insert.EventExepNombre; dgv_titu_benef.Rows[fila].Cells["Parentesco"].Value = prnt.GetParentescoDescrip(insert.EventExepParent).parent_descrip; dgv_titu_benef.Rows[fila].Cells["dni"].Value = insert.EventExepDni; dgv_titu_benef.Rows[fila].Cells["sexo"].Value = insert.EventExpSexo; dgv_titu_benef.Rows[fila].Cells["Edad"].Value = txt_edad.Text; dgv_titu_benef.Rows[fila].Cells["Exepcion"].Value = 1; dgv_titu_benef.Rows[fila].Cells["exepcionID"].Value = insert.EventExepId; dgv_titu_benef.Rows[fila].Cells["Emitir"].Value = Properties.Resources.impresora_PNG_24; MessageBox.Show("Verificar al final del listado y presionar imprimir.", "Carga de exepcion exitosa"); limpiar_textbox(); disable_textbox(); } }
private void ObtenerTotalesEntregados() { EventosCupones EvntCpn = new EventosCupones(); EventosExepciones EvntExp = new EventosExepciones(); }