Ejemplo n.º 1
0
        private async void btnAntrian_Clicked(object sender, EventArgs e)
        {
            if (string.IsNullOrEmpty(txtKlinik.Text) || String.IsNullOrEmpty(App.KodeKlinikAntrian))
            {
                await PopupNavigation.Instance.PushAsync(new DialogAlertCustom("Warning", "KLinik Harus Dipilih"));

                return;
            }
            if (string.IsNullOrEmpty(txtDokter.Text) || String.IsNullOrEmpty(App.KodeDokterAntrian))
            {
                await PopupNavigation.Instance.PushAsync(new DialogAlertCustom("Warning", "Dokter Harus Dipilih"));

                return;
            }
            antrian            = new Antrians();
            antrian.tgl        = tgl_regis;
            antrian.kodeDokter = App.KodeDokterAntrian;
            antrian.kodeKLinik = App.KodeKlinikAntrian;
            antrianResults     = new AntrianResults();
            antrianServices    = new AntrianServices();
            antrianResults     = await antrianServices.GetAntrianServices(antrian);

            string infoAntrian = "Total Pasien dilayani adalah : " + antrianResults.dilayani + ", Hubungi petugas Klinik jika nomer antrian anda sudah terlewat";
            await PopupNavigation.Instance.PushAsync(new DialogAlertCustom("Info Antrian", infoAntrian));
        }
Ejemplo n.º 2
0
        public AntrianDokterForm()
        {
            InitializeComponent();
            string currentDate = Preferences.Get("currentDate", "");

            tgl_regis             = DateUtil.ConvertFormatDateTime(currentDate, "dd/MM/yyyy", "MM/dd/yyyy");
            antrianServices       = new AntrianServices();
            App.KodeDokterAntrian = "";
            App.DokterNamaAntrian = "";
            txtDokter.Text        = "";
        }