public DBObjectCollection <EquipmentDateObject> GetEquipmentDates(WorkgroupDateObject workgroupDate) { if (_workgroup_eq_dates.ContainsKey(workgroupDate._ID)) { return(_workgroup_eq_dates[workgroupDate._ID]); } else { return(new DBObjectCollection <EquipmentDateObject>()); } }
public IEnumerable <TechObject> GetTechs(WorkgroupDateObject date) { // DONE: 返回工组日历下的派工 List <TechObject> rslt = new List <TechObject>(); if (_workgroupdate_techs.ContainsKey(date._ID)) { foreach (var tech in _workgroupdate_techs[date._ID]) { rslt.Add(tech); } } return(rslt); }
public WorkgroupObject GetWorkgroup(WorkgroupDateObject workgroupDate) { return(GetByID(workgroupDate.Workgroup_ID)); }