Beispiel #1
0
        //SELECTION ----------------------------------------------------------------

        // VALIDER CONGE -----------------------------------------------------------
        private void button1_Click(object sender, EventArgs e)
        {
            try
            {
                if (MessageBox.Show("voulez-vous validez ce congé ?", "validé!", MessageBoxButtons.YesNo, MessageBoxIcon.Question) == DialogResult.Yes)
                {
                    CONGE c = new CONGE();
                    var   q = (from x in dc.CONGEs where x.CIN == textBox1.Text && x.DATE_CONGE == DateTime.Parse(textBox2.Text.ToString()) select x).Single();
                    q.DUREE = int.Parse(textBox3.Text);
                    q.ETAT  = "EN COURS";
                    dc.SubmitChanges();
                    radioButton3_CheckedChanged(sender, e);
                }
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.Message);
            }
        }
Beispiel #2
0
 partial void DeleteCONGE(CONGE instance);
Beispiel #3
0
 partial void UpdateCONGE(CONGE instance);
Beispiel #4
0
 partial void InsertCONGE(CONGE instance);
Beispiel #5
0
 private void detach_CONGEs(CONGE entity)
 {
     this.SendPropertyChanging();
     entity.PERSONNEL = null;
 }
Beispiel #6
0
 private void attach_CONGEs(CONGE entity)
 {
     this.SendPropertyChanging();
     entity.PERSONNEL = this;
 }