예제 #1
0
        private void Bt_ventas_Click(object sender, EventArgs e)
        {
            Frm_Crear_Ventas ven = new Frm_Crear_Ventas();

            ven.MdiParent = this;
            ven.Show();

            if (PanelLateral.Width == 247)
            {
                PanelLateral.Width = 40;
            }
        }
예제 #2
0
        private void reimprimirDocumentoToolStripMenuItem_Click(object sender, EventArgs e)
        {
            Frm_Filtro         fil   = new Frm_Filtro();
            Frm_Advertencia    ver   = new Frm_Advertencia();
            Form_VerDet_Compra edi   = new Form_VerDet_Compra();
            Frm_Crear_Ventas   venta = new Frm_Crear_Ventas();

            if (ltsCompras.SelectedIndices.Count == 0)
            {
                fil.Show();
                ver.lbl_Msm1.Text = "Seleccione un producto";
                ver.ShowDialog();
                fil.Hide();
            }
            else
            {
                var    lis   = ltsCompras.SelectedItems[0];
                string idDoc = lis.SubItems[0].Text;

                fil.Show();
                venta.txtBuscar.Text = idDoc;
                venta.ShowDialog();
                fil.Hide();

                try
                {
                    if (edi.Tag.ToString() == "A")
                    {
                        Cargar_todos_Ventas();
                    }
                }
                catch (Exception)
                {
                    edi.Tag = "";
                }
            }
        }