private void btnNuevo_Click(object sender, EventArgs e) { try { /* * SentinelWS02.ExecuteRequest IEntity = new SentinelWS02.ExecuteRequest(); * IEntity.Usuario = "06680788"; * IEntity.Password = "******"; * IEntity.Servicio = long.Parse("92"); * IEntity.Tipodoc = "R"; * IEntity.Nrodoc = "20101951872"; * * SentinelWS02.CNSDTConRapWS oEntity = new SentinelWS02.CNSDTConRapWS(); * SentinelWS02.SentinelWS02SoapPortClient oServices = new SentinelWS02.SentinelWS02SoapPortClient("SentinelWS02SoapPort"); * oEntity = oServices.Execute(IEntity.Usuario, IEntity.Password, IEntity.Servicio, IEntity.Tipodoc, IEntity.Nrodoc); */ Formula.Catalogo.frmMntPagadoraDato frmMntPagadoraDato = new Formula.Catalogo.frmMntPagadoraDato(); frmMntPagadoraDato.Operacion = "N"; frmMntPagadoraDato.ShowDialog(); btnBuscar.PerformClick(); } catch (Exception ex) { MessageBox.Show(ex.Message, "Error", MessageBoxButtons.OK, MessageBoxIcon.Error); } }
private void btnConsultar_Click(object sender, EventArgs e) { try { Formula.Catalogo.frmMntPagadoraDato frmMntPagadoraDato = new Formula.Catalogo.frmMntPagadoraDato(); frmMntPagadoraDato.Operacion = "C"; frmMntPagadoraDato.Codigo = dgvPagadoras.CurrentRow.Cells["Codigo"].Value.ToString(); frmMntPagadoraDato.ShowDialog(); } catch (Exception ex) { MessageBox.Show(ex.Message, "Error", MessageBoxButtons.OK, MessageBoxIcon.Error); } }
private void btnVerDatos_Click(object sender, EventArgs e) { try { Formula.Catalogo.frmMntPagadoraDato ofrm = new Formula.Catalogo.frmMntPagadoraDato(); ofrm.Codigo = Codigo; ofrm.Operacion = "C"; ofrm.ShowDialog(); } catch (Exception ex) { MessageBox.Show(ex.Message, "Error", MessageBoxButtons.OK, MessageBoxIcon.Error); } }