Exemplo n.º 1
0
    public department(int number, int num_tec, string nam, int pos, int num_lines)      //конструктор ініціалізації
    {
        number_workers = number;
        number_tecnic  = num_tec;
        name           = nam;
        pos_in_prod    = pos;
        number_lines   = num_lines;

        for (int i = 0; i < number_lines; i++)
        {
            conveyer_line line = new conveyer_line();
            conveyer_lines.Add(line);
        }

        for (int i = 0; i < number_lines; i++)
        {
            tecnique tec = new tecnique();
            tecniques.Add(tec);
        }
        kan = new kanban();

        //store product = new store(st);



        Console.WriteLine("The department was created by initialisation\n");
    }
Exemplo n.º 2
0
 /// <summary>
 /// Remove an existing tecnique from the collection
 /// </summary>
 /// <pdGenerated>Default Remove</pdGenerated>
 public void RemoveTecnique(tecnique oldTecnique)
 {
     if (oldTecnique == null)
     {
         return;
     }
     if (this.tecnique != null)
     {
         if (this.tecnique.Contains(oldTecnique))
         {
             this.tecnique.Remove(oldTecnique);
         }
     }
 }
Exemplo n.º 3
0
 /// <summary>
 /// Add a new tecnique in the collection
 /// </summary>
 /// <pdGenerated>Default Add</pdGenerated>
 public void AddTecnique(tecnique newTecnique)
 {
     if (newTecnique == null)
     {
         return;
     }
     if (this.tecnique == null)
     {
         this.tecnique = new System.Collections.ArrayList();
     }
     if (!this.tecnique.Contains(newTecnique))
     {
         this.tecnique.Add(newTecnique);
     }
 }
Exemplo n.º 4
0
    public department()      //конструктор за замовчуванням
    {
        number_workers = 10;
        number_tecnic  = 0;
        name           = "";
        pos_in_prod    = 1;
        number_lines   = 0;
        for (int i = 0; i < number_lines; i++)
        {
            conveyer_line line = new conveyer_line();
            conveyer_lines.Add(line);
        }

        for (int i = 0; i < number_lines; i++)
        {
            tecnique tec = new tecnique();
            tecniques.Add(tec);
        }
        kan = new kanban();

        Console.WriteLine("The department was created by default\n");
    }
Exemplo n.º 5
0
 public tecnique(tecnique arg)                //конструктор копіювання
 {
     worked_years  = arg.worked_years;
     qualification = arg.qualification;
     Console.WriteLine("The tecnique was created by copy");
 }