Esempio n. 1
0
        public void LoadData()
        {
            LoadOperation <ProductManager.Web.Model.department> loadOperationDepartment =
                SystemManageDomainContext.Load <ProductManager.Web.Model.department>(SystemManageDomainContext.GetDepartmentQuery());

            loadOperationDepartment.Completed += loadOperationDepartment_Completed;
        }
        void UpdateAction()
        {
            IsBusy = true;
            LoadOperation <ProductManager.Web.Model.action> loadOperationAction
                = systemManageDomainContext.Load <ProductManager.Web.Model.action>(systemManageDomainContext.GetActionQuery());

            loadOperationAction.Completed += LoadOperation_ActionCompleted;
        }
        private void ChildWindow_Loaded_1(object sender, RoutedEventArgs e)
        {
            BusyIndicator.IsBusy = true;
            DepartmentEntityList.Clear();
            UserEntityList.Clear();
            LoadOperation <department> loadOperationDepartment =
                SystemManageDomainContext.Load <department>(SystemManageDomainContext.GetDepartmentQuery());

            loadOperationDepartment.Completed += loadOperationDepartment_Completed_Dictionary;
        }
Esempio n. 4
0
        void loadOperationDepartment_Completed(object sender, EventArgs e)
        {
            DepartmemtList.Clear();
            DepartmentDictionary.Clear();
            LoadOperation loadOperation = sender as LoadOperation;

            foreach (ProductManager.Web.Model.department department in loadOperation.Entities)
            {
                DepartmentEntity departmentEntity = new DepartmentEntity();
                departmentEntity.Department = department;
                departmentEntity.Update();
                DepartmemtList.Add(departmentEntity);
                DepartmentDictionary.Add(departmentEntity.DepartmentID, departmentEntity);
            }
            DepartmentEntity departmentEntityZero = new DepartmentEntity();

            departmentEntityZero.DepartmentID   = 0;
            departmentEntityZero.DepartmentName = "请选择部门";
            DepartmemtList.Add(departmentEntityZero);
            UpdateChanged("DepartmemtList");

            LoadOperation <ProductManager.Web.Model.user> loadOperationDepartment =
                systemManageDomainContext.Load <ProductManager.Web.Model.user>(systemManageDomainContext.GetUserQuery());

            loadOperationDepartment.Completed += loadOperationUser_Completed;
        }
        void loadOperationDepartment_Completed(object sender, EventArgs e)
        {
            DepartmentEntityDictionary.Clear();
            LoadOperation loadOperation = sender as LoadOperation;

            foreach (ProductManager.Web.Model.department department in loadOperation.Entities)
            {
                DepartmentEntity departmentEntity = new DepartmentEntity();
                departmentEntity.Department = department;
                departmentEntity.Update();
                DepartmentEntityDictionary.Add(departmentEntity.DepartmentID, departmentEntity);
            }

            LoadOperation <ProductManager.Web.Model.user> loadOperationUser =
                SystemManageDomainContext.Load <ProductManager.Web.Model.user>(SystemManageDomainContext.GetUserQuery());

            loadOperationUser.Completed += loadOperationUser_Completed;
        }
Esempio n. 6
0
        public void LoadData()
        {
            OnLineUserList.Clear();
            systemManageDomainContext = new SystemManageDomainContext();
            LoadOperation <ProductManager.Web.Model.user> loadOnLineUser =
                systemManageDomainContext.Load <ProductManager.Web.Model.user>(systemManageDomainContext.GetLogonUserQuery());

            loadOnLineUser.Completed += loadOperationloadOnLineUser_Completed;
        }
Esempio n. 7
0
        void loadOperationProject_Completed(object sender, EventArgs e)
        {
            ProjectEntityDictionary.Clear();
            LoadOperation loadOperation = sender as LoadOperation;

            foreach (ProductManager.Web.Model.project project in loadOperation.Entities)
            {
                ProjectEntity projectEnttiy = new ProjectEntity();
                projectEnttiy.Project = project;
                projectEnttiy.Update();
                ProjectEntityDictionary.Add(projectEnttiy.ManufactureNumber, projectEnttiy);
            }

            LoadOperation <ProductManager.Web.Model.department> loadOperationDepartment =
                SystemManageDomainContext.Load <ProductManager.Web.Model.department>(SystemManageDomainContext.GetDepartmentQuery());

            loadOperationDepartment.Completed += loadOperationDepartment_Completed_Dictionary;
        }
Esempio n. 8
0
        private void LoadData()
        {
            IsBusy = true;
            ProductDomainContext      = new ProductDomainContext();
            SystemManageDomainContext = new SystemManageDomainContext();
            LoadOperation <ProductManager.Web.Model.product_part_type> loadOperationProductPartType =
                SystemManageDomainContext.Load <ProductManager.Web.Model.product_part_type>(SystemManageDomainContext.GetProduct_part_typeQuery());

            loadOperationProductPartType.Completed += loadOperationProductPartType_Completed;
        }
