示例#1
0
        public void Save()
        {
            bool dataChanged = CheckDataChanged();

            repo.SaveProtectedData(this);
            SortMainObject.CheckStatusUpdate(SortMainId, dataChanged);
        }
示例#2
0
        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);
            }
        }
示例#3
0
        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);
        }
示例#4
0
 public void Delete()
 {
     repo.DeleteProtectedData(this);
     SortMainObject.CheckStatusUpdate(SortMainId, true);
 }
示例#5
0
 public void Delete()
 {
     repo.DeleteAuthor(this);
     SortMainObject.CheckStatusUpdate(SortMainId, true);
 }
示例#6
0
 public void Save()
 {
     repo.SaveSortMetaData(this);
     SortMainObject.CheckStatusUpdate(SortMainId, true);
 }
示例#7
0
 public void Save()
 {
     repo.SaveFunding(this);
     SortMainObject.CheckStatusUpdate(SortMainId, true);
 }