ana sayfa > C#.NET, Görsel Programlama > Hastahane İşlemleri C#.NET(C.NET)

Hastahane İşlemleri C#.NET(C.NET)

Cumartesi, 23 Oca 2010 yorum ekle yorumlara git




Hastahane İşlemleri C#.NET(C.NET)hastanehastane2




 //FORM1 İçerisine Yazılacak Kodlar
public partial class Form1 : Form
{

public Form1()
{
InitializeComponent();
}

private void Form1_Load(object sender, EventArgs e)
{
label1.Text = "    HASTA KAYIT PROGRAMI     ";
timer1.Start();
timer1.Interval = 100;

}

private void timer1_Tick(object sender, EventArgs e)
{
label1.Text = label1.Text.Substring(1) + label1.Text[0].ToString();
}

private void hastaKaydıToolStripMenuItem_Click(object sender, EventArgs e)
{
Form2 frm2 = new Form2();
frm2.Show();

}

private void laboratuvarİşlemleriToolStripMenuItem_Click(object sender, EventArgs e)
{
Form3 frm3 = new Form3();
frm3.Show();

}

private void radyolojiİşlemleriToolStripMenuItem_Click(object sender, EventArgs e)
{
Form4 frm4 = new Form4();
frm4.Show();

}

private void ücretİşlemleriToolStripMenuItem_Click(object sender, EventArgs e)
{
Form6 frm6 = new Form6();
frm6.Show();

}

private void yardımKonularıToolStripMenuItem_Click(object sender, EventArgs e)
{
Form8 frm8 = new Form8();
frm8.Show();
}

}
 //FORM2 İçerisine Yazılacak Kodlar
 public partial class Form2 : Form
    {
        string[] hasta_sırasi = new string[50];
        string[] ad = new string[50];
        string[] soyad = new string[50];
        string[] tc_kimlik  = new string[50];
          string[] doktor_ad  = new string[50];
          int a1 = 0, a2 = 0, a3 = 0, a4 = 0, a5 = 0;

        public Form2()
        {
            InitializeComponent();
        }

        private void textBox2_KeyPress(object sender, KeyPressEventArgs e)
        {
            if (char.IsDigit(e.KeyChar) == false && (e.KeyChar) != (char)08)
                e.Handled = true;

        }

        private void Form2_Load(object sender, EventArgs e)
        {
            System.Windows.Forms.ToolTip ToolTip1 = new System.Windows.Forms.ToolTip();
            ToolTip1.SetToolTip(this.button3, "Kaydet");
            ToolTip1.SetToolTip(this.button9, "Ekle");
            ToolTip1.SetToolTip(this.button4, "Sil");
            ToolTip1.SetToolTip(this.button8, "Yazdır");
            ToolTip1.SetToolTip(this.button6, "Çıkış");

            comboBox1.Items.Add("Nurgül CEYLAN");
            comboBox1.Items.Add("SONGÜL YILMAZ");
            comboBox1.Items.Add("YEŞİM KILIÇ");
            comboBox1.Items.Add("AYÇA KAHRAMAN");

            comboBox2.Items.Add("Postacı");
            comboBox2.Items.Add("Ayakkabıcı");
            comboBox2.Items.Add("Polis");
            comboBox2.Items.Add("Muhasebeci");

            comboBox2.Enabled = false;

}
        private void textBox5_TextChanged(object sender, EventArgs e)
        {
            if(textBox5.Text.Length>10 &amp; textBox5.Text.Length<12)
            MessageBox.Show("T.C Kimlik Numarası 11 den Küçük veya Büyük Olamaz");

        }

        private void textBox5_KeyPress(object sender, KeyPressEventArgs e)
        {
            if (char.IsDigit(e.KeyChar) == false &amp;&amp; (e.KeyChar) != (char)08)
                e.Handled = true;
        }

        private void textBox7_KeyPress(object sender, KeyPressEventArgs e)
        {
            if (char.IsLetter(e.KeyChar) == false &amp;&amp; (e.KeyChar) != (char)08)
                e.Handled = true;
        }

        private void textBox9_KeyPress(object sender, KeyPressEventArgs e)
        {
            if (char.IsLetter(e.KeyChar) == false &amp;&amp; (e.KeyChar) != (char)08)
                e.Handled = true;
        }

        private void textBox15_KeyPress(object sender, KeyPressEventArgs e)
        {
            if (char.IsLetter(e.KeyChar) == false &amp;&amp; (e.KeyChar) != (char)08)
                e.Handled = true;
        }

        private void textBox17_KeyPress(object sender, KeyPressEventArgs e)
        {
            if (char.IsLetter(e.KeyChar) == false &amp;&amp; (e.KeyChar) != (char)08)
                e.Handled = true;
        }

        private void textBox23_KeyPress(object sender, KeyPressEventArgs e)
        {
            if (char.IsLetter(e.KeyChar) == false &amp;&amp; (e.KeyChar) != (char)08)
                e.Handled = true;
        }

        private void textBox11_KeyPress(object sender, KeyPressEventArgs e)
        {
            if (char.IsDigit(e.KeyChar) == false &amp;&amp; (e.KeyChar) != (char)08)
                e.Handled = true;
        }

        private void textBox19_KeyPress(object sender, KeyPressEventArgs e)
        {
            if (char.IsDigit(e.KeyChar) == false &amp;&amp; (e.KeyChar) != (char)08)
                e.Handled = true;
        }

        private void textBox21_KeyPress(object sender, KeyPressEventArgs e)
        {
            if (char.IsDigit(e.KeyChar) == false &amp;&amp; (e.KeyChar) != (char)08)
                e.Handled = true;
        }

        private void textBox34_KeyPress(object sender, KeyPressEventArgs e)
        {
            if (char.IsDigit(e.KeyChar) == false &amp;&amp; (e.KeyChar) != (char)08)
                e.Handled = true;
        }

        private void textBox28_KeyPress(object sender, KeyPressEventArgs e)
        {
            if (char.IsLetter(e.KeyChar) == false &amp;&amp; (e.KeyChar) != (char)08)
                e.Handled = true;
        }

        private void button4_Click(object sender, EventArgs e)
        {
            listBox1.Items.Clear();
        }

        private void button6_Click(object sender, EventArgs e)
        {
            Close();
        }

        private void button8_Click(object sender, EventArgs e)
        {
            printDialog1.ShowDialog();

        }

        private void button3_Click(object sender, EventArgs e)
        {
            hasta_sırasi[a1] = (textBox2.Text);
            ad[a2] = (textBox7.Text);
            soyad[a3] = (textBox9.Text);
            tc_kimlik[a4] = (textBox5.Text);
            doktor_ad[a5] = (comboBox1.Text);
            a1++;
            a2++;
            a3++;
            a4++;
            a5++;

        }

        private void button9_Click(object sender, EventArgs e)
        {

            int b1, b2, b3, b4, b5; 

            for (b1 = 0; b1 < a1; b1++)

            for (b2 = 0; b2 < a2; b2++)

            for (b3 = 0; b3 < a3; b3++)

            for (b4 = 0; b4 < a4; b4++)

            for (b5 = 0; b5 < a5; b5++)

            listBox1.Items.Add(hasta_sırasi[b1].PadRight(20,' ') + "      " + ad[b2].PadRight(15, ' ') + "        " + soyad[b3].PadRight(15, ' ') + "       "  +tc_kimlik[b4].PadRight(15, ' ') + "      " +doktor_ad[b5] .PadRight(15, ' '));

        }

        private void radioButton3_CheckedChanged(object sender, EventArgs e)
        {
            if (radioButton3.Checked == true)
                comboBox2.Enabled = true;
            else
                comboBox2.Enabled = false;
        }
    }
 //FORM3 İçerisine Yazılacak Kodlar
