void loadOperationProductDictionary_Completed(object sender, EventArgs e)
        {
            ProductEntityDictionary.Clear();

            LoadOperation loadOperation = sender as LoadOperation;
            foreach (ProductManager.Web.Model.product product in loadOperation.Entities)
            {
                ProductEntity productEntity = new ProductEntity();
                productEntity.Product = product;
                productEntity.Update();
                ProductEntityDictionary.Add(productEntity.ProductID, productEntity);
            }

            LoadOperation<ProductManager.Web.Model.product_part_type> loadOperationProductPartType =
               SystemManageDomainContext.Load<ProductManager.Web.Model.product_part_type>(SystemManageDomainContext.GetProduct_part_typeQuery());
            loadOperationProductPartType.Completed += loadOperationPartTimeType_Completed;
        }
        private void LoadOperationProductCompleted(LoadOperation<ProductManager.Web.Model.product> aLoadOperation)
        {
            ProductEntityList.Clear();
            foreach (ProductManager.Web.Model.product product in aLoadOperation.Entities)
            {
                ProductEntity productEntity = new ProductEntity();
                productEntity.Product = product;
                productEntity.Update();

                ProjectEntity lProjectEntityTemp;
                if (ProjectEntityDictionary.TryGetValue(productEntity.ManufactureNumber, out lProjectEntityTemp))
                {
                    productEntity.ProjectName = lProjectEntityTemp.ProjectName;
                }

                if (ProjectNameSearch != null && ProjectNameSearch.Length > 0)
                {
                    if (!productEntity.ProjectName.Contains(ProjectNameSearch))
                    {
                        continue;
                    }
                }

                ProductEntityList.Add(productEntity);
            }
            IsBusy = false;
        }
        private void LoadOperationProductCompleted(LoadOperation<ProductManager.Web.Model.product> aLoadOperation)
        {
            ProductEntityList.Clear();
            foreach (ProductManager.Web.Model.product product in aLoadOperation.Entities)
            {
                ProductEntity productEntity = new ProductEntity();
                productEntity.Product = product;
                productEntity.ProjectEntityDictionary = ProjectEntityDictionary;
                productEntity.ProductPartTypeEntityDictionary = ProductPartTypeDictionary;
                productEntity.Update();

                productEntity.ProductEntityDictionary = ProductEntityDictionary;
                ProductTypeEntity lProductTypeEntity;
                if (ProductTypeEntityDictionary.TryGetValue(productEntity.ProductTypeID, out lProductTypeEntity))
                {
                    productEntity.ProductTypeString = lProductTypeEntity.ProductTypeName;
                }

                ProductEntityList.Add(productEntity);
            }
            if (aLoadOperation.TotalEntityCount != -1)
            {
                this.productView.SetTotalItemCount(aLoadOperation.TotalEntityCount);
            }
            UpdateChanged("ProductEntityList");
            this.IsBusy = false;
        }