├── hasta3.png ├── login1.png ├── script.sql ├── uyari2.png ├── arabul8.png ├── taburcu4.png ├── taburcu5.png ├── kullanici7.png ├── poliklinik6.png ├── SOHATS ├── packages.config ├── Properties │ ├── Settings.settings │ ├── Settings.Designer.cs │ ├── AssemblyInfo.cs │ ├── Resources.Designer.cs │ └── Resources.resx ├── Form1.cs ├── DB │ ├── Model1.cs │ ├── islem.cs │ ├── Model1.Designer.cs │ ├── poliklinik.cs │ ├── cikis.cs │ ├── sevk.cs │ ├── Model1.edmx.diagram │ ├── Model1.Context.cs │ ├── hasta.cs │ └── kullanici.cs ├── Program.cs ├── FormControl.cs ├── App.config ├── RaporTaburcu.cs ├── KulTanit.cs ├── PoliklinikPage.cs ├── AnaForm.cs ├── Taburcu.cs ├── PoliTanit.cs ├── Login.cs ├── PoliTanit.Designer.cs ├── KulTanit.Designer.cs ├── Rapor.cs ├── Form1.resx ├── Login.resx ├── KulTanit.resx ├── PoliTanit.resx ├── Taburcu.resx ├── HastaBilgileri.resx ├── KullaniciPage.resx ├── PoliklinikPage.resx ├── AnaForm.resx ├── Login.Designer.cs ├── PoliklinikPage.Designer.cs ├── AnaForm.Designer.cs ├── KullaniciPage.cs ├── DosyaBul.cs ├── Form1.Designer.cs ├── DosyaBul.resx ├── Taburcu.Designer.cs ├── HastaBilgileri.cs └── SOHATS.csproj ├── SOHATS.sln ├── README.md └── .gitignore /hasta3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eraykisabacak/Saglik-Ocagi-Hasta-Takip-Sistemi/HEAD/hasta3.png -------------------------------------------------------------------------------- /login1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eraykisabacak/Saglik-Ocagi-Hasta-Takip-Sistemi/HEAD/login1.png -------------------------------------------------------------------------------- /script.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eraykisabacak/Saglik-Ocagi-Hasta-Takip-Sistemi/HEAD/script.sql -------------------------------------------------------------------------------- /uyari2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eraykisabacak/Saglik-Ocagi-Hasta-Takip-Sistemi/HEAD/uyari2.png -------------------------------------------------------------------------------- /arabul8.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eraykisabacak/Saglik-Ocagi-Hasta-Takip-Sistemi/HEAD/arabul8.png -------------------------------------------------------------------------------- /taburcu4.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eraykisabacak/Saglik-Ocagi-Hasta-Takip-Sistemi/HEAD/taburcu4.png -------------------------------------------------------------------------------- /taburcu5.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eraykisabacak/Saglik-Ocagi-Hasta-Takip-Sistemi/HEAD/taburcu5.png -------------------------------------------------------------------------------- /kullanici7.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eraykisabacak/Saglik-Ocagi-Hasta-Takip-Sistemi/HEAD/kullanici7.png -------------------------------------------------------------------------------- /poliklinik6.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eraykisabacak/Saglik-Ocagi-Hasta-Takip-Sistemi/HEAD/poliklinik6.png -------------------------------------------------------------------------------- /SOHATS/packages.config: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | -------------------------------------------------------------------------------- /SOHATS/Properties/Settings.settings: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /SOHATS/Form1.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.ComponentModel; 4 | using System.Data; 5 | using System.Drawing; 6 | using System.Linq; 7 | using System.Text; 8 | using System.Threading.Tasks; 9 | using System.Windows.Forms; 10 | 11 | namespace SOHATS 12 | { 13 | public partial class Form1 : Form 14 | { 15 | public Form1() 16 | { 17 | InitializeComponent(); 18 | } 19 | } 20 | } 21 | -------------------------------------------------------------------------------- /SOHATS/DB/Model1.cs: -------------------------------------------------------------------------------- 1 | //------------------------------------------------------------------------------ 2 | // 3 | // This code was generated from a template. 4 | // 5 | // Manual changes to this file may cause unexpected behavior in your application. 6 | // Manual changes to this file will be overwritten if the code is regenerated. 7 | // 8 | //------------------------------------------------------------------------------ 9 | 10 | -------------------------------------------------------------------------------- /SOHATS/Program.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Threading.Tasks; 5 | using System.Windows.Forms; 6 | 7 | namespace SOHATS 8 | { 9 | static class Program 10 | { 11 | /// 12 | /// The main entry point for the application. 13 | /// 14 | [STAThread] 15 | static void Main() 16 | { 17 | Application.EnableVisualStyles(); 18 | Application.SetCompatibleTextRenderingDefault(false); 19 | Application.Run(new AnaForm()); 20 | } 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /SOHATS/DB/islem.cs: -------------------------------------------------------------------------------- 1 | //------------------------------------------------------------------------------ 2 | // 3 | // This code was generated from a template. 4 | // 5 | // Manual changes to this file may cause unexpected behavior in your application. 6 | // Manual changes to this file will be overwritten if the code is regenerated. 7 | // 8 | //------------------------------------------------------------------------------ 9 | 10 | namespace SOHATS.DB 11 | { 12 | using System; 13 | using System.Collections.Generic; 14 | 15 | public partial class islem 16 | { 17 | public int id { get; set; } 18 | public string islemAdi { get; set; } 19 | public string birimFiyat { get; set; } 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /SOHATS/DB/Model1.Designer.cs: -------------------------------------------------------------------------------- 1 | // T4 code generation is enabled for model 'C:\Users\nefre\source\repos\SOHATS\SOHATS\DB\Model1.edmx'. 2 | // To enable legacy code generation, change the value of the 'Code Generation Strategy' designer 3 | // property to 'Legacy ObjectContext'. This property is available in the Properties Window when the model 4 | // is open in the designer. 5 | 6 | // If no context and entity classes have been generated, it may be because you created an empty model but 7 | // have not yet chosen which version of Entity Framework to use. To generate a context class and entity 8 | // classes for your model, open the model in the designer, right-click on the designer surface, and 9 | // select 'Update Model from Database...', 'Generate Database from Model...', or 'Add Code Generation 10 | // Item...'. -------------------------------------------------------------------------------- /SOHATS/DB/poliklinik.cs: -------------------------------------------------------------------------------- 1 | //------------------------------------------------------------------------------ 2 | // 3 | // This code was generated from a template. 4 | // 5 | // Manual changes to this file may cause unexpected behavior in your application. 6 | // Manual changes to this file will be overwritten if the code is regenerated. 7 | // 8 | //------------------------------------------------------------------------------ 9 | 10 | namespace SOHATS.DB 11 | { 12 | using System; 13 | using System.Collections.Generic; 14 | 15 | public partial class poliklinik 16 | { 17 | public int id { get; set; } 18 | public string poliklinikadi { get; set; } 19 | public string durum { get; set; } 20 | public string aciklama { get; set; } 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /SOHATS/DB/cikis.cs: -------------------------------------------------------------------------------- 1 | //------------------------------------------------------------------------------ 2 | // 3 | // This code was generated from a template. 4 | // 5 | // Manual changes to this file may cause unexpected behavior in your application. 6 | // Manual changes to this file will be overwritten if the code is regenerated. 7 | // 8 | //------------------------------------------------------------------------------ 9 | 10 | namespace SOHATS.DB 11 | { 12 | using System; 13 | using System.Collections.Generic; 14 | 15 | public partial class cikis 16 | { 17 | public int id { get; set; } 18 | public int dosyano { get; set; } 19 | public string sevktarihi { get; set; } 20 | public Nullable cikissaati { get; set; } 21 | public string odeme { get; set; } 22 | public string toplamtutar { get; set; } 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /SOHATS/FormControl.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Text; 5 | using System.Threading.Tasks; 6 | using System.Windows.Forms; 7 | 8 | namespace SOHATS 9 | { 10 | public class FormControl 11 | { 12 | private AnaForm anaForm; 13 | private static Form aktif; 14 | public static Form Aktif { get => aktif; set => aktif = value; } 15 | 16 | public static AnaForm AnaForm { get; set; } 17 | 18 | public FormControl() { } 19 | 20 | public FormControl(AnaForm anaForm) 21 | { 22 | this.anaForm = anaForm; 23 | AnaForm = anaForm; 24 | } 25 | 26 | public void Open(Form form) 27 | { 28 | if (aktif != null) 29 | aktif.Close(); 30 | Aktif = form; 31 | form.MdiParent = anaForm; 32 | form.StartPosition = FormStartPosition.CenterScreen; 33 | Aktif.Show(); 34 | } 35 | } 36 | } 37 | -------------------------------------------------------------------------------- /SOHATS.sln: -------------------------------------------------------------------------------- 1 | 2 | Microsoft Visual Studio Solution File, Format Version 12.00 3 | # Visual Studio 15 4 | VisualStudioVersion = 15.0.28307.489 5 | MinimumVisualStudioVersion = 10.0.40219.1 6 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "SOHATS", "SOHATS\SOHATS.csproj", "{C67BE4E3-4B10-44D8-9E79-48CA8280A7C1}" 7 | EndProject 8 | Global 9 | GlobalSection(SolutionConfigurationPlatforms) = preSolution 10 | Debug|Any CPU = Debug|Any CPU 11 | Release|Any CPU = Release|Any CPU 12 | EndGlobalSection 13 | GlobalSection(ProjectConfigurationPlatforms) = postSolution 14 | {C67BE4E3-4B10-44D8-9E79-48CA8280A7C1}.Debug|Any CPU.ActiveCfg = Debug|Any CPU 15 | {C67BE4E3-4B10-44D8-9E79-48CA8280A7C1}.Debug|Any CPU.Build.0 = Debug|Any CPU 16 | {C67BE4E3-4B10-44D8-9E79-48CA8280A7C1}.Release|Any CPU.ActiveCfg = Release|Any CPU 17 | {C67BE4E3-4B10-44D8-9E79-48CA8280A7C1}.Release|Any CPU.Build.0 = Release|Any CPU 18 | EndGlobalSection 19 | GlobalSection(SolutionProperties) = preSolution 20 | HideSolutionNode = FALSE 21 | EndGlobalSection 22 | GlobalSection(ExtensibilityGlobals) = postSolution 23 | SolutionGuid = {A7E45105-FE4C-4A0B-85A3-8D494AED9E1E} 24 | EndGlobalSection 25 | EndGlobal 26 | -------------------------------------------------------------------------------- /SOHATS/Properties/Settings.Designer.cs: -------------------------------------------------------------------------------- 1 | //------------------------------------------------------------------------------ 2 | // 3 | // This code was generated by a tool. 4 | // Runtime Version:4.0.30319.42000 5 | // 6 | // Changes to this file may cause incorrect behavior and will be lost if 7 | // the code is regenerated. 8 | // 9 | //------------------------------------------------------------------------------ 10 | 11 | namespace SOHATS.Properties 12 | { 13 | 14 | 15 | [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] 16 | [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "11.0.0.0")] 17 | internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase 18 | { 19 | 20 | private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings()))); 21 | 22 | public static Settings Default 23 | { 24 | get 25 | { 26 | return defaultInstance; 27 | } 28 | } 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /SOHATS/DB/sevk.cs: -------------------------------------------------------------------------------- 1 | //------------------------------------------------------------------------------ 2 | // 3 | // This code was generated from a template. 4 | // 5 | // Manual changes to this file may cause unexpected behavior in your application. 6 | // Manual changes to this file will be overwritten if the code is regenerated. 7 | // 8 | //------------------------------------------------------------------------------ 9 | 10 | namespace SOHATS.DB 11 | { 12 | using System; 13 | using System.Collections.Generic; 14 | 15 | public partial class sevk 16 | { 17 | public int id { get; set; } 18 | public System.DateTime sevktarihi { get; set; } 19 | public string dosyano { get; set; } 20 | public string poliklinik { get; set; } 21 | public string saat { get; set; } 22 | public string yapilanislem { get; set; } 23 | public string drkod { get; set; } 24 | public string miktar { get; set; } 25 | public string birimfiyat { get; set; } 26 | public string sira { get; set; } 27 | public string toplamtutar { get; set; } 28 | public string taburcu { get; set; } 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /SOHATS/App.config: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 |
6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | -------------------------------------------------------------------------------- /SOHATS/DB/Model1.edmx.diagram: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | -------------------------------------------------------------------------------- /SOHATS/DB/Model1.Context.cs: -------------------------------------------------------------------------------- 1 | //------------------------------------------------------------------------------ 2 | // 3 | // This code was generated from a template. 4 | // 5 | // Manual changes to this file may cause unexpected behavior in your application. 6 | // Manual changes to this file will be overwritten if the code is regenerated. 7 | // 8 | //------------------------------------------------------------------------------ 9 | 10 | namespace SOHATS.DB 11 | { 12 | using System; 13 | using System.Data.Entity; 14 | using System.Data.Entity.Infrastructure; 15 | 16 | public partial class SOHATSEntities : DbContext 17 | { 18 | public SOHATSEntities() 19 | : base("name=SOHATSEntities") 20 | { 21 | } 22 | 23 | protected override void OnModelCreating(DbModelBuilder modelBuilder) 24 | { 25 | throw new UnintentionalCodeFirstException(); 26 | } 27 | 28 | public virtual DbSet cikis { get; set; } 29 | public virtual DbSet hasta { get; set; } 30 | public virtual DbSet islem { get; set; } 31 | public virtual DbSet kullanici { get; set; } 32 | public virtual DbSet poliklinik { get; set; } 33 | public virtual DbSet sevk { get; set; } 34 | } 35 | } 36 | -------------------------------------------------------------------------------- /SOHATS/RaporTaburcu.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Text; 5 | using System.Threading.Tasks; 6 | 7 | namespace SOHATS 8 | { 9 | class RaporTaburcu 10 | { 11 | string dosyano; 12 | string ad; 13 | string soyad; 14 | DateTime sevktarihi; 15 | string poliklinik; 16 | string doktoradi; 17 | string doktorsoyad; 18 | 19 | public RaporTaburcu() { } 20 | 21 | public RaporTaburcu(string dosyano, string ad, string soyad, DateTime sevktarihi, string poliklinik, string doktoradi, string doktorsoyad) 22 | { 23 | this.Dosyano = dosyano; 24 | this.Ad = ad; 25 | this.Soyad = soyad; 26 | this.Sevktarihi = sevktarihi; 27 | this.Poliklinik = poliklinik; 28 | this.Doktoradi = doktoradi; 29 | this.Doktorsoyad = doktorsoyad; 30 | } 31 | 32 | public string Dosyano { get => dosyano; set => dosyano = value; } 33 | public string Ad { get => ad; set => ad = value; } 34 | public string Soyad { get => soyad; set => soyad = value; } 35 | public DateTime Sevktarihi { get => sevktarihi; set => sevktarihi = value; } 36 | public string Poliklinik { get => poliklinik; set => poliklinik = value; } 37 | public string Doktoradi { get => doktoradi; set => doktoradi = value; } 38 | public string Doktorsoyad { get => doktorsoyad; set => doktorsoyad = value; } 39 | } 40 | } 41 | -------------------------------------------------------------------------------- /SOHATS/DB/hasta.cs: -------------------------------------------------------------------------------- 1 | //------------------------------------------------------------------------------ 2 | // 3 | // This code was generated from a template. 4 | // 5 | // Manual changes to this file may cause unexpected behavior in your application. 6 | // Manual changes to this file will be overwritten if the code is regenerated. 7 | // 8 | //------------------------------------------------------------------------------ 9 | 10 | namespace SOHATS.DB 11 | { 12 | using System; 13 | using System.Collections.Generic; 14 | 15 | public partial class hasta 16 | { 17 | public string tckimlikno { get; set; } 18 | public int dosyano { get; set; } 19 | public string ad { get; set; } 20 | public string soyad { get; set; } 21 | public string dogumyeri { get; set; } 22 | public Nullable dogumtarihi { get; set; } 23 | public string babaadi { get; set; } 24 | public string anneadi { get; set; } 25 | public string cinsiyet { get; set; } 26 | public string kangrubu { get; set; } 27 | public string medenihal { get; set; } 28 | public string adres { get; set; } 29 | public string tel { get; set; } 30 | public string kurumsicilno { get; set; } 31 | public string kurumadi { get; set; } 32 | public string yakintel { get; set; } 33 | public string yakinkurumsicilno { get; set; } 34 | public string yakinkurumadi { get; set; } 35 | } 36 | } 37 | -------------------------------------------------------------------------------- /SOHATS/Properties/AssemblyInfo.cs: -------------------------------------------------------------------------------- 1 | using System.Reflection; 2 | using System.Runtime.CompilerServices; 3 | using System.Runtime.InteropServices; 4 | 5 | // General Information about an assembly is controlled through the following 6 | // set of attributes. Change these attribute values to modify the information 7 | // associated with an assembly. 8 | [assembly: AssemblyTitle("SOHATS")] 9 | [assembly: AssemblyDescription("")] 10 | [assembly: AssemblyConfiguration("")] 11 | [assembly: AssemblyCompany("")] 12 | [assembly: AssemblyProduct("SOHATS")] 13 | [assembly: AssemblyCopyright("Copyright © 2019")] 14 | [assembly: AssemblyTrademark("")] 15 | [assembly: AssemblyCulture("")] 16 | 17 | // Setting ComVisible to false makes the types in this assembly not visible 18 | // to COM components. If you need to access a type in this assembly from 19 | // COM, set the ComVisible attribute to true on that type. 20 | [assembly: ComVisible(false)] 21 | 22 | // The following GUID is for the ID of the typelib if this project is exposed to COM 23 | [assembly: Guid("c67be4e3-4b10-44d8-9e79-48ca8280a7c1")] 24 | 25 | // Version information for an assembly consists of the following four values: 26 | // 27 | // Major Version 28 | // Minor Version 29 | // Build Number 30 | // Revision 31 | // 32 | // You can specify all the values or you can default the Build and Revision Numbers 33 | // by using the '*' as shown below: 34 | // [assembly: AssemblyVersion("1.0.*")] 35 | [assembly: AssemblyVersion("1.0.0.0")] 36 | [assembly: AssemblyFileVersion("1.0.0.0")] 37 | -------------------------------------------------------------------------------- /SOHATS/DB/kullanici.cs: -------------------------------------------------------------------------------- 1 | //------------------------------------------------------------------------------ 2 | // 3 | // This code was generated from a template. 4 | // 5 | // Manual changes to this file may cause unexpected behavior in your application. 6 | // Manual changes to this file will be overwritten if the code is regenerated. 7 | // 8 | //------------------------------------------------------------------------------ 9 | 10 | namespace SOHATS.DB 11 | { 12 | using System; 13 | using System.Collections.Generic; 14 | 15 | public partial class kullanici 16 | { 17 | public int kodu { get; set; } 18 | public string ad { get; set; } 19 | public string soyad { get; set; } 20 | public string sifre { get; set; } 21 | public string yetki { get; set; } 22 | public string evtel { get; set; } 23 | public string ceptel { get; set; } 24 | public string adres { get; set; } 25 | public string unvan { get; set; } 26 | public Nullable isebaslama { get; set; } 27 | public string maas { get; set; } 28 | public string dogumyeri { get; set; } 29 | public string annead { get; set; } 30 | public string babaad { get; set; } 31 | public string cinsiyet { get; set; } 32 | public string kangrubu { get; set; } 33 | public string medenihal { get; set; } 34 | public Nullable dogumtarihi { get; set; } 35 | public string tckimlikno { get; set; } 36 | public string username { get; set; } 37 | } 38 | } 39 | -------------------------------------------------------------------------------- /SOHATS/KulTanit.cs: -------------------------------------------------------------------------------- 1 | using SOHATS.DB; 2 | using System; 3 | using System.Collections.Generic; 4 | using System.ComponentModel; 5 | using System.Data; 6 | using System.Drawing; 7 | using System.Linq; 8 | using System.Text; 9 | using System.Threading.Tasks; 10 | using System.Windows.Forms; 11 | 12 | namespace SOHATS 13 | { 14 | public partial class KulTanit : Form 15 | { 16 | public KulTanit(AnaForm anaForm, FormControl formControl) 17 | { 18 | InitializeComponent(); 19 | 20 | this.anaForm = anaForm; 21 | this.formControl = formControl; 22 | } 23 | 24 | AnaForm anaForm; 25 | FormControl formControl; 26 | DatabaseControl databaseControl = new DatabaseControl(); 27 | 28 | private void KulTanit_Load(object sender, EventArgs e) 29 | { 30 | List kullanicis = databaseControl.GetKullanici(); 31 | foreach (var kullanci in kullanicis) 32 | { 33 | cbKullaniciKodu.Items.Add(kullanci.username); 34 | } 35 | } 36 | 37 | private void btnYeniKullanici_Click(object sender, EventArgs e) 38 | { 39 | KullaniciPage kullaniciPage = new KullaniciPage(); 40 | kullaniciPage.btnGuncelle.Text = "Kaydet"; 41 | this.Close(); 42 | formControl.Open(kullaniciPage); 43 | 44 | } 45 | 46 | private void cbKullaniciKodu_SelectedValueChanged(object sender, EventArgs e) 47 | { 48 | string kullaniciKodu = cbKullaniciKodu.Text; 49 | kullanici kullanicis = databaseControl.GetKullanici(kullaniciKodu); 50 | formControl.Open(new KullaniciPage(kullanicis)); 51 | } 52 | } 53 | } 54 | -------------------------------------------------------------------------------- /SOHATS/PoliklinikPage.cs: -------------------------------------------------------------------------------- 1 | using SOHATS.DB; 2 | using System; 3 | using System.Collections.Generic; 4 | using System.ComponentModel; 5 | using System.Data; 6 | using System.Drawing; 7 | using System.Linq; 8 | using System.Text; 9 | using System.Threading.Tasks; 10 | using System.Windows.Forms; 11 | 12 | namespace SOHATS 13 | { 14 | public partial class PoliklinikPage : Form 15 | { 16 | int id; 17 | public PoliklinikPage(int Id,string poliklinikAdi,bool gecerli,string aciklama) 18 | { 19 | InitializeComponent(); 20 | id = Id; 21 | if(poliklinikAdi != null) 22 | { 23 | txtPoliklinik.Text = poliklinikAdi; 24 | } 25 | cbGecerli.Checked = gecerli; 26 | if (aciklama != null) 27 | { 28 | txtAciklama.Text = aciklama; 29 | } 30 | } 31 | 32 | DatabaseControl databaseControl = new DatabaseControl(); 33 | 34 | private void btnCikis_Click(object sender, EventArgs e) 35 | { 36 | this.Close(); 37 | } 38 | 39 | private void btnSil_Click(object sender, EventArgs e) 40 | { 41 | databaseControl.DeletePoliklinik(new poliklinik 42 | { 43 | id = id 44 | }); 45 | MessageBox.Show("Poliklinik Silindi"); 46 | this.Close(); 47 | } 48 | 49 | private void btnGuncelle_Click(object sender, EventArgs e) 50 | { 51 | databaseControl.UpdatePoliklinik(new poliklinik { 52 | id = id, 53 | poliklinikadi = txtPoliklinik.Text, 54 | durum = cbGecerli.Checked ? "True" : "False", 55 | aciklama = txtAciklama.Text 56 | }); 57 | MessageBox.Show("Poliklinik Güncellendi"); 58 | } 59 | } 60 | } 61 | -------------------------------------------------------------------------------- /SOHATS/AnaForm.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.ComponentModel; 4 | using System.Data; 5 | using System.Drawing; 6 | using System.Linq; 7 | using System.Text; 8 | using System.Threading.Tasks; 9 | using System.Windows.Forms; 10 | 11 | namespace SOHATS 12 | { 13 | public partial class AnaForm : Form 14 | { 15 | public AnaForm() 16 | { 17 | InitializeComponent(); 18 | formControl = new FormControl(this); 19 | } 20 | 21 | FormControl formControl; 22 | 23 | private void AnaForm_Load(object sender, EventArgs e) 24 | { 25 | formControl.Open(new Login()); 26 | } 27 | 28 | public void GirisBasarisiz() 29 | { 30 | menuStrip1.Enabled = false; 31 | referanslar.Visible = false; 32 | referanslar.Enabled = false; 33 | } 34 | 35 | private void poliklinikTanitma_Click(object sender, EventArgs e) 36 | { 37 | formControl.Open(new PoliTanit(this,formControl)); 38 | } 39 | 40 | private void kullanıcıTanıtma_Click(object sender, EventArgs e) 41 | { 42 | formControl.Open(new KulTanit(this, formControl)); 43 | } 44 | 45 | private void logout_Click(object sender, EventArgs e) 46 | { 47 | GirisBasarisiz(); 48 | formControl.Open(new Login()); 49 | } 50 | 51 | private void cikis_Click(object sender, EventArgs e) 52 | { 53 | this.Close(); 54 | } 55 | 56 | private void hastaİşlemleriToolStripMenuItem_Click(object sender, EventArgs e) 57 | { 58 | if(menuStrip1.Enabled != false) 59 | { 60 | formControl.Open(new HastaProcess(this, formControl)); 61 | } 62 | } 63 | 64 | private void rapor1ToolStripMenuItem_Click(object sender, EventArgs e) 65 | { 66 | formControl.Open(new Rapor(this, formControl)); 67 | } 68 | } 69 | } 70 | -------------------------------------------------------------------------------- /SOHATS/Taburcu.cs: -------------------------------------------------------------------------------- 1 | using SOHATS.DB; 2 | using System; 3 | using System.Collections.Generic; 4 | using System.ComponentModel; 5 | using System.Data; 6 | using System.Drawing; 7 | using System.Linq; 8 | using System.Text; 9 | using System.Threading.Tasks; 10 | using System.Windows.Forms; 11 | 12 | namespace SOHATS 13 | { 14 | public partial class Taburcu : Form 15 | { 16 | public Taburcu(FormControl formControl,string tutar,string dosyano,List sevkler) 17 | { 18 | InitializeComponent(); 19 | this.formControl = formControl; 20 | this.tutar = tutar; 21 | this.dosyano = dosyano; 22 | this.sevkler = sevkler; 23 | } 24 | 25 | FormControl formControl; 26 | string tutar; 27 | string dosyano; 28 | List sevkler; 29 | 30 | DatabaseControl databaseControl = new DatabaseControl(); 31 | 32 | private void btnGiris_Click(object sender, EventArgs e) 33 | { 34 | this.Close(); 35 | } 36 | 37 | private void Taburcu_Load(object sender, EventArgs e) 38 | { 39 | txtDosyaNo.Text = dosyano; 40 | txtTutar.Text = tutar; 41 | dtpSevkTarihi.Text = sevkler[0].sevktarihi.ToShortDateString(); 42 | } 43 | 44 | private void btnKaydet_Click(object sender, EventArgs e) 45 | { 46 | if(cbOdeme.Text == "") 47 | { 48 | MessageBox.Show("Lütfen bir ödeme yöntemi giriniz"); 49 | return; 50 | } 51 | cikis cikis = new cikis() 52 | { 53 | id = databaseControl.GetCikisId(), 54 | dosyano = int.Parse(txtDosyaNo.Text), 55 | sevktarihi = dtpSevkTarihi.Value.ToShortDateString().ToString(), 56 | cikissaati = DateTime.Now, 57 | odeme = cbOdeme.Text, 58 | toplamtutar = txtTutar.Text 59 | }; 60 | databaseControl.AddCikis(cikis); 61 | 62 | foreach(sevk sevk in sevkler) 63 | { 64 | sevk s = databaseControl.GetSevkId(sevk.id); 65 | s.taburcu = "True"; 66 | databaseControl.UpdateSevk(s,true); 67 | } 68 | 69 | MessageBox.Show("Çıkışınız Tamamlanmıştır"); 70 | this.Close(); 71 | } 72 | } 73 | } 74 | -------------------------------------------------------------------------------- /SOHATS/PoliTanit.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.ComponentModel; 4 | using System.Data; 5 | using System.Drawing; 6 | using System.Linq; 7 | using System.Text; 8 | using System.Threading.Tasks; 9 | using System.Windows.Forms; 10 | using SOHATS.DB; 11 | namespace SOHATS 12 | { 13 | public partial class PoliTanit : Form 14 | { 15 | public PoliTanit(AnaForm anaForm,FormControl formControl) 16 | { 17 | InitializeComponent(); 18 | this.anaForm = anaForm; 19 | this.formControl = formControl; 20 | 21 | } 22 | AnaForm anaForm; 23 | FormControl formControl; 24 | DatabaseControl databaseControl = new DatabaseControl(); 25 | 26 | private void PoliTanit_Load(object sender, EventArgs e) 27 | { 28 | SOHATSEntities context = new SOHATSEntities(); 29 | 30 | List poliks = context.poliklinik.ToList(); 31 | foreach (var polik in poliks) 32 | { 33 | cbPoliklinikAdi.Items.Add(polik.poliklinikadi); 34 | } 35 | 36 | } 37 | 38 | private void cbPoliklinikAdi_KeyDown(object sender, KeyEventArgs e) 39 | { 40 | if (e.KeyCode == Keys.Enter ) 41 | { 42 | if (cbPoliklinikAdi.Text == "") 43 | { 44 | MessageBox.Show("Lütfen bir poliklinik adı giriniz"); 45 | return; 46 | } 47 | string poliklinikAdi = cbPoliklinikAdi.Text; 48 | poliklinik p = databaseControl.GetPoliklinik(poliklinikAdi); 49 | if(p.poliklinikadi == null) 50 | { 51 | poliklinik poli = new poliklinik 52 | { 53 | poliklinikadi = poliklinikAdi, 54 | durum = "True", 55 | aciklama = null 56 | }; 57 | databaseControl.AddPoliklinik(poli); 58 | formControl.Open(new PoliklinikPage(poli.id, poli.poliklinikadi, Convert.ToBoolean(poli.durum), poli.aciklama)); 59 | } 60 | else 61 | { 62 | formControl.Open(new PoliklinikPage(p.id, p.poliklinikadi, Convert.ToBoolean(p.durum), p.aciklama)); 63 | } 64 | } 65 | } 66 | } 67 | } 68 | -------------------------------------------------------------------------------- /SOHATS/Login.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.ComponentModel; 4 | using System.Data; 5 | using System.Data.SqlClient; 6 | using System.Drawing; 7 | using System.Linq; 8 | using System.Text; 9 | using System.Threading.Tasks; 10 | using System.Windows.Forms; 11 | 12 | namespace SOHATS 13 | { 14 | public partial class Login : Form 15 | { 16 | public Login() 17 | { 18 | InitializeComponent(); 19 | } 20 | 21 | private void Form2_Load(object sender, EventArgs e) 22 | { 23 | 24 | } 25 | 26 | private void btnGiris_Click(object sender, EventArgs e) 27 | { 28 | DatabaseControl databaseControl = new DatabaseControl(); 29 | string kullanici_adi = txtKullanici.Text; 30 | string sifre = txtSifre.Text; 31 | if (kullanici_adi == "") 32 | { 33 | MessageBox.Show("Lütfen Kullanıcı Adını Giriniz"); 34 | return; 35 | } 36 | if (sifre == "") 37 | { 38 | MessageBox.Show("Lütfen Şifre Giriniz"); 39 | return; 40 | } 41 | 42 | List kontrol = databaseControl.kullaniciGirisi(kullanici_adi, sifre); 43 | 44 | if (kontrol[0]) 45 | { 46 | MessageBox.Show("Tebrikler! Başarılı bir şekilde giriş yaptınız."); 47 | if (kontrol[1]) 48 | { 49 | FormControl.AnaForm.referanslar.Enabled = true; 50 | } 51 | FormControl.AnaForm.menuStrip1.Enabled = true; 52 | FormControl.AnaForm.referanslar.Visible = true; 53 | this.Close(); 54 | } 55 | else 56 | { 57 | if (!kontrol[2]) 58 | { 59 | MessageBox.Show("Veri tabanında sıkıntı oluştu"); 60 | Application.Exit(); 61 | } 62 | MessageBox.Show("Yanlış Kullanıcı ad ve/veya şifre", "Hata", MessageBoxButtons.OK, MessageBoxIcon.Error); 63 | txtKullanici.Text = ""; 64 | txtSifre.Text = ""; 65 | } 66 | } 67 | 68 | private void btnCikis_Click(object sender, EventArgs e) 69 | { 70 | MdiParent.Close(); 71 | } 72 | 73 | private void btnTemizle_Click(object sender, EventArgs e) 74 | { 75 | txtKullanici.Clear(); 76 | txtSifre.Clear(); 77 | } 78 | 79 | private void txtKullanici_KeyPress(object sender, KeyPressEventArgs e) 80 | { 81 | if(Convert.ToInt32(e.KeyChar) == 13) 82 | { 83 | btnGiris_Click(this, new EventArgs()); 84 | } 85 | } 86 | } 87 | } 88 | -------------------------------------------------------------------------------- /SOHATS/Properties/Resources.Designer.cs: -------------------------------------------------------------------------------- 1 | //------------------------------------------------------------------------------ 2 | // 3 | // This code was generated by a tool. 4 | // Runtime Version:4.0.30319.42000 5 | // 6 | // Changes to this file may cause incorrect behavior and will be lost if 7 | // the code is regenerated. 8 | // 9 | //------------------------------------------------------------------------------ 10 | 11 | namespace SOHATS.Properties 12 | { 13 | 14 | 15 | /// 16 | /// A strongly-typed resource class, for looking up localized strings, etc. 17 | /// 18 | // This class was auto-generated by the StronglyTypedResourceBuilder 19 | // class via a tool like ResGen or Visual Studio. 20 | // To add or remove a member, edit your .ResX file then rerun ResGen 21 | // with the /str option, or rebuild your VS project. 22 | [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "4.0.0.0")] 23 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] 24 | [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] 25 | internal class Resources 26 | { 27 | 28 | private static global::System.Resources.ResourceManager resourceMan; 29 | 30 | private static global::System.Globalization.CultureInfo resourceCulture; 31 | 32 | [global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")] 33 | internal Resources() 34 | { 35 | } 36 | 37 | /// 38 | /// Returns the cached ResourceManager instance used by this class. 39 | /// 40 | [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] 41 | internal static global::System.Resources.ResourceManager ResourceManager 42 | { 43 | get 44 | { 45 | if ((resourceMan == null)) 46 | { 47 | global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("SOHATS.Properties.Resources", typeof(Resources).Assembly); 48 | resourceMan = temp; 49 | } 50 | return resourceMan; 51 | } 52 | } 53 | 54 | /// 55 | /// Overrides the current thread's CurrentUICulture property for all 56 | /// resource lookups using this strongly typed resource class. 57 | /// 58 | [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] 59 | internal static global::System.Globalization.CultureInfo Culture 60 | { 61 | get 62 | { 63 | return resourceCulture; 64 | } 65 | set 66 | { 67 | resourceCulture = value; 68 | } 69 | } 70 | } 71 | } 72 | -------------------------------------------------------------------------------- /SOHATS/PoliTanit.Designer.cs: -------------------------------------------------------------------------------- 1 | namespace SOHATS 2 | { 3 | partial class PoliTanit 4 | { 5 | /// 6 | /// Required designer variable. 7 | /// 8 | private System.ComponentModel.IContainer components = null; 9 | 10 | /// 11 | /// Clean up any resources being used. 12 | /// 13 | /// true if managed resources should be disposed; otherwise, false. 14 | protected override void Dispose(bool disposing) 15 | { 16 | if (disposing && (components != null)) 17 | { 18 | components.Dispose(); 19 | } 20 | base.Dispose(disposing); 21 | } 22 | 23 | #region Windows Form Designer generated code 24 | 25 | /// 26 | /// Required method for Designer support - do not modify 27 | /// the contents of this method with the code editor. 28 | /// 29 | private void InitializeComponent() 30 | { 31 | this.label1 = new System.Windows.Forms.Label(); 32 | this.cbPoliklinikAdi = new System.Windows.Forms.ComboBox(); 33 | this.label2 = new System.Windows.Forms.Label(); 34 | this.SuspendLayout(); 35 | // 36 | // label1 37 | // 38 | this.label1.AutoSize = true; 39 | this.label1.Location = new System.Drawing.Point(17, 67); 40 | this.label1.Margin = new System.Windows.Forms.Padding(6, 0, 6, 0); 41 | this.label1.Name = "label1"; 42 | this.label1.Size = new System.Drawing.Size(115, 24); 43 | this.label1.TabIndex = 0; 44 | this.label1.Text = "Poliklinik Adı"; 45 | // 46 | // cbPoliklinikAdi 47 | // 48 | this.cbPoliklinikAdi.FormattingEnabled = true; 49 | this.cbPoliklinikAdi.Location = new System.Drawing.Point(134, 64); 50 | this.cbPoliklinikAdi.Margin = new System.Windows.Forms.Padding(6); 51 | this.cbPoliklinikAdi.Name = "cbPoliklinikAdi"; 52 | this.cbPoliklinikAdi.Size = new System.Drawing.Size(219, 32); 53 | this.cbPoliklinikAdi.TabIndex = 1; 54 | this.cbPoliklinikAdi.KeyDown += new System.Windows.Forms.KeyEventHandler(this.cbPoliklinikAdi_KeyDown); 55 | // 56 | // label2 57 | // 58 | this.label2.BackColor = System.Drawing.SystemColors.MenuHighlight; 59 | this.label2.Dock = System.Windows.Forms.DockStyle.Top; 60 | this.label2.ForeColor = System.Drawing.Color.White; 61 | this.label2.Location = new System.Drawing.Point(0, 0); 62 | this.label2.Name = "label2"; 63 | this.label2.Size = new System.Drawing.Size(373, 35); 64 | this.label2.TabIndex = 11; 65 | this.label2.Text = "SOHATS - Poliklinik Tanıtma"; 66 | this.label2.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; 67 | // 68 | // PoliTanit 69 | // 70 | this.AutoScaleDimensions = new System.Drawing.SizeF(11F, 24F); 71 | this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; 72 | this.BackColor = System.Drawing.SystemColors.GradientInactiveCaption; 73 | this.ClientSize = new System.Drawing.Size(373, 129); 74 | this.ControlBox = false; 75 | this.Controls.Add(this.label2); 76 | this.Controls.Add(this.cbPoliklinikAdi); 77 | this.Controls.Add(this.label1); 78 | this.Font = new System.Drawing.Font("Microsoft Sans Serif", 14.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(162))); 79 | this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None; 80 | this.Margin = new System.Windows.Forms.Padding(6); 81 | this.Name = "PoliTanit"; 82 | this.Text = "SOHATS - Poliklinik Tanıtma"; 83 | this.Load += new System.EventHandler(this.PoliTanit_Load); 84 | this.ResumeLayout(false); 85 | this.PerformLayout(); 86 | 87 | } 88 | 89 | #endregion 90 | 91 | private System.Windows.Forms.Label label1; 92 | private System.Windows.Forms.ComboBox cbPoliklinikAdi; 93 | private System.Windows.Forms.Label label2; 94 | } 95 | } -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | ## [Demo](https://www.youtube.com/watch?v=ydSiWok7wN8&t=95s&ab_channel=ErayK%C4%B1sabacak) 2 | ## [Blog](http://eraykisabacak.com/c-ile-saglik-ocagi-hasta-takip-sistemi-health-center-patient-tracking-system-hbys/) 3 | # Saglik-Ocagi-Hasta-Takip-Sistemi 4 | Sağlık Ocağı Hasta Takip Sistemi - Health Center Patient Tracking System - HBYS 5 | 6 | Sağlık Ocağı Hasta Takip Sistemi 7 | Sağlık ocaklarında hastaların poliklinik giriş ve çıkışlarının takibi ve raporlanması amacıyla detaylı bir otomasyon geliştirmeniz istenmektedir. 8 | 9 | ## Kurulum 10 | Projede Entity Framework kullanılmıştır. 11 | script.sql dosyasından Microsoft Management Studio'ya giderek New Query'ye tıkladıkdan sonra script.sql dosyasının içindeki kodu alıp Execute ettiğinizde tablolar ve veriler gelmiş olacaktır. 12 | 13 | ## Uygulama İçi Fotoğraflar 14 | 15 | ### Login 16 | ![](https://github.com/eraykisabacak/Saglik-Ocagi-Hasta-Takip-Sistemi/blob/master/login1.png) 17 | 18 | ### Login Uyarısı 19 | ![](https://github.com/eraykisabacak/Saglik-Ocagi-Hasta-Takip-Sistemi/blob/master/uyari2.png) 20 | 21 | ### Hasta İşlemleri 22 | ![](https://github.com/eraykisabacak/Saglik-Ocagi-Hasta-Takip-Sistemi/blob/master/hasta3.png) 23 | 24 | ### Taburcu Formu 25 | ![](https://github.com/eraykisabacak/Saglik-Ocagi-Hasta-Takip-Sistemi/blob/master/taburcu4.png) 26 | 27 | ### Taburcu Formu 28 | ![](https://github.com/eraykisabacak/Saglik-Ocagi-Hasta-Takip-Sistemi/blob/master/taburcu5.png) 29 | 30 | ### Poliklinik Tanıtma 31 | ![](https://github.com/eraykisabacak/Saglik-Ocagi-Hasta-Takip-Sistemi/blob/master/poliklinik6.png) 32 | 33 | ### Kullanıcı Tanıtma 34 | ![](https://github.com/eraykisabacak/Saglik-Ocagi-Hasta-Takip-Sistemi/blob/master/kullanici7.png) 35 | 36 | ### Hasta Bulma 37 | ![](https://github.com/eraykisabacak/Saglik-Ocagi-Hasta-Takip-Sistemi/blob/master/arabul8.png) 38 | 39 | ## Detaylı Bilgiler 40 | txtDosyaNo: Hasta ya ait unique numara dosya no metin kutusunun key press eventi enter tuşunu döndürürse hasta bilgileri formdaki alanlara doldurulur. 41 | 42 | btnBul: Dosya numarası bilinmeyen hasta geldiğinde bul butonu ile acılan Dosya Arama Yardımı penceresinde hastaya ait bilgiler den biri seçilip sorgulanarak hastanın dosya numarasına erişilir, Gridden seçilen hasta dosya numarası ve bütün bilgileri formda ilgili alanlara doldurulur. 43 | 44 | txtSevkTarihi: Muayeneye gelen hasta için her gelişinde sevk açılmaz, Sevk tarihi ile dosya numarası birlikte hastanın bir kez gelişini birlikte primary key olarak ifade eder. 45 | 46 | btnHastaBilgileri: Hastanın Gerekli bilgilerinin düzenlendiği bir form açar. Burada hastaya ait kişisel, kurumsal, kimlik ve iletişim bilgileri bulunur. 47 | 48 | cbPoliklinik: hastanın o sevkinde hangi poliklinikte muayene olacağı seçilir. 49 | 50 | txtSıraNo: Hastanın poliklinikte muayene için bekleyeceği sıra numarası otomatik olarak verilir. 51 | 52 | txtKayitSaati: hasta kaydının yapıldığı saati sistem saatinden çekip bu alana yazdırılır. 53 | 54 | btnKaydet: hastanın bu sevkini kaydeder ve bu sevke tahlil ve işlem girilebilir. 55 | Groupbox Yapılan tahlil ve işlemler: bu groupbox içinde yer alan alanlar yapılan her bir işlem için doldurulup Ekle butonu ile alttaki gride eklenir. Dr. Kodu her bir doktorun sahip olduğu kod yazılır. Tarih ve saat sistemden çekilir. 56 | 57 | btnKaydet: hastanın bu sevkini yapılan işlemler ile birlikte kaydeder (Gride eklenen kayıtlar direk veritabanına işlenirse bu butona gerek kalmayabilir). 58 | 59 | btnSeçSil: Hastanın hesabında silinmek istenen işlem veya tahlil grid satır baslığından seçilerek bu buton ile silinir. 60 | 61 | btnYeni: Formu temizleyerek yeni bir hastaya işlem yapabilmeye hazır hale getirir. 62 | 63 | btnTaburcu: Hastanın gerekli işlemleri (Örneğin ücret tahsil edilmesi) bittikten sonra taburcu edilir. Yani veri tabanına çıkış saati yazılır. 64 | 65 | btnYazdır: Hastanın bu sevkine ait bilgileri yazdırılır. 66 | 67 | Toplam Tutar: Gridde hasta ya işlenen işlemlerin miktarları ve birim fiyatları çarpılarak işlem tutarı hanesinde görülecek, bu işlem tutarları toplamı toplam tutarda gösterilir, 68 | 69 | Poliklinik Tanıtma: Sağlık ocağındaki polikliniklerin insert, update, delete edildiği form, 70 | dbPoliklinik te burada kayıtlı ve geçerli poliklinikler görüntülenecek. Poliklinik adı girilip textbox üzerinde entere basıldığında kayıt varsa form doldurulur, yoksa böyle bir kayıt bulunamadı açayım mı diye msgbox uyarısı verir, evet seçilirse alttaki komponente geçer aksi halde formu temizler. 71 | 72 | Kullanıcı tanıtma: Kullanıcı adı yazılıp enterlandıgında bilgileri gelir, yetkili kullanıcılar haricindekilere Referanslar ana menüsü görünmez. 73 | 74 | Doktor tanıtma: kodu girildiğinde bilgiler gelir ya da mesajla bu kaydı açayım mı diye sorar, doktor kodları hasta işlemleri formunda işlem eklemede ve raporlarda imza olarak kullanılır. 75 | 76 | Sağlık Personeli tanıtma: hemşireler vb. personel tanıtılır doktor tanıtmanın benzeri işlemler yapılır. 77 | -------------------------------------------------------------------------------- /SOHATS/KulTanit.Designer.cs: -------------------------------------------------------------------------------- 1 | namespace SOHATS 2 | { 3 | partial class KulTanit 4 | { 5 | /// 6 | /// Required designer variable. 7 | /// 8 | private System.ComponentModel.IContainer components = null; 9 | 10 | /// 11 | /// Clean up any resources being used. 12 | /// 13 | /// true if managed resources should be disposed; otherwise, false. 14 | protected override void Dispose(bool disposing) 15 | { 16 | if (disposing && (components != null)) 17 | { 18 | components.Dispose(); 19 | } 20 | base.Dispose(disposing); 21 | } 22 | 23 | #region Windows Form Designer generated code 24 | 25 | /// 26 | /// Required method for Designer support - do not modify 27 | /// the contents of this method with the code editor. 28 | /// 29 | private void InitializeComponent() 30 | { 31 | this.label1 = new System.Windows.Forms.Label(); 32 | this.cbKullaniciKodu = new System.Windows.Forms.ComboBox(); 33 | this.btnYeniKullanici = new System.Windows.Forms.Button(); 34 | this.label2 = new System.Windows.Forms.Label(); 35 | this.SuspendLayout(); 36 | // 37 | // label1 38 | // 39 | this.label1.AutoSize = true; 40 | this.label1.Location = new System.Drawing.Point(15, 48); 41 | this.label1.Margin = new System.Windows.Forms.Padding(6, 0, 6, 0); 42 | this.label1.Name = "label1"; 43 | this.label1.Size = new System.Drawing.Size(130, 24); 44 | this.label1.TabIndex = 0; 45 | this.label1.Text = "Kullanıcı Kodu"; 46 | // 47 | // cbKullaniciKodu 48 | // 49 | this.cbKullaniciKodu.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; 50 | this.cbKullaniciKodu.FormattingEnabled = true; 51 | this.cbKullaniciKodu.Location = new System.Drawing.Point(154, 45); 52 | this.cbKullaniciKodu.Name = "cbKullaniciKodu"; 53 | this.cbKullaniciKodu.Size = new System.Drawing.Size(154, 32); 54 | this.cbKullaniciKodu.TabIndex = 1; 55 | this.cbKullaniciKodu.SelectedValueChanged += new System.EventHandler(this.cbKullaniciKodu_SelectedValueChanged); 56 | // 57 | // btnYeniKullanici 58 | // 59 | this.btnYeniKullanici.BackColor = System.Drawing.SystemColors.ActiveCaption; 60 | this.btnYeniKullanici.ForeColor = System.Drawing.Color.Green; 61 | this.btnYeniKullanici.Location = new System.Drawing.Point(35, 83); 62 | this.btnYeniKullanici.Name = "btnYeniKullanici"; 63 | this.btnYeniKullanici.Size = new System.Drawing.Size(251, 33); 64 | this.btnYeniKullanici.TabIndex = 9; 65 | this.btnYeniKullanici.Text = "Yeni Kullanıcı Ekle"; 66 | this.btnYeniKullanici.UseVisualStyleBackColor = false; 67 | this.btnYeniKullanici.Click += new System.EventHandler(this.btnYeniKullanici_Click); 68 | // 69 | // label2 70 | // 71 | this.label2.BackColor = System.Drawing.SystemColors.MenuHighlight; 72 | this.label2.Dock = System.Windows.Forms.DockStyle.Top; 73 | this.label2.ForeColor = System.Drawing.Color.White; 74 | this.label2.Location = new System.Drawing.Point(0, 0); 75 | this.label2.Name = "label2"; 76 | this.label2.Size = new System.Drawing.Size(320, 35); 77 | this.label2.TabIndex = 10; 78 | this.label2.Text = "SOHATS - Kullanıcı Tanıtma"; 79 | this.label2.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; 80 | // 81 | // KulTanit 82 | // 83 | this.AutoScaleDimensions = new System.Drawing.SizeF(11F, 24F); 84 | this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; 85 | this.BackColor = System.Drawing.SystemColors.GradientInactiveCaption; 86 | this.ClientSize = new System.Drawing.Size(320, 122); 87 | this.ControlBox = false; 88 | this.Controls.Add(this.label2); 89 | this.Controls.Add(this.btnYeniKullanici); 90 | this.Controls.Add(this.cbKullaniciKodu); 91 | this.Controls.Add(this.label1); 92 | this.Font = new System.Drawing.Font("Microsoft Sans Serif", 14.25F); 93 | this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None; 94 | this.Margin = new System.Windows.Forms.Padding(6); 95 | this.Name = "KulTanit"; 96 | this.Text = "SOHATS - Kullanıcı Tanıtma "; 97 | this.Load += new System.EventHandler(this.KulTanit_Load); 98 | this.ResumeLayout(false); 99 | this.PerformLayout(); 100 | 101 | } 102 | 103 | #endregion 104 | 105 | private System.Windows.Forms.Label label1; 106 | private System.Windows.Forms.ComboBox cbKullaniciKodu; 107 | private System.Windows.Forms.Button btnYeniKullanici; 108 | private System.Windows.Forms.Label label2; 109 | } 110 | } -------------------------------------------------------------------------------- /SOHATS/Rapor.cs: -------------------------------------------------------------------------------- 1 | using SOHATS.DB; 2 | using System; 3 | using System.Collections.Generic; 4 | using System.ComponentModel; 5 | using System.Data; 6 | using System.Drawing; 7 | using System.Linq; 8 | using System.Text; 9 | using System.Threading.Tasks; 10 | using System.Windows.Forms; 11 | 12 | namespace SOHATS 13 | { 14 | public partial class Rapor : Form 15 | { 16 | public Rapor(AnaForm anaForm, FormControl formControl) 17 | { 18 | InitializeComponent(); 19 | this.anaForm = anaForm; 20 | this.formControl = formControl; 21 | dtpBitis.MaxDate = DateTime.Today; 22 | dtpBaslangic.MaxDate = DateTime.Today; 23 | } 24 | AnaForm anaForm; 25 | FormControl formControl; 26 | DatabaseControl databaseControl = new DatabaseControl(); 27 | 28 | private void btnCikis_Click(object sender, EventArgs e) 29 | { 30 | this.Close(); 31 | } 32 | 33 | private void btnTemizle_Click(object sender, EventArgs e) 34 | { 35 | dgwHasta.Rows.Clear(); 36 | dtpBaslangic.Value = DateTime.Today; 37 | dtpBitis.Value = DateTime.Today; 38 | rbTaburcuOlmus.Checked = true; 39 | } 40 | 41 | private void btnSorgula_Click(object sender, EventArgs e) 42 | { 43 | dgwHasta.Rows.Clear(); 44 | DateTime baslangic = dtpBaslangic.Value; 45 | DateTime bitis = dtpBitis.Value; 46 | List sevks = new List(); 47 | 48 | if (rbHepsi.Checked) 49 | { 50 | sevks = databaseControl.GetTaburcu(baslangic,bitis); 51 | } 52 | else if (rbTaburcuOlmus.Checked) 53 | { 54 | sevks = databaseControl.GetTaburcu(true,baslangic, bitis); 55 | } 56 | else if (rbTaburcuOlmamis.Checked) 57 | { 58 | sevks = databaseControl.GetTaburcu(false, baslangic, bitis); 59 | } 60 | else 61 | { 62 | MessageBox.Show("Lütfen bir durum seçiniz"); 63 | return; 64 | } 65 | 66 | if(sevks.Count < 1) 67 | { 68 | MessageBox.Show("Herhangi bir veri bulunamadı"); 69 | } 70 | 71 | foreach (RaporTaburcu rapor in sevks) 72 | { 73 | dgwHasta.Rows.Add(rapor.Dosyano, 74 | rapor.Ad, 75 | rapor.Soyad, 76 | rapor.Sevktarihi, 77 | rapor.Poliklinik, 78 | rapor.Doktoradi, 79 | rapor.Doktorsoyad); 80 | } 81 | 82 | } 83 | 84 | private void btnYazdir_Click(object sender, EventArgs e) 85 | { 86 | if(dgwHasta.Rows.Count < 2) 87 | { 88 | MessageBox.Show("Lütfen tabloya değer giriniz"); 89 | return; 90 | } 91 | printDocument1.Print(); 92 | PrintDialog yazdir = new PrintDialog(); 93 | yazdir.Document = printDocument1; 94 | yazdir.UseEXDialog = true; 95 | if (yazdir.ShowDialog() == DialogResult.OK) 96 | { 97 | printDocument1.Print(); 98 | } 99 | } 100 | 101 | Font baslik = new Font("Verdana", 20, FontStyle.Bold); 102 | Font govde = new Font("Verdana", 12); 103 | SolidBrush brush = new SolidBrush(Color.Black); 104 | 105 | private void printDocument1_PrintPage(object sender, System.Drawing.Printing.PrintPageEventArgs e) 106 | { 107 | StringFormat stringFormat = new StringFormat(); 108 | stringFormat.Alignment = StringAlignment.Near; 109 | e.Graphics.DrawString("Rapor Tarih : " + DateTime.Now.Date.ToLongDateString(), govde, brush, 50, 20); 110 | e.Graphics.DrawString("Taburcular Raporu", baslik, brush, 50, 70); 111 | e.Graphics.DrawString("Dosya No Ad Soyad Sevk Tarihi Poliklinik Doktor Adı Doktor Soyadı", govde, brush, 50, 170); 112 | e.Graphics.DrawString("----------------------------------------------------------------------------------------------------------", govde, brush, 50, 190); 113 | for (int i = 0; i < dgwHasta.Rows.Count-1; i++) 114 | { 115 | DateTime tarih = DateTime.Parse(dgwHasta.Rows[i].Cells[3].Value.ToString()); 116 | e.Graphics.DrawString(dgwHasta.Rows[i].Cells[0].Value + " " + 117 | dgwHasta.Rows[i].Cells[1].Value + "\t" + 118 | dgwHasta.Rows[i].Cells[2].Value + "\t" + 119 | tarih.ToShortDateString()+ "\t" + 120 | dgwHasta.Rows[i].Cells[4].Value + "\t" + 121 | dgwHasta.Rows[i].Cells[5].Value + "\t" + 122 | dgwHasta.Rows[i].Cells[6].Value + "\t", 123 | govde, brush, 50, 210 + (i * 30)); 124 | } 125 | } 126 | 127 | private void btnOnizleme_Click(object sender, EventArgs e) 128 | { 129 | if (dgwHasta.Rows.Count < 2) 130 | { 131 | MessageBox.Show("Lütfen veri giriniz"); 132 | return; 133 | } 134 | printPreviewDialog1.Document = printDocument1; 135 | printPreviewDialog1.ShowDialog(); 136 | } 137 | } 138 | } 139 | -------------------------------------------------------------------------------- /SOHATS/Properties/Resources.resx: -------------------------------------------------------------------------------- 1 | 2 | 3 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | 79 | 80 | 81 | 82 | 83 | 84 | 85 | 86 | 87 | 88 | 89 | 90 | 91 | 92 | 93 | 94 | 95 | 96 | 97 | 98 | 99 | 100 | 101 | 102 | 103 | 104 | 105 | 106 | text/microsoft-resx 107 | 108 | 109 | 2.0 110 | 111 | 112 | System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 113 | 114 | 115 | System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 116 | 117 | -------------------------------------------------------------------------------- /SOHATS/Form1.resx: -------------------------------------------------------------------------------- 1 | 2 | 3 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | 79 | 80 | 81 | 82 | 83 | 84 | 85 | 86 | 87 | 88 | 89 | 90 | 91 | 92 | 93 | 94 | 95 | 96 | 97 | 98 | 99 | 100 | 101 | 102 | 103 | 104 | 105 | 106 | 107 | 108 | 109 | text/microsoft-resx 110 | 111 | 112 | 2.0 113 | 114 | 115 | System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 116 | 117 | 118 | System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 119 | 120 | -------------------------------------------------------------------------------- /SOHATS/Login.resx: -------------------------------------------------------------------------------- 1 | 2 | 3 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | 79 | 80 | 81 | 82 | 83 | 84 | 85 | 86 | 87 | 88 | 89 | 90 | 91 | 92 | 93 | 94 | 95 | 96 | 97 | 98 | 99 | 100 | 101 | 102 | 103 | 104 | 105 | 106 | 107 | 108 | 109 | text/microsoft-resx 110 | 111 | 112 | 2.0 113 | 114 | 115 | System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 116 | 117 | 118 | System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 119 | 120 | -------------------------------------------------------------------------------- /SOHATS/KulTanit.resx: -------------------------------------------------------------------------------- 1 | 2 | 3 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | 79 | 80 | 81 | 82 | 83 | 84 | 85 | 86 | 87 | 88 | 89 | 90 | 91 | 92 | 93 | 94 | 95 | 96 | 97 | 98 | 99 | 100 | 101 | 102 | 103 | 104 | 105 | 106 | 107 | 108 | 109 | text/microsoft-resx 110 | 111 | 112 | 2.0 113 | 114 | 115 | System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 116 | 117 | 118 | System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 119 | 120 | -------------------------------------------------------------------------------- /SOHATS/PoliTanit.resx: -------------------------------------------------------------------------------- 1 | 2 | 3 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | 79 | 80 | 81 | 82 | 83 | 84 | 85 | 86 | 87 | 88 | 89 | 90 | 91 | 92 | 93 | 94 | 95 | 96 | 97 | 98 | 99 | 100 | 101 | 102 | 103 | 104 | 105 | 106 | 107 | 108 | 109 | text/microsoft-resx 110 | 111 | 112 | 2.0 113 | 114 | 115 | System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 116 | 117 | 118 | System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 119 | 120 | -------------------------------------------------------------------------------- /SOHATS/Taburcu.resx: -------------------------------------------------------------------------------- 1 | 2 | 3 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | 79 | 80 | 81 | 82 | 83 | 84 | 85 | 86 | 87 | 88 | 89 | 90 | 91 | 92 | 93 | 94 | 95 | 96 | 97 | 98 | 99 | 100 | 101 | 102 | 103 | 104 | 105 | 106 | 107 | 108 | 109 | text/microsoft-resx 110 | 111 | 112 | 2.0 113 | 114 | 115 | System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 116 | 117 | 118 | System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 119 | 120 | -------------------------------------------------------------------------------- /SOHATS/HastaBilgileri.resx: -------------------------------------------------------------------------------- 1 | 2 | 3 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | 79 | 80 | 81 | 82 | 83 | 84 | 85 | 86 | 87 | 88 | 89 | 90 | 91 | 92 | 93 | 94 | 95 | 96 | 97 | 98 | 99 | 100 | 101 | 102 | 103 | 104 | 105 | 106 | 107 | 108 | 109 | text/microsoft-resx 110 | 111 | 112 | 2.0 113 | 114 | 115 | System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 116 | 117 | 118 | System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 119 | 120 | -------------------------------------------------------------------------------- /SOHATS/KullaniciPage.resx: -------------------------------------------------------------------------------- 1 | 2 | 3 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | 79 | 80 | 81 | 82 | 83 | 84 | 85 | 86 | 87 | 88 | 89 | 90 | 91 | 92 | 93 | 94 | 95 | 96 | 97 | 98 | 99 | 100 | 101 | 102 | 103 | 104 | 105 | 106 | 107 | 108 | 109 | text/microsoft-resx 110 | 111 | 112 | 2.0 113 | 114 | 115 | System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 116 | 117 | 118 | System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 119 | 120 | -------------------------------------------------------------------------------- /SOHATS/PoliklinikPage.resx: -------------------------------------------------------------------------------- 1 | 2 | 3 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | 79 | 80 | 81 | 82 | 83 | 84 | 85 | 86 | 87 | 88 | 89 | 90 | 91 | 92 | 93 | 94 | 95 | 96 | 97 | 98 | 99 | 100 | 101 | 102 | 103 | 104 | 105 | 106 | 107 | 108 | 109 | text/microsoft-resx 110 | 111 | 112 | 2.0 113 | 114 | 115 | System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 116 | 117 | 118 | System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 119 | 120 | -------------------------------------------------------------------------------- /SOHATS/AnaForm.resx: -------------------------------------------------------------------------------- 1 | 2 | 3 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | 79 | 80 | 81 | 82 | 83 | 84 | 85 | 86 | 87 | 88 | 89 | 90 | 91 | 92 | 93 | 94 | 95 | 96 | 97 | 98 | 99 | 100 | 101 | 102 | 103 | 104 | 105 | 106 | 107 | 108 | 109 | text/microsoft-resx 110 | 111 | 112 | 2.0 113 | 114 | 115 | System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 116 | 117 | 118 | System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 119 | 120 | 121 | 17, 17 122 | 123 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | ## Ignore Visual Studio temporary files, build results, and 2 | ## files generated by popular Visual Studio add-ons. 3 | ## 4 | ## Get latest from https://github.com/github/gitignore/blob/master/VisualStudio.gitignore 5 | 6 | # User-specific files 7 | *.rsuser 8 | *.suo 9 | *.user 10 | *.userosscache 11 | *.sln.docstates 12 | 13 | # User-specific files (MonoDevelop/Xamarin Studio) 14 | *.userprefs 15 | 16 | # Mono auto generated files 17 | mono_crash.* 18 | 19 | # Build results 20 | [Dd]ebug/ 21 | [Dd]ebugPublic/ 22 | [Rr]elease/ 23 | [Rr]eleases/ 24 | x64/ 25 | x86/ 26 | [Aa][Rr][Mm]/ 27 | [Aa][Rr][Mm]64/ 28 | bld/ 29 | [Bb]in/ 30 | [Oo]bj/ 31 | [Ll]og/ 32 | [Ll]ogs/ 33 | 34 | # Visual Studio 2015/2017 cache/options directory 35 | .vs/ 36 | # Uncomment if you have tasks that create the project's static files in wwwroot 37 | #wwwroot/ 38 | 39 | # Visual Studio 2017 auto generated files 40 | Generated\ Files/ 41 | 42 | # MSTest test Results 43 | [Tt]est[Rr]esult*/ 44 | [Bb]uild[Ll]og.* 45 | 46 | # NUnit 47 | *.VisualState.xml 48 | TestResult.xml 49 | nunit-*.xml 50 | 51 | # Build Results of an ATL Project 52 | [Dd]ebugPS/ 53 | [Rr]eleasePS/ 54 | dlldata.c 55 | 56 | # Benchmark Results 57 | BenchmarkDotNet.Artifacts/ 58 | 59 | # .NET Core 60 | project.lock.json 61 | project.fragment.lock.json 62 | artifacts/ 63 | 64 | # StyleCop 65 | StyleCopReport.xml 66 | 67 | # Files built by Visual Studio 68 | *_i.c 69 | *_p.c 70 | *_h.h 71 | *.ilk 72 | *.meta 73 | *.obj 74 | *.iobj 75 | *.pch 76 | *.pdb 77 | *.ipdb 78 | *.pgc 79 | *.pgd 80 | *.rsp 81 | *.sbr 82 | *.tlb 83 | *.tli 84 | *.tlh 85 | *.tmp 86 | *.tmp_proj 87 | *_wpftmp.csproj 88 | *.log 89 | *.vspscc 90 | *.vssscc 91 | .builds 92 | *.pidb 93 | *.svclog 94 | *.scc 95 | 96 | # Chutzpah Test files 97 | _Chutzpah* 98 | 99 | # Visual C++ cache files 100 | ipch/ 101 | *.aps 102 | *.ncb 103 | *.opendb 104 | *.opensdf 105 | *.sdf 106 | *.cachefile 107 | *.VC.db 108 | *.VC.VC.opendb 109 | 110 | # Visual Studio profiler 111 | *.psess 112 | *.vsp 113 | *.vspx 114 | *.sap 115 | 116 | # Visual Studio Trace Files 117 | *.e2e 118 | 119 | # TFS 2012 Local Workspace 120 | $tf/ 121 | 122 | # Guidance Automation Toolkit 123 | *.gpState 124 | 125 | # ReSharper is a .NET coding add-in 126 | _ReSharper*/ 127 | *.[Rr]e[Ss]harper 128 | *.DotSettings.user 129 | 130 | # TeamCity is a build add-in 131 | _TeamCity* 132 | 133 | # DotCover is a Code Coverage Tool 134 | *.dotCover 135 | 136 | # AxoCover is a Code Coverage Tool 137 | .axoCover/* 138 | !.axoCover/settings.json 139 | 140 | # Visual Studio code coverage results 141 | *.coverage 142 | *.coveragexml 143 | 144 | # NCrunch 145 | _NCrunch_* 146 | .*crunch*.local.xml 147 | nCrunchTemp_* 148 | 149 | # MightyMoose 150 | *.mm.* 151 | AutoTest.Net/ 152 | 153 | # Web workbench (sass) 154 | .sass-cache/ 155 | 156 | # Installshield output folder 157 | [Ee]xpress/ 158 | 159 | # DocProject is a documentation generator add-in 160 | DocProject/buildhelp/ 161 | DocProject/Help/*.HxT 162 | DocProject/Help/*.HxC 163 | DocProject/Help/*.hhc 164 | DocProject/Help/*.hhk 165 | DocProject/Help/*.hhp 166 | DocProject/Help/Html2 167 | DocProject/Help/html 168 | 169 | # Click-Once directory 170 | publish/ 171 | 172 | # Publish Web Output 173 | *.[Pp]ublish.xml 174 | *.azurePubxml 175 | # Note: Comment the next line if you want to checkin your web deploy settings, 176 | # but database connection strings (with potential passwords) will be unencrypted 177 | *.pubxml 178 | *.publishproj 179 | 180 | # Microsoft Azure Web App publish settings. Comment the next line if you want to 181 | # checkin your Azure Web App publish settings, but sensitive information contained 182 | # in these scripts will be unencrypted 183 | PublishScripts/ 184 | 185 | # NuGet Packages 186 | *.nupkg 187 | # NuGet Symbol Packages 188 | *.snupkg 189 | # The packages folder can be ignored because of Package Restore 190 | **/[Pp]ackages/* 191 | # except build/, which is used as an MSBuild target. 192 | !**/[Pp]ackages/build/ 193 | # Uncomment if necessary however generally it will be regenerated when needed 194 | #!**/[Pp]ackages/repositories.config 195 | # NuGet v3's project.json files produces more ignorable files 196 | *.nuget.props 197 | *.nuget.targets 198 | 199 | # Microsoft Azure Build Output 200 | csx/ 201 | *.build.csdef 202 | 203 | # Microsoft Azure Emulator 204 | ecf/ 205 | rcf/ 206 | 207 | # Windows Store app package directories and files 208 | AppPackages/ 209 | BundleArtifacts/ 210 | Package.StoreAssociation.xml 211 | _pkginfo.txt 212 | *.appx 213 | *.appxbundle 214 | *.appxupload 215 | 216 | # Visual Studio cache files 217 | # files ending in .cache can be ignored 218 | *.[Cc]ache 219 | # but keep track of directories ending in .cache 220 | !?*.[Cc]ache/ 221 | 222 | # Others 223 | ClientBin/ 224 | ~$* 225 | *~ 226 | *.dbmdl 227 | *.dbproj.schemaview 228 | *.jfm 229 | *.pfx 230 | *.publishsettings 231 | orleans.codegen.cs 232 | 233 | # Including strong name files can present a security risk 234 | # (https://github.com/github/gitignore/pull/2483#issue-259490424) 235 | #*.snk 236 | 237 | # Since there are multiple workflows, uncomment next line to ignore bower_components 238 | # (https://github.com/github/gitignore/pull/1529#issuecomment-104372622) 239 | #bower_components/ 240 | 241 | # RIA/Silverlight projects 242 | Generated_Code/ 243 | 244 | # Backup & report files from converting an old project file 245 | # to a newer Visual Studio version. Backup files are not needed, 246 | # because we have git ;-) 247 | _UpgradeReport_Files/ 248 | Backup*/ 249 | UpgradeLog*.XML 250 | UpgradeLog*.htm 251 | ServiceFabricBackup/ 252 | *.rptproj.bak 253 | 254 | # SQL Server files 255 | *.mdf 256 | *.ldf 257 | *.ndf 258 | 259 | # Business Intelligence projects 260 | *.rdl.data 261 | *.bim.layout 262 | *.bim_*.settings 263 | *.rptproj.rsuser 264 | *- [Bb]ackup.rdl 265 | *- [Bb]ackup ([0-9]).rdl 266 | *- [Bb]ackup ([0-9][0-9]).rdl 267 | 268 | # Microsoft Fakes 269 | FakesAssemblies/ 270 | 271 | # GhostDoc plugin setting file 272 | *.GhostDoc.xml 273 | 274 | # Node.js Tools for Visual Studio 275 | .ntvs_analysis.dat 276 | node_modules/ 277 | 278 | # Visual Studio 6 build log 279 | *.plg 280 | 281 | # Visual Studio 6 workspace options file 282 | *.opt 283 | 284 | # Visual Studio 6 auto-generated workspace file (contains which files were open etc.) 285 | *.vbw 286 | 287 | # Visual Studio LightSwitch build output 288 | **/*.HTMLClient/GeneratedArtifacts 289 | **/*.DesktopClient/GeneratedArtifacts 290 | **/*.DesktopClient/ModelManifest.xml 291 | **/*.Server/GeneratedArtifacts 292 | **/*.Server/ModelManifest.xml 293 | _Pvt_Extensions 294 | 295 | # Paket dependency manager 296 | .paket/paket.exe 297 | paket-files/ 298 | 299 | # FAKE - F# Make 300 | .fake/ 301 | 302 | # CodeRush personal settings 303 | .cr/personal 304 | 305 | # Python Tools for Visual Studio (PTVS) 306 | __pycache__/ 307 | *.pyc 308 | 309 | # Cake - Uncomment if you are using it 310 | # tools/** 311 | # !tools/packages.config 312 | 313 | # Tabs Studio 314 | *.tss 315 | 316 | # Telerik's JustMock configuration file 317 | *.jmconfig 318 | 319 | # BizTalk build output 320 | *.btp.cs 321 | *.btm.cs 322 | *.odx.cs 323 | *.xsd.cs 324 | 325 | # OpenCover UI analysis results 326 | OpenCover/ 327 | 328 | # Azure Stream Analytics local run output 329 | ASALocalRun/ 330 | 331 | # MSBuild Binary and Structured Log 332 | *.binlog 333 | 334 | # NVidia Nsight GPU debugger configuration file 335 | *.nvuser 336 | 337 | # MFractors (Xamarin productivity tool) working folder 338 | .mfractor/ 339 | 340 | # Local History for Visual Studio 341 | .localhistory/ 342 | 343 | # BeatPulse healthcheck temp database 344 | healthchecksdb 345 | 346 | # Backup folder for Package Reference Convert tool in Visual Studio 2017 347 | MigrationBackup/ 348 | 349 | # Ionide (cross platform F# VS Code tools) working folder 350 | .ionide/ 351 | -------------------------------------------------------------------------------- /SOHATS/Login.Designer.cs: -------------------------------------------------------------------------------- 1 | namespace SOHATS 2 | { 3 | partial class Login 4 | { 5 | /// 6 | /// Required designer variable. 7 | /// 8 | private System.ComponentModel.IContainer components = null; 9 | 10 | /// 11 | /// Clean up any resources being used. 12 | /// 13 | /// true if managed resources should be disposed; otherwise, false. 14 | protected override void Dispose(bool disposing) 15 | { 16 | if (disposing && (components != null)) 17 | { 18 | components.Dispose(); 19 | } 20 | base.Dispose(disposing); 21 | } 22 | 23 | #region Windows Form Designer generated code 24 | 25 | /// 26 | /// Required method for Designer support - do not modify 27 | /// the contents of this method with the code editor. 28 | /// 29 | private void InitializeComponent() 30 | { 31 | this.label1 = new System.Windows.Forms.Label(); 32 | this.txtKullanici = new System.Windows.Forms.TextBox(); 33 | this.txtSifre = new System.Windows.Forms.TextBox(); 34 | this.label2 = new System.Windows.Forms.Label(); 35 | this.btnGiris = new System.Windows.Forms.Button(); 36 | this.btnTemizle = new System.Windows.Forms.Button(); 37 | this.btnCikis = new System.Windows.Forms.Button(); 38 | this.label3 = new System.Windows.Forms.Label(); 39 | this.SuspendLayout(); 40 | // 41 | // label1 42 | // 43 | this.label1.AutoSize = true; 44 | this.label1.Location = new System.Drawing.Point(12, 45); 45 | this.label1.Name = "label1"; 46 | this.label1.Size = new System.Drawing.Size(118, 24); 47 | this.label1.TabIndex = 0; 48 | this.label1.Text = "Kullanıcı Adı:"; 49 | // 50 | // txtKullanici 51 | // 52 | this.txtKullanici.Location = new System.Drawing.Point(143, 43); 53 | this.txtKullanici.MaxLength = 50; 54 | this.txtKullanici.Name = "txtKullanici"; 55 | this.txtKullanici.Size = new System.Drawing.Size(310, 29); 56 | this.txtKullanici.TabIndex = 1; 57 | this.txtKullanici.KeyPress += new System.Windows.Forms.KeyPressEventHandler(this.txtKullanici_KeyPress); 58 | // 59 | // txtSifre 60 | // 61 | this.txtSifre.Location = new System.Drawing.Point(143, 79); 62 | this.txtSifre.MaxLength = 20; 63 | this.txtSifre.Name = "txtSifre"; 64 | this.txtSifre.PasswordChar = '*'; 65 | this.txtSifre.Size = new System.Drawing.Size(310, 29); 66 | this.txtSifre.TabIndex = 2; 67 | this.txtSifre.KeyPress += new System.Windows.Forms.KeyPressEventHandler(this.txtKullanici_KeyPress); 68 | // 69 | // label2 70 | // 71 | this.label2.AutoSize = true; 72 | this.label2.Location = new System.Drawing.Point(78, 82); 73 | this.label2.Name = "label2"; 74 | this.label2.Size = new System.Drawing.Size(52, 24); 75 | this.label2.TabIndex = 2; 76 | this.label2.Text = "Şifre:"; 77 | // 78 | // btnGiris 79 | // 80 | this.btnGiris.BackColor = System.Drawing.SystemColors.ActiveCaption; 81 | this.btnGiris.ForeColor = System.Drawing.Color.Green; 82 | this.btnGiris.Location = new System.Drawing.Point(18, 126); 83 | this.btnGiris.Name = "btnGiris"; 84 | this.btnGiris.Size = new System.Drawing.Size(105, 55); 85 | this.btnGiris.TabIndex = 3; 86 | this.btnGiris.Text = "Giriş"; 87 | this.btnGiris.UseVisualStyleBackColor = false; 88 | this.btnGiris.Click += new System.EventHandler(this.btnGiris_Click); 89 | // 90 | // btnTemizle 91 | // 92 | this.btnTemizle.BackColor = System.Drawing.SystemColors.ActiveCaption; 93 | this.btnTemizle.ForeColor = System.Drawing.Color.Yellow; 94 | this.btnTemizle.Location = new System.Drawing.Point(129, 126); 95 | this.btnTemizle.Name = "btnTemizle"; 96 | this.btnTemizle.Size = new System.Drawing.Size(105, 55); 97 | this.btnTemizle.TabIndex = 4; 98 | this.btnTemizle.Text = "Temizle"; 99 | this.btnTemizle.UseVisualStyleBackColor = false; 100 | this.btnTemizle.Click += new System.EventHandler(this.btnTemizle_Click); 101 | // 102 | // btnCikis 103 | // 104 | this.btnCikis.BackColor = System.Drawing.SystemColors.ActiveCaption; 105 | this.btnCikis.ForeColor = System.Drawing.Color.Maroon; 106 | this.btnCikis.Location = new System.Drawing.Point(349, 126); 107 | this.btnCikis.Name = "btnCikis"; 108 | this.btnCikis.Size = new System.Drawing.Size(105, 55); 109 | this.btnCikis.TabIndex = 5; 110 | this.btnCikis.Text = "Çıkış"; 111 | this.btnCikis.UseVisualStyleBackColor = false; 112 | this.btnCikis.Click += new System.EventHandler(this.btnCikis_Click); 113 | // 114 | // label3 115 | // 116 | this.label3.BackColor = System.Drawing.SystemColors.MenuHighlight; 117 | this.label3.Dock = System.Windows.Forms.DockStyle.Top; 118 | this.label3.ForeColor = System.Drawing.Color.White; 119 | this.label3.Location = new System.Drawing.Point(0, 0); 120 | this.label3.Name = "label3"; 121 | this.label3.Size = new System.Drawing.Size(471, 35); 122 | this.label3.TabIndex = 11; 123 | this.label3.Text = " SOHATS - Login"; 124 | this.label3.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; 125 | // 126 | // Login 127 | // 128 | this.AutoScaleDimensions = new System.Drawing.SizeF(11F, 24F); 129 | this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; 130 | this.BackColor = System.Drawing.SystemColors.GradientInactiveCaption; 131 | this.ClientSize = new System.Drawing.Size(471, 193); 132 | this.ControlBox = false; 133 | this.Controls.Add(this.label3); 134 | this.Controls.Add(this.btnCikis); 135 | this.Controls.Add(this.btnTemizle); 136 | this.Controls.Add(this.btnGiris); 137 | this.Controls.Add(this.txtSifre); 138 | this.Controls.Add(this.label2); 139 | this.Controls.Add(this.txtKullanici); 140 | this.Controls.Add(this.label1); 141 | this.Font = new System.Drawing.Font("Microsoft Sans Serif", 14.25F); 142 | this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None; 143 | this.KeyPreview = true; 144 | this.Margin = new System.Windows.Forms.Padding(6); 145 | this.Name = "Login"; 146 | this.Text = "SOHATS - Login"; 147 | this.ResumeLayout(false); 148 | this.PerformLayout(); 149 | 150 | } 151 | 152 | #endregion 153 | 154 | private System.Windows.Forms.Label label1; 155 | private System.Windows.Forms.TextBox txtKullanici; 156 | private System.Windows.Forms.TextBox txtSifre; 157 | private System.Windows.Forms.Label label2; 158 | private System.Windows.Forms.Button btnGiris; 159 | private System.Windows.Forms.Button btnTemizle; 160 | private System.Windows.Forms.Button btnCikis; 161 | private System.Windows.Forms.Label label3; 162 | } 163 | } -------------------------------------------------------------------------------- /SOHATS/PoliklinikPage.Designer.cs: -------------------------------------------------------------------------------- 1 | namespace SOHATS 2 | { 3 | partial class PoliklinikPage 4 | { 5 | /// 6 | /// Required designer variable. 7 | /// 8 | private System.ComponentModel.IContainer components = null; 9 | 10 | /// 11 | /// Clean up any resources being used. 12 | /// 13 | /// true if managed resources should be disposed; otherwise, false. 14 | protected override void Dispose(bool disposing) 15 | { 16 | if (disposing && (components != null)) 17 | { 18 | components.Dispose(); 19 | } 20 | base.Dispose(disposing); 21 | } 22 | 23 | #region Windows Form Designer generated code 24 | 25 | /// 26 | /// Required method for Designer support - do not modify 27 | /// the contents of this method with the code editor. 28 | /// 29 | private void InitializeComponent() 30 | { 31 | this.cbGecerli = new System.Windows.Forms.CheckBox(); 32 | this.label1 = new System.Windows.Forms.Label(); 33 | this.txtAciklama = new System.Windows.Forms.TextBox(); 34 | this.label2 = new System.Windows.Forms.Label(); 35 | this.btnGuncelle = new System.Windows.Forms.Button(); 36 | this.btnSil = new System.Windows.Forms.Button(); 37 | this.btnCikis = new System.Windows.Forms.Button(); 38 | this.txtPoliklinik = new System.Windows.Forms.TextBox(); 39 | this.SuspendLayout(); 40 | // 41 | // cbGecerli 42 | // 43 | this.cbGecerli.AutoSize = true; 44 | this.cbGecerli.Location = new System.Drawing.Point(167, 59); 45 | this.cbGecerli.Margin = new System.Windows.Forms.Padding(11); 46 | this.cbGecerli.Name = "cbGecerli"; 47 | this.cbGecerli.Size = new System.Drawing.Size(178, 28); 48 | this.cbGecerli.TabIndex = 5; 49 | this.cbGecerli.Text = "Geçerli / Geçersiz"; 50 | this.cbGecerli.UseVisualStyleBackColor = true; 51 | // 52 | // label1 53 | // 54 | this.label1.AutoSize = true; 55 | this.label1.Location = new System.Drawing.Point(17, 23); 56 | this.label1.Margin = new System.Windows.Forms.Padding(11, 0, 11, 0); 57 | this.label1.Name = "label1"; 58 | this.label1.Size = new System.Drawing.Size(115, 24); 59 | this.label1.TabIndex = 3; 60 | this.label1.Text = "Poliklinik Adı"; 61 | // 62 | // txtAciklama 63 | // 64 | this.txtAciklama.Location = new System.Drawing.Point(21, 120); 65 | this.txtAciklama.MaxLength = 255; 66 | this.txtAciklama.Multiline = true; 67 | this.txtAciklama.Name = "txtAciklama"; 68 | this.txtAciklama.Size = new System.Drawing.Size(355, 172); 69 | this.txtAciklama.TabIndex = 6; 70 | // 71 | // label2 72 | // 73 | this.label2.AutoSize = true; 74 | this.label2.Font = new System.Drawing.Font("Microsoft Sans Serif", 11.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(162))); 75 | this.label2.Location = new System.Drawing.Point(18, 99); 76 | this.label2.Margin = new System.Windows.Forms.Padding(11, 0, 11, 0); 77 | this.label2.Name = "label2"; 78 | this.label2.Size = new System.Drawing.Size(68, 18); 79 | this.label2.TabIndex = 7; 80 | this.label2.Text = "Açıklama"; 81 | // 82 | // btnGuncelle 83 | // 84 | this.btnGuncelle.BackColor = System.Drawing.SystemColors.ActiveCaption; 85 | this.btnGuncelle.ForeColor = System.Drawing.Color.Green; 86 | this.btnGuncelle.Location = new System.Drawing.Point(21, 298); 87 | this.btnGuncelle.Name = "btnGuncelle"; 88 | this.btnGuncelle.Size = new System.Drawing.Size(95, 57); 89 | this.btnGuncelle.TabIndex = 8; 90 | this.btnGuncelle.Text = "Güncelle"; 91 | this.btnGuncelle.UseVisualStyleBackColor = false; 92 | this.btnGuncelle.Click += new System.EventHandler(this.btnGuncelle_Click); 93 | // 94 | // btnSil 95 | // 96 | this.btnSil.BackColor = System.Drawing.SystemColors.ActiveCaption; 97 | this.btnSil.ForeColor = System.Drawing.Color.Red; 98 | this.btnSil.Location = new System.Drawing.Point(122, 298); 99 | this.btnSil.Name = "btnSil"; 100 | this.btnSil.Size = new System.Drawing.Size(95, 57); 101 | this.btnSil.TabIndex = 9; 102 | this.btnSil.Text = "Sil"; 103 | this.btnSil.UseVisualStyleBackColor = false; 104 | this.btnSil.Click += new System.EventHandler(this.btnSil_Click); 105 | // 106 | // btnCikis 107 | // 108 | this.btnCikis.BackColor = System.Drawing.SystemColors.ActiveCaption; 109 | this.btnCikis.ForeColor = System.Drawing.Color.Black; 110 | this.btnCikis.Location = new System.Drawing.Point(281, 298); 111 | this.btnCikis.Name = "btnCikis"; 112 | this.btnCikis.Size = new System.Drawing.Size(95, 57); 113 | this.btnCikis.TabIndex = 10; 114 | this.btnCikis.Text = "Çıkış"; 115 | this.btnCikis.UseVisualStyleBackColor = false; 116 | this.btnCikis.Click += new System.EventHandler(this.btnCikis_Click); 117 | // 118 | // txtPoliklinik 119 | // 120 | this.txtPoliklinik.Location = new System.Drawing.Point(146, 20); 121 | this.txtPoliklinik.MaxLength = 50; 122 | this.txtPoliklinik.Name = "txtPoliklinik"; 123 | this.txtPoliklinik.Size = new System.Drawing.Size(230, 29); 124 | this.txtPoliklinik.TabIndex = 1; 125 | // 126 | // PoliklinikPage 127 | // 128 | this.AutoScaleDimensions = new System.Drawing.SizeF(11F, 24F); 129 | this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; 130 | this.BackColor = System.Drawing.SystemColors.GradientInactiveCaption; 131 | this.ClientSize = new System.Drawing.Size(397, 376); 132 | this.Controls.Add(this.txtPoliklinik); 133 | this.Controls.Add(this.btnCikis); 134 | this.Controls.Add(this.btnSil); 135 | this.Controls.Add(this.btnGuncelle); 136 | this.Controls.Add(this.label2); 137 | this.Controls.Add(this.txtAciklama); 138 | this.Controls.Add(this.cbGecerli); 139 | this.Controls.Add(this.label1); 140 | this.Font = new System.Drawing.Font("Microsoft Sans Serif", 14.25F); 141 | this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.SizableToolWindow; 142 | this.Margin = new System.Windows.Forms.Padding(6); 143 | this.Name = "PoliklinikPage"; 144 | this.ShowIcon = false; 145 | this.Text = "Poliklinik"; 146 | this.ResumeLayout(false); 147 | this.PerformLayout(); 148 | 149 | } 150 | 151 | #endregion 152 | 153 | private System.Windows.Forms.CheckBox cbGecerli; 154 | private System.Windows.Forms.Label label1; 155 | private System.Windows.Forms.TextBox txtAciklama; 156 | private System.Windows.Forms.Label label2; 157 | private System.Windows.Forms.Button btnGuncelle; 158 | private System.Windows.Forms.Button btnSil; 159 | private System.Windows.Forms.Button btnCikis; 160 | private System.Windows.Forms.TextBox txtPoliklinik; 161 | } 162 | } -------------------------------------------------------------------------------- /SOHATS/AnaForm.Designer.cs: -------------------------------------------------------------------------------- 1 | namespace SOHATS 2 | { 3 | partial class AnaForm 4 | { 5 | /// 6 | /// Required designer variable. 7 | /// 8 | private System.ComponentModel.IContainer components = null; 9 | 10 | /// 11 | /// Clean up any resources being used. 12 | /// 13 | /// true if managed resources should be disposed; otherwise, false. 14 | protected override void Dispose(bool disposing) 15 | { 16 | if (disposing && (components != null)) 17 | { 18 | components.Dispose(); 19 | } 20 | base.Dispose(disposing); 21 | } 22 | 23 | #region Windows Form Designer generated code 24 | 25 | /// 26 | /// Required method for Designer support - do not modify 27 | /// the contents of this method with the code editor. 28 | /// 29 | private void InitializeComponent() 30 | { 31 | this.menuStrip1 = new System.Windows.Forms.MenuStrip(); 32 | this.referanslar = new System.Windows.Forms.ToolStripMenuItem(); 33 | this.logout = new System.Windows.Forms.ToolStripMenuItem(); 34 | this.poliklinikTanitma = new System.Windows.Forms.ToolStripMenuItem(); 35 | this.kullanıcıTanıtma = new System.Windows.Forms.ToolStripMenuItem(); 36 | this.cikis = new System.Windows.Forms.ToolStripMenuItem(); 37 | this.hastaKabul = new System.Windows.Forms.ToolStripMenuItem(); 38 | this.hastaİşlemleriToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); 39 | this.raporlar = new System.Windows.Forms.ToolStripMenuItem(); 40 | this.rapor1ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); 41 | this.menuStrip1.SuspendLayout(); 42 | this.SuspendLayout(); 43 | // 44 | // menuStrip1 45 | // 46 | this.menuStrip1.Enabled = false; 47 | this.menuStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { 48 | this.referanslar, 49 | this.hastaKabul, 50 | this.raporlar}); 51 | this.menuStrip1.Location = new System.Drawing.Point(0, 0); 52 | this.menuStrip1.Name = "menuStrip1"; 53 | this.menuStrip1.Padding = new System.Windows.Forms.Padding(11, 4, 0, 4); 54 | this.menuStrip1.Size = new System.Drawing.Size(1343, 27); 55 | this.menuStrip1.TabIndex = 0; 56 | this.menuStrip1.Text = "menuStrip1"; 57 | // 58 | // referanslar 59 | // 60 | this.referanslar.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] { 61 | this.logout, 62 | this.poliklinikTanitma, 63 | this.kullanıcıTanıtma, 64 | this.cikis}); 65 | this.referanslar.Enabled = false; 66 | this.referanslar.Name = "referanslar"; 67 | this.referanslar.Size = new System.Drawing.Size(77, 19); 68 | this.referanslar.Text = "Referanslar"; 69 | this.referanslar.Visible = false; 70 | // 71 | // logout 72 | // 73 | this.logout.Name = "logout"; 74 | this.logout.Size = new System.Drawing.Size(167, 22); 75 | this.logout.Text = "Logout"; 76 | this.logout.Click += new System.EventHandler(this.logout_Click); 77 | // 78 | // poliklinikTanitma 79 | // 80 | this.poliklinikTanitma.Name = "poliklinikTanitma"; 81 | this.poliklinikTanitma.Size = new System.Drawing.Size(167, 22); 82 | this.poliklinikTanitma.Text = "Poliklinik Tanıtma"; 83 | this.poliklinikTanitma.Click += new System.EventHandler(this.poliklinikTanitma_Click); 84 | // 85 | // kullanıcıTanıtma 86 | // 87 | this.kullanıcıTanıtma.Name = "kullanıcıTanıtma"; 88 | this.kullanıcıTanıtma.Size = new System.Drawing.Size(167, 22); 89 | this.kullanıcıTanıtma.Text = "Kullanıcı Tanıtma"; 90 | this.kullanıcıTanıtma.Click += new System.EventHandler(this.kullanıcıTanıtma_Click); 91 | // 92 | // cikis 93 | // 94 | this.cikis.Name = "cikis"; 95 | this.cikis.Size = new System.Drawing.Size(167, 22); 96 | this.cikis.Text = "Çıkış"; 97 | this.cikis.Click += new System.EventHandler(this.cikis_Click); 98 | // 99 | // hastaKabul 100 | // 101 | this.hastaKabul.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] { 102 | this.hastaİşlemleriToolStripMenuItem}); 103 | this.hastaKabul.Name = "hastaKabul"; 104 | this.hastaKabul.Size = new System.Drawing.Size(82, 19); 105 | this.hastaKabul.Text = "Hasta Kabul"; 106 | // 107 | // hastaİşlemleriToolStripMenuItem 108 | // 109 | this.hastaİşlemleriToolStripMenuItem.Name = "hastaİşlemleriToolStripMenuItem"; 110 | this.hastaİşlemleriToolStripMenuItem.ShortcutKeys = System.Windows.Forms.Keys.F2; 111 | this.hastaİşlemleriToolStripMenuItem.Size = new System.Drawing.Size(170, 22); 112 | this.hastaİşlemleriToolStripMenuItem.Text = "Hasta İşlemleri"; 113 | this.hastaİşlemleriToolStripMenuItem.Click += new System.EventHandler(this.hastaİşlemleriToolStripMenuItem_Click); 114 | // 115 | // raporlar 116 | // 117 | this.raporlar.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] { 118 | this.rapor1ToolStripMenuItem}); 119 | this.raporlar.Name = "raporlar"; 120 | this.raporlar.Size = new System.Drawing.Size(63, 19); 121 | this.raporlar.Text = "Raporlar"; 122 | // 123 | // rapor1ToolStripMenuItem 124 | // 125 | this.rapor1ToolStripMenuItem.Name = "rapor1ToolStripMenuItem"; 126 | this.rapor1ToolStripMenuItem.Size = new System.Drawing.Size(180, 22); 127 | this.rapor1ToolStripMenuItem.Text = "Rapor1(gecici)"; 128 | this.rapor1ToolStripMenuItem.Click += new System.EventHandler(this.rapor1ToolStripMenuItem_Click); 129 | // 130 | // AnaForm 131 | // 132 | this.AutoScaleDimensions = new System.Drawing.SizeF(11F, 24F); 133 | this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; 134 | this.ClientSize = new System.Drawing.Size(1343, 800); 135 | this.Controls.Add(this.menuStrip1); 136 | this.Font = new System.Drawing.Font("Microsoft Sans Serif", 14.25F); 137 | this.IsMdiContainer = true; 138 | this.MainMenuStrip = this.menuStrip1; 139 | this.Margin = new System.Windows.Forms.Padding(6); 140 | this.MaximizeBox = false; 141 | this.Name = "AnaForm"; 142 | this.Text = "Sağlık Ocağı Hasta Takip Sistemi"; 143 | this.Load += new System.EventHandler(this.AnaForm_Load); 144 | this.menuStrip1.ResumeLayout(false); 145 | this.menuStrip1.PerformLayout(); 146 | this.ResumeLayout(false); 147 | this.PerformLayout(); 148 | 149 | } 150 | 151 | #endregion 152 | public System.Windows.Forms.ToolStripMenuItem hastaKabul; 153 | public System.Windows.Forms.ToolStripMenuItem raporlar; 154 | public System.Windows.Forms.ToolStripMenuItem referanslar; 155 | public System.Windows.Forms.MenuStrip menuStrip1; 156 | private System.Windows.Forms.ToolStripMenuItem logout; 157 | private System.Windows.Forms.ToolStripMenuItem poliklinikTanitma; 158 | private System.Windows.Forms.ToolStripMenuItem kullanıcıTanıtma; 159 | private System.Windows.Forms.ToolStripMenuItem cikis; 160 | public System.Windows.Forms.ToolStripMenuItem hastaİşlemleriToolStripMenuItem; 161 | private System.Windows.Forms.ToolStripMenuItem rapor1ToolStripMenuItem; 162 | } 163 | } 164 | 165 | -------------------------------------------------------------------------------- /SOHATS/KullaniciPage.cs: -------------------------------------------------------------------------------- 1 | using SOHATS.DB; 2 | using System; 3 | using System.Collections.Generic; 4 | using System.ComponentModel; 5 | using System.Data; 6 | using System.Drawing; 7 | using System.Linq; 8 | using System.Text; 9 | using System.Threading.Tasks; 10 | using System.Windows.Forms; 11 | 12 | namespace SOHATS 13 | { 14 | public partial class KullaniciPage : Form 15 | { 16 | public KullaniciPage(kullanici kullanicis) 17 | { 18 | InitializeComponent(); 19 | kullanici = kullanicis; 20 | 21 | dtpİseBaslama.MaxDate = DateTime.Today.AddHours(DateTime.Now.Hour).AddMinutes(DateTime.Now.Minute); 22 | dtpDogumTarihi.MaxDate = DateTime.Today.AddHours(DateTime.Now.Hour).AddMinutes(DateTime.Now.Minute); 23 | 24 | } 25 | 26 | public KullaniciPage() 27 | { 28 | InitializeComponent(); 29 | 30 | dtpİseBaslama.MaxDate = DateTime.Today; 31 | dtpDogumTarihi.MaxDate = DateTime.Today; 32 | txtKullaniciKodu.Enabled = false; 33 | 34 | } 35 | 36 | DatabaseControl databaseControl = new DatabaseControl(); 37 | kullanici kullanici; 38 | 39 | private void KullaniciPage_Load(object sender, EventArgs e) 40 | { 41 | List unvanlar = databaseControl.GetUnvan(); 42 | foreach (string unvan in unvanlar) 43 | { 44 | if (unvan != null && unvan != System.String.Empty) 45 | cbUnvan.Items.Add(unvan); 46 | } 47 | 48 | int kullaniciKodu = databaseControl.GetKullaniciKodu(); 49 | 50 | txtKullaniciKodu.Text = (kullaniciKodu + 1).ToString(); 51 | 52 | if (kullanici == null) 53 | { 54 | return; 55 | } 56 | 57 | txtKullaniciKodu.Text = kullanici.kodu.ToString(); 58 | 59 | txtTC.Text = kullanici.tckimlikno; 60 | txtDogumYeri.Text = kullanici.dogumyeri; 61 | txtBabaAdi.Text = kullanici.babaad; 62 | txtAnneAdi.Text = kullanici.annead; 63 | txtGSM.Text = kullanici.ceptel; 64 | txtTelefonNo.Text = kullanici.evtel; 65 | if (Convert.ToBoolean(kullanici.yetki) == true) 66 | cbYetkili.Checked = true; 67 | txtAdres.Text = kullanici.adres; 68 | txtKullaniciAdi.Text = kullanici.username; 69 | txtSifre.Text = kullanici.sifre; 70 | 71 | txtAd.Text = kullanici.ad; 72 | txtSoyad.Text = kullanici.soyad; 73 | txtMaas.Text = kullanici.maas; 74 | dtpİseBaslama.Text = kullanici.isebaslama.ToString(); 75 | dtpDogumTarihi.Text = kullanici.dogumtarihi.ToString(); 76 | cbUnvan.Text = kullanici.unvan; 77 | cbCinsiyet.Text = kullanici.cinsiyet; 78 | cbMedeniHali.Text = kullanici.medenihal; 79 | cbKanGrubu.Text = kullanici.kangrubu; 80 | 81 | 82 | } 83 | 84 | private void btnTemizle_Click(object sender, EventArgs e) 85 | { 86 | txtTC.Text = ""; 87 | txtDogumYeri.Text = ""; 88 | txtBabaAdi.Text = ""; 89 | txtAnneAdi.Text = ""; 90 | txtGSM.Text = ""; 91 | txtTelefonNo.Text = ""; 92 | cbYetkili.Checked = false; 93 | txtAdres.Text = ""; 94 | txtKullaniciAdi.Text = ""; 95 | txtSifre.Text = ""; 96 | 97 | txtAd.Text = ""; 98 | txtSoyad.Text = ""; 99 | txtMaas.Text = ""; 100 | dtpİseBaslama.Text = ""; 101 | dtpDogumTarihi.Text = ""; 102 | cbUnvan.Text = ""; 103 | cbCinsiyet.Text = ""; 104 | cbMedeniHali.Text = ""; 105 | cbKanGrubu.Text = ""; 106 | } 107 | 108 | private void btnCikis_Click(object sender, EventArgs e) 109 | { 110 | this.Close(); 111 | } 112 | 113 | private void btnSil_Click(object sender, EventArgs e) 114 | { 115 | databaseControl.DeleteKullanici(new kullanici 116 | { 117 | kodu = Convert.ToInt32(txtKullaniciKodu.Text) 118 | }); 119 | MessageBox.Show("Kullanıcı Sİlindi"); 120 | this.Close(); 121 | } 122 | 123 | private void btnGuncelle_Click(object sender, EventArgs e) 124 | { 125 | if (!Kontrol()) 126 | { 127 | MessageBox.Show("Lütfen tüm yerleri doldurunuz"); 128 | return; 129 | } 130 | 131 | if (btnGuncelle.Text == "Güncelle") 132 | { 133 | databaseControl.UpdateKullanici(new kullanici 134 | { 135 | kodu = Convert.ToInt32(txtKullaniciKodu.Text), 136 | ad = txtAd.Text, 137 | soyad = txtSoyad.Text, 138 | sifre = txtSifre.Text, 139 | yetki = cbYetkili.Checked ? "true" : "false", 140 | evtel = txtTelefonNo.Text, 141 | ceptel = txtGSM.Text, 142 | adres = txtAdres.Text, 143 | unvan = cbUnvan.Text, 144 | isebaslama = dtpİseBaslama.Value, 145 | maas = txtMaas.Text, 146 | dogumyeri = txtDogumYeri.Text, 147 | annead = txtAnneAdi.Text, 148 | babaad = txtBabaAdi.Text, 149 | cinsiyet = cbCinsiyet.Text, 150 | kangrubu = cbKanGrubu.Text, 151 | medenihal = cbMedeniHali.Text, 152 | dogumtarihi = dtpDogumTarihi.Value, 153 | tckimlikno = txtTC.Text, 154 | username = txtKullaniciAdi.Text 155 | }); 156 | MessageBox.Show("Kullanıcı Güncelledi"); 157 | this.Close(); 158 | } 159 | else 160 | { 161 | databaseControl.AddKullanici(new kullanici 162 | { 163 | ad = txtAd.Text, 164 | soyad = txtSoyad.Text, 165 | sifre = txtSifre.Text, 166 | yetki = cbYetkili.Checked ? "true" : "false", 167 | evtel = txtTelefonNo.Text, 168 | ceptel = txtGSM.Text, 169 | adres = txtAdres.Text, 170 | unvan = cbUnvan.Text, 171 | isebaslama = dtpİseBaslama.Value, 172 | maas = txtMaas.Text, 173 | dogumyeri = txtDogumYeri.Text, 174 | annead = txtAnneAdi.Text, 175 | babaad = txtBabaAdi.Text, 176 | cinsiyet = cbCinsiyet.Text, 177 | kangrubu = cbKanGrubu.Text, 178 | medenihal = cbMedeniHali.Text, 179 | dogumtarihi = dtpDogumTarihi.Value, 180 | tckimlikno = txtTC.Text, 181 | username = txtKullaniciAdi.Text 182 | }); 183 | MessageBox.Show("Kullanıcı Kaydedildi"); 184 | this.Close(); 185 | } 186 | 187 | } 188 | 189 | private void txtMaas_KeyPress(object sender, KeyPressEventArgs e) 190 | { 191 | e.Handled = !char.IsDigit(e.KeyChar) && !char.IsControl(e.KeyChar); 192 | } 193 | 194 | private void txtDogumYeri_KeyPress(object sender, KeyPressEventArgs e) 195 | { 196 | e.Handled = !char.IsLetter(e.KeyChar) && !char.IsControl(e.KeyChar) 197 | && !char.IsSeparator(e.KeyChar); 198 | } 199 | 200 | private bool Kontrol() 201 | { 202 | if (txtTC.Text == "" | 203 | txtAd.Text == "" || 204 | txtSoyad.Text == "" || 205 | txtAdres.Text == "" || 206 | cbCinsiyet.Text == "" || 207 | txtGSM.Text == "" || 208 | txtKullaniciAdi.Text == "" || 209 | txtSifre.Text == "") 210 | return false; 211 | return true; 212 | } 213 | } 214 | } 215 | -------------------------------------------------------------------------------- /SOHATS/DosyaBul.cs: -------------------------------------------------------------------------------- 1 | using SOHATS.DB; 2 | using System; 3 | using System.Collections.Generic; 4 | using System.ComponentModel; 5 | using System.Data; 6 | using System.Drawing; 7 | using System.Linq; 8 | using System.Text; 9 | using System.Threading.Tasks; 10 | using System.Windows.Forms; 11 | 12 | namespace SOHATS 13 | { 14 | public partial class DosyaBul : Form 15 | { 16 | public DosyaBul(AnaForm anaForm, FormControl formControl) 17 | { 18 | InitializeComponent(); 19 | this.anaForm = anaForm; 20 | this.formControl = formControl; 21 | } 22 | 23 | AnaForm anaForm; 24 | FormControl formControl; 25 | DatabaseControl databaseControl = new DatabaseControl(); 26 | 27 | private void cbSecenek_SelectedValueChanged(object sender, EventArgs e) 28 | { 29 | textTemizleme(); 30 | if(cbSecenek.SelectedIndex == 0) 31 | { 32 | pnlAd.Visible = true; 33 | txtAd.MaxLength = 20; 34 | txtSoyad.MaxLength = 20; 35 | pnlOther.Visible = false; 36 | } 37 | else 38 | { 39 | pnlAd.Visible = false; 40 | pnlOther.Visible = true; 41 | if(cbSecenek.SelectedIndex == 1) 42 | { 43 | txtArama.MaxLength = 11; 44 | } 45 | else if(cbSecenek.SelectedIndex == 2) 46 | { 47 | txtArama.MaxLength = 10; 48 | } 49 | else if (cbSecenek.SelectedIndex == 3) 50 | { 51 | txtArama.MaxLength = 5; 52 | } 53 | } 54 | } 55 | 56 | private void textTemizleme() 57 | { 58 | txtArama.Clear(); 59 | txtAd.Clear(); 60 | txtSoyad.Clear(); 61 | } 62 | 63 | private void btnBul_Click(object sender, EventArgs e) 64 | { 65 | dgwHasta.Rows.Clear(); 66 | if(cbSecenek.Text == "") 67 | { 68 | MessageBox.Show("Lütfen bir seçim yapınız"); 69 | return; 70 | } 71 | if(cbSecenek.SelectedIndex == 0) 72 | { 73 | string ad = txtAd.Text != "" ? txtAd.Text : "0"; 74 | string soyad = txtSoyad.Text != "" ? txtSoyad.Text : "0"; 75 | 76 | if (cbVe.Checked) 77 | { 78 | if (ad.Equals("0")) 79 | { 80 | MessageBox.Show("Lütfen adını giriniz veya 've' işaretlemeyiz"); 81 | return; 82 | } 83 | if (soyad.Equals("0")) 84 | { 85 | MessageBox.Show("Lütfen Soyadını giriniz veya 've' işaretlemeyiz"); 86 | return; 87 | } 88 | // VE 89 | List hastas = databaseControl.GetHastaAdSoyad(ad, soyad,true); 90 | if (hastas.Count < 1) 91 | { 92 | MessageBox.Show("Kişi bulunamadı"); 93 | return; 94 | } 95 | foreach (hasta hasta in hastas) 96 | { 97 | dgwHasta.Rows.Add(hasta.tckimlikno, 98 | hasta.dosyano, 99 | hasta.ad, 100 | hasta.soyad, 101 | hasta.dogumyeri, 102 | hasta.dogumtarihi, 103 | hasta.babaadi, 104 | hasta.anneadi, 105 | hasta.cinsiyet); 106 | } 107 | } 108 | else 109 | { 110 | // VEYA 111 | if(txtAd.Text == "" && txtSoyad.Text == "") 112 | { 113 | MessageBox.Show("Lütfen değer giriniz"); 114 | return; 115 | } 116 | List hastas = databaseControl.GetHastaAdSoyad(ad, soyad, false); 117 | if (hastas.Count < 1) 118 | { 119 | MessageBox.Show("Kişi bulunamadı"); 120 | return; 121 | } 122 | foreach (hasta hasta in hastas) 123 | { 124 | dgwHasta.Rows.Add(hasta.tckimlikno, 125 | hasta.dosyano, 126 | hasta.ad, 127 | hasta.soyad, 128 | hasta.dogumyeri, 129 | hasta.dogumtarihi, 130 | hasta.babaadi, 131 | hasta.anneadi, 132 | hasta.cinsiyet); 133 | } 134 | 135 | } 136 | } 137 | else if(cbSecenek.SelectedIndex == 1) 138 | { 139 | if (!txtAramaKontrol()) 140 | return; 141 | string kimlikNo = txtArama.Text; 142 | hasta hastas = databaseControl.GetHastaKimlikNo(kimlikNo); 143 | 144 | bool durum = HastaYok(hastas); 145 | if (!durum) 146 | return; 147 | 148 | dgwHasta.Rows.Add(hastas.tckimlikno, 149 | hastas.dosyano, 150 | hastas.ad, 151 | hastas.soyad, 152 | hastas.dogumyeri, 153 | hastas.dogumtarihi, 154 | hastas.babaadi, 155 | hastas.anneadi, 156 | hastas.cinsiyet); 157 | } 158 | else if (cbSecenek.SelectedIndex == 2) 159 | { 160 | if (!txtAramaKontrol()) 161 | return; 162 | string kurumSicilNo = txtArama.Text; 163 | hasta hastas = databaseControl.GetHastaKurumSicilNo(kurumSicilNo); 164 | 165 | bool durum = HastaYok(hastas); 166 | if (!durum) 167 | return; 168 | 169 | dgwHasta.Rows.Add(hastas.tckimlikno, 170 | hastas.dosyano, 171 | hastas.ad, 172 | hastas.soyad, 173 | hastas.dogumyeri, 174 | hastas.dogumtarihi, 175 | hastas.babaadi, 176 | hastas.anneadi, 177 | hastas.cinsiyet); 178 | } 179 | else if (cbSecenek.SelectedIndex == 3) 180 | { 181 | if (!txtAramaKontrol()) 182 | return; 183 | string dosyaNo = txtArama.Text; 184 | 185 | hasta hastas = databaseControl.GetHastaDosyaNo(dosyaNo); 186 | 187 | bool durum = HastaYok(hastas); 188 | if (!durum) 189 | return; 190 | 191 | dgwHasta.Rows.Add(hastas.tckimlikno, 192 | hastas.dosyano, 193 | hastas.ad, 194 | hastas.soyad, 195 | hastas.dogumyeri, 196 | Convert.ToDateTime(hastas.dogumtarihi).ToShortDateString(), 197 | hastas.babaadi, 198 | hastas.anneadi, 199 | hastas.cinsiyet); 200 | } 201 | } 202 | 203 | private bool HastaYok(hasta hastas) 204 | { 205 | if (hastas.tckimlikno == "0") 206 | { 207 | MessageBox.Show("Kişi bulunamadı"); 208 | return false; 209 | } 210 | return true; 211 | } 212 | 213 | private void txtArama_KeyPress(object sender, KeyPressEventArgs e) 214 | { 215 | e.Handled = !char.IsDigit(e.KeyChar) && !char.IsControl(e.KeyChar); 216 | } 217 | 218 | private void txtAd_KeyPress(object sender, KeyPressEventArgs e) 219 | { 220 | e.Handled = !char.IsLetter(e.KeyChar) && !char.IsControl(e.KeyChar) 221 | && !char.IsSeparator(e.KeyChar); 222 | } 223 | 224 | private bool txtAramaKontrol() 225 | { 226 | if(txtArama.Text == "") 227 | { 228 | MessageBox.Show("Değer giriniz"); 229 | return false; 230 | } 231 | return true; 232 | } 233 | } 234 | } 235 | -------------------------------------------------------------------------------- /SOHATS/Form1.Designer.cs: -------------------------------------------------------------------------------- 1 | namespace SOHATS 2 | { 3 | partial class Form1 4 | { 5 | /// 6 | /// Required designer variable. 7 | /// 8 | private System.ComponentModel.IContainer components = null; 9 | 10 | /// 11 | /// Clean up any resources being used. 12 | /// 13 | /// true if managed resources should be disposed; otherwise, false. 14 | protected override void Dispose(bool disposing) 15 | { 16 | if (disposing && (components != null)) 17 | { 18 | components.Dispose(); 19 | } 20 | base.Dispose(disposing); 21 | } 22 | 23 | #region Windows Form Designer generated code 24 | 25 | /// 26 | /// Required method for Designer support - do not modify 27 | /// the contents of this method with the code editor. 28 | /// 29 | private void InitializeComponent() 30 | { 31 | this.label1 = new System.Windows.Forms.Label(); 32 | this.comboBox1 = new System.Windows.Forms.ComboBox(); 33 | this.comboBox2 = new System.Windows.Forms.ComboBox(); 34 | this.label2 = new System.Windows.Forms.Label(); 35 | this.radioButton1 = new System.Windows.Forms.RadioButton(); 36 | this.radioButton2 = new System.Windows.Forms.RadioButton(); 37 | this.radioButton3 = new System.Windows.Forms.RadioButton(); 38 | this.button1 = new System.Windows.Forms.Button(); 39 | this.button2 = new System.Windows.Forms.Button(); 40 | this.button3 = new System.Windows.Forms.Button(); 41 | this.button4 = new System.Windows.Forms.Button(); 42 | this.dataGridView1 = new System.Windows.Forms.DataGridView(); 43 | ((System.ComponentModel.ISupportInitialize)(this.dataGridView1)).BeginInit(); 44 | this.SuspendLayout(); 45 | // 46 | // label1 47 | // 48 | this.label1.AutoSize = true; 49 | this.label1.Location = new System.Drawing.Point(22, 29); 50 | this.label1.Name = "label1"; 51 | this.label1.Size = new System.Drawing.Size(143, 24); 52 | this.label1.TabIndex = 1; 53 | this.label1.Text = "Başlangıç Tarihi"; 54 | // 55 | // comboBox1 56 | // 57 | this.comboBox1.FormattingEnabled = true; 58 | this.comboBox1.Location = new System.Drawing.Point(171, 26); 59 | this.comboBox1.Name = "comboBox1"; 60 | this.comboBox1.Size = new System.Drawing.Size(121, 32); 61 | this.comboBox1.TabIndex = 2; 62 | // 63 | // comboBox2 64 | // 65 | this.comboBox2.FormattingEnabled = true; 66 | this.comboBox2.Location = new System.Drawing.Point(171, 77); 67 | this.comboBox2.Name = "comboBox2"; 68 | this.comboBox2.Size = new System.Drawing.Size(121, 32); 69 | this.comboBox2.TabIndex = 4; 70 | // 71 | // label2 72 | // 73 | this.label2.AutoSize = true; 74 | this.label2.Location = new System.Drawing.Point(22, 80); 75 | this.label2.Name = "label2"; 76 | this.label2.Size = new System.Drawing.Size(95, 24); 77 | this.label2.TabIndex = 3; 78 | this.label2.Text = "Bitiş Tarihi"; 79 | // 80 | // radioButton1 81 | // 82 | this.radioButton1.AutoSize = true; 83 | this.radioButton1.Location = new System.Drawing.Point(355, 12); 84 | this.radioButton1.Name = "radioButton1"; 85 | this.radioButton1.Size = new System.Drawing.Size(159, 28); 86 | this.radioButton1.TabIndex = 5; 87 | this.radioButton1.TabStop = true; 88 | this.radioButton1.Text = "Taburcu Olmuş"; 89 | this.radioButton1.UseVisualStyleBackColor = true; 90 | // 91 | // radioButton2 92 | // 93 | this.radioButton2.AutoSize = true; 94 | this.radioButton2.Location = new System.Drawing.Point(355, 52); 95 | this.radioButton2.Name = "radioButton2"; 96 | this.radioButton2.Size = new System.Drawing.Size(178, 28); 97 | this.radioButton2.TabIndex = 6; 98 | this.radioButton2.TabStop = true; 99 | this.radioButton2.Text = "Taburcu Olmamış"; 100 | this.radioButton2.UseVisualStyleBackColor = true; 101 | // 102 | // radioButton3 103 | // 104 | this.radioButton3.AutoSize = true; 105 | this.radioButton3.Location = new System.Drawing.Point(355, 92); 106 | this.radioButton3.Name = "radioButton3"; 107 | this.radioButton3.Size = new System.Drawing.Size(77, 28); 108 | this.radioButton3.TabIndex = 7; 109 | this.radioButton3.TabStop = true; 110 | this.radioButton3.Text = "Hepsi"; 111 | this.radioButton3.UseVisualStyleBackColor = true; 112 | // 113 | // button1 114 | // 115 | this.button1.Location = new System.Drawing.Point(551, 12); 116 | this.button1.Name = "button1"; 117 | this.button1.Size = new System.Drawing.Size(92, 108); 118 | this.button1.TabIndex = 8; 119 | this.button1.Text = "Sorgula"; 120 | this.button1.UseVisualStyleBackColor = true; 121 | // 122 | // button2 123 | // 124 | this.button2.Location = new System.Drawing.Point(649, 12); 125 | this.button2.Name = "button2"; 126 | this.button2.Size = new System.Drawing.Size(92, 108); 127 | this.button2.TabIndex = 9; 128 | this.button2.Text = "Temizle"; 129 | this.button2.UseVisualStyleBackColor = true; 130 | // 131 | // button3 132 | // 133 | this.button3.Location = new System.Drawing.Point(747, 12); 134 | this.button3.Name = "button3"; 135 | this.button3.Size = new System.Drawing.Size(92, 108); 136 | this.button3.TabIndex = 10; 137 | this.button3.Text = "Yazdır"; 138 | this.button3.UseVisualStyleBackColor = true; 139 | // 140 | // button4 141 | // 142 | this.button4.Location = new System.Drawing.Point(931, 12); 143 | this.button4.Name = "button4"; 144 | this.button4.Size = new System.Drawing.Size(92, 108); 145 | this.button4.TabIndex = 11; 146 | this.button4.Text = "Çıkış"; 147 | this.button4.UseVisualStyleBackColor = true; 148 | // 149 | // dataGridView1 150 | // 151 | this.dataGridView1.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize; 152 | this.dataGridView1.Dock = System.Windows.Forms.DockStyle.Bottom; 153 | this.dataGridView1.Location = new System.Drawing.Point(0, 140); 154 | this.dataGridView1.Name = "dataGridView1"; 155 | this.dataGridView1.Size = new System.Drawing.Size(1045, 420); 156 | this.dataGridView1.TabIndex = 12; 157 | // 158 | // Taburcu 159 | // 160 | this.AutoScaleDimensions = new System.Drawing.SizeF(11F, 24F); 161 | this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; 162 | this.BackColor = System.Drawing.SystemColors.GradientInactiveCaption; 163 | this.ClientSize = new System.Drawing.Size(1045, 560); 164 | this.Controls.Add(this.dataGridView1); 165 | this.Controls.Add(this.button4); 166 | this.Controls.Add(this.button3); 167 | this.Controls.Add(this.button2); 168 | this.Controls.Add(this.button1); 169 | this.Controls.Add(this.radioButton3); 170 | this.Controls.Add(this.radioButton2); 171 | this.Controls.Add(this.radioButton1); 172 | this.Controls.Add(this.comboBox2); 173 | this.Controls.Add(this.label2); 174 | this.Controls.Add(this.comboBox1); 175 | this.Controls.Add(this.label1); 176 | this.Font = new System.Drawing.Font("Microsoft Sans Serif", 14.25F); 177 | this.Margin = new System.Windows.Forms.Padding(6); 178 | this.Name = "Taburcu"; 179 | this.Text = "Taburcu"; 180 | ((System.ComponentModel.ISupportInitialize)(this.dataGridView1)).EndInit(); 181 | this.ResumeLayout(false); 182 | this.PerformLayout(); 183 | 184 | } 185 | 186 | #endregion 187 | 188 | private System.Windows.Forms.Label label1; 189 | private System.Windows.Forms.ComboBox comboBox1; 190 | private System.Windows.Forms.ComboBox comboBox2; 191 | private System.Windows.Forms.Label label2; 192 | private System.Windows.Forms.RadioButton radioButton1; 193 | private System.Windows.Forms.RadioButton radioButton2; 194 | private System.Windows.Forms.RadioButton radioButton3; 195 | private System.Windows.Forms.Button button1; 196 | private System.Windows.Forms.Button button2; 197 | private System.Windows.Forms.Button button3; 198 | private System.Windows.Forms.Button button4; 199 | private System.Windows.Forms.DataGridView dataGridView1; 200 | } 201 | } -------------------------------------------------------------------------------- /SOHATS/DosyaBul.resx: -------------------------------------------------------------------------------- 1 | 2 | 3 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | 79 | 80 | 81 | 82 | 83 | 84 | 85 | 86 | 87 | 88 | 89 | 90 | 91 | 92 | 93 | 94 | 95 | 96 | 97 | 98 | 99 | 100 | 101 | 102 | 103 | 104 | 105 | 106 | 107 | 108 | 109 | text/microsoft-resx 110 | 111 | 112 | 2.0 113 | 114 | 115 | System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 116 | 117 | 118 | System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 119 | 120 | 121 | True 122 | 123 | 124 | True 125 | 126 | 127 | True 128 | 129 | 130 | True 131 | 132 | 133 | True 134 | 135 | 136 | True 137 | 138 | 139 | True 140 | 141 | 142 | True 143 | 144 | 145 | True 146 | 147 | 148 | True 149 | 150 | 151 | True 152 | 153 | 154 | True 155 | 156 | 157 | True 158 | 159 | 160 | True 161 | 162 | 163 | True 164 | 165 | 166 | True 167 | 168 | 169 | True 170 | 171 | 172 | True 173 | 174 | -------------------------------------------------------------------------------- /SOHATS/Taburcu.Designer.cs: -------------------------------------------------------------------------------- 1 | namespace SOHATS 2 | { 3 | partial class Taburcu 4 | { 5 | /// 6 | /// Required designer variable. 7 | /// 8 | private System.ComponentModel.IContainer components = null; 9 | 10 | /// 11 | /// Clean up any resources being used. 12 | /// 13 | /// true if managed resources should be disposed; otherwise, false. 14 | protected override void Dispose(bool disposing) 15 | { 16 | if (disposing && (components != null)) 17 | { 18 | components.Dispose(); 19 | } 20 | base.Dispose(disposing); 21 | } 22 | 23 | #region Windows Form Designer generated code 24 | 25 | /// 26 | /// Required method for Designer support - do not modify 27 | /// the contents of this method with the code editor. 28 | /// 29 | private void InitializeComponent() 30 | { 31 | this.btnVazgec = new System.Windows.Forms.Button(); 32 | this.label1 = new System.Windows.Forms.Label(); 33 | this.txtDosyaNo = new System.Windows.Forms.TextBox(); 34 | this.label2 = new System.Windows.Forms.Label(); 35 | this.label3 = new System.Windows.Forms.Label(); 36 | this.label4 = new System.Windows.Forms.Label(); 37 | this.txtTutar = new System.Windows.Forms.TextBox(); 38 | this.label5 = new System.Windows.Forms.Label(); 39 | this.btnKaydet = new System.Windows.Forms.Button(); 40 | this.dtpSevkTarihi = new System.Windows.Forms.DateTimePicker(); 41 | this.dtpCikisTarihi = new System.Windows.Forms.DateTimePicker(); 42 | this.cbOdeme = new System.Windows.Forms.ComboBox(); 43 | this.SuspendLayout(); 44 | // 45 | // btnVazgec 46 | // 47 | this.btnVazgec.BackColor = System.Drawing.SystemColors.ActiveCaption; 48 | this.btnVazgec.ForeColor = System.Drawing.Color.Black; 49 | this.btnVazgec.Location = new System.Drawing.Point(17, 199); 50 | this.btnVazgec.Name = "btnVazgec"; 51 | this.btnVazgec.Size = new System.Drawing.Size(105, 40); 52 | this.btnVazgec.TabIndex = 6; 53 | this.btnVazgec.Text = "Vazgeç"; 54 | this.btnVazgec.UseVisualStyleBackColor = false; 55 | this.btnVazgec.Click += new System.EventHandler(this.btnGiris_Click); 56 | // 57 | // label1 58 | // 59 | this.label1.AutoSize = true; 60 | this.label1.Location = new System.Drawing.Point(43, 15); 61 | this.label1.Name = "label1"; 62 | this.label1.Size = new System.Drawing.Size(97, 24); 63 | this.label1.TabIndex = 5; 64 | this.label1.Text = "Dosya No:"; 65 | // 66 | // txtDosyaNo 67 | // 68 | this.txtDosyaNo.Location = new System.Drawing.Point(146, 12); 69 | this.txtDosyaNo.Name = "txtDosyaNo"; 70 | this.txtDosyaNo.ReadOnly = true; 71 | this.txtDosyaNo.Size = new System.Drawing.Size(281, 29); 72 | this.txtDosyaNo.TabIndex = 1; 73 | // 74 | // label2 75 | // 76 | this.label2.AutoSize = true; 77 | this.label2.Location = new System.Drawing.Point(32, 50); 78 | this.label2.Name = "label2"; 79 | this.label2.Size = new System.Drawing.Size(108, 24); 80 | this.label2.TabIndex = 7; 81 | this.label2.Text = "Sevk Tarihi:"; 82 | // 83 | // label3 84 | // 85 | this.label3.AutoSize = true; 86 | this.label3.Location = new System.Drawing.Point(34, 85); 87 | this.label3.Name = "label3"; 88 | this.label3.Size = new System.Drawing.Size(106, 24); 89 | this.label3.TabIndex = 9; 90 | this.label3.Text = "Çıkış Tarihi:"; 91 | // 92 | // label4 93 | // 94 | this.label4.AutoSize = true; 95 | this.label4.Location = new System.Drawing.Point(16, 120); 96 | this.label4.Name = "label4"; 97 | this.label4.Size = new System.Drawing.Size(124, 24); 98 | this.label4.TabIndex = 11; 99 | this.label4.Text = "Ödeme Şekli:"; 100 | // 101 | // txtTutar 102 | // 103 | this.txtTutar.Location = new System.Drawing.Point(146, 158); 104 | this.txtTutar.Name = "txtTutar"; 105 | this.txtTutar.ReadOnly = true; 106 | this.txtTutar.Size = new System.Drawing.Size(281, 29); 107 | this.txtTutar.TabIndex = 5; 108 | // 109 | // label5 110 | // 111 | this.label5.AutoSize = true; 112 | this.label5.Location = new System.Drawing.Point(13, 161); 113 | this.label5.Name = "label5"; 114 | this.label5.Size = new System.Drawing.Size(127, 24); 115 | this.label5.TabIndex = 13; 116 | this.label5.Text = "Toplam Tutar:"; 117 | // 118 | // btnKaydet 119 | // 120 | this.btnKaydet.BackColor = System.Drawing.SystemColors.ActiveCaption; 121 | this.btnKaydet.ForeColor = System.Drawing.Color.Black; 122 | this.btnKaydet.Location = new System.Drawing.Point(322, 199); 123 | this.btnKaydet.Name = "btnKaydet"; 124 | this.btnKaydet.Size = new System.Drawing.Size(105, 40); 125 | this.btnKaydet.TabIndex = 7; 126 | this.btnKaydet.Text = "Kaydet"; 127 | this.btnKaydet.UseVisualStyleBackColor = false; 128 | this.btnKaydet.Click += new System.EventHandler(this.btnKaydet_Click); 129 | // 130 | // dtpSevkTarihi 131 | // 132 | this.dtpSevkTarihi.Enabled = false; 133 | this.dtpSevkTarihi.Location = new System.Drawing.Point(146, 50); 134 | this.dtpSevkTarihi.Name = "dtpSevkTarihi"; 135 | this.dtpSevkTarihi.Size = new System.Drawing.Size(281, 29); 136 | this.dtpSevkTarihi.TabIndex = 2; 137 | // 138 | // dtpCikisTarihi 139 | // 140 | this.dtpCikisTarihi.Enabled = false; 141 | this.dtpCikisTarihi.Location = new System.Drawing.Point(146, 85); 142 | this.dtpCikisTarihi.Name = "dtpCikisTarihi"; 143 | this.dtpCikisTarihi.Size = new System.Drawing.Size(281, 29); 144 | this.dtpCikisTarihi.TabIndex = 3; 145 | // 146 | // cbOdeme 147 | // 148 | this.cbOdeme.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; 149 | this.cbOdeme.FormattingEnabled = true; 150 | this.cbOdeme.Items.AddRange(new object[] { 151 | "Nakit", 152 | "Kredi Kartı - Taksit", 153 | "K. Kartı - Tek Çekim", 154 | "Çek", 155 | "Senet"}); 156 | this.cbOdeme.Location = new System.Drawing.Point(146, 120); 157 | this.cbOdeme.Name = "cbOdeme"; 158 | this.cbOdeme.Size = new System.Drawing.Size(281, 32); 159 | this.cbOdeme.TabIndex = 4; 160 | // 161 | // Taburcu 162 | // 163 | this.AutoScaleDimensions = new System.Drawing.SizeF(11F, 24F); 164 | this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; 165 | this.BackColor = System.Drawing.SystemColors.GradientInactiveCaption; 166 | this.ClientSize = new System.Drawing.Size(444, 252); 167 | this.Controls.Add(this.cbOdeme); 168 | this.Controls.Add(this.dtpCikisTarihi); 169 | this.Controls.Add(this.dtpSevkTarihi); 170 | this.Controls.Add(this.btnKaydet); 171 | this.Controls.Add(this.txtTutar); 172 | this.Controls.Add(this.label5); 173 | this.Controls.Add(this.label4); 174 | this.Controls.Add(this.label3); 175 | this.Controls.Add(this.label2); 176 | this.Controls.Add(this.txtDosyaNo); 177 | this.Controls.Add(this.label1); 178 | this.Controls.Add(this.btnVazgec); 179 | this.Font = new System.Drawing.Font("Microsoft Sans Serif", 14.25F); 180 | this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedToolWindow; 181 | this.Margin = new System.Windows.Forms.Padding(6); 182 | this.Name = "Taburcu"; 183 | this.Text = "SOHATS - Taburcu"; 184 | this.Load += new System.EventHandler(this.Taburcu_Load); 185 | this.ResumeLayout(false); 186 | this.PerformLayout(); 187 | 188 | } 189 | 190 | #endregion 191 | 192 | private System.Windows.Forms.Button btnVazgec; 193 | private System.Windows.Forms.Label label1; 194 | private System.Windows.Forms.TextBox txtDosyaNo; 195 | private System.Windows.Forms.Label label2; 196 | private System.Windows.Forms.Label label3; 197 | private System.Windows.Forms.Label label4; 198 | private System.Windows.Forms.TextBox txtTutar; 199 | private System.Windows.Forms.Label label5; 200 | private System.Windows.Forms.Button btnKaydet; 201 | private System.Windows.Forms.DateTimePicker dtpSevkTarihi; 202 | private System.Windows.Forms.DateTimePicker dtpCikisTarihi; 203 | private System.Windows.Forms.ComboBox cbOdeme; 204 | } 205 | } -------------------------------------------------------------------------------- /SOHATS/HastaBilgileri.cs: -------------------------------------------------------------------------------- 1 | using SOHATS.DB; 2 | using System; 3 | using System.Collections.Generic; 4 | using System.ComponentModel; 5 | using System.Data; 6 | using System.Drawing; 7 | using System.Linq; 8 | using System.Text; 9 | using System.Threading.Tasks; 10 | using System.Windows.Forms; 11 | 12 | namespace SOHATS 13 | { 14 | public partial class HastaBilgileri : Form 15 | { 16 | public HastaBilgileri() 17 | { 18 | InitializeComponent(); 19 | dogumTarihi.MaxDate = DateTime.Today; 20 | } 21 | 22 | int dosyaNumarasi; 23 | 24 | public HastaBilgileri(AnaForm anaForm, FormControl formControl, int dosyaNumarasi) 25 | { 26 | InitializeComponent(); 27 | this.anaForm = anaForm; 28 | this.formControl = formControl; 29 | this.dosyaNumarasi = dosyaNumarasi; 30 | txtDosyaNo.Enabled = false; 31 | txtTC.Enabled = false; 32 | plNew.Visible = false; 33 | plHastaBilgi.Visible = true; 34 | dogumTarihi.MaxDate = DateTime.Today; 35 | bilgileriGetir(); 36 | } 37 | 38 | private void bilgileriGetir() 39 | { 40 | hasta hasta = databaseControl.GetHasta(dosyaNumarasi.ToString()); 41 | txtTC.Text = hasta.tckimlikno; 42 | txtAd.Text = hasta.ad; 43 | txtSoyad.Text = hasta.soyad; 44 | txtDogumYeri.Text = hasta.dogumyeri; 45 | dogumTarihi.Value = Convert.ToDateTime(hasta.dogumtarihi); 46 | txtBabaAdi.Text = hasta.babaadi; 47 | txtAnneAdi.Text = hasta.anneadi; 48 | cinsiyet.Text = hasta.cinsiyet; 49 | kanGrubu.Text = hasta.kangrubu; 50 | medeniHal.Text = hasta.medenihal; 51 | txtAdres.Text = hasta.adres; 52 | txtTelefonNo.Text = hasta.tel; 53 | txtKurumSicilNo.Text = hasta.kurumsicilno; 54 | txtKurumSicilAdi.Text = hasta.kurumadi; 55 | txtYakinTelefonNo.Text = hasta.yakintel; 56 | txtYakinKurumSicilNo.Text = hasta.yakinkurumsicilno; 57 | txtYakinKurumAdi.Text = hasta.yakinkurumadi; 58 | } 59 | 60 | public HastaBilgileri(AnaForm anaForm, FormControl formControl,int dosyaNumarasi,string kayit) 61 | { 62 | InitializeComponent(); 63 | this.anaForm = anaForm; 64 | this.formControl = formControl; 65 | this.dosyaNumarasi = dosyaNumarasi; 66 | txtDosyaNo.Enabled = false; 67 | plNew.Visible = true; 68 | plHastaBilgi.Visible = false; 69 | dogumTarihi.MaxDate = DateTime.Today; 70 | } 71 | AnaForm anaForm; 72 | FormControl formControl; 73 | 74 | DatabaseControl databaseControl = new DatabaseControl(); 75 | 76 | private void HastaBilgileri_Load(object sender, EventArgs e) 77 | { 78 | txtDosyaNo.Text = dosyaNumarasi.ToString(); 79 | dogumTarihi.Value = DateTime.Today; 80 | } 81 | 82 | private void btnKaydet_Click(object sender, EventArgs e) 83 | { 84 | if(kontrol() != "") 85 | { 86 | MessageBox.Show(kontrol()); 87 | return; 88 | } 89 | hasta hasta = new hasta 90 | { 91 | tckimlikno = txtTC.Text, 92 | dosyano = int.Parse(txtDosyaNo.Text), 93 | ad = txtAd.Text, 94 | soyad = txtSoyad.Text, 95 | dogumyeri = txtDogumYeri.Text, 96 | dogumtarihi = Convert.ToDateTime(dogumTarihi.Value), 97 | babaadi = txtBabaAdi.Text, 98 | anneadi = txtAnneAdi.Text, 99 | cinsiyet = cinsiyet.Text, 100 | kangrubu = kanGrubu.Text, 101 | medenihal = medeniHal.Text, 102 | adres = txtAdres.Text, 103 | 104 | tel = txtTelefonNo.Text, 105 | kurumsicilno = txtKurumSicilNo.Text, 106 | kurumadi = txtKurumSicilAdi.Text, 107 | yakintel = txtYakinTelefonNo.Text, 108 | yakinkurumsicilno = txtYakinKurumSicilNo.Text, 109 | yakinkurumadi = txtYakinKurumAdi.Text 110 | }; 111 | bool durum = databaseControl.addHasta(hasta); 112 | if (durum) 113 | { 114 | txtIslem.Text = "< İŞLEM TAMAMLANDI >"; 115 | } 116 | else 117 | { 118 | MessageBox.Show("Bu TC numarası kayıtlıdır"); 119 | } 120 | } 121 | 122 | 123 | private string kontrol() 124 | { 125 | StringBuilder uyari = new StringBuilder(); 126 | if (txtTC.Text == "") 127 | { 128 | uyari.Append("Lütfen TC giriniz\n"); 129 | } 130 | if(txtAd.Text == "") 131 | { 132 | uyari.Append("Lütfen Ad giriniz\n"); 133 | } 134 | if (txtSoyad.Text == "") 135 | { 136 | uyari.Append("Lütfen Soyad giriniz\n"); 137 | } 138 | if (txtDogumYeri.Text == "") 139 | { 140 | uyari.Append("Lütfen Doğum Yeri giriniz\n"); 141 | } 142 | if (dogumTarihi.Text == "") 143 | { 144 | uyari.Append("Lütfen Doğum Tarihi Ad giriniz\n"); 145 | } 146 | if (txtBabaAdi.Text == "") 147 | { 148 | uyari.Append("Lütfen Baba Ad giriniz\n"); 149 | } 150 | if (txtAnneAdi.Text == "") 151 | { 152 | uyari.Append("Lütfen Anne Adı giriniz\n"); 153 | } 154 | if (cinsiyet.Text == "") 155 | { 156 | uyari.Append("Lütfen Cinsiyet giriniz\n"); 157 | } 158 | if (kanGrubu.Text == "") 159 | { 160 | uyari.Append("Lütfen Kan grubu giriniz\n"); 161 | } 162 | if (medeniHal.Text == "") 163 | { 164 | uyari.Append("Lütfen Medeni Hal giriniz\n"); 165 | } 166 | if (txtAdres.Text == "") 167 | { 168 | uyari.Append("Lütfen Adres giriniz\n"); 169 | } 170 | 171 | return uyari.ToString(); 172 | } 173 | 174 | private void btnSil_Click(object sender, EventArgs e) 175 | { 176 | databaseControl.DeleteHasta(new hasta{ dosyano = int.Parse(txtDosyaNo.Text),tckimlikno = txtTC.Text }); 177 | MessageBox.Show("Hasta Silindi"); 178 | this.Close(); 179 | } 180 | 181 | private void btnCikis_Click(object sender, EventArgs e) 182 | { 183 | this.Close(); 184 | } 185 | 186 | private void button2_Click(object sender, EventArgs e) 187 | { 188 | this.Close(); 189 | } 190 | 191 | private void btnNewKayit_Click(object sender, EventArgs e) 192 | { 193 | HastaBilgileri hastaBilgileri = new HastaBilgileri(anaForm, formControl, databaseControl.GetYeniDosyaNumarasi(), "new"); 194 | hastaBilgileri.MdiParent = anaForm; 195 | hastaBilgileri.Visible = true; 196 | } 197 | 198 | private void txtTC_KeyPress(object sender, KeyPressEventArgs e) 199 | { 200 | sadeceRakamGirisi(e); 201 | } 202 | 203 | private void sadeceRakamGirisi(KeyPressEventArgs e) 204 | { 205 | e.Handled = !char.IsDigit(e.KeyChar) && !char.IsControl(e.KeyChar); 206 | } 207 | 208 | private void txtTelefonNo_KeyPress(object sender, KeyPressEventArgs e) 209 | { 210 | sadeceRakamGirisi(e); 211 | } 212 | 213 | private void txtYakinTelefonNo_KeyPress(object sender, KeyPressEventArgs e) 214 | { 215 | sadeceRakamGirisi(e); 216 | } 217 | 218 | private void btnGuncelle_Click(object sender, EventArgs e) 219 | { 220 | if (kontrol() != "") 221 | { 222 | MessageBox.Show(kontrol()); 223 | return; 224 | } 225 | hasta hasta = new hasta 226 | { 227 | tckimlikno = txtTC.Text, 228 | dosyano = int.Parse(txtDosyaNo.Text), 229 | ad = txtAd.Text, 230 | soyad = txtSoyad.Text, 231 | dogumyeri = txtDogumYeri.Text, 232 | dogumtarihi = Convert.ToDateTime(dogumTarihi.Value), 233 | babaadi = txtBabaAdi.Text, 234 | anneadi = txtAnneAdi.Text, 235 | cinsiyet = cinsiyet.Text, 236 | kangrubu = kanGrubu.Text, 237 | medenihal = medeniHal.Text, 238 | adres = txtAdres.Text, 239 | 240 | tel = txtTelefonNo.Text, 241 | kurumsicilno = txtKurumSicilNo.Text, 242 | kurumadi = txtKurumSicilAdi.Text, 243 | yakintel = txtYakinTelefonNo.Text, 244 | yakinkurumsicilno = txtYakinKurumSicilNo.Text, 245 | yakinkurumadi = txtYakinKurumAdi.Text 246 | }; 247 | databaseControl.UpdateHasta(hasta); 248 | txtIslemGuncelleme.Text = "< İŞLEM TAMAMLANDI >"; 249 | } 250 | 251 | private void btnNew_Click(object sender, EventArgs e) 252 | { 253 | this.Close(); 254 | HastaBilgileri hastaBilgileri = new HastaBilgileri(anaForm, formControl, databaseControl.GetYeniDosyaNumarasi(), "new"); 255 | hastaBilgileri.MdiParent = anaForm; 256 | hastaBilgileri.Visible = true; 257 | } 258 | } 259 | } 260 | -------------------------------------------------------------------------------- /SOHATS/SOHATS.csproj: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | Debug 7 | AnyCPU 8 | {C67BE4E3-4B10-44D8-9E79-48CA8280A7C1} 9 | WinExe 10 | SOHATS 11 | SOHATS 12 | v4.6.1 13 | 512 14 | true 15 | true 16 | 17 | 18 | 19 | 20 | AnyCPU 21 | true 22 | full 23 | false 24 | bin\Debug\ 25 | DEBUG;TRACE 26 | prompt 27 | 4 28 | 29 | 30 | AnyCPU 31 | pdbonly 32 | true 33 | bin\Release\ 34 | TRACE 35 | prompt 36 | 4 37 | 38 | 39 | 40 | ..\packages\EntityFramework.6.4.0\lib\net45\EntityFramework.dll 41 | 42 | 43 | ..\packages\EntityFramework.6.4.0\lib\net45\EntityFramework.SqlServer.dll 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | Form 63 | 64 | 65 | AnaForm.cs 66 | 67 | 68 | 69 | Model1.tt 70 | 71 | 72 | Model1.tt 73 | 74 | 75 | Model1.tt 76 | 77 | 78 | Model1.tt 79 | 80 | 81 | True 82 | True 83 | Model1.Context.tt 84 | 85 | 86 | True 87 | True 88 | Model1.tt 89 | 90 | 91 | True 92 | True 93 | Model1.edmx 94 | 95 | 96 | Model1.tt 97 | 98 | 99 | Model1.tt 100 | 101 | 102 | Form 103 | 104 | 105 | DosyaBul.cs 106 | 107 | 108 | 109 | Form 110 | 111 | 112 | HastaBilgileri.cs 113 | 114 | 115 | Form 116 | 117 | 118 | HastaProcess.cs 119 | 120 | 121 | Form 122 | 123 | 124 | KullaniciPage.cs 125 | 126 | 127 | Form 128 | 129 | 130 | KulTanit.cs 131 | 132 | 133 | Form 134 | 135 | 136 | Login.cs 137 | 138 | 139 | Form 140 | 141 | 142 | PoliklinikPage.cs 143 | 144 | 145 | Form 146 | 147 | 148 | PoliTanit.cs 149 | 150 | 151 | 152 | 153 | Form 154 | 155 | 156 | Rapor.cs 157 | 158 | 159 | 160 | Form 161 | 162 | 163 | Taburcu.cs 164 | 165 | 166 | AnaForm.cs 167 | 168 | 169 | DosyaBul.cs 170 | 171 | 172 | HastaBilgileri.cs 173 | 174 | 175 | HastaProcess.cs 176 | 177 | 178 | KullaniciPage.cs 179 | 180 | 181 | KulTanit.cs 182 | 183 | 184 | Login.cs 185 | 186 | 187 | PoliklinikPage.cs 188 | 189 | 190 | PoliTanit.cs 191 | 192 | 193 | ResXFileCodeGenerator 194 | Resources.Designer.cs 195 | Designer 196 | 197 | 198 | True 199 | Resources.resx 200 | 201 | 202 | Rapor.cs 203 | 204 | 205 | Taburcu.cs 206 | 207 | 208 | EntityModelCodeGenerator 209 | Model1.Designer.cs 210 | 211 | 212 | Model1.edmx 213 | 214 | 215 | 216 | SettingsSingleFileGenerator 217 | Settings.Designer.cs 218 | 219 | 220 | True 221 | Settings.settings 222 | True 223 | 224 | 225 | 226 | 227 | Designer 228 | 229 | 230 | 231 | 232 | 233 | 234 | 235 | TextTemplatingFileGenerator 236 | Model1.edmx 237 | Model1.Context.cs 238 | 239 | 240 | TextTemplatingFileGenerator 241 | Model1.edmx 242 | Model1.cs 243 | 244 | 245 | 246 | 247 | 248 | This project references NuGet package(s) that are missing on this computer. Use NuGet Package Restore to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=322105. The missing file is {0}. 249 | 250 | 251 | 252 | 253 | 254 | --------------------------------------------------------------------------------