Exemplo n.º 1
0
 public TempsJournee(VuePlanningGlobal vpg)
 {
     this.idtypetemps = vpg.id_type_temps;
     this.description = " de " + vpg.date_debut.ToShortTimeString() +
                         " à " + vpg.date_fin.ToShortTimeString() +
                         " - <strong>" + vpg.typetemps + "</strong>" +
                         " " + vpg.nomclient;
     this.nomtypetemps = vpg.typetemps;
 }
Exemplo n.º 2
0
        public void ajouteAJourEmps(VuePlanningGlobal vpg)
        {
            if (this.valeurs.LastOrDefault() == null)
            {
                JourEmp jemp = new JourEmp(vpg);
                this.valeurs.Add(jemp);
            }
            else
            {
                var testDate = this.valeurs.LastOrDefault().debutJournee.ToShortDateString();
                var testDate2 = vpg.date_debut.ToShortDateString();
                if (this.valeurs.LastOrDefault().debutJournee.ToShortDateString() == vpg.date_debut.ToShortDateString())
                {
                    this.valeurs.LastOrDefault().ajouteTempsJournee(vpg);
                }
                else
                {
                    JourEmp jemp = new JourEmp(vpg);
                    this.valeurs.Add(jemp);
                }

            }
        }
Exemplo n.º 3
0
 /// <summary>
 /// Deprecated Method for adding a new object to the VuePlanningGlobal EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToVuePlanningGlobal(VuePlanningGlobal vuePlanningGlobal)
 {
     base.AddObject("VuePlanningGlobal", vuePlanningGlobal);
 }
Exemplo n.º 4
0
 /// <summary>
 /// Create a new VuePlanningGlobal object.
 /// </summary>
 /// <param name="date_debut">Initial value of the date_debut property.</param>
 /// <param name="date_fin">Initial value of the date_fin property.</param>
 /// <param name="idemploye">Initial value of the idemploye property.</param>
 /// <param name="id_type_temps">Initial value of the id_type_temps property.</param>
 public static VuePlanningGlobal CreateVuePlanningGlobal(global::System.DateTime date_debut, global::System.DateTime date_fin, global::System.Int32 idemploye, global::System.Int32 id_type_temps)
 {
     VuePlanningGlobal vuePlanningGlobal = new VuePlanningGlobal();
     vuePlanningGlobal.date_debut = date_debut;
     vuePlanningGlobal.date_fin = date_fin;
     vuePlanningGlobal.idemploye = idemploye;
     vuePlanningGlobal.id_type_temps = id_type_temps;
     return vuePlanningGlobal;
 }
Exemplo n.º 5
0
 public void ajouteTempsJournee(VuePlanningGlobal vpg)
 {
     TempsJournee tpsJournee = new TempsJournee(vpg);
     this.tpsJour.Add(tpsJournee);
 }
Exemplo n.º 6
0
 public JourEmp(VuePlanningGlobal vpg)
 {
     this.DetermineLeJour(vpg.date_debut);
     this.tpsJour = new List<TempsJournee>();
     this.ajouteTempsJournee(vpg);
 }