public void LoadData() { LoadOperation <ProductManager.Web.Model.department> loadOperationDepartment = SystemManageDomainContext.Load <ProductManager.Web.Model.department>(SystemManageDomainContext.GetDepartmentQuery()); loadOperationDepartment.Completed += loadOperationDepartment_Completed; }
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; }
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; }
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 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; }
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; }
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; }