public static void PlayEmployeeWeeks(IPlanningContext context, List<EmployeeWeek> listEmployee)
 {
     if (_instance == null)
         _instance = new FormEmployeeWorkingModelApplied();
     _instance.PlayWorkingModel(context, listEmployee);
     _instance.ShowOrHide();
 }
예제 #2
0
        public void PlayWorkingModel(IPlanningContext context, List <EmployeeWeek> listEmployee)
        {
            _listItems.Clear();
            gridControl.DataSource = null;
            if (context != null && listEmployee != null && listEmployee.Count > 0)
            {
                WorkingModelManagerNew wmmanager = context.WorkingModels as WorkingModelManagerNew;
                WorkingModelWrapperNew wrapper   = null;
                foreach (EmployeeWeek week in listEmployee)
                {
                    foreach (EmployeeDay day in week.DaysList)
                    {
                        if (day.WorkingModels != null)
                        {
                            foreach (EmployeeWorkingModel model in day.WorkingModels)
                            {
                                wrapper = wmmanager[model.WorkingModelID];
                                if (wrapper != null && wrapper.IsContainMessage())
                                {
                                    _listItems.Add(new EmployeeWTItem(
                                                       week.EmployeeId,
                                                       week.FullName,
                                                       day.Date,
                                                       wrapper.Model.Name,
                                                       wrapper.Model.Message
                                                       ));
                                }
                            }
                        }
                    }
                }
            }

            gridControl.DataSource = _listItems;
        }
예제 #3
0
 public static void PlayEmployeeWeeks(IPlanningContext context, List <EmployeePlanningWeek> listEmployee)
 {
     if (_instance == null)
     {
         _instance = new FormEmployeeWorkingModelApplied();
     }
     _instance.PlayWorkingModel(context, listEmployee);
     _instance.ShowOrHide();
 }
예제 #4
0
        public void Free()
        {
            _context = null;
            _listemployeesweek.Clear();
            _dictionEmployees.Clear();
            _StoreWorldInfo = null;

            _summary.Clear();
        }
예제 #5
0
 public EmployeeWeekView(IPlanningContext context, EmployeeWeek planweek, EmployeeWeek actualweek, long orderHWGR) :
     this(context)
 {
     _planningWeek = planweek;
     _actualWeek   = actualweek;
     _OrderHWGR    = orderHWGR;
     if (_planningWeek != null)
     {
         _EmplFullName = _planningWeek.FullName;
     }
 }
예제 #6
0
 public EmployeeWeekView(IPlanningContext context, EmployeeWeek planweek, EmployeeWeek actualweek, long orderHWGR)
     : this(context)
 {
     _planningWeek = planweek;
     _actualWeek = actualweek;
     _OrderHWGR = orderHWGR;
     if (_planningWeek != null)
     {
         _EmplFullName = _planningWeek.FullName;
     }
 }
        public void FillGrid(IPlanningContext context, List<EmployeeWeek> listEmployee)
        {
            _listItems.Clear();
            gridControl.DataSource = null;

            if (listEmployee != null && listEmployee.Count > 0)
            {
                WorkingModelManagerNew wmmanager = context.WorkingModels as WorkingModelManagerNew;
                WorkingModelWrapperNew wrapper = null;
                foreach (EmployeeWeek week in listEmployee)
                {
                    foreach (EmployeeDay day in week.DaysList)
                    {
                        if (day.WorkingModels != null)
                        {
                            foreach (EmployeeWorkingModel model in day.WorkingModels)
                            {
                                wrapper = wmmanager[model.WorkingModelID];
                                if (wrapper != null)
                                {
                                    _listItems.Add(new EmployeeWTItem(
                                                                        week.EmployeeId,
                                                                        week.FullName,
                                                                        day.Date,
                                                                        wrapper.Model.Name,
                                                                        wrapper.Model.Message,
                                                                        model.AdditionalCharge,
                                                                        model.Hours
                                                                        ));
                                }
                            }
                        }
                    }
                }

            }

            gridControl.DataSource = _listItems;
        }
예제 #8
0
        public void FillGrid(IPlanningContext context, List <EmployeePlanningWeek> listEmployee)
        {
            _listItems.Clear();
            gridControl.DataSource = null;

            if (listEmployee != null && listEmployee.Count > 0)
            {
                WorkingModelManager wmmanager = context.WorkingModels as WorkingModelManager;
                WorkingModelWrapper wrapper   = null;
                foreach (EmployeePlanningWeek week in listEmployee)
                {
                    foreach (EmployeePlanningDay day in week.Days.Values)
                    {
                        if (day.WorkingModels != null)
                        {
                            foreach (EmployeePlanningWorkingModel model in day.WorkingModels)
                            {
                                wrapper = wmmanager[model.WorkingModelID];
                                if (wrapper != null)
                                {
                                    _listItems.Add(new EmployeeWTItem(
                                                       week.EmployeeId,
                                                       week.FullName,
                                                       day.Date,
                                                       wrapper.Model.Name,
                                                       wrapper.Model.Message,
                                                       model.AdditionalCharge,
                                                       model.Hours
                                                       ));
                                }
                            }
                        }
                    }
                }
            }

            gridControl.DataSource = _listItems;
        }
예제 #9
0
 public EmployeeWeekView(IPlanningContext context)
 {
     _context = context;
 }
예제 #10
0
 public EmployeeWeekView(IPlanningContext context)
 {
     _context = context;
 }
        public void PlayWorkingModel(IPlanningContext context, List<EmployeePlanningWeek> listEmployee)
        {
            _listItems.Clear();
            gridControl.DataSource = null;
            if (listEmployee != null && listEmployee.Count > 0)
            {
                WorkingModelManager wmmanager = context.WorkingModels as WorkingModelManager;
                WorkingModelWrapper wrapper = null;
                foreach (EmployeePlanningWeek week in listEmployee)
                {
                    foreach (EmployeePlanningDay day in week.Days.Values)
                    {
                        if (day.WorkingModels != null)
                        {
                            foreach (EmployeePlanningWorkingModel model in day.WorkingModels)
                            {
                                wrapper = wmmanager[model.WorkingModelID];
                                if (wrapper != null && wrapper.IsContainMessage())
                                {
                                    _listItems.Add (new EmployeeWTItem (
                                                                        week.EmployeeId,
                                                                        week.FullName,
                                                                        day.Date,
                                                                        wrapper.Model.Name,
                                                                        wrapper.Model.Message
                                                                        ));
                                }
                            }
                        }
                    }
                }

            }

            gridControl.DataSource = _listItems;
        }
예제 #12
0
        public void Free()
        {
            _context = null;
            _listemployeesweek.Clear();
            _dictionEmployees.Clear();
            _StoreWorldInfo = null;

            _summary.Clear();
        }