private void button1_Click(object sender, EventArgs e)
        {
            List_Ventas lv = new List_Ventas();

            lv.codUser = 0;

            SqlDataAdapter sda = new SqlDataAdapter("SELECT * FROM REV_Ventas id_Venta = '" + coddet + "'; ", fu.GetCONN());
            DataTable      dt  = new DataTable();

            sda.Fill(dt);
            lv.regprodtable.DataSource = dt;
            lv.ShowDialog();
        }
Exemplo n.º 2
0
        private void btnListventas_Click(object sender, EventArgs e)
        {
            List_Ventas lv = new List_Ventas();

            lv.ShowDialog();
            txtCodeV.Text         = "";
            txtCodeV.ForeColor    = SystemColors.WindowText;
            txtCodeV.Font         = new Font(txtCodeV.Font, FontStyle.Regular);
            txtCodeV.Text         = lv.devcod;
            nitciclient.Text      = "";
            nitciclient.ForeColor = SystemColors.WindowText;
            nitciclient.Font      = new Font(nitciclient.Font, FontStyle.Regular);
            nitciclient.Text      = lv.nitCli;
        }