private void PersonellerForm_Load(object sender, EventArgs e) { Text = "Personeller"; #region YetkiControl YetkiORM yOrm = new YetkiORM(); SuperORM sOrm = new SuperORM(); AdminORM aOrm = new AdminORM(); if (PersonellerORM.AktifKullanici.YetkiID == 3) { cmbYetki.DataSource = yOrm.Select(); cmbYetki.DisplayMember = "YetkiAdi"; cmbYetki.ValueMember = "Id"; } else if (PersonellerORM.AktifKullanici.YetkiID == 1) { cmbYetki.DataSource = sOrm.Select(); cmbYetki.DisplayMember = "YetkiAdi"; cmbYetki.ValueMember = "Id"; } else { cmbYetki.DataSource = aOrm.Select(); cmbYetki.DisplayMember = "YetkiAdi"; cmbYetki.ValueMember = "Id"; } #endregion dataGridView1.DataSource = perOrm.Select(); dataGridView1.Columns[0].Visible = false; dataGridView1.Columns[8].Visible = false; dataGridView1.Columns[9].Visible = false; dataGridView1.Columns[10].Visible = false; dataGridView1.Columns[12].Visible = false; btnGuncelle.Visible = false; btnIptal.Visible = false; }
private void SatisForm_Load(object sender, EventArgs e) { dataGridView1.DataSource = sorm.Select(); cmbDergiSayilari.DisplayMember = "Sayi"; cmbDergiSayilari.ValueMember = "id"; cmbDergiSayilari.DataSource = dorm.Select(); cmbMusteriler.DisplayMember = "SirketAdi"; cmbMusteriler.ValueMember = "id"; cmbMusteriler.DataSource = morm.Select(); cmbPersoneller.DisplayMember = "Adi"; cmbPersoneller.ValueMember = "id"; cmbPersoneller.DataSource = porm.Select(); dataGridView1.Columns["id"].Visible = false; }
private void PersonelForm_Load(object sender, EventArgs e) { dataGridView1.DataSource = porm.Select(); dataGridView1.Columns["id"].Visible = false; dataGridView1.Columns["Aktif"].Visible = false; }
private void PersonellerFORM_Load(object sender, EventArgs e) { dataGridView1.DataSource = orm.Select(); cmb_Cinsiyet.DataSource = Enum.GetNames(typeof(Cinsiyet)); dataGridView1.Columns["Id"].Visible = false; }
private void PersonellerForm_Load(object sender, EventArgs e) { dataGridView1.DataSource = pOrm.Select(); }