示例#1
0
        public List <TreeDate> GetByDate(ResourceDate date)
        {
            // DONE: 获取资源日历的分配情况
            List <TreeDate> rslt = new List <TreeDate>();

            if (_date_trees.ContainsKey(date._ID))
            {
                rslt.AddRange(_date_trees[date._ID]);
            }
            return(rslt);
        }
示例#2
0
        public TreeDate NewDate(TreeObject tree, ResourceDate date, double workhour, string RsGroup)
        {
            TreeDate rslt = new TreeDate();

            rslt._ID             = ToID(tree, date);
            rslt.Tree_ID         = tree._ID;
            rslt.ResourceDate_ID = date._ID;
            rslt.begin           = date.begintime;
            rslt.end             = date.endtime;
            rslt.workhour        = workhour;
            rslt.ResourceGroup   = RsGroup;
            rslt.Resource_ID     = date.Resource_ID;
            return(rslt);
        }
示例#3
0
 public string ToID(TreeObject tree, ResourceDate date)
 {
     return("占用:" + tree._ID + "," + date._ID);
 }