public PersonelForm() { InitializeComponent(); _personelServis = InstanceFactory.GetInstance <IPersonelService>(); _ilServis = InstanceFactory.GetInstance <IIlService>(); _ilceServis = InstanceFactory.GetInstance <IIlceService>(); }
public FormGiris() { var container = DependecyResolver.NinjectDependecyContainer.RegisterDependency(new StandardKernel()); _personelService = container.Get <IPersonelService>(); InitializeComponent(); }
public FrmRegister(FrmLogin frmLogin, IPersonelService personelService, IUnitOfWork unitOfWork) { this._unitOfWork = unitOfWork; this._personelService = personelService; InitializeComponent(); this._frmLogin = frmLogin; }
public IzinManager( IIzinDal izinDal, IPersonelService personelService) { this.izinDal = izinDal; this.personelService = personelService; }
public OperatorController(IPersonelService personelService, IMusteriService musteriService, ISinyallerService sinyallerService, IAranacakService aranacakService, IIslenmisSinyallerService islenmisSinyallerService) { _personelService = personelService; _musteriService = musteriService; _sinyallerService = sinyallerService; _aranacakService = aranacakService; _islenmisSinyallerService = islenmisSinyallerService; }
public FormPersonelIslemleri() { var container = NinjectDependencyContainer.RegisterDependency(new StandardKernel()); _uow = container.Get <IUnitOfWork>(); _personelService = container.Get <IPersonelService>(); InitializeComponent(); }
public SatisEkleForm() { InitializeComponent(); urunServis = InstanceFactory.Get <IUrunService>(); personelServis = InstanceFactory.Get <IPersonelService>(); musteriServis = InstanceFactory.Get <IMusteriService>(); urunHareketServis = InstanceFactory.Get <IUrunHareketService>(); }
public ArizaKaydiForm() { InitializeComponent(); urunKabulServis = InstanceFactory.Get <IUrunKabulService>(); urunServis = InstanceFactory.Get <IUrunService>(); personelServis = InstanceFactory.Get <IPersonelService>(); musteriServis = InstanceFactory.Get <IMusteriService>(); urunHareketServis = InstanceFactory.Get <IUrunHareketService>(); }
public FormPersonelIslemleri() { var container = DependecyResolver.NinjectDependecyContainer.RegisterDependency(new StandardKernel()); _personelService = container.Get <IPersonelService>(); _unvanRepo = container.Get <IUnvanRepository>(); _klinikRepo = container.Get <IKlinikRepository>(); InitializeComponent(); }
private void btnGuncelle_Click(object sender, EventArgs e) { var item = (PersonelDTO)dtPersonelListe.SelectedRows[0].DataBoundItem; personelService = new PersonelService(); personelService.update("update Personel set Adi = '" + txtAdi.Text + "', Soyadi = '" + txtSoyadi.Text + "', KayitTarihi = '" + Convert.ToDateTime(dtpTarih.Value) + "' where Id= '" + item.Id + "'"); MessageBox.Show("Kayıt Başarılı Bir Şekilde Güncellendi..!", "Tebrikler"); personelListe(); }
public void personelListe() { personelService = new PersonelService(); var sonuc = personelService.personelListesi("Select * from Personel"); comboBox1.DataSource = sonuc; comboBox1.ValueMember = "Id"; comboBox1.DisplayMember = "Adi"; dtPersonelListe.DataSource = sonuc; }
public FaturaForm() { InitializeComponent(); faturaBilgiServis = InstanceFactory.Get <IFaturaBilgiService>(); musteriServis = InstanceFactory.Get <IMusteriService>(); personelServis = InstanceFactory.Get <IPersonelService>(); faturaDetayServis = InstanceFactory.Get <IFaturaDetayService>(); urunServis = InstanceFactory.Get <IUrunService>(); }
public frmPersonelKayitFormu() { var container = NinjectDependencyContainer.RegisterDependency(new StandardKernel()); _personelservice = container.Get <IPersonelService>(); _personelrepo = container.Get <IPersonelRepository>(); _unvanRepo = container.Get <IUnvanRepository>(); _cinsiyetRepo = container.Get <ICinsiyetRepository>(); InitializeComponent(); }
public FrmMain(FrmRegister frmRegister, FrmLogin frmLogin, IPersonelService personelService, FrmSale frmSale) { this._personelService = personelService; InitializeComponent(); this._frmRegister = frmRegister; this._frmLogin = frmLogin; this._frmLogin.MasterForm = this; this._frmSale = frmSale; }
public FormPersonelIslemleri() { var container = NinjectDependencyContainer.RegisterDependency(new StandardKernel()); _personelRepo = container.Get <IPersonelRepository>(); _unvanRepo = container.Get <IUnvanRepository>(); _cinsiyetRepo = container.Get <ICinsiyetRepository>(); _personelService = container.Get <IPersonelService>(); _loginRepo = container.Get <ILoginRepository>(); InitializeComponent(); }
public PersonelsController(IPersonelService personelService, IMapper mapper, IWebHostEnvironment env, ICityService cityService, UserManager <Personel> userManager) { _personelService = personelService; _userManager = userManager; _cityService = cityService; _mapper = mapper; _env = env; }
private void btnSil_Click(object sender, EventArgs e) { try { var item = (PersonelDTO)dtPersonelListe.SelectedRows[0].DataBoundItem; personelService = new PersonelService(); personelService.delete("Delete from Personel where Id= " + item.Id + ""); MessageBox.Show("Kayıt Başarılı Bir Şekilde Silndi..!", "Tebrikler"); personelListe(); } catch (Exception) { MessageBox.Show("Kayıt Silinemedi..!", "Uyarı"); } }
private void btnKaydet_Click(object sender, EventArgs e) { try { personelService = new PersonelService(); personelService.insert("insert into Personel (Adi, Soyadi, KayitTarihi) values ('" + txtAdi.Text + "','" + txtSoyadi.Text + "','" + Convert.ToDateTime(dtpTarih.Text) + "')"); MessageBox.Show("Kayıt Başarılı Bir Şekilde Eklendi..!", "Tebrikler"); personelListe(); } catch (Exception) { MessageBox.Show("Kayıt Eklenemedi..!", "Uyarı"); } }
public ContextController(IFaaliyetService faaliyetService, IIhbarService ihbarService, IIhbarDurumuService ihbarDurumuService, IIslemDurumuService islemDurumuService, IOlayService olayService, IOlayIhbarService olayIhbarService, IPersonelService personelService, IKullaniciService kullaniciService, IRolService rolService, SqlBase sql) { _faaliyetService = faaliyetService; _ihbarService = ihbarService; _ihbarDurumuService = ihbarDurumuService; _islemDurumuService = islemDurumuService; _olayService = olayService; _olayIhbarService = olayIhbarService; _personelService = personelService; _kullaniciService = kullaniciService; _rolService = rolService; _sql = sql; }
public FormRandevuIslemleri() { #region NinjectAtamalar var container = DependecyResolver.NinjectDependecyContainer.RegisterDependency(new StandardKernel()); _hastaRepository = container.Get <IHastaRepository>(); _hastaService = container.Get <IHastaService>(); _ilceRepository = container.Get <IIlceRepository>(); _ilRepository = container.Get <IILRepository>(); _kurumRepository = container.Get <IKurumRepository>(); _personelService = container.Get <IPersonelService>(); _klinikRepository = container.Get <IKlinikRepository>(); _randevuService = container.Get <IRandevuService>(); _personelRepository = container.Get <IPersonelRepository>(); #endregion InitializeComponent(); }
public TanimlarController(IUnitofWork uow, IBlokService blokService, ITipService tipService, IPersonelService personelService, IAnasayacService anaSayacService, ISayacTipleriService sayacTipleriService, IAnaSayacOrtakDagitimService sayacOrtakAlanService, IBagimsizSayacService bagimsizSayacService, IBagimsizBolumlerService bagimsizSBolumlercService, IKasaService kasaService, IBankaService bankaService, IFirmaService firmaService, IBorcTipleri borcTipleri) : base(uow) { _uow = uow; _blokService = blokService; _tipService = tipService; _personelService = personelService; _anaSayacService = anaSayacService; _sayacTipleriService = sayacTipleriService; _sayacOrtakAlanService = sayacOrtakAlanService; _bagimsizSayacService = bagimsizSayacService; _bagimsizSBolumlercService = bagimsizSBolumlercService; _kasaService = kasaService; _bankaService = bankaService; _firmaService = firmaService; _borcTipleri = borcTipleri; }
private void btnKaydet_Click(object sender, EventArgs e) { try { personelService = new PersonelService(); personelService.insert("insert into Personel (Adi,Soyadi,KayitTarihi)" + "values('" + txtAd.Text + "','" + txtSoyad.Text + "','" + Convert.ToDateTime(dtpKayitTarihi.Text).ToString() + "')"); lstPersonelListesi.Items.Clear(); PersonelListele(); lblHata.ForeColor = Color.Blue; lblHata.Text = ("Kayıt Başarılı"); } catch (Exception ex) { lblHata.ForeColor = Color.Red; lblHata.Text = ("Kayıt Başarısız"); } }
private void btnSil_Click(object sender, EventArgs e) { try { /*data grid view veri seçme */ //var SeciliPersonel = (PersonelDTO)dtgPersonelListesi.SelectedRows[0].DataBoundItem; var SeciliPersonel = lstPersonelListesi.SelectedItems[0].SubItems[0].Text.ToString(); personelService = new PersonelService(); personelService.delete("delete from Personel where Id= " + SeciliPersonel + ""); lblHata.ForeColor = Color.Blue; lblHata.Text = "Silme Başarılı"; lstPersonelListesi.Items.Clear(); PersonelListele(); } catch (Exception) { lblHata.ForeColor = Color.Red; lblHata.Text = "Silme Başarısız"; } }
void PersonelListele() { personelService = new PersonelService(); var sonuc = personelService.PersonelListesi("select * from Personel"); /*Data Grid View Listeleme */ dtgPersonelListesi.Visible = false; //dtgPersonelListesi.DataSource = sonuc; //dtgPersonelListesi.Columns[0].Visible = false; //dtgPersonelListesi.Columns[2].Width = 57; foreach (PersonelDTO personel in sonuc) { ListViewItem personeller = new ListViewItem(personel.Id.ToString()); personeller.SubItems.Add(personel.Adi); personeller.SubItems.Add(personel.Soyadi); personeller.SubItems.Add(personel.KayitTarihi.ToShortDateString()); lstPersonelListesi.Items.Add(personeller); } }
public AccountController(IPersonelService personelService) { _personelService = personelService; }
public PersonelForm() { InitializeComponent(); personelServis = InstanceFactory.Get <IPersonelService>(); departmanServis = InstanceFactory.Get <IDepartmanService>(); }
public KullaniciController(IKullaniciService kullaniciService, IPersonelService personelService, IControllerUtil controllerUtil) { _kullaniciService = kullaniciService; _personelService = personelService; _controllerUtil = controllerUtil; }
public PersonelController(IPersonelService personelService) { _personelService = personelService; }
public PersonelController(IPersonelService _service) { service = _service; }
public PersonelKayitController(IPersonelService personelService, IMapper mapper) { this.personelService = personelService; this.mapper = mapper; }