public partial class Form3 : Form
    {

        string[] ad = new string[50];
        string[] soyad = new string[50];
        string[] yaptırdığı_test = new string[50];
        string[] kan_grubu = new string[50];
        int a1 = 0, a2 = 0, a3 = 0, a4 = 0;
        public Form3()
        {
            InitializeComponent();
        }

        private void button6_Click(object sender, EventArgs e)
        {
            Close();
        }
        private void textBox2_KeyPress(object sender, KeyPressEventArgs e)
        {
            if (char.IsLetter(e.KeyChar) == false &amp;&amp; (e.KeyChar) != (char)08)
                e.Handled = true;
        }

        private void textBox4_KeyPress(object sender, KeyPressEventArgs e)
        {
            if (char.IsLetter(e.KeyChar) == false &amp;&amp; (e.KeyChar) != (char)08)
                e.Handled = true;
        }

        private void Form3_Load(object sender, EventArgs e)
        {
            System.Windows.Forms.ToolTip ToolTip1 = new System.Windows.Forms.ToolTip();
            ToolTip1.SetToolTip(this.button1, "Kaydet");
            ToolTip1.SetToolTip(this.button4, "Ekle");
            ToolTip1.SetToolTip(this.button2, "Sil");
            ToolTip1.SetToolTip(this.button3, "Yazdır");
            ToolTip1.SetToolTip(this.button6, "Çıkış");

            comboBox1.Items.Add("Kan Tahlili");
            comboBox1.Items.Add( "İdrar Tahlili");
            comboBox1.Items.Add( " Kan Ölçümü");
            comboBox1.Items.Add( "Kan Sayımı" );
            comboBox1.Items.Add("Hemogram Ölçümü");

            comboBox2.Items.Add("A(rh)+");
            comboBox2.Items.Add("B(rh)+");
            comboBox2.Items.Add("0 rh)+");
            comboBox2.Items.Add("0(rh)-");
            comboBox2.Items.Add("AB(rh)+");

        }

        private void button2_Click(object sender, EventArgs e)
        {
            listBox1.Items.Clear();
        }

        private void button4_Click(object sender, EventArgs e)
        {
            int b1, b2, b3, b4;

            for (b1 = 0; b1 < a1; b1++)

            for (b2 = 0; b2 < a2; b2++)

             for (b3 = 0; b3 < a3; b3++)

              for (b4 = 0; b4 < a4; b4++)

      listBox1.Items.Add(ad[b1].PadRight(20, ' ') + "      " + soyad [b2].PadRight(15, ' ') + "        " + yaptırdığı_test[b3].PadRight(15, ' ') + "                              " + kan_grubu[b4].PadRight(40, ' '));

        }

        private void button1_Click(object sender, EventArgs e)
        {

            ad[a1] = (textBox2.Text);
            soyad[a2] = (textBox4.Text);
            yaptırdığı_test [a3] =(comboBox1.Text);
            kan_grubu [a4]=(comboBox2.Text);
            a1++;
            a2++;
            a3++;
            a4++;
         }
        private void button3_Click(object sender, EventArgs e)
        {
            printDialog1.ShowDialog();
        }
    }
 //FORM4 İçerisine Yazılacak Kodlar
