//BTN BAŞVURULAR private void btnBasvurular_Click(object sender, EventArgs e) { btnDuzenle.Visible = false; btnCalistencikar.Visible = false; lblDilnot.Visible = false; labelNot.Visible = false; lblBasnot.Visible = true; gbKullidsec.Visible = false; gbKullDuzenle.Visible = false; grid.Columns.Clear(); grid.Visible = true; calisanController = 4; List <Basvurular> kaynak = db.Basvurulars.ToList(); grid.DataSource = kaynak; grid.Columns.RemoveAt(0); FormYonFuncs.gridHeaderChange(grid, 4); gbCalisanlarFilter.Visible = false; gbIzinlilerFiltre.Visible = false; gbDilekcelerFiltre.Visible = false; gbBasvurularFilter.Visible = true; lblUni.Visible = false; cbBasvuruMez.Visible = false; btnBasvuruFilter.Location = new Point(6, 260); gbBasvurularFilter.Height = 325; lblBaserror.Location = new Point(3, 298); }
//BTN KULLANICI DÜZENLE private void btnSetUser_Click(object sender, EventArgs e) { btnDuzenle.Visible = true; lblDilnot.Visible = false; labelNot.Visible = false; lblBasnot.Visible = false; gbKullidsec.Visible = false; gbKullDuzenle.Visible = false; btnCalistencikar.Visible = false; calisanController = 6; grid.Columns.Clear(); grid.Visible = true; List <Kullanici> kullanicis = db.Kullanicis.ToList(); grid.DataSource = kullanicis; FormYonFuncs.gridHeaderChange(grid, 6); gbCalisanlarFilter.Visible = false; gbIzinlilerFiltre.Visible = false; gbDilekcelerFiltre.Visible = false; gbBasvurularFilter.Visible = false; }
//COMBOBOX SEÇ private void cbCalisanlar_SelectedIndexChanged(object sender, EventArgs e) { grid.Visible = true; grid.Columns.Clear(); if (cbCalisanlar.Text == "Çalışanlar") { var query = (from cal in db.Calisanlars join acal in db.ACalisans on cal.id equals acal.id select new { cal.departman, cal.ad, cal.soyad, acal.maas, acal.tcNo, cal.telNo, cal.sgNo, cal.adres, cal.cinsiyet, cal.mail }).ToList(); grid.DataSource = query; FormYonFuncs.gridHeaderChange(grid, 1); gbCalisanlarFilter.Visible = true; gbIzinlilerFiltre.Visible = false; calisanController = 1; } else if (cbCalisanlar.Text == "İzinliler") { var query = (from izin in db.Izinlilers join acal in db.ACalisans on izin.id equals acal.id select new{ izin.departman, izin.ad, izin.soyad, acal.maas, acal.tcNo, izin.telNo, izin.sgNo, izin.adres, izin.cinsiyet, izin.mail, izin.izinBas, izin.izinBit }).ToList(); grid.DataSource = query; FormYonFuncs.gridHeaderChange(grid, 2); gbCalisanlarFilter.Visible = false; gbIzinlilerFiltre.Visible = true; calisanController = 2; } labelNot.Visible = true; lblDilnot.Visible = false; lblBasnot.Visible = false; gbDilekcelerFiltre.Visible = false; gbBasvurularFilter.Visible = false; btnDuzenle.Visible = false; gbKullidsec.Visible = false; gbKullDuzenle.Visible = false; btnCalistencikar.Visible = false; }
//BTN İŞTEN ÇIKARMA private void btnFire_Click(object sender, EventArgs e) { gbCalisanlarFilter.Visible = false; gbIzinlilerFiltre.Visible = false; gbDilekcelerFiltre.Visible = false; gbBasvurularFilter.Visible = false; btnDuzenle.Visible = false; lblDilnot.Visible = false; labelNot.Visible = false; lblBasnot.Visible = false; gbKullidsec.Visible = false; gbKullDuzenle.Visible = false; btnCalistencikar.Visible = true; calisanController = 7; grid.Columns.Clear(); grid.Visible = true; var query = (from cal in db.Calisanlars join acal in db.ACalisans on cal.id equals acal.id select new { cal.id, cal.departman, cal.ad, cal.soyad, acal.maas, acal.tcNo, cal.telNo, cal.sgNo, cal.adres, cal.cinsiyet, cal.mail }).ToList(); grid.DataSource = query; FormYonFuncs.gridHeaderChange(grid, 7); }
//BTN LOGS private void btnLogkayit_Click(object sender, EventArgs e) { btnDuzenle.Visible = false; lblDilnot.Visible = false; labelNot.Visible = false; lblBasnot.Visible = false; gbKullidsec.Visible = false; gbKullDuzenle.Visible = false; btnCalistencikar.Visible = false; calisanController = 5; grid.Columns.Clear(); grid.Visible = true; List <Log> loglar = db.Logs.ToList(); grid.DataSource = loglar; grid.Columns.RemoveAt(0); FormYonFuncs.gridHeaderChange(grid, 5); gbCalisanlarFilter.Visible = false; gbIzinlilerFiltre.Visible = false; gbDilekcelerFiltre.Visible = false; gbBasvurularFilter.Visible = false; }