private void PoblarTablaHistorialReclamos() { this.dgvDetalleProcesoReclamo.Rows.Clear(); if (this.cbReferenciaReclamos.Text.Length > 0) { this._reclamos = new ClassReclamos(); this._reclamos.numreferencia = this.cbReferenciaReclamos.Text; this._historial = this._reclamos.BuscarHistorialReclamos(this._reclamos, "Historial"); if (this._historial.Tables["Historial"].Rows.Count > 0) { this.txtTipoReclamo.Text = this._historial.Tables["Historial"].Rows[0][1].ToString(); this.txtFechaIni.Text = this._historial.Tables["Historial"].Rows[0][2].ToString(); this.txtFechaFin.Text = this._historial.Tables["Historial"].Rows[0][3].ToString(); for (int fil = 0; fil < this._historial.Tables["Historial"].Rows.Count; fil++) { this.dgvDetalleProcesoReclamo.Rows.Add(1); this.dgvDetalleProcesoReclamo[0, fil].Value = this._historial.Tables["Historial"].Rows[fil][4].ToString(); this.dgvDetalleProcesoReclamo[1, fil].Value = this._historial.Tables["Historial"].Rows[fil][5].ToString(); this.dgvDetalleProcesoReclamo[2, fil].Value = this._historial.Tables["Historial"].Rows[fil][6].ToString(); this.dgvDetalleProcesoReclamo[3, fil].Value = this._historial.Tables["Historial"].Rows[fil][7].ToString(); this.dgvDetalleProcesoReclamo[4, fil].Value = this._historial.Tables["Historial"].Rows[fil][8].ToString(); } } } }
private void ListarNumerosReclamos() { this.dgvReclamos.DataSource = null; this._reclamos = new ClassReclamos(); this._reclamos.numreferencia = this.txtBusNumReferencia.Text; this.dgvReclamos.DataSource = this._reclamos.BuscarReclamosPorReferencia(this._reclamos, "Reclamos"); this.dgvReclamos.DataMember = "Reclamos"; if (this.dgvReclamos.Rows.Count > 0) { this.dgvReclamos.Columns[0].Visible = false; this.dgvReclamos.Columns[2].Visible = false; this.txtFechaFin.Text = this.dgvReclamos[2, 0].Value.ToString(); if (this.txtFechaFin.Text.Length <= 0) { this.txtFechaFin.Text = DateTime.Now.ToString("dd/MM/yyyy hh:mm:ss"); this.gbxConfirmarAccion.Enabled = true; } else { this.gbxConfirmarAccion.Enabled = false; } this.dgvReclamos.Columns[6].Visible = false; this.txtObservacion.Text = this.dgvReclamos[6, 0].Value.ToString(); } }
private void PoblarTablaHistorialReclamos() { this.dgvHistorialReclamos.DataSource = null; this._reclamos = new ClassReclamos(); this._reclamos.numreferencia = this.dgvReclamos[3, this.dgvReclamos.CurrentCell.RowIndex].Value.ToString(); this.dgvHistorialReclamos.DataSource = this._reclamos.BuscarHistorialReclamos(this._reclamos, "Historial"); this.dgvHistorialReclamos.DataMember = "Historial"; if (this.dgvHistorialReclamos.Rows.Count > 0) { this.dgvHistorialReclamos.Columns[0].Visible = false; this.dgvHistorialReclamos.Columns[1].Visible = false; this.dgvHistorialReclamos.Columns[2].Visible = false; this.dgvHistorialReclamos.Columns[3].Visible = false; this.dgvHistorialReclamos.Columns[4].Visible = false; this.dgvHistorialReclamos.Columns[5].Visible = false; this.dgvHistorialReclamos.Columns[9].Visible = false; this.dgvHistorialReclamos.Columns[10].Visible = false; this.txtObservacion.Text = this.dgvHistorialReclamos[10, 0].Value.ToString(); } }
private void ListarNumerosReclamos() { //Recuperar listado de reclamos asociados al cliente this.cbReferenciaReclamos.DataSource = null; this._reclamos = new ClassReclamos(); this._reclamos.idcliente = this._clientes.idpersona; DataTable _listanumreferecnias = this._reclamos.BuscarNumReferenciasDeReclamos(this._reclamos); this.cbReferenciaReclamos.DataSource = _listanumreferecnias; this.cbReferenciaReclamos.ValueMember = "idreclamo"; this.cbReferenciaReclamos.DisplayMember = "numeroreferencia"; this.btnEliminar.Enabled = false; }
private void ConsultasReclamos_Load(object sender, EventArgs e) { this._reclamos = new ClassReclamos(); this._reclamos.reclamo = this._tiporeclamo; DataTable _tiporeclamos = this._reclamos.BuscarTipoReclamos(this._reclamos); this.cbTipoReclamos.DataSource = _tiporeclamos; this.cbTipoReclamos.ValueMember = "idtiporeclamo"; this.cbTipoReclamos.DisplayMember = "tiporeclamo"; if ((this._idproblematica != "0") && (this._respuesta != "")) { this._reclamos.idtiporeclamo = this._idtiporeclamo; this._reclamos.idreclamo = this._idreclamo; this._reclamos.idproblematicareclamo = this._idproblematica; this._reclamos.respuesta = this._respuesta; _ReclamoCliente = this._reclamos.BuscarSiguienteReclamos(this._reclamos, "Consulta"); if (this._ReclamoCliente.Tables["Consulta"].Rows.Count > 0) { this._idproblematica = this._ReclamoCliente.Tables["Consulta"].Rows[0][0].ToString(); this.txtConsulta.Text = this._ReclamoCliente.Tables["Consulta"].Rows[0][1].ToString(); } } if (this._idproblematica == "1") { this.txtObservacion.Text = "Fin circuito!!!"; this.txtObservacion.Enabled = false; this.cbRespuesta.Text = "SI"; this.cbRespuesta.Enabled = false; } else { this.cbRespuesta.Text = ""; this.txtObservacion.Text = ""; } }
private void ListarNumerosReclamos() { //Recuperar listado de reclamos asociados al cliente this.dgvReclamos.DataSource = null; this._reclamos = new ClassReclamos(); this._reclamos.idempleado = this.dgvEmpleados[0, this.dgvEmpleados.CurrentCell.RowIndex].Value.ToString(); this.dgvReclamos.DataSource = this._reclamos.BuscarReclamosPorEmpleados(this._reclamos, "Reclamos"); this.dgvReclamos.DataMember = "Reclamos"; if (this.dgvReclamos.Rows.Count > 0) { this.dgvReclamos.Columns[0].Visible = false; this.dgvReclamos.Columns[6].Visible = false; } else { this.dgvHistorialReclamos.DataSource = null; } }
private void btnEliminar_Click(object sender, EventArgs e) { this._reclamos = new ClassReclamos(); this._reclamos.idreclamo = this.cbReferenciaReclamos.SelectedValue.ToString(); this._reclamos.idproblematicareclamo = "2"; this._reclamos.numreferencia = ""; this._reclamos.idcliente = "0"; this._reclamos.idtiporeclamo = "0"; this._reclamos.idempleado = "0"; this._reclamos.fechaini = DateTime.Now.ToString("yyyy/MM/dd hh:mm:ss"); this._reclamos.fechafin = DateTime.Now.ToString("yyyy/MM/dd hh:mm:ss"); this._reclamos.respuesta = ""; this._reclamos.observacion = ""; this._reclamos.accion = "B"; this._reclamos.fechaaccion = DateTime.Now.ToString("yyyy/MM/dd hh:mm:ss"); this._historial = this._reclamos.ABMReclamo(this._reclamos, "reclamo"); if (this._historial.Tables["reclamo"].Rows.Count > 0) { MessageBox.Show("Acción realizada con exito", "Atención!!!"); this.ListarNumerosReclamos(); this.txtTipoReclamo.Text = ""; this.txtFechaIni.Text = ""; this.txtFechaFin.Text = ""; this.dgvDetalleProcesoReclamo.Rows.Clear(); } else { MessageBox.Show("Error en la eliminación del registro", "Atención!!!"); } }