コード例 #1
0
        private void btnAltSurecEkle_Click(object sender, EventArgs e)
        {
            if (lstProsses.SelectedItems.Count != 0)
            {
                int seciliid = lstProsses.Items.IndexOf(lstProsses.SelectedItems[0]);

                string prosesAd = lstProsses.Items[seciliid].Text;

                int seciliPrjID = Convert.ToInt32(lstProsses.Items.IndexOf(lstProsses.FocusedItem));
                int prosesId    = Convert.ToInt32(lstProsses.Items[seciliPrjID].SubItems[8].Text);

                YazilimYonetimAraciEntities1 db = new YazilimYonetimAraciEntities1();
                if (db.Process.Where(p => p.ProcessID == prosesId).Select(pro => pro.ParentID).FirstOrDefault() != 0)
                {
                    MessageBox.Show("Seçilen süreç zaten 'alt süreç' olarak sistemde mevcut..");
                }
                else
                {
                    this.Close();
                    frmProssesEkle pr = new frmProssesEkle(kID, prosesAd, prjID, prosesId);
                    pr.Show();
                }
            }
            else
            {
                MessageBox.Show("Bir Süreç Seçiniz..!");
            }
        }
コード例 #2
0
        private void btnSurecEkle_ItemClick(object sender, ItemClickEventArgs e)
        {
            if (lstYntcProjeList.SelectedItems.Count > 0)
            {
                int seciliid = lstYntcProjeList.Items.IndexOf(lstYntcProjeList.SelectedItems[0]);
                projead = lstYntcProjeList.Items[seciliid].Text;

                int seciliPrjID = Convert.ToInt32(lstYntcProjeList.Items.IndexOf(lstYntcProjeList.FocusedItem));
                int projeID     = Convert.ToInt32(lstYntcProjeList.Items[seciliPrjID].SubItems[7].Text);

                this.Close();
                frmProssesEkle pr = new frmProssesEkle(kID, projead, projeID);
                pr.Show();
            }
            else
            {
                MessageBox.Show("Lütfen Bir Proje Seçin...!");
            }
        }
コード例 #3
0
        private void btnAltSurecDuzenle_Click(object sender, EventArgs e)
        {
            if (lstProsses.SelectedItems.Count != 0)
            {
                int seciliid = lstProsses.Items.IndexOf(lstProsses.SelectedItems[0]);

                string prosesAd = lstProsses.Items[seciliid].Text;

                int seciliPrjID = Convert.ToInt32(lstProsses.Items.IndexOf(lstProsses.FocusedItem));
                int prosesId    = Convert.ToInt32(lstProsses.Items[seciliPrjID].SubItems[8].Text);

                YazilimYonetimAraciEntities1 db = new YazilimYonetimAraciEntities1();


                this.Close();
                frmProssesEkle pr = new frmProssesEkle(kID, prosesAd, prjID, prosesId, true);
                pr.Show();
            }
            else
            {
                MessageBox.Show("Bir Süreç Seçiniz..!");
            }
        }