private void btnAgregarDocumentoPagador_Click(object sender, EventArgs e) { try { if (string.IsNullOrEmpty(Codigo)) { if (!GuardarSolicitud()) { return; } } frmMntSolicitudCheckListDato ofrm = new frmMntSolicitudCheckListDato(); ofrm.Operacion = "N"; ofrm.Codigo = txtIdSolicitud.Text; ofrm._IdTipo_tt = "00322"; //Pagador ofrm._IdTipoSolicitud_tt = cboIdTipoSolicitud_tt.SelectedValue.ToString(); ofrm._NroIdentidadEntidad = txtcRucPagadora.Text.Trim(); ofrm.ShowDialog(); CargarSolicitudCheckList("00322"); } catch (Exception ex) { MessageBox.Show(ex.Message, "Error", MessageBoxButtons.OK, MessageBoxIcon.Error); } }
private void dgvCheckListPagador_CellClick(object sender, DataGridViewCellEventArgs e) { try { if (e.ColumnIndex < 0) { return; } if (e.RowIndex == -1) { return; } if (dgvCheckListPagador.Columns[e.ColumnIndex].Name.Equals("btnVerDocP") && !string.IsNullOrEmpty(dgvCheckListPagador.CurrentRow.Cells["vDocumentoP"].Value.ToString())) { string filepath = ConfigurationManager.AppSettings["RutaImageFisical"].ToString() + "//LegalSistemas//" + txtcRucPagadora.Text.Trim() + "//Adjuntos//" + txtIdSolicitud.Text + "//" + dgvCheckListPagador.CurrentRow.Cells["vDocumentoP"].Value.ToString(); Process.Start(filepath); } if (dgvCheckListPagador.Columns[e.ColumnIndex].Name.Equals("btnEliminarAdjPag")) { DialogResult dialogResult = 0; dialogResult = MessageBox.Show("¿Seguro de eliminar el documento seleccionado : " + dgvCheckListPagador.CurrentRow.Cells["IdDocumento_tt_DscP"].Value.ToString() + "?", "Confirme", MessageBoxButtons.YesNo, MessageBoxIcon.Question); if (dialogResult == DialogResult.Yes) { SolicitudCheckListBE oEntity = new SolicitudCheckListBE(); oEntity.USUARIO = General.General.GetCodigoUsuario; oEntity.OPCION = 3; oEntity.IdSolicitud = Codigo; oEntity.IdTipo_tt = dgvCheckListPagador.CurrentRow.Cells["IdTipo_ttP"].Value.ToString(); oEntity.IdDocumento_tt = dgvCheckListPagador.CurrentRow.Cells["vDocumentoP"].Value.ToString(); new SolicitudCheckListBL().ProcesarSolicitudCheckList(oEntity); CargarSolicitudCheckList("00322"); } } if (dgvCheckListPagador.Columns[e.ColumnIndex].Name.Equals("btnEditarDocP")) { if (string.IsNullOrEmpty(Codigo)) { if (!GuardarSolicitud()) { return; } } frmMntSolicitudCheckListDato ofrm = new frmMntSolicitudCheckListDato(); ofrm.Operacion = "N"; ofrm.Codigo = txtIdSolicitud.Text; ofrm._IdTipo_tt = "00322"; //Pagadora ofrm._IdTipoSolicitud_tt = cboIdTipoSolicitud_tt.SelectedValue.ToString(); ofrm._IdDocumento_tt = dgvCheckListPagador.CurrentRow.Cells["IdDocumento_ttP"].Value.ToString(); ofrm._NroIdentidadEntidad = txtcRucSocio.Text.Trim(); ofrm.ShowDialog(); CargarSolicitudCheckList("00322"); } } catch (Exception ex) { MessageBox.Show(ex.Message, "Error", MessageBoxButtons.OK, MessageBoxIcon.Error); } }