Exemplo n.º 1
0
        protected override void OnCreate(Bundle savedInstanceState)
        {
            base.OnCreate(savedInstanceState);
            SetContentView(Resource.Layout.doktorGuncelle_layout);
            btnDoktorGuncelle = FindViewById <Button>(Resource.Id.btnDoktorGuncelle);
            hastaneler        = FindViewById <Spinner>(Resource.Id.spinnerGuncelleHastaneler);
            bolumler          = FindViewById <Spinner>(Resource.Id.spinnerGuncelleBolumler);
            txtUnvan          = FindViewById <EditText>(Resource.Id.txtGuncelleUnvan);
            txtAd             = FindViewById <EditText>(Resource.Id.txtGuncelleAd);
            txtSoyad          = FindViewById <EditText>(Resource.Id.txtGuncelleSoyad);
            Hastaneler        = hastaneService.TumHastaneler();

            List <string> hastaneAdlari = new List <string>();

            foreach (var item in Hastaneler)
            {
                hastaneAdlari.Add(item.Ad);
            }
            ArrayAdapter adapter = new ArrayAdapter <string>(this, Android.Resource.Layout.SimpleSpinnerItem, hastaneAdlari);

            adapter.SetDropDownViewResource(Android.Resource.Layout.SimpleSpinnerDropDownItem);
            hastaneler.Adapter = adapter;


            doktor                   = doktorService.Getir(Intent.GetIntExtra("guncelleDoktorId", 0));
            TC                       = doktor.TC;
            Sifre                    = doktor.Sifre;
            Cinsiyet                 = doktor.Cinsiyet;
            dogumTarihi              = doktor.DogumTarihi.ToString();
            ID                       = doktor.Id;
            txtAd.Text               = doktor.Ad;
            txtSoyad.Text            = doktor.Soyad;
            txtUnvan.Text            = doktor.Unvan;
            hastaneler.ItemSelected += Hastaneler_ItemSelected;
        }
Exemplo n.º 2
0
        protected override void OnCreate(Bundle savedInstanceState)
        {
            base.OnCreate(savedInstanceState);

            SetContentView(Resource.Layout.bolumListele_layout);

            spinnerhastaneler = FindViewById <Spinner>(Resource.Id.spinnerHastaneler);

            listView = FindViewById <ListView>(Resource.Id.listBolum);

            Hastaneler = hastaneService.TumHastaneler();

            List <string> hastaneAdlari = new List <string>();

            foreach (var item in Hastaneler)
            {
                hastaneAdlari.Add(item.Ad);
            }
            ArrayAdapter adapter = new ArrayAdapter <string>(this, Android.Resource.Layout.SimpleSpinnerItem, hastaneAdlari);

            adapter.SetDropDownViewResource(Android.Resource.Layout.SimpleSpinnerDropDownItem);
            spinnerhastaneler.Adapter = adapter;

            spinnerhastaneler.ItemSelected += Spinnerhastaneler_ItemSelected;
        }
Exemplo n.º 3
0
        protected override void OnCreate(Bundle savedInstanceState)
        {
            base.OnCreate(savedInstanceState);
            SetContentView(Resource.Layout.hastaneListele_layout);

            hastaneler = hastaneService.TumHastaneler();
            listView   = FindViewById <ListView>(Resource.Id.listHastane);

            HastaneListeleAdapter adapter = new HastaneListeleAdapter(this, hastaneler);

            listView.Adapter = adapter;


            // Create your application here
        }
Exemplo n.º 4
0
        protected override void OnCreate(Bundle savedInstanceState)
        {
            base.OnCreate(savedInstanceState);
            SetContentView(Resource.Layout.doktorEkle_layout);

            bolumService   = Business.IOCUtil.Container.Resolve <IBolumService>();
            hastaneService = Business.IOCUtil.Container.Resolve <IHastaneService>();
            doktorService  = Business.IOCUtil.Container.Resolve <IDoktorService>();

            btnDoktorEkle = FindViewById <Button>(Resource.Id.btnDoktorEkle);
            btnTarih      = FindViewById <Button>(Resource.Id.btnTarihSec);
            hastaneler    = FindViewById <Spinner>(Resource.Id.spinnerHastaneler);
            bolumler      = FindViewById <Spinner>(Resource.Id.spinnerBolumler);
            txtUnvan      = FindViewById <EditText>(Resource.Id.txtUnvan);
            txtTC         = FindViewById <EditText>(Resource.Id.txtTC);
            txtAd         = FindViewById <EditText>(Resource.Id.txtAd);
            txtSoyad      = FindViewById <EditText>(Resource.Id.txtSoyad);
            txtPass       = FindViewById <EditText>(Resource.Id.txtPass);
            txtDate       = FindViewById <EditText>(Resource.Id.txtDate);
            rbErkek       = FindViewById <RadioButton>(Resource.Id.rbErkek);
            rbKadin       = FindViewById <RadioButton>(Resource.Id.rbKadin);

            txtTC.Enabled = false;
            Random random = new Random();

            txtTC.Text = random.Next(10001, 99999).ToString();


            Hastaneler = hastaneService.TumHastaneler();
            List <string> hastaneAdlari = new List <string>();

            foreach (var item in Hastaneler)
            {
                hastaneAdlari.Add(item.Ad);
            }
            ArrayAdapter adapter = new ArrayAdapter <string>(this, Android.Resource.Layout.SimpleSpinnerItem, hastaneAdlari);

            adapter.SetDropDownViewResource(Android.Resource.Layout.SimpleSpinnerDropDownItem);
            hastaneler.Adapter       = adapter;
            hastaneler.ItemSelected += Hastaneler_ItemSelected;
            btnTarih.Click          += BtnTarih_Click;
            btnDoktorEkle.Click     += BtnDoktorEkle_Click;
        }
Exemplo n.º 5
0
        protected override void OnCreate(Bundle savedInstanceState)
        {
            base.OnCreate(savedInstanceState);
            SetContentView(Resource.Layout.bolumEkle_layout);
            bolumService   = Business.IOCUtil.Container.Resolve <IBolumService>();
            hastaneService = Business.IOCUtil.Container.Resolve <IHastaneService>();
            Hastaneler     = FindViewById <Spinner>(Resource.Id.spinnerHastaneler);
            BolumAd        = FindViewById <EditText>(Resource.Id.txtBolumAd);
            BolumKaydet    = FindViewById <Button>(Resource.Id.btnBolumKaydet);

            hastaneler = hastaneService.TumHastaneler();
            List <string> hastaneAdlari = new List <string>();

            foreach (var item in hastaneler)
            {
                hastaneAdlari.Add(item.Ad);
            }

            ArrayAdapter adapter = new ArrayAdapter <string>(this, Android.Resource.Layout.SimpleSpinnerItem, hastaneAdlari);

            adapter.SetDropDownViewResource(Android.Resource.Layout.SimpleSpinnerDropDownItem);
            Hastaneler.Adapter = adapter;
            BolumKaydet.Click += BolumKaydet_Click;
        }