public List <RetrievalFormItemData> findRetrievalFormItemDate()
        {
            List <RetrievalFormItemData> DataList = new List <RetrievalFormItemData>();

            List <RetrievalFormItem> list = new List <RetrievalFormItem>();

            list = reDAO.getRetrievalFormByDate(DateTime.Now);

            for (int i = 0; i < list.Count(); i++)
            {
                DataList.Add(new RetrievalFormItemData());

                List <BreakdownByDepartment>     breaklist     = list[i].BreakdownByDepartmentList;
                List <BreakdownByDepartmentData> breakDataList = new List <BreakdownByDepartmentData>();
                for (int j = 0; j < breaklist.Count(); j++)// initialize breakDatalist
                {
                    breakDataList.Add(new BreakdownByDepartmentData());
                    breakDataList[j].deptID = breaklist[j].DeptID;
                    breakDataList[j].needed = breaklist[j].Needed;
                    breakDataList[j].actual = breaklist[j].Actual;
                }
                DataList[i] = RetrievalFormItemData.Make(list[i].ItemID, list[i].ItemDescription, list[i].Location, list[i].Needed, list[i].Actual, breakDataList);
            }
            return(DataList);
        }
        public static RetrievalFormItemData Make(string itemID, string description, string itemLocation, int itemNeeded, int itemActual, List <BreakdownByDepartmentData> breakdownByDepartmentListData)
        {
            RetrievalFormItemData data = new RetrievalFormItemData();

            data.itemID          = itemID;
            data.itemDescription = description;
            data.itemLocation    = itemLocation;
            data.itemNeeded      = itemNeeded;
            data.itemActual      = itemActual;
            data.breakdownByDepartmentListData = breakdownByDepartmentListData;

            return(data);
        }