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

            Post = worker.Post;
            Salary = worker.Salary;
        }
Esempio 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;
        }
Esempio n. 3
0
 public TeachersDTO(WorkersDTO teacher)
     : base(teacher)
 {
     LabelsText.Add("SientistLevel");
     LabelsText.Add("AmountOfHours");
 }
 public AuxiliaryWorkersDTO(WorkersDTO auxiliaryWorker)
     : base(auxiliaryWorker)
 {
     LabelsText.Add("Shift");
     LabelsText.Add("TypeOfWork");
 }