private void LoadOperationProjectCompleted(LoadOperation<project> aLoadOperation)
        {
            ProjectList.Clear();
            foreach (project project in aLoadOperation.Entities)
            {
                ProjectEntity projectEntity = new ProjectEntity();
                projectEntity.Project = project;
                projectEntity.Update();
                if (!String.IsNullOrEmpty(projectEntity.PlanVersionID))
                {
                    IEnumerable<plan_extra> plan_extras = from c in planManagerDomainContext.plan_extras
                                                          where c.version_id == projectEntity.PlanVersionID
                                                            && c.manufacture_number == projectEntity.ManufactureNumber
                                                          select c;
                    if (0 != plan_extras.Count())
                    {
                        plan_extra planExtra = plan_extras.First<plan_extra>();
                        projectEntity.CompileUserName = planExtra.compile_user_name;
                        projectEntity.CompileDate = planExtra.compile_date;
                    }

            //                     IEnumerable<string> planVersions = from c in planManagerDomainContext.plans
            //                                                           where c.manufacture_number == projectEntity.ManufactureNumber
            //                                                           select c.version_id;
                    if (!string.IsNullOrEmpty(project.plan_version_id))
                    {
            //                         projectEntity.PlanVersionDictionary = new Dictionary<string, string>();
            //                         foreach (string item in planVersions)
            //                         {
            //                             if (projectEntity.PlanVersionDictionary.ContainsKey(item))
            //                             {
            //                                 continue;
            //                             }
            //                             projectEntity.PlanVersionDictionary.Add(item, item);
            //                         }
                        projectEntity.HasHistory = true;
                    }
                }

                UserProjectEntity lUserProjectEntity;
                if (UserProjectEntityDictionary.TryGetValue(projectEntity.ManufactureNumber, out lUserProjectEntity))
                {
                    projectEntity.UserProjectEntity = lUserProjectEntity;
                    projectEntity.SetIsUserProject(true);
                }

                projectEntity.UserProjectEntityDictionary = UserProjectEntityDictionary;
                if (IsUserProject && !projectEntity.IsUserProject)
                {
                    continue;
                }

                UserRemindEntity lUserRemindEntity;
                if (UserRemindEntityDicationary.TryGetValue(projectEntity.ManufactureNumber, out lUserRemindEntity))
                {
                    projectEntity.UserRemindEntity = lUserRemindEntity;
                }

                projectEntity.PlanManagerDomainContext = planManagerDomainContext;

                ProjectList.Add(projectEntity);
            }
            if (aLoadOperation.TotalEntityCount != -1)
            {
                this.projectView.SetTotalItemCount(aLoadOperation.TotalEntityCount);
            }
            UpdateChanged("ProjectList");
            this.IsBusy = false;
        }
        private void LoadOperationProjectCompleted(LoadOperation<ProductManager.Web.Model.project> aLoadOperation)
        {
            ProjectEntityList.Clear();
            UserProjectCount = 0;
            foreach (ProductManager.Web.Model.project project in aLoadOperation.Entities)
            {
                ProjectEntity projectEntity = new ProjectEntity();
                projectEntity.Project = project;
                projectEntity.ProjectEntityDictionary = ProjectEntityDictionary;
                projectEntity.Update();

                UserProjectEntity lUserProjectEntity;
                if (UserProjectEntityDictionary.TryGetValue(projectEntity.ManufactureNumber, out lUserProjectEntity))
                {
                    projectEntity.UserProjectEntity = lUserProjectEntity;
                    projectEntity.SetIsUserProject(true);
                }

                projectEntity.UserProjectEntityDictionary = UserProjectEntityDictionary;
                projectEntity.ProductManagersViewModel = this;
                projectEntity.ProductDomainContext = ProductDomainContext;
                if (IsUserProject && !projectEntity.IsUserProject)
                {
                    continue;
                }
                ProjectEntityList.Add(projectEntity);
                UserProjectCount++;
            }
            if (aLoadOperation.TotalEntityCount != -1)
            {
                this.projectView.SetTotalItemCount(aLoadOperation.TotalEntityCount);
            }
            UpdateChanged("ProjectEntityList");
            UpdateChanged("RecorderCount");
            this.IsBusy = false;
        }