public static void PlayEmployeeWeeks(IPlanningContext context, List<EmployeeWeek> listEmployee) { if (_instance == null) _instance = new FormEmployeeWorkingModelApplied(); _instance.PlayWorkingModel(context, listEmployee); _instance.ShowOrHide(); }
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; }
public static void PlayEmployeeWeeks(IPlanningContext context, List <EmployeePlanningWeek> listEmployee) { if (_instance == null) { _instance = new FormEmployeeWorkingModelApplied(); } _instance.PlayWorkingModel(context, listEmployee); _instance.ShowOrHide(); }
public void Free() { _context = null; _listemployeesweek.Clear(); _dictionEmployees.Clear(); _StoreWorldInfo = null; _summary.Clear(); }
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; }
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; }
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; }