Esempio n. 1
0
        public void Create(int columnId)
        {
            ContentSection section = ContentValidator.ValidateSection(columnId, ctx);

            if (errors.HasErrors)
            {
                run(Add, columnId);
            }
            else
            {
                sectionService.Insert(section);
                echoToParentPart(lang("opok"));
            }
        }
Esempio n. 2
0
        public void CreateAuto(int columnId)
        {
            ContentSection section = ContentValidator.ValidateSection(columnId, ctx);

            if (errors.HasErrors)
            {
                run(AddAutoThree, columnId);
            }
            else
            {
                sectionService.Insert(section);

                // 给参数赋值
                SectionSettingController.updateParamValues(section, sectionService, ctx);
                echoToParentPart(lang("opok"));
            }
        }