Exemple #1
0
        private void btnNew_Click(object sender, EventArgs e)
        {
            String tgl    = DateTime.Now.ToString();
            String strSQL = " INSERT INTO NotaBeli(tanggal) Values('" + tgl + "')";
            String noNota = notaBeli.eksekusiSQL_GETID(strSQL);
            int    posisi = notaBeli.getBs().Find("noNotaBeli", noNota);

            notaBeli.getBs().Position = posisi;
            tampilDetail();
            buka();
            txtKodeSupplier.Focus();
        }
Exemple #2
0
        private void btnNew_Click(object sender, EventArgs e)
        {
            String tgl    = DateTime.Now.ToString();
            String strSQL = " insert into NotaJual(tanggal) values ('" + tgl + "')";
            String noNota = notaJual.eksekusiSQL_GETID(strSQL);
            int    posisi = notaJual.getBs().Find("noNotaJual", noNota);

            notaJual.getBs().Position = posisi;
            tampilDetail();
            buka();
            txtKodeBaranag.Focus();
        }