Example #1
0
 private void Eprofile_Load(object sender, EventArgs e)
 {
     kode = m.getKode();
     ambilData();
     t_username.Enabled = false;
     atur();
 }
Example #2
0
 private void simpanMaster()
 {
     try
     {
         cmd = new MySqlCommand("INSERT INTO header_beli values ('" + t_id.Text + "','" + this.dateTimePicker1.Text + "','" + m.getKode() + "','" + kd_supp.Text + "','" + t_totalbayar.Text + "')", con.Buka());
         cmd.ExecuteNonQuery();
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.Message);
     }
     finally
     {
         con.Tutup();
     }
 }