public partial class Form4 : Form
    {
        public Form4()
        {
            InitializeComponent();
        }

        private void button1_Click(object sender, EventArgs e)
        {
            Form5 frm5 = new Form5();
            frm5.Show();
            this.Hide();

        }

        private void Form4_Load(object sender, EventArgs e)
        {
            System.Windows.Forms.ToolTip ToolTip1 = new System.Windows.Forms.ToolTip();
            ToolTip1.SetToolTip(this.button1, "Düzenle");
            ToolTip1.SetToolTip(this.button2, "Yazdır");
            ToolTip1.SetToolTip(this.button3, "Çıkış");

            comboBox1.Items.Add("EMR");
            comboBox1.Items.Add("Röntgen");
            comboBox1.Items.Add("Ultrason");
            comboBox1.Items.Add("Film");

        }

        private void textBox2_KeyPress(object sender, KeyPressEventArgs e)
        {
            if (char.IsLetter(e.KeyChar) == false &amp;&amp; (e.KeyChar) != (char)08)
                e.Handled = true;
        }

        private void textBox4_KeyPress(object sender, KeyPressEventArgs e)
        {
            if (char.IsLetter(e.KeyChar) == false &amp;&amp; (e.KeyChar) != (char)08)
                e.Handled = true;
        }

        private void button3_Click(object sender, EventArgs e)
        {
            Close();
        }

        private void button2_Click(object sender, EventArgs e)
        {
            printDialog1.ShowDialog();
        }
    }
 //FORM5 İçerisine Yazılacak Kodlar
public partial class Form6 : Form
    {
        public Form6()
        {
            InitializeComponent();
        }

        private void button1_Click(object sender, EventArgs e)
        {
            Form7 frm7 = new Form7();
            frm7.Show();
            this.Hide();

        }

        private void textBox2_KeyPress(object sender, KeyPressEventArgs e)
        {
            if (char.IsLetter(e.KeyChar) == false &amp;&amp; (e.KeyChar) != (char)08)
                e.Handled = true;
        }

        private void textBox4_KeyPress(object sender, KeyPressEventArgs e)
        {
            if (char.IsLetter(e.KeyChar) == false &amp;&amp; (e.KeyChar) != (char)08)
                e.Handled = true;
        }

        private void textBox9_KeyPress(object sender, KeyPressEventArgs e)
        {
            if (char.IsDigit(e.KeyChar) == false &amp;&amp; (e.KeyChar) != (char)08)
                e.Handled = true;
        }

        private void button3_Click(object sender, EventArgs e)
        {
            Close();
        }

        private void Form6_Load(object sender, EventArgs e)
        {
            System.Windows.Forms.ToolTip ToolTip1 = new System.Windows.Forms.ToolTip();
            ToolTip1.SetToolTip(this.button1, "Düzenle");
            ToolTip1.SetToolTip(this.button2, "Yazdır");
            ToolTip1.SetToolTip(this.button3, "Çıkış");

          comboBox1.Items.Add("Ameliyat");
          comboBox1.Items.Add("Tansiyon Ölçümü");
          comboBox1.Items.Add("Muayene");
          comboBox1.Items.Add("Acil Müşahade");

          comboBox2.Items.Add("1 gün");
          comboBox2.Items.Add("2 gün");
          comboBox2.Items.Add("5 gün");
          comboBox2.Items.Add("1 hafta");

          comboBox3.Items.Add("Nakit");
          comboBox3.Items.Add("Kredi Kartı");
          comboBox3.Items.Add("Havale");
          comboBox2.Enabled = false;
        }

        private void button2_Click(object sender, EventArgs e)
        {
            printDialog1.ShowDialog();
        }

        private void radioButton1_CheckedChanged(object sender, EventArgs e)
        {
            if (radioButton1.Checked == true)
                comboBox2.Enabled = true;
            else
                comboBox2.Enabled =false;

        }
}
 //FORM7 İçerisine Yazılacak Kodlar
public partial class Form7 : Form
    {

        public Form7()
        {
            InitializeComponent();
        }

        private void Form7_Load(object sender, EventArgs e)
        {
            System.Windows.Forms.ToolTip ToolTip1 = new System.Windows.Forms.ToolTip();
            ToolTip1.SetToolTip(this.button1, "Kaydet");
            ToolTip1.SetToolTip(this.button2, "Çıkış");

            comboBox1.Items.Add("Ameliyat");
            comboBox1.Items.Add("Tansiyon Ölçümü");
            comboBox1.Items.Add("Muayene");
            comboBox1.Items.Add("Acil Müşahade");

            comboBox2.Items.Add("Nakit");
            comboBox2.Items.Add("Kredi Kartı");
            comboBox2.Items.Add("Havale");

        }

        private void textBox5_KeyPress(object sender, KeyPressEventArgs e)
        {
            if (char.IsDigit(e.KeyChar) == false &amp;&amp; (e.KeyChar) != (char)08)
                e.Handled = true;
        }

        private void button1_Click(object sender, EventArgs e)
        {
            Form6 frm6 = new Form6();
            frm6.textBox9.Text = textBox5.Text;
            frm6.textBox2.Text = textBox8.Text;
            frm6.textBox4.Text = textBox10.Text;
            frm6.comboBox1.Text = comboBox1.Text;
            frm6.comboBox3.Text = comboBox2.Text;
            frm6.dateTimePicker1.Text = dateTimePicker1.Text;
            frm6.dateTimePicker2.Text = dateTimePicker2.Text;
            frm6.Show();
            this.Hide();
          }

        private void textBox8_KeyPress(object sender, KeyPressEventArgs e)
        {
            if (char.IsLetter(e.KeyChar) == false &amp;&amp; (e.KeyChar) != (char)08)
                e.Handled = true;
        }

        private void textBox10_KeyPress(object sender, KeyPressEventArgs e)
        {
            if (char.IsLetter(e.KeyChar) == false &amp;&amp; (e.KeyChar) != (char)08)
                e.Handled = true;
        }
    }


Projeyi İNDİR





  1. talabe
    Perşembe, 28 Oca 2010 zamanında 00:20 | #1

    süpersinz hocam..elleriniz dert görmesin… takipçiniz olacağım kolay gelsin

  2. admin
    Cuma, 29 Oca 2010 zamanında 16:26 | #2

    teşekkürler…

  3. d3v3ci
    Çarşamba, 03 Şub 2010 zamanında 10:56 | #3

    Merhaba ben bu programı database li bir şekilde tasarlamak istiyorum.Birde kayıt işlemleri sırasında çok hata veriyor bazen kaydetmiyor bazen tüm sayfaya aynı kişiyi kaydediyor e-mailim yazılı yardımcı olurmusunuz?

  4. admin
    Çarşamba, 03 Şub 2010 zamanında 15:19 | #4

    Arkadaşım 2.dönem itibarıyla database örneklerimiz yayınlanacaktır.Burdan takip ederseniz yayınlandığı zaman inceyelebilirsiniz.

  5. yunus
    Perşembe, 11 Şub 2010 zamanında 00:16 | #5

    cok tesekkürler dostum eline koluna sağlıkk bu siteyi yapan arkadaslara tesekkürler ve projelerini paylasan arkadasların hepsne tesekkürler

  6. Cumartesi, 27 Şub 2010 zamanında 12:32 | #6

    güzel 1uygulama ve kaynak açısından güzel 1site

  7. nurcan
    Pazartesi, 17 May 2010 zamanında 00:52 | #7

    ii hoş güzelde tc de felan her zaman hatalı

  8. admin
    Pazartesi, 17 May 2010 zamanında 12:16 | #8

    ne hatası veriyor.Nerde ? Yazarsan daha rahat yardımcı oluruz.

  1. şimdilik geri bağlantı yok