public DBObjectCollection <EquipmentDateObject> GetEquipmentDates(WrkgrpDateObject wrkgrpDate)
 {
     if (_wrkgrp_eq_dates.ContainsKey(wrkgrpDate._ID))
     {
         return(_wrkgrp_eq_dates[wrkgrpDate._ID]);
     }
     else
     {
         return(new DBObjectCollection <EquipmentDateObject>());
     }
 }
示例#2
0
        public IEnumerable <TechObject> GetTechs(WrkgrpDateObject date)
        {
            // DONE: 返回工组日历下的派工
            List <TechObject> rslt = new List <TechObject>();

            if (_wrkgrpdate_techs.ContainsKey(date._ID))
            {
                foreach (var tech in _wrkgrpdate_techs[date._ID])
                {
                    rslt.Add(tech);
                }
            }
            return(rslt);
        }
示例#3
0
 public TechObject GetTech(TreeObject toptree, WrkgrpDateObject date)
 {
     // DONE: 返回工艺树在工组日历下的派工
     if (_tree_techs.ContainsKey(toptree._ID))
     {
         var techs = _tree_techs[toptree._ID];
         foreach (var tech in techs)
         {
             if (tech.Wrkgrp_ID == date.Wrkgrp_ID &&
                 tech.begindate >= date.begintime &&
                 tech.begindate < date.endtime)
             {
                 return(tech);
             }
         }
     }
     return(null);
 }
示例#4
0
 public WrkgrpObject GetWrkgrp(WrkgrpDateObject wrkgrpDate)
 {
     return(GetByID(wrkgrpDate.Wrkgrp_ID));
 }