コード例 #1
0
        void loadOperationFileType_Completed(object sender, EventArgs e)
        {
            FileTypeEntityDictionary.Clear();
            FileTypeEntityList.Clear();

            LoadOperation loadOperation = sender as LoadOperation;

            foreach (ProductManager.Web.Model.filetype filetype in loadOperation.Entities)
            {
                FileTypeEntity fileTypeEntity = new FileTypeEntity();
                fileTypeEntity.FileType = filetype;
                fileTypeEntity.Update();
                FileTypeEntityDictionary.Add(fileTypeEntity.FileTypeID, fileTypeEntity);
                FileTypeEntityList.Add(fileTypeEntity);
            }

            this.prjectSource  = new EntityList <ProductManager.Web.Model.project>(this.ProductDomainContext.projects);
            this.projectLoader = new DomainCollectionViewLoader <ProductManager.Web.Model.project>(
                this.LoadProjectEntities,
                this.LoadOperationProjectCompleted);
            this.projectView = new DomainCollectionView <ProductManager.Web.Model.project>(this.projectLoader, this.prjectSource);
            using (this.CollectionProjectView.DeferRefresh())
            {
                //this.projectView.PageSize = 5;
                this.projectView.MoveToFirstPage();
            }
            this.IsBusy = false;
        }
コード例 #2
0
        private void onAddFileType()
        {
            addFileTypeEntity = new FileTypeEntity();
            Web.Model.filetype fileType = new Web.Model.filetype();
            addFileTypeEntity.FileType = fileType;
            addFileTypeEntity.Update();
            FileTypeWindow lFileTypeWindow = new FileTypeWindow(FileTypeWindowType.ADD, addFileTypeEntity);

            lFileTypeWindow.Closed += AddFileType_Closed;
            lFileTypeWindow.Show();
        }
コード例 #3
0
 private void loadOperation_Completed(LoadOperation <DocumentManager.Web.Model.filetype> sender)
 {
     FileTypeList.Clear();
     fileTypeSource.Source = sender.Entities;
     foreach (DocumentManager.Web.Model.filetype filetype in sender.Entities)
     {
         FileTypeEntity fileTypeEntity = new FileTypeEntity();
         fileTypeEntity.FileType = filetype;
         fileTypeEntity.Update();
         FileTypeList.Add(fileTypeEntity);
     }
     UpdateChanged("FileTypeList");
     IsBusy = false;
 }
コード例 #4
0
        void loadOperationFileType_Completed(object sender, EventArgs e)
        {
            FileTypeEntityList.Clear();
            LoadOperation loadOperation = sender as LoadOperation;

            foreach (ProductManager.Web.Model.filetype filetype in loadOperation.Entities)
            {
                FileTypeEntity fileTypeEntity = new FileTypeEntity();
                fileTypeEntity.FileType = filetype;
                fileTypeEntity.Update();
                FileTypeEntityList.Add(fileTypeEntity);
            }
            UpdateChanged("FileTypeEntityList");
            IsBusy = false;
        }
コード例 #5
0
        private void loadOperationFileType_Completed(object sender, EventArgs e)
        {
            FileTypeEntityList.Clear();

            LoadOperation loadOperation = sender as LoadOperation;

            foreach (Web.Model.filetype filetype in loadOperation.Entities)
            {
                FileTypeEntity lFileTypeEntity = new FileTypeEntity();
                lFileTypeEntity.FileType = filetype;
                lFileTypeEntity.Update();
                FileTypeEntityList.Add(lFileTypeEntity);
            }

            LoadOperation <DocumentManager.Web.Model.taxpayer> loadOperationTaxPayer =
                documentManagerContext.Load <DocumentManager.Web.Model.taxpayer>(documentManagerContext.GetTaxpayerQuery());

            loadOperationTaxPayer.Completed += loadOperationTaxPayer_Completed;
        }
コード例 #6
0
        private void loadOperationFileType_Completed(object sender, EventArgs e)
        {
            FileTypeList.Clear();
            FileTypeDictionary.Clear();
            LoadOperation loadOperation = sender as LoadOperation;

            foreach (Web.Model.filetype filetype in loadOperation.Entities)
            {
                FileTypeEntity lFileTypeEntity = new FileTypeEntity();
                lFileTypeEntity.FileType = filetype;
                lFileTypeEntity.Update();
                FileTypeList.Add(lFileTypeEntity);
                FileTypeDictionary.Add(lFileTypeEntity.FileTypeId, lFileTypeEntity);
            }

            DocumentViewModel.FileTypeEntityDictionary = FileTypeDictionary;
            DocumentViewModel.FileTypeEntityList       = FileTypeList;

            LoadOperation <DocumentManager.Web.Model.user> loadOperationUser =
                documentManagerContext.Load <DocumentManager.Web.Model.user>(documentManagerContext.GetUserQuery());

            loadOperationUser.Completed += loadOperationUser_Completed;
        }
コード例 #7
0
 public void onCancel()
 {
     FileTypeEntity.Update();
     FileTypeEntity.RaisALL();
     childWindow.DialogResult = false;
 }