Esempio n. 9
0
        public void LoadData()
        {
            systemManageDomainContext = new SystemManageDomainContext();
            SelectDepartmentEntity    = null;
            IsBusy = true;
            LoadOperation <ProductManager.Web.Model.department> loadOperationDepartment =
                systemManageDomainContext.Load <ProductManager.Web.Model.department>(systemManageDomainContext.GetDepartmentQuery());

            loadOperationDepartment.Completed += loadOperationDepartment_Completed;
        }
        public void LoadData()
        {
            IsBusy = true;
            systemManageDomainContext = new SystemManageDomainContext();
            systemManageDomainContext.PropertyChanged -= systemManageDomainContext_PropertyChanged;
            systemManageDomainContext.PropertyChanged += systemManageDomainContext_PropertyChanged;
            LoadOperation <ProductManager.Web.Model.department> loadOperationDepartment =
                systemManageDomainContext.Load <ProductManager.Web.Model.department>(systemManageDomainContext.GetDepartmentQuery());

            loadOperationDepartment.Completed += loadOperationDepartment_Completed;
        }
Esempio n. 11
0
        public void LoadData()
        {
            IsBusy = true;
            productDomainContext      = new ProductDomainContext();
            systemManageDomainContext = new SystemManageDomainContext();

            LoadOperation <ProductManager.Web.Model.user> loadOperationUser =
                systemManageDomainContext.Load <ProductManager.Web.Model.user>(systemManageDomainContext.GetUserQuery());

            loadOperationUser.Completed += loadOperationUser_Completed;
        }
        public void LoadData()
        {
            IsBusy = true;
            ProductDomainContext      = new ProductDomainContext();
            SystemManageDomainContext = new SystemManageDomainContext();
            selectProjectEntity       = null;
            ProjectFilesEntityList.Clear();
            LoadOperation <ProductManager.Web.Model.department> loadOperationDepartment =
                SystemManageDomainContext.Load <ProductManager.Web.Model.department>(SystemManageDomainContext.GetDepartmentQuery());

            loadOperationDepartment.Completed += loadOperationDepartment_Completed;
        }
        void LoadOperation_ActionCompleted(object sender, EventArgs e)
        {
            ActionEntityList.Clear();
            LoadOperation loadOperation = sender as LoadOperation;

            foreach (ProductManager.Web.Model.action action in loadOperation.Entities)
            {
                ActionEntity actionEntity = new ActionEntity();
                actionEntity.Action = action;
                actionEntity.Update();
                ActionEntityList.Add(actionEntity);
            }

            /*LoadOperation<ProductManager.Web.Model.role> loadOperationRole
             *  = systemManageDomainContext.Load<ProductManager.Web.Model.role>(systemManageDomainContext.GetRoleQuery());
             * loadOperationRole.Completed += loadOperation_RoleCompleted;*/
            LoadOperation <ProductManager.Web.Model.department> loadOperationDepartment
                = systemManageDomainContext.Load <ProductManager.Web.Model.department>(systemManageDomainContext.GetDepartmentQuery());

            loadOperationDepartment.Completed += loadOperationDepartment_Completed;
        }
        public void LoadData()
        {
            IsBusy = true;
            systemManageDomainContext = new SystemManageDomainContext();
            systemManageDomainContext.PropertyChanged -= systemManageDomainContext_PropertyChanged;
            systemManageDomainContext.PropertyChanged += systemManageDomainContext_PropertyChanged;
            ProductTypeEntityList.Clear();
            LoadOperation <ProductManager.Web.Model.product_type> loadOperationDepartment =
                systemManageDomainContext.Load <ProductManager.Web.Model.product_type>(systemManageDomainContext.GetProduct_typeQuery());

            loadOperationDepartment.Completed += loadOperationProductType_Completed;
        }
Esempio n. 15
0
        void LoadUserProjectComplete(object sender, EventArgs e)
        {
            UserProjectEntityDictionary.Clear();

            LoadOperation loadOperation = sender as LoadOperation;

            foreach (ProductManager.Web.Model.user_project user_project in loadOperation.Entities)
            {
                UserProjectEntity lUserProjectEntity = new UserProjectEntity();
                lUserProjectEntity.UserProject = user_project;
                lUserProjectEntity.Update();
                UserProjectEntity lUserProjectEntityTemp;
                if (!UserProjectEntityDictionary.TryGetValue(lUserProjectEntity.ManufactureNumber, out lUserProjectEntityTemp))
                {
                    UserProjectEntityDictionary.Add(lUserProjectEntity.ManufactureNumber, lUserProjectEntity);
                }
            }

            LoadOperation <ProductManager.Web.Model.department> loadOperationDepartment =
                SystemManageDomainContext.Load <ProductManager.Web.Model.department>(SystemManageDomainContext.GetDepartmentQuery());

            loadOperationDepartment.Completed += loadOperationDepartment_Completed;
        }
        public void LoadData()
        {
            IsBusy = true;
            systemManageDomainContext = new SystemManageDomainContext();
            systemManageDomainContext.PropertyChanged -= systemManageDomainContext_PropertyChanged;
            systemManageDomainContext.PropertyChanged += systemManageDomainContext_PropertyChanged;
            RootActionAndRoleActionEntity.ChildList.Clear();
            ActionAndRoleAnctionEntityDictionary.Clear();
            RoleEntityList.Clear();
            ActionEntityList.Clear();
            LoadOperation <ProductManager.Web.Model.action> loadOperationAction
                = systemManageDomainContext.Load <ProductManager.Web.Model.action>(systemManageDomainContext.GetActionQuery());

            loadOperationAction.Completed += LoadOperation_ActionCompleted;
        }