Example #1
0
 /// <summary>
 /// Метод добавления нового отделения.
 /// </summary>
 public void InsertEntity()
 {
     if ((Department as IDepartment).DeptName != string.Empty && (Department as IDepartment).DeptInfo != string.Empty)
     {
         deptModel.InsertEntity(Department);
         CloseAction();
     }
 }
 /// <summary>
 /// Метод добавления нового сотрудника.
 /// </summary>
 public void InsertEntity()
 {
     if ((Employee as IEmployee).Surname != string.Empty && (Employee as IEmployee).Name != string.Empty && (Employee as IEmployee).SecondName != string.Empty && (Employee as IEmployee).Birthday.HasValue && (Employee as IEmployee).Id_Department != -1 && (Employee as IEmployee).Salary.HasValue)
     {
         empModel.InsertEntity(Employee);
         CloseAction();
     }
 }