public IList<Document> GetTaskByUser(TaskByUser data, Location location)
        {
            IList<Document> list;

            try
            {
                list = Factory.DaoTaskByUser().Select(data).Select(f => f.TaskDocument).ToList();
            }
            catch
            {
                list = new List<Document>();
            }


            list = list.Union<Document>(
                Factory.DaoDocument().SelectPending(new Document
                {
                    Location = location,
                    DocType = new DocumentType { DocClass = new DocumentClass { DocClassID = SDocClass.Task } }

                }, WmsSetupValues.HistoricDaysToShow, WmsSetupValues.NumRegsDevice)
             ).ToList<Document>();


            return list;
        }