Song.Site/Manage/Admin/OrganSetup.aspx.cs

(开头部分) 9KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;

using WeiSha.Common;

using Song.ServiceInterfaces;
using Song.Entities;
using WeiSha.WebControl;

namespace Song.Site.Manage.Admin
{
    public partial class OrganSetup : Extend.CustomPage
    {
        private string _uppath = "Org";
        Song.Entities.Organization org;
        protected void Page_Load(object sender, EventArgs e)
        {
            org = Business.Do<IOrganization>().OrganCurrent();
            if (!this.IsPostBack)
            {
                fillBase();
                fillLogo();
                fillLogin();
                fillSEO();
            }
        }


        protected void btnPara_Click(object sender, EventArgs e)
        {
            Song.Entities.Organization org = Business.Do<IOrganization>().OrganCurrent();
            if (org == null) throw new WeiSha.Common.ExceptionForAlert("当前机构不存在");
            org.Org_PlatformName = Org_PlatformName.Text.Trim();
            org.Org_TwoDomain = Org_TwoDomain.Text.Trim();
            //
            WeiSha.Common.CustomConfig config = CustomConfig.Load(org.Org_Config);
            //是否允许教师、学员注册
            config["IsRegTeacher"].Text = cbIsRegTeacher.Checked.ToString();
            config["IsRegStudent"].Text = cbIsRegStudent.Checked.ToString();
            //教师与学员注册后是否需要审核
            config["IsVerifyTeahcer"].Text = cbIsVerifyTeahcer.Checked.ToString();
            config["IsVerifyStudent"].Text = cbIsVerifyStudent.Checked.ToString();
            //在线练习,是否学员登录后才能用
            config["IsTraningLogin"].Text = cbIsTraningLogin.Checked.ToString();
            //保存
            org.Org_Config = config.XmlString;
            try
            {

                Business.Do<IOrganization>().OrganSave(org);

                this.Alert("操作成功!");
后面还有 199 行代码,解锁后查看完整代码

24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明

AI 解读 AI

登录后可用,每次 10 积分,解读结果公开显示在下面。

还没有人解读过这个文件。