Ejemplo n.º 1
0
      // GET: MEMBER/CreateStatus
      public ActionResult CreateStatus()
      {
          EmployeeStateService     repo = new EmployeeStateService();
          EmployeeStatusCreateForm e    = new EmployeeStatusCreateForm(repo.Get());

          return(View(e));
      }
Ejemplo n.º 2
0
        public State(int id)
        {
            EmployeeStateService   repoEmpState  = new EmployeeStateService();
            EEmployeeStateService  repoEEmpState = new EEmployeeStateService();
            Employee_EmployeeState eEmpState     = repoEEmpState.Get(id);

            if (eEmpState != null)
            {
                Id            = eEmpState.Id;
                EmployeeId    = eEmpState.EmployeeId;
                EmployeeState = new CurrentOn(repoEmpState.Get(eEmpState.EmployeeStateId));
                StartDate     = eEmpState.StartDate;
                EndDate       = eEmpState.EndDate;
            }
        }
Ejemplo n.º 3
0
        public State(Employee_EmployeeState ees) : this(ees.Id, ees.EmployeeId, ees.StartDate, ees.EndDate)
        {
            EmployeeStateService repoempstate = new EmployeeStateService();

            EmployeeState = new CurrentOn(repoempstate.Get(ees.EmployeeStateId));
        }