{"id":24906129,"url":"https://github.com/ilkeresen/mvc5otomasyonapp","last_synced_at":"2026-04-17T15:32:12.880Z","repository":{"id":273924299,"uuid":"469807516","full_name":"ilkeresen/MVC5OtomasyonApp","owner":"ilkeresen","description":"Layout Kontrolü  Controller Yapısı  Partial View  Code First  Entity Framework  Model Yapısı  View Yapısı  Linq Sorguları  Entity Framework Sorguları  İlişkili Tablolar  Diyagramlar  Trigger Kullanımı  Prosedür Oluşturma  Hazır Template Kurulumu ve Düzenlenmesi  CSS Kontrolleri  Bootstrap Yapısı  Dinamik Web Projeleri Oluşturma  Dashboard yapısı  Chart  Widget Cards kullanımları","archived":false,"fork":false,"pushed_at":"2022-03-14T17:04:08.000Z","size":25424,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-27T22:23:55.321Z","etag":null,"topics":["admin-lte","bootstrap","card-widget","charts","code-first","controller","css3","dashboard","diagrams","entity-framework","html5","layout","linq","model","partial-views","sql","triggers","view"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ilkeresen.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-03-14T16:06:12.000Z","updated_at":"2022-12-19T20:26:49.000Z","dependencies_parsed_at":"2025-01-23T19:47:22.134Z","dependency_job_id":null,"html_url":"https://github.com/ilkeresen/MVC5OtomasyonApp","commit_stats":null,"previous_names":["ilkeresen/mvc5otomasyonapp"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ilkeresen/MVC5OtomasyonApp","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ilkeresen%2FMVC5OtomasyonApp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ilkeresen%2FMVC5OtomasyonApp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ilkeresen%2FMVC5OtomasyonApp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ilkeresen%2FMVC5OtomasyonApp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ilkeresen","download_url":"https://codeload.github.com/ilkeresen/MVC5OtomasyonApp/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ilkeresen%2FMVC5OtomasyonApp/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31934333,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-17T12:37:54.787Z","status":"ssl_error","status_checked_at":"2026-04-17T12:37:25.095Z","response_time":62,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["admin-lte","bootstrap","card-widget","charts","code-first","controller","css3","dashboard","diagrams","entity-framework","html5","layout","linq","model","partial-views","sql","triggers","view"],"created_at":"2025-02-02T00:38:46.917Z","updated_at":"2026-04-17T15:32:12.858Z","avatar_url":"https://github.com/ilkeresen.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# MVC5OtomasyonApp\nProjeden bir kaç görsel resim \u003cp\u003e\n  Bootstrap adminlte ile tasarlandı. \u003cp\u003e\n![](https://i.hizliresim.com/jza7rl4.jpg)\n![](https://i.hizliresim.com/wsegkz1.jpg)\n\u003cp\u003e\n     Tema ve Tablolar responsive DataTable ile yapıldı.\n  \n![](https://i.hizliresim.com/22s9p0v.jpg)\n  ![](https://i.hizliresim.com/1h1pwim.jpg)\n  ![](https://i.hizliresim.com/awzlkqu.jpg)\n  ```javascript\n  using System;\nusing System.Collections.Generic;\nusing System.ComponentModel.DataAnnotations;\nusing System.Linq;\nusing System.Web;\n\nnamespace MVC5TicariOtomasyon.Models.Siniflar\n{\n    public class SatisHareket\n    {\n        [Key]\n        public int SatisID { get; set; }\n        //Ürün\n        //Cari\n        //Personel\n\n        [Required(ErrorMessage = \"Bu Alanı Boş Geçemezsiniz!\")]\n        public DateTime SatisTarih { get; set; }\n\n        [Required(ErrorMessage = \"Bu Alanı Boş Geçemezsiniz!\")]\n        public int SatisAdet { get; set; }\n\n        [Required(ErrorMessage = \"Bu Alanı Boş Geçemezsiniz!\")]\n        public decimal SatisFiyat { get; set; }\n\n        [Required(ErrorMessage = \"Bu Alanı Boş Geçemezsiniz!\")]\n        public decimal SatisToplamTutar { get; set; }\n\n        public int Urunid { get; set; }\n        public int Cariid { get; set; }\n        public int Personelid { get; set; }\n        public virtual Urun Urun { get; set; }\n        public virtual Cariler Cariler { get; set; }\n        public virtual Personel Personel { get; set; }\n    }\n}\n  ```\n  ![](https://i.hizliresim.com/g6ddr7j.jpg)\n  ```javascript\n  using System;\nusing System.Collections.Generic;\nusing System.Linq;\nusing System.Web;\nusing System.Web.Mvc;\nusing MVC5TicariOtomasyon.Models.Siniflar;\n\nnamespace MVC5TicariOtomasyon.Controllers\n{\n    public class SatisController : Controller\n    {\n        // GET: Satis\n        Context c = new Context();\n        public ActionResult Index()\n        {\n            var satislar = c.SatisHarekets.ToList();\n            return View(satislar);\n        }\n        [HttpGet]\n        public ActionResult SatisEkle()\n        {\n            List\u003cSelectListItem\u003e urunler = (from x in c.Uruns.ToList()\n                                            select new SelectListItem\n                                            {\n                                                Text = x.UrunAd,\n                                                Value = x.UrunID.ToString()\n                                            }).ToList();\n            List\u003cSelectListItem\u003e cariler = (from x in c.Carilers.ToList()\n                                            select new SelectListItem\n                                            {\n                                                Text = x.CariAd + \" \" + x.CariSoyad,\n                                                Value = x.CariID.ToString()\n                                            }).ToList();\n            List\u003cSelectListItem\u003e personeller = (from x in c.Personels.ToList()\n                                                select new SelectListItem\n                                                {\n                                                    Text = x.PersonelAd + \" \" + x.PersonelSoyad,\n                                                    Value = x.PersonelID.ToString()\n                                                }).ToList();\n\n            ViewBag.Urunler = urunler;\n            ViewBag.Cariler = cariler;\n            ViewBag.Personeller = personeller;\n            return View();\n        }\n        [HttpPost]\n        public ActionResult SatisEkle(SatisHareket s)\n        {\n            s.SatisTarih = DateTime.Parse(DateTime.Now.ToShortDateString());\n            c.SatisHarekets.Add(s);\n            c.SaveChanges();\n            return RedirectToAction(\"Index\");\n        }\n        [HttpGet]\n        public ActionResult SatisGuncelle(int id)\n        {\n            List\u003cSelectListItem\u003e urunler = (from x in c.Uruns.ToList()\n                                            select new SelectListItem\n                                            {\n                                                Text = x.UrunAd,\n                                                Value = x.UrunID.ToString()\n                                            }).ToList();\n            List\u003cSelectListItem\u003e cariler = (from x in c.Carilers.ToList()\n                                            select new SelectListItem\n                                            {\n                                                Text = x.CariAd + \" \" + x.CariSoyad,\n                                                Value = x.CariID.ToString()\n                                            }).ToList();\n            List\u003cSelectListItem\u003e personeller = (from x in c.Personels.ToList()\n                                                select new SelectListItem\n                                                {\n                                                    Text = x.PersonelAd + \" \" + x.PersonelSoyad,\n                                                    Value = x.PersonelID.ToString()\n                                                }).ToList();\n\n            ViewBag.Urunler = urunler;\n            ViewBag.Cariler = cariler;\n            ViewBag.Personeller = personeller;\n            var satis = c.SatisHarekets.Find(id);\n            return View(\"SatisGuncelle\", satis);\n        }\n        [HttpPost]\n        public ActionResult SatisGuncelle(SatisHareket s)\n        {\n            var satis = c.SatisHarekets.Find(s.SatisID);\n            satis.Urunid = s.Urunid;\n            satis.Cariid = s.Cariid;\n            satis.Personelid = s.Personelid;\n            satis.SatisAdet = s.SatisAdet;\n            satis.SatisFiyat = s.SatisFiyat;\n            satis.SatisToplamTutar = s.SatisToplamTutar;\n            satis.SatisTarih = s.SatisTarih;\n            c.SaveChanges();\n            return RedirectToAction(\"Index\");\n        }\n        public ActionResult SatisDetay(int id)\n        {\n            var satislar = c.SatisHarekets.Where(x =\u003e x.SatisID == id).ToList();\n            return View(satislar);\n        }\n    }\n}\n  ```\n  ![](https://i.hizliresim.com/t5s123p.jpg)\n  ![](https://i.hizliresim.com/55yzxk2.jpg)\n  ![](https://i.hizliresim.com/mpsyc4p.jpg)\n  ```javascript\n  USE [dataproje]\nGO\n/****** Object:  Trigger [dbo].[SatisStokAzalt]    Script Date: 14.03.2022 19:59:52 ******/\nSET ANSI_NULLS ON\nGO\nSET QUOTED_IDENTIFIER ON\nGO\nALTER Trigger [dbo].[SatisStokAzalt]\nOn [dbo].[SatisHarekets]\nAfter insert\nas\nDeclare @Urunid int\nDeclare @Adet int\nSelect @Urunid=Urunid,@Adet=SatisAdet from inserted\nUpdate Uruns set UrunStok = UrunStok-@Adet where UrunID=@Urunid\n  ```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Filkeresen%2Fmvc5otomasyonapp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Filkeresen%2Fmvc5otomasyonapp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Filkeresen%2Fmvc5otomasyonapp/lists"}