private void ClearDokter() { //cmbDokter.SelectedIndex = 0; txtSpesialisasi.Text = ""; lblAntrian.Text = Kenko.getAntrian(); lblNamaDokter.Content = "-"; txtKeluhan.Text = ""; }
private void TransaksiReservasi_Loaded(object sender, RoutedEventArgs e) { dataMaster.ItemsSource = Kenko.getData("sp_Pasien_Read", "").DefaultView; cmbDokter.ItemsSource = Kenko.getData("sp_Dokter_Read", "").DefaultView; cmbDokter.SelectedValuePath = "id_dokter"; cmbDokter.DisplayMemberPath = "nama_dokter"; txtKasir.Text = Application.Current.Properties["nama"].ToString(); txtTglTransaksi.Text = DateTime.Now.ToString("dd-MM-yyyy"); lblAntrian.Text = Kenko.getAntrian(); }