예제 #1
0
        private void AddJalon_Load(object sender, EventArgs e)
        {
            ResponsableProjet.DisplayMember = "display";
            ResponsableProjet.ValueMember   = "value";

            foreach (Bean.SBResponsable Res in SFactory.GetServiceResponsable().GetResponsables())
            {
                ResponsableProjet.Items.Add(new { display = Res.Trigramme, value = Res.Id });
            }
        }
예제 #2
0
        private void ComboProjet_SelectedIndexChanged(object sender, EventArgs e)
        {
            SBProjet projet = SFactory.GetServiceProjet().GetById((ComboProjet.SelectedItem as dynamic).value);

            this.Tag = projet.Id;

            LabelIdPrj.Text      = projet.Id;
            LabelNomPrj.Text     = projet.Nom;
            LabelRespProjet.Text = SFactory.GetServiceResponsable().GetById(projet.Responsable).Trigramme;
            LabelDebutPrj.Text   = projet.Debut.ToShortDateString();
        }
예제 #3
0
        private void BtnValider_Click(object sender, EventArgs e)
        {
            DateTime LaDate = new DateTime(CalendarJalon.SelectionRange.Start.Year, CalendarJalon.SelectionRange.Start.Month, CalendarJalon.SelectionRange.Start.Day);

            if (TextBoxResponsable.Text != "")
            {
                int identifiant = SFactory.GetServiceResponsable().AddResposable(TextBoxResponsable.Text);
                SFactory.GetServiceJalon().AddJalon(TextboxLabel.Text, LaDate, identifiant);
            }
            else
            {
                SFactory.GetServiceJalon().AddJalon(TextboxLabel.Text, LaDate, (ResponsableProjet.SelectedItem as dynamic).value);
            }
        }
예제 #4
0
        private void BtnValider_Click(object sender, EventArgs e)
        {
            DateTime LaDate = new DateTime(CalendarProject.SelectionRange.Start.Year, CalendarProject.SelectionRange.Start.Month, CalendarProject.SelectionRange.Start.Day);

            if (TextBoxResponsable.Text != "")
            {
                int identifiant = SFactory.GetServiceResponsable().AddResposable(TextBoxResponsable.Text);
                SFactory.GetServiceProjet().UpdateProjet(IdProjet.Text, ProjectName.Text, identifiant, LaDate);
            }
            else
            {
                SFactory.GetServiceProjet().UpdateProjet(IdProjet.Text, ProjectName.Text, (ResponsableProjet.SelectedItem as dynamic).value, LaDate);
            }

            this.Close();
        }
예제 #5
0
        private void ModifProjet_Load(object sender, EventArgs e)
        {
            ResponsableProjet.DisplayMember = "display";
            ResponsableProjet.ValueMember   = "value";

            foreach (Bean.SBResponsable Res in SFactory.GetServiceResponsable().GetResponsables())
            {
                ResponsableProjet.Items.Add(new { display = Res.Trigramme, value = Res.Id });
            }

            Bean.SBProjet P = SFactory.GetServiceProjet().GetById(this.Owner.Tag.ToString());

            IdProjet.Text    = P.Id;
            ProjectName.Text = P.Nom;
            CalendarProject.SetDate(P.Debut);
            ResponsableProjet.SelectedIndex = ResponsableProjet.FindStringExact(SFactory.GetServiceResponsable().GetById(P.Responsable).Trigramme);
        }
예제 #6
0
        private void BtnValider_Click(object sender, EventArgs e)
        {
            DateTime LaDate = new DateTime(CalendarProject.SelectionRange.Start.Year, CalendarProject.SelectionRange.Start.Month, CalendarProject.SelectionRange.Start.Day);

            if (TextBoxResponsable.Text != "")
            {
                int identifiant = SFactory.GetServiceResponsable().AddResposable(TextBoxResponsable.Text);
                SFactory.GetServiceTache().AddTache(TextboxLabel.Text, richTextBox1.Text, -1, (comboBox1.SelectedItem as dynamic).value, Convert.ToInt32(numericUpDown1.Value), (comboBox2.SelectedItem as dynamic).value, 0, LaDate);
            }
            else
            {
                SFactory.GetServiceTache().AddTache(TextboxLabel.Text, richTextBox1.Text, (ResponsableProjet.SelectedItem as dynamic).value, (comboBox1.SelectedItem as dynamic).value, Convert.ToInt32(numericUpDown1.Value), (comboBox2.SelectedItem as dynamic).value, 0, LaDate);
            }


            this.Close();
        }