public void Save() { bool dataChanged = CheckDataChanged(); repo.SaveProtectedData(this); SortMainObject.CheckStatusUpdate(SortMainId, dataChanged); }
public void Save(bool checkStatus = true) { if (SortAttachmentId == 0) { UploadDate = DateTime.Now; UploadEmployeeId = string.IsNullOrWhiteSpace(UploadEmployeeId) ? UserObject.CurrentUser.EmployeeId : UploadEmployeeId; } repo.SaveSortAttachment(this); if (checkStatus) { SortMainObject.CheckStatusUpdate(SortMainId, true); } }
public void Save() { if (string.IsNullOrWhiteSpace(EmployeeId) && !string.IsNullOrWhiteSpace(FullName)) { var owner = Config.EmployeeManager.GetEmployeeByName(FullName, true); if (owner != null) { EmployeeId = owner.EmployeeId; WorkOrg = owner.WorkOrginization; } } if (!string.IsNullOrWhiteSpace(EmployeeId) && string.IsNullOrWhiteSpace(WorkOrg)) { WorkOrg = EmployeeCache.GetEmployee(EmployeeId, true)?.WorkOrginization; } repo.SaveContact(this); SortMainObject.CheckStatusUpdate(SortMainId, true); }
public void Delete() { repo.DeleteProtectedData(this); SortMainObject.CheckStatusUpdate(SortMainId, true); }
public void Delete() { repo.DeleteAuthor(this); SortMainObject.CheckStatusUpdate(SortMainId, true); }
public void Save() { repo.SaveSortMetaData(this); SortMainObject.CheckStatusUpdate(SortMainId, true); }
public void Save() { repo.SaveFunding(this); SortMainObject.CheckStatusUpdate(SortMainId, true); }