예제 #1
0
 private void subeYoneticisi_Load(object sender, EventArgs e)
 {
     cbRaporlar.SelectedIndex = 0;
     Main_Grid.DataSource     = db.subeIslem.subeyiListele(Convert.ToInt16(subeNo));
     Main_Grid.AutoResizeColumns();
     Main_Grid.AutoSizeColumnsMode = DataGridViewAutoSizeColumnsMode.Fill;
 }
예제 #2
0
        public otoparkEkrani(string prsKimlikNo, string prs_adsoyad, string modulErisimi, string otoparkAd)
        {
            InitializeComponent();

            if (modulErisimi == "Otopark Personel Ekranı")
            {
                btnPersonelListesi.Enabled = false;
                btnSubeDegistir.Enabled    = false;
                btnRapolar.Enabled         = false;
            }


            DataRow personel = db.personelIslemleri.personelGetir(prsKimlikNo);

            tckno = personel["Kimlik NO"].ToString();
            string prsAdSoyad = personel["Ad Soyad"].ToString();

            parkNo     = personel["Park No"].ToString();
            otoparkAdi = personel["Otopark Adı"].ToString();



            lbl_HeaderINfo.Text = prsAdSoyad + ", TC No: " + tckno + ",Otopark: " + otoparkAdi;

            cbRaporlar.SelectedIndex   = 0;
            cb_islemTuru.SelectedIndex = 0;
            cbOdemeTuru.SelectedIndex  = 0;
            Main_Grid.DataSource       = db.otoparkIslem.otoparkGetir(Convert.ToInt16(parkNo));
            Main_Grid.AutoResizeColumns();
            Main_Grid.AutoSizeColumnsMode = DataGridViewAutoSizeColumnsMode.Fill;



            otoparkBilgiGetir();
        }
예제 #3
0
 private void btnMusterileriListele_Click(object sender, EventArgs e)
 {
     lblRapor.Visible   = false;
     lbl_ara.Visible    = true;
     cbRaporlar.Visible = false;
     ara = "musteriler";
     Main_Grid.DataSource       = db.musteriIslemleri.musterileriGetir();
     Main_Grid.ContextMenuStrip = null;
     Main_Grid.AutoResizeColumns();
     Main_Grid.AutoSizeColumnsMode = DataGridViewAutoSizeColumnsMode.Fill;
 }
예제 #4
0
 private void btnKargolariListele_Click(object sender, EventArgs e)
 {
     lblRapor.Visible   = false;
     lbl_ara.Visible    = true;
     cbRaporlar.Visible = false;
     ara = "kargolar";
     Main_Grid.DataSource       = db.kargoIslemleri.SubeyeGorekargolariGetir(Convert.ToInt16(subeNo));
     Main_Grid.ContextMenuStrip = contextMenuStripKargolar;
     Main_Grid.AutoResizeColumns();
     Main_Grid.AutoSizeColumnsMode = DataGridViewAutoSizeColumnsMode.AllCells;
 }
예제 #5
0
        private void btnSubeListele_Click(object sender, EventArgs e)
        {
            lblRapor.Visible   = false;
            lbl_ara.Visible    = true;
            cbRaporlar.Visible = false;
            subeGuncelle s = new subeGuncelle(Convert.ToInt16(subeNo));

            this.Visible = false;
            s.ShowDialog();
            this.Visible         = true;
            Main_Grid.DataSource = db.subeIslem.subeyiListele(Convert.ToInt16(subeNo));
            Main_Grid.AutoResizeColumns();
            Main_Grid.AutoSizeColumnsMode = DataGridViewAutoSizeColumnsMode.Fill;
        }
예제 #6
0
 private void btnPersonelListesi_Click(object sender, EventArgs e)
 {
     lblRapor.Visible   = false;
     lbl_ara.Visible    = true;
     cbRaporlar.Visible = false;
     ara = "yetkililer";
     lblRapor.Visible           = false;
     lbl_ara.Visible            = true;
     cbRaporlar.Visible         = false;
     Main_Grid.DataSource       = db.uyeIslemleri.seciliSubeninYetkilileriGetir(Convert.ToInt16(subeNo));
     Main_Grid.ContextMenuStrip = contextMenuStripPersoneller;
     Main_Grid.AutoResizeColumns();
     Main_Grid.AutoSizeColumnsMode = DataGridViewAutoSizeColumnsMode.Fill;
 }
예제 #7
0
        private void personelGüncelleToolStripMenuItem_Click(object sender, EventArgs e)
        {
            ara = "personeller";
            DataGridViewRow  seciliYetkili = Main_Grid.CurrentRow;
            string           yetkiliTC     = seciliYetkili.Cells["Kimlik NO"].Value.ToString();
            personelGuncelle s             = new personelGuncelle(yetkiliTC, false);

            this.Visible = false;
            s.ShowDialog();
            this.Visible               = true;
            Main_Grid.DataSource       = db.personelIslemleri.otoparkaGorePersoneller(Convert.ToInt16(parkNo));
            Main_Grid.ContextMenuStrip = contextMenuStripPersoneller;
            Main_Grid.AutoResizeColumns();
            Main_Grid.AutoSizeColumnsMode = DataGridViewAutoSizeColumnsMode.Fill;
        }
예제 #8
0
        private void btnGonderiYap_Click(object sender, EventArgs e)
        {
            ara = "kargolar";
            lblRapor.Visible   = false;
            lbl_ara.Visible    = true;
            cbRaporlar.Visible = false;
            gonderiYap s = new gonderiYap(tckno);

            this.Visible = false;
            s.ShowDialog();
            this.Visible               = true;
            Main_Grid.DataSource       = db.kargoIslemleri.kargolariGetir();
            Main_Grid.ContextMenuStrip = contextMenuStripKargolar;
            Main_Grid.AutoResizeColumns();
            Main_Grid.AutoSizeColumnsMode = DataGridViewAutoSizeColumnsMode.AllCells;
        }
예제 #9
0
        private void gönderiyiGüncelleToolStripMenuItem_Click(object sender, EventArgs e)
        {
            ara = "kargolar";
            DataGridViewRow seciliGonderi = Main_Grid.CurrentRow;
            int             takipNo       = Convert.ToInt16(seciliGonderi.Cells["Takip No"].Value);



            gonderiGuncelle s = new gonderiGuncelle(takipNo, tckno);

            this.Visible = false;
            s.ShowDialog();
            this.Visible = true;

            Main_Grid.DataSource       = db.kargoIslemleri.kargolariGetir();
            Main_Grid.ContextMenuStrip = contextMenuStripKargolar;
            Main_Grid.AutoResizeColumns();
            Main_Grid.AutoSizeColumnsMode = DataGridViewAutoSizeColumnsMode.AllCells;
        }
예제 #10
0
        private void personelSilToolStripMenuItem_Click(object sender, EventArgs e)
        {
            ara = "personeller";
            DialogResult sonuc;

            sonuc = MessageBox.Show("Bu işlem geri alınamaz.... \n Seçili kullancıyı silmek istediğinizden emin misiniz? ", "Uyarı", MessageBoxButtons.OKCancel, MessageBoxIcon.Warning);

            if (sonuc == DialogResult.OK)
            {
                DataGridViewRow seciliYetkili = Main_Grid.CurrentRow;
                string          yetkiliTC     = seciliYetkili.Cells["Kimlik No"].Value.ToString();

                db.personelIslemleri.PersonelSil(yetkiliTC);

                MessageBox.Show("Silme işlemi başarılı..", "İşlem Başarılı", MessageBoxButtons.OK, MessageBoxIcon.Information);
                Main_Grid.DataSource       = db.personelIslemleri.otoparkaGorePersoneller(Convert.ToInt16(parkNo));
                Main_Grid.ContextMenuStrip = contextMenuStripPersoneller;
                Main_Grid.AutoResizeColumns();
                Main_Grid.AutoSizeColumnsMode = DataGridViewAutoSizeColumnsMode.Fill;
            }
        }
예제 #11
0
 private void btnPersonelListesi_Click(object sender, EventArgs e)
 {
     tb_ara.Visible     = true;
     lblRapor.Visible   = false;
     lbl_ara.Visible    = true;
     cbRaporlar.Visible = false;
     ara = "personeller";
     lblRapor.Visible           = false;
     lbl_ara.Visible            = true;
     cbRaporlar.Visible         = false;
     gbIslemYap.Visible         = false;
     Main_Grid.Visible          = true;
     gbAra.Enabled              = true;
     label1.Enabled             = false;
     dtpGiris.Enabled           = false;
     dtpCikis.Enabled           = false;
     lblTarihAraligi.Enabled    = false;
     Main_Grid.DataSource       = db.personelIslemleri.otoparkaGorePersoneller(Convert.ToInt16(parkNo));
     Main_Grid.ContextMenuStrip = contextMenuStripPersoneller;
     Main_Grid.AutoResizeColumns();
     Main_Grid.AutoSizeColumnsMode = DataGridViewAutoSizeColumnsMode.Fill;
 }
예제 #12
0
        private void btnOtoparkGuncelle_Click(object sender, EventArgs e)
        {
            lblRapor.Visible        = false;
            lbl_ara.Visible         = true;
            cbRaporlar.Visible      = false;
            gbIslemYap.Visible      = false;
            label1.Enabled          = false;
            dtpGiris.Enabled        = false;
            dtpCikis.Enabled        = false;
            lblTarihAraligi.Enabled = false;
            Main_Grid.Visible       = true;
            tb_ara.Visible          = true;
            gbAra.Enabled           = true;
            otoparkGuncelle s = new otoparkGuncelle(Convert.ToInt16(parkNo));

            this.Visible = false;
            s.ShowDialog();
            this.Visible         = true;
            Main_Grid.DataSource = db.otoparkIslem.otoparkGetir(Convert.ToInt16(parkNo));
            Main_Grid.AutoResizeColumns();
            Main_Grid.AutoSizeColumnsMode = DataGridViewAutoSizeColumnsMode.Fill;
        }