예제 #1
0
        private void btnNuevaGuia_Click(object sender, EventArgs e)
        {
            frmNotadeDebitoCompra form2 = new frmNotadeDebitoCompra();

            form2.MdiParent = this.MdiParent;
            form2.Proceso   = 1;
            form2.Show();
            this.Close();
        }
예제 #2
0
 private void dgvNotasCredito_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
 {
     if (dgvNotasCredito.Rows.Count >= 1 && e.RowIndex != -1)
     {
         frmNotadeDebitoCompra form = new frmNotadeDebitoCompra();
         form.MdiParent = this.MdiParent;
         form.CodNotaS  = Convert.ToInt32(codFact);
         form.DocRef    = DocRef;
         form.Proceso   = 3;
         form.Show();
     }
 }
예제 #3
0
 private void btnIrPedido_Click(object sender, EventArgs e)
 {
     if (dgvNotasCredito.Rows.Count >= 1 && dgvNotasCredito.CurrentRow != null)
     {
         DataGridViewRow       row  = dgvNotasCredito.CurrentRow;
         frmNotadeDebitoCompra form = new frmNotadeDebitoCompra();
         form.MdiParent = this.MdiParent;
         form.CodNotaS  = Convert.ToInt32(codFact);
         form.DocRef    = DocRef;
         form.Proceso   = 3;
         form.Show();
     }
 }
예제 #4
0
        private void btnAceptar_Click(object sender, EventArgs e)
        {
            if (dgvProveedor.SelectedRows.Count > 0)
            {
                if (Procede == 1)
                {
                    frmNotaIngresoPorOrden form = (frmNotaIngresoPorOrden)Application.OpenForms["frmNotaIngresoPorOrden"];
                    form.CodProveedor         = pro.CodProveedor;
                    form.txtCodProv.Text      = pro.Ruc;
                    form.txtNombreProv.Text   = pro.RazonSocial;
                    form.txtCodProveedor.Text = pro.CodProveedor.ToString();
                    this.Close();
                }
                else if (Procede == 2)
                {
                    frmGestionLetra form = (frmGestionLetra)Application.OpenForms["frmGestionLetra"];
                    form.CodProveedor = pro.CodProveedor;
                    this.Close();
                }
                else if (Procede == 3)
                {
                    frmOrdenCompra form = (frmOrdenCompra)Application.OpenForms["frmOrdenCompra"];
                    form.CodProveedor       = pro.CodProveedor;
                    form.txtCodProv.Text    = pro.Ruc;
                    form.txtNombreProv.Text = pro.RazonSocial;
                    this.Close();
                }
                if (Procede == 4)
                {
                    frmNotaIngreso form = (frmNotaIngreso)Application.OpenForms["frmNotaIngreso"];
                    form.CodProveedor       = pro.CodProveedor;
                    form.txtCodProv.Text    = pro.Ruc;
                    form.txtNombreProv.Text = pro.RazonSocial;
                    this.Close();
                }
                if (Procede == 5)
                {
                    frmListaPreciosProductos form = (frmListaPreciosProductos)Application.OpenForms["frmListaPreciosProductos"];
                    if (pro.RazonSocial == null)
                    {
                        form.txtProveedorNomb.Focus();
                    }
                    else
                    {
                        form.txtProveedorCod.Text  = pro.CodProveedor.ToString();
                        form.txtProveedorNomb.Text = pro.RazonSocial;
                    }
                    this.Close();
                }

                //NOTA DE CREDITO POR COMPRA
                //MODIFICADO ALEX 23/02/2015
                else if (Procede == 6)
                {
                    frmNotadeCreditoCompra form = (frmNotadeCreditoCompra)Application.OpenForms["frmNotadeCreditoCompra"];
                    form.CodProveedor            = pro.CodProveedor;
                    form.txtCodProveedor.Text    = pro.Ruc;
                    form.txtNombreProveedor.Text = pro.RazonSocial;
                    this.Close();
                }
                //NOTA DE DEBITO POR COMPRA
                //MODIFICADO ALEX 04/03/2015
                else if (Procede == 7)
                {
                    frmNotadeDebitoCompra form = (frmNotadeDebitoCompra)Application.OpenForms["frmNotadeDebitoCompra"];
                    form.CodProveedor            = pro.CodProveedor;
                    form.txtCodProveedor.Text    = pro.Ruc;
                    form.txtNombreProveedor.Text = pro.RazonSocial;
                    this.Close();
                }
                else if (Procede == 8) //Salida por Devolucion
                {
                    frmNotaSalida form = (frmNotaSalida)Application.OpenForms["frmNotaSalida"];
                    form.CodProveedor          = pro.CodProveedor;
                    form.txtCodCliente.Text    = pro.Ruc;
                    form.txtNombreCliente.Text = pro.RazonSocial;
                    form.btnDetalle.Enabled    = true;
                    this.Close();
                }
                else if (Procede == 9) //Cambio de Proveedor
                {
                    frmCambioProveedor form = (frmCambioProveedor)Application.OpenForms["frmCambioProveedor"];
                    form.CodProv          = pro.CodProveedor;
                    form.txtCodProv2.Text = form.CodProv.ToString();
                    this.Close();
                }
            }
        }