private void TaxPayerWindow_Closed(object sender, EventArgs e) { TaxPayerWindow lTaxPayerWindow = sender as TaxPayerWindow; if (lTaxPayerWindow.DialogResult == true) { IsBusy = true; Log.ModifyLog(documentManagerContext, SelectTaxPayerEntity.ToString()); SubmitOperation lSubmitOperation = documentManagerContext.SubmitChanges(); lSubmitOperation.Completed += SubOperation_Completed; } }
private void AddTaxPayerType_Closed(object sender, EventArgs e) { TaxPayerTypeWindow lTaxPayerTypeWindow = sender as TaxPayerTypeWindow; if (lTaxPayerTypeWindow.DialogResult == true) { IsBusy = true; TaxPayerTypeList.Add(addTaxPayerTypeEntity); documentManagerContext.taxpayertypes.Add(addTaxPayerTypeEntity.TaxPayerType); SubmitOperation lSubmitOperation = documentManagerContext.SubmitChanges(); lSubmitOperation.Completed += SubOperation_Completed; } }
private void AddFileType_Closed(object sender, EventArgs e) { FileTypeWindow lFileTypeWindow = sender as FileTypeWindow; if (lFileTypeWindow.DialogResult == true) { IsBusy = true; FileTypeList.Add(addFileTypeEntity); documentManagerContext.filetypes.Add(addFileTypeEntity.FileType); Log.AddLog(documentManagerContext, addFileTypeEntity.ToString()); SubmitOperation lSubmitOperation = documentManagerContext.SubmitChanges(); lSubmitOperation.Completed += SubOperation_Completed; } }
private void AddUser_Closed(object sender, EventArgs e) { UserWindow lUserWindow = sender as UserWindow; if (lUserWindow.DialogResult == true) { IsBusy = true; UserList.Add(AddUserEntity); documentManagerContext.users.Add(AddUserEntity.User); Log.AddLog(documentManagerContext, AddUserEntity.ToString()); SubmitOperation lSubmitOperation = documentManagerContext.SubmitChanges(); lSubmitOperation.Completed += SubOperation_Completed; } }
void AddProjectWindow_Closed(object sender, EventArgs e) { ChildWindow lTaxPayerWindow = sender as ChildWindow; if (lTaxPayerWindow.DialogResult == true) { IsBusy = true; TaxPayerList.Add(addTaxPayerEntity); documentManagerContext.taxpayers.Add(addTaxPayerEntity.TaxPayer); Log.AddLog(documentManagerContext, addTaxPayerEntity.ToString()); SubmitOperation lSubmitOperation = documentManagerContext.SubmitChanges(); lSubmitOperation.Completed += SubOperationAddProject_Completed; } }
private void UserFile_FinishUpdates(object sender, EventArgs e) { ShowProgress = Visibility.Collapsed; taxPayerDocumentEntity.TaxPayerDocumentName = UserFile.FileName; taxPayerDocumentEntity.TaxPayerDocumentTypeId = SelectFileTypeEntity.FileTypeId; taxPayerDocumentEntity.TaxPayerId = currentTaxPayerEntity.TaxPayerId; taxPayerDocumentEntity.TaxPayerDocumentDescript = ""; taxPayerDocumentEntity.TaxPayerUpdateTime = DateTime.Now; App app = Application.Current as App; taxPayerDocumentEntity.TaxPayerUpdateUserId = app.MainPageViewModel.User.UserID; taxPayerDocumentEntity.TaxPayerDocument = new Web.Model.taxpayerdocument(); taxPayerDocumentEntity.DUpdate(); documentManagerContext.taxpayerdocuments.Add(taxPayerDocumentEntity.TaxPayerDocument); Log.AddLog(documentManagerContext, taxPayerDocumentEntity.ToString()); StandBookEntity.GroupID = 1; StandBookEntity.StandBook = new Web.Model.standbook(); StandBookEntity.DUpdate(); documentManagerContext.standbooks.Add(StandBookEntity.StandBook); Log.AddLog(documentManagerContext, StandBookEntity.ToString()); SubmitOperation lSubmitOperation = documentManagerContext.SubmitChanges(); lSubmitOperation.Completed += SubOperation_Completed; }
public void DeleteStandBook(DocumentManager.Web.Model.standbook aStandBook) { documentManagerContext.standbooks.Remove(aStandBook); SubmitOperation lSubmitOperation = documentManagerContext.SubmitChanges(); lSubmitOperation.Completed += SubOperation_Completed; }
void DeleteStandBookConfirmWindow_Closed(object sender, EventArgs e) { ConfirmWindow lConfirmWindow = sender as ConfirmWindow; if (lConfirmWindow.DialogResult == true) { documentManagerContext.standbooks.Remove(SelectStandBookEntity.StandBook); SubmitOperation lSubmitOperation = documentManagerContext.SubmitChanges(); lSubmitOperation.Completed += SubOperation_Completed; } }
private void linkFileWindow_Closed(object sender, EventArgs e) { LinkFileWindow linkFileWindow = sender as LinkFileWindow; if (linkFileWindow.DialogResult == true) { LinkFileViewModel lLinkFileViewModel = linkFileWindow.DataContext as LinkFileViewModel; int rTaxPayerId = lLinkFileViewModel.SelectTaxPayerEntity.TaxPayerId; foreach (TaxPayerEntity taxPayerEntity in lLinkFileViewModel.TaxPayerEntityLinkList) { if (rTaxPayerId == taxPayerEntity.TaxPayerId) { continue; } foreach (TaxPayerDocumentEntity taxPayerDocumentEntity in linkFileWindow.FileListDataGrid.SelectedItems) { TaxPayerDocumentEntity lTaxPayerDocumentEntity = new TaxPayerDocumentEntity(); App lApp = Application.Current as App; lTaxPayerDocumentEntity.TaxPayerId = taxPayerEntity.TaxPayerId; lTaxPayerDocumentEntity.TaxPayerDocumentName = taxPayerDocumentEntity.TaxPayerDocumentName; lTaxPayerDocumentEntity.TaxPayerDocumentTypeId = taxPayerDocumentEntity.TaxPayerDocumentTypeId; lTaxPayerDocumentEntity.TaxPayerDocumentDescript = taxPayerDocumentEntity.TaxPayerDocumentDescript; lTaxPayerDocumentEntity.TaxPayerUpdateUserId = lApp.MainPageViewModel.User.UserID; lTaxPayerDocumentEntity.TaxPayerUpdateTime = taxPayerDocumentEntity.TaxPayerUpdateTime; lTaxPayerDocumentEntity.TaxPayerDocumentBytes = taxPayerDocumentEntity.TaxPayerDocumentBytes; lTaxPayerDocumentEntity.TaxPayerIsLink = true; lTaxPayerDocumentEntity.TaxPayerLinkId = rTaxPayerId; lTaxPayerDocumentEntity.TaxPayerDocument = new Web.Model.taxpayerdocument(); lTaxPayerDocumentEntity.DUpdate(); documentManagerContext.taxpayerdocuments.Add(lTaxPayerDocumentEntity.TaxPayerDocument); Log.AddLog(documentManagerContext, lTaxPayerDocumentEntity.ToString()); } } SubmitOperation lSubmitOperation = documentManagerContext.SubmitChanges(); lSubmitOperation.Completed += SubOperation_Completed; } }
private void UserFile_FinishUpdate(object sender, EventArgs e) { Status = "完成上传,正在存储"; App app = Application.Current as App; TaxPayerDocumentEntity.TaxPayerUpdateUserId = app.MainPageViewModel.User.UserID; TaxPayerDocumentEntity.TaxPayerUpdateTime = DateTime.Now; TaxPayerDocumentEntity.DUpdate(); documentManagerContext.taxpayerdocuments.Add(TaxPayerDocumentEntity.TaxPayerDocument); Log.AddLog(documentManagerContext, TaxPayerDocumentEntity.ToString()); SubmitOperation lSubmitOperation = documentManagerContext.SubmitChanges(); lSubmitOperation.Completed += SubOperation_Completed; }