Example #1
0
        private void Service_ContentFormSubmited(object sender, ContentFormSubmitEventArgs e)
        {
            var departmentId = e.Form.GetInt(ContentAttribute.DepartmentId);

            if (departmentId == 0)
            {
                throw new Exception("请选择正确的提交部门");
            }
            e.ContentInfo.Set(nameof(ContentAttribute.DepartmentId), departmentId.ToString());
        }
Example #2
0
 public void OnContentFormSubmit(ContentFormSubmitEventArgs e)
 {
     ContentFormSubmit?.Invoke(this, e);
 }
Example #3
0
 private void Service_ContentFormSubmited(object sender, ContentFormSubmitEventArgs e)
 {
     ContentRepository.ContentFormSubmited(e.SiteId, e.ChannelId, e.ContentInfo, e.Form);
 }