public SalesPerson CreateNewSalesPerson(Employee employee)
 {
     var _SalesPerson = NewTransientInstance<SalesPerson>();
     _SalesPerson.Employee = employee;
     //set up any parameters
     //MakePersistent(_SalesPerson);
     return _SalesPerson;
 }
Пример #2
0
 public void AddToEmployees(Employee employee)
 {
     base.AddObject("Employees", employee);
 }
Пример #3
0
 public static Employee CreateEmployee (int employeeID , string nationalIDNumber , int contactID , string loginID , string title , global::System.DateTime birthDate , string maritalStatus , string gender , global::System.DateTime hireDate , bool salariedFlag , short vacationHours , short sickLeaveHours , bool currentFlag , global::System.Guid rowguid , global::System.DateTime modifiedDate)
 {
     Employee employee = new Employee();
     employee.EmployeeID = employeeID;
     employee.NationalIDNumber = nationalIDNumber;
     employee.ContactID = contactID;
     employee.LoginID = loginID;
     employee.Title = title;
     employee.BirthDate = birthDate;
     employee.MaritalStatus = maritalStatus;
     employee.Gender = gender;
     employee.HireDate = hireDate;
     employee.SalariedFlag = salariedFlag;
     employee.VacationHours = vacationHours;
     employee.SickLeaveHours = sickLeaveHours;
     employee.CurrentFlag = currentFlag;
     employee.rowguid = rowguid;
     employee.ModifiedDate = modifiedDate;
     return employee;
 }
 private bool FilterReports(Employee entity)
 {
     return (entity.ManagerID == this.EmployeeID);
 }
 private void DetachReports(Employee entity)
 {
     entity.Manager = null;
 }
 private void AttachReports(Employee entity)
 {
     entity.Manager = this;
 }
 private bool FilterManager(Employee entity)
 {
     return (entity.EmployeeID == this.ManagerID);
 }
 private bool FilterEmployee(Employee entity)
 {
     return (entity.EmployeeID == this.EmployeeID);
 }
Пример #9
0
 public SalesPerson CreateNewSalesPerson(Employee employee) {
     var salesPerson = NewTransientInstance<SalesPerson>();
     salesPerson.Employee = employee;
     return salesPerson;
 }