protected override EmployeeInfo Parse()
 {
     return(new EmployeeInfo
     {
         ID = ToInt(ID),
         EmployeeNumber = EmployeeNumber.ToString(),
         FirstName = FirstName.ToString(),
         LastName = LastName.ToString(),
         MI = MI.ToString(),
         Email = Email.ToString(),
         Password = Password.ToString(),
         Contact = Contact.ToString(),
         Address = Address.ToString(),
         Birthday = Birthday.ToString(),
         Gender = Gender.ToString(),
         Religion = Religion.ToString(),
         Nationality = Nationality.ToString(),
         Birthplace = Birthplace.ToString(),
         CivilStatus = CivilStatus.ToString(),
         EmployeeStatusID = ToInt(EmployeeStatusID),
         DateHired = DateHired.ToString(),
         DateCreated = DateCreated.ToString(),
         DatedUpdated = DatedUpdated.ToString(),
         DatedDeleted = DatedDeleted.ToString(),
         RoleID = ToInt(RoleID),
         EmployeeStatus = EmployeeStatus.ToString(),
         RoleStatus = RoleStatus.ToString()
     });
 }
Пример #2
0
        static void Uri1008(string[] args)
        {
            int    EmployeeNumber;
            int    WorkTime;
            double WorkValue;

            EmployeeNumber = int.Parse(Console.ReadLine());
            WorkTime       = int.Parse(Console.ReadLine());
            WorkValue      = double.Parse(Console.ReadLine());

            double Salary = (WorkTime * WorkValue);

            Console.WriteLine("NUMBER = " + EmployeeNumber.ToString());
            Console.WriteLine("SALARY = U$ " + Salary.ToString("F2"));
        }