Exemplo n.º 1
0
        public WorkersDTO(WorkersDTO worker)
            : base(worker)
        {
            LabelsText.Add("Post");
            LabelsText.Add("Salary");

            Post = worker.Post;
            Salary = worker.Salary;
        }
Exemplo n.º 2
0
        public override TUObjectsDTO Select(int id)
        {
            TUObjectsDTO tuObject = base.Select(id);
            PeopleDTO people = (PeopleDTO)tuObject;
            WorkersDTO worker = new WorkersDTO(people);

            dbCommand.CommandText = string.Format("Select Post, Salary From Workers Where Id = {0}", id);
            dataReader = dbCommand.ExecuteReader();
            dataReader.Read();

            worker.Post = dataReader.GetString(0);
            worker.Salary = dataReader.GetDouble(1);

            dataReader.Close();
            return worker;
        }
Exemplo n.º 3
0
 public TeachersDTO(WorkersDTO teacher)
     : base(teacher)
 {
     LabelsText.Add("SientistLevel");
     LabelsText.Add("AmountOfHours");
 }
Exemplo n.º 4
0
 public AuxiliaryWorkersDTO(WorkersDTO auxiliaryWorker)
     : base(auxiliaryWorker)
 {
     LabelsText.Add("Shift");
     LabelsText.Add("TypeOfWork");
 }