Beispiel #1
0
 public TaskOrderViewList(TaskOrderCollection taskOrderCollection)
 {
     foreach (TaskOrder taskOrder in taskOrderCollection)
     {
         this.Add(new Model.TaskOrderView(taskOrder));
     }
 }
Beispiel #2
0
        public TaskOrderCollection TaskOrderCollectionForReport(string reportNo)
        {
            TaskOrderCollection result = new TaskOrderCollection();

            foreach (TaskOrder taskOrder in this)
            {
                if (taskOrder.ReportNo == reportNo)
                {
                    result.Add(taskOrder);
                }
            }

            return(result);
        }