FOYDALANILGAN ADABIYOTLAR
Shavkat Mirziyoyev Miromonovich - Tanqidiy tahlil, qat`iy tartib-intizom va shaxsiy javobgarlik - har bir rahbar faoliyatining kundalik qoidasi bo`lishi kerak. Toshkent ― O‘zbekiston.2017 y..
Герберт Шилдт C#. Учебный курс 511 стр., 2002 г., Питер.
Шилдт Герберт. Полный справочник по С#:-Москва: Издательский
дом "Вильяме", 2004г. -752 с.
Трей Неш. C# 2008 усконренный курс для профессионалов: -Москва:
Санкт-Петербург, Киев, 2008г. -576с.
Павел Агуров. C# Сборник рецептов: -Москва: Санкт-Петербург,
2008г. - 432 с.
Дейтел Х, Дейтел П, Листфилд Дж. C# Наиболее полное руководство
В Подлиннике: -Москва: Санкт-Петербург, 2006г. -1056 с.
Абрамян М. Э. Практикум по программированию на языках C# и VB
.NET — Ростов-на-Дону: «ЦВВР», 2006. — 220 с.
Fernando Almeida - Visual C#.NET: Console Applications and Windows Forms. July 2018
Olia Gavrysh, Miguel Angel Castejón Dominguez – Modernizing Desktop Apps on Windows 10 with .NET Core 3.1. 2020
Internet manbalar
https://www.google.com
https://www.metanit.com
https://www.youtube.com
https://docs.microsoft.com
https://w3shools.com
https://coursera.org
https://udemy.com
ILOVALAR
Dastur asosiy ikki oynada iborat:
Dastur kodining matni:
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using System.Data.SqlClient;
namespace HospitalManagementSystemCSharp
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
private void button1_Click(object sender, EventArgs e)
{
if (textBox1.Text == "admin" || textBox2.Text == "pass")
{
MessageBox.Show("Hush kelibsiz Admin. Siz tizimga muvaffaqiyatli kirdingiz.");
this.Visible = false;
Home obj1 = new Home();
obj1.ShowDialog();
textBox1.Text = "";
textBox2.Text = "";
}
else
{
MessageBox.Show("Invalid Username Or Password.");
}
}
}
}
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using System.Data.SqlClient;
namespace HospitalManagementSystemCSharp
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
private void button1_Click(object sender, EventArgs e)
{
if (textBox1.Text == "admin" || textBox2.Text == "pass")
{
MessageBox.Show("Hush kelibsiz Admin. Siz tizimga muvaffaqiyatli kirdingiz.");
this.Visible = false;
Home obj1 = new Home();
obj1.ShowDialog();
textBox1.Text = "";
textBox2.Text = "";
}
else
{
MessageBox.Show("Invalid Username Or Password.");
}
}
}
}
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using System.Data.SqlClient;
namespace HospitalManagementSystemCSharp
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
private void button1_Click(object sender, EventArgs e)
{
if (textBox1.Text == "admin" || textBox2.Text == "pass")
{
MessageBox.Show("Hush kelibsiz Admin. Siz tizimga muvaffaqiyatli kirdingiz.");
this.Visible = false;
Home obj1 = new Home();
obj1.ShowDialog();
textBox1.Text = "";
textBox2.Text = "";
}
else
{
MessageBox.Show("Invalid Username Or Password.");
}
}
}
}
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace HospitalManagementSystemCSharp
{
public partial class Home : Form
{
public Home()
{
InitializeComponent();
}
private void patientRegistrationToolStripMenuItem_Click(object sender, EventArgs e)
{
PatientRegistration obj = new PatientRegistration();
obj.ShowDialog();
}
private void patientInformationToolStripMenuItem_Click(object sender, EventArgs e)
{
PatientInformation obj1 = new PatientInformation();
obj1.ShowDialog();
}
private void checkoutToolStripMenuItem_Click(object sender, EventArgs e)
{
PatientCheckOut obj2 = new PatientCheckOut();
obj2.ShowDialog();
}
private void roomInfoToolStripMenuItem_Click(object sender, EventArgs e)
{
RoomInfo obj3 = new RoomInfo();
obj3.ShowDialog();
}
private void addStaffToolStripMenuItem_Click(object sender, EventArgs e)
{
StaffInformation obj4 = new StaffInformation();
obj4.ShowDialog();
}
private void viewCheckoutToolStripMenuItem_Click(object sender, EventArgs e)
{
ViewwPatientCheckOut obj5 = new ViewwPatientCheckOut();
obj5.ShowDialog();
}
private void aboutDeveloperToolStripMenuItem_Click(object sender, EventArgs e)
{
MessageBox.Show("Tuzuvchi: Eldor Alijonov");
}
private void closeApplicationToolStripMenuItem_Click(object sender, EventArgs e)
{
System.Windows.Forms.Application.Exit();
}
}
}
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace HospitalManagementSystemCSharp
{
public partial class Home : Form
{
public Home()
{
InitializeComponent();
}
private void patientRegistrationToolStripMenuItem_Click(object sender, EventArgs e)
{
PatientRegistration obj = new PatientRegistration();
obj.ShowDialog();
}
private void patientInformationToolStripMenuItem_Click(object sender, EventArgs e)
{
PatientInformation obj1 = new PatientInformation();
obj1.ShowDialog();
}
private void checkoutToolStripMenuItem_Click(object sender, EventArgs e)
{
PatientCheckOut obj2 = new PatientCheckOut();
obj2.ShowDialog();
}
private void roomInfoToolStripMenuItem_Click(object sender, EventArgs e)
{
RoomInfo obj3 = new RoomInfo();
obj3.ShowDialog();
}
private void addStaffToolStripMenuItem_Click(object sender, EventArgs e)
{
StaffInformation obj4 = new StaffInformation();
obj4.ShowDialog();
}
private void viewCheckoutToolStripMenuItem_Click(object sender, EventArgs e)
{
ViewwPatientCheckOut obj5 = new ViewwPatientCheckOut();
obj5.ShowDialog();
}
private void aboutDeveloperToolStripMenuItem_Click(object sender, EventArgs e)
{
MessageBox.Show("Tuzuvchi: Eldor Alijonov");
}
private void closeApplicationToolStripMenuItem_Click(object sender, EventArgs e)
{
System.Windows.Forms.Application.Exit();
}
}
}
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using System.Data.SqlClient;
namespace HospitalManagementSystemCSharp
{
public partial class PatientCheckOut : Form
{
public PatientCheckOut()
{
InitializeComponent();
}
private void textBox1_TextChanged(object sender, EventArgs e)
{
SqlConnection con = new SqlConnection(@"Data Source=(LocalDB)\MSSQLLocalDB;AttachDbFilename=C:\Users\SmartCity\Downloads\HospitalManagementSystem_C#\HospitalManagementSystemCSharp\HospitalManagementSystemCSharp\hospital.mdf;Integrated Security=True");
con.Open();
if (textBox1.Text != "")
{
try
{
string getCust = "select name,gen,age,cont,addr,disease from patient where id=" + Convert.ToInt32(textBox1.Text) + " ;";
SqlCommand cmd = new SqlCommand(getCust, con);
SqlDataReader dr;
dr = cmd.ExecuteReader();
if (dr.Read())
{
textBox2.Text = dr.GetValue(0).ToString();
if (dr[1].ToString() == "Male")
{
radioButton1.Checked = true;
}
else
{
radioButton2.Checked = true;
}
textBox3.Text = dr.GetValue(2).ToString();
textBox5.Text = dr.GetValue(3).ToString();
textBox6.Text = dr.GetValue(4).ToString();
textBox7.Text = dr.GetValue(5).ToString();
}
else
{
MessageBox.Show(" Sorry, This ID, " + textBox1.Text + " patient is not Available. ");
textBox1.Text = "";
}
}
catch (SqlException excep)
{
MessageBox.Show(excep.Message);
}
con.Close();
}
}
private void button1_Click(object sender, EventArgs e)
{
SqlConnection con = new SqlConnection(@"Data Source=(LocalDB)\MSSQLLocalDB;AttachDbFilename=C:\Users\SmartCity\Downloads\HospitalManagementSystem_C#\HospitalManagementSystemCSharp\HospitalManagementSystemCSharp\hospital.mdf;Integrated Security=True");
con.Open();
string gen = string.Empty;
if (radioButton1.Checked)
{
gen = "Male";
}
else
{
gen = "Female";
}
try
{
string str = "INSERT INTO checkout(name,gen,age,contact,addr,disease,date_in,date_out,build,r_no,r_type,status,med_price,total) VALUES('" + textBox2.Text + "','" + gen + "','" + textBox3.Text + "','" + textBox5.Text + "','" + textBox6.Text + "','" + textBox7.Text + "','" + textBox8.Text + "','" + textBox9.Text + "','" + textBox10.Text + "','" + textBox11.Text + "','" + textBox12.Text + "','" + textBox14.Text + "','" + textBox13.Text + "','" + textBox15.Text + "'); ";
SqlCommand cmd = new SqlCommand(str, con);
cmd.ExecuteNonQuery();
string str1 = "select max(Id) from checkout;";
SqlCommand cmd1 = new SqlCommand(str1, con);
SqlDataReader dr = cmd1.ExecuteReader();
if (dr.Read())
{
MessageBox.Show("Patient Checkout Information Saved Successfully..");
textBox2.Text = "";
textBox3.Text = "";
textBox5.Text = "";
textBox6.Text = "";
textBox7.Text = "";
textBox8.Text = "";
textBox9.Text = "";
textBox10.Text = "";
textBox11.Text = "";
textBox12.Text = "";
textBox13.Text = "";
textBox14.Text = "";
textBox15.Text = "";
}
}
catch (SqlException excep)
{
MessageBox.Show(excep.Message);
}
con.Close();
}
private void button2_Click(object sender, EventArgs e)
{
textBox2.Text = "";
textBox3.Text = "";
textBox5.Text = "";
textBox6.Text = "";
textBox7.Text = "";
textBox8.Text = "";
textBox9.Text = "";
textBox10.Text = "";
textBox11.Text = "";
textBox12.Text = "";
textBox13.Text = "";
textBox14.Text = "";
textBox15.Text = "";
}
private void label15_Click(object sender, EventArgs e)
{
}
}
}
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using System.Data.SqlClient;
namespace HospitalManagementSystemCSharp
{
public partial class PatientInformation : Form
{
public PatientInformation()
{
InitializeComponent();
}
private void PatientInformation_Load(object sender, EventArgs e)
{
|