Beispiel #1
0
 private void noken(object sender, KeyEventArgs e)
 {
     if (e.KeyCode.Equals(Keys.Enter))
     {
         DataMasukM.simpan(TextboxNo.Text, ComboxJenisKendaraan.Text);
     }
 }
Beispiel #2
0
 private void BtnSimpan_Click(object sender, EventArgs e)
 {
     //string insertQuery = "INSERT INTO parkir_masuk(`no_kendaraan`, `id_kendaraan`, `tanggal_Masuk`, `jam_Masuk`) VALUES ('" + this.TextboxNo.Text + "','" + this.ComboxJenisKendaraan.Text + "', CURDATE(), curtime());";
     //  ExecuteMyQuery(insertQuery);
     // FIXED
     string[] idKendaraan = ComboxJenisKendaraan.Text.Split(' ');
     DataMasukM.simpan(TextboxNo.Text, idKendaraan[0]);
     Combo();
     printPreviewDialog1.ShowDialog();
     printDocument1.Print();
 }