Song.Site/Manage/Course/Courses_Edit.aspx.cs
(开头部分) 7KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using WeiSha.Common;
using WeiSha.WebControl;
using Song.ServiceInterfaces;
using Song.Entities;
namespace Song.Site.Manage.Course
{
public partial class Courses_Edit : Extend.CustomPage
{
//课程id
private int couid = WeiSha.Common.Request.QueryString["couid"].Int32 ?? 0;
//上传资料的所有路径
private string _uppath = "Course";
Song.Entities.Organization org;
protected void Page_Load(object sender, EventArgs e)
{
//隐藏确定按钮
EnterButton btnEnter = (EnterButton)Master.FindControl("btnEnter");
btnEnter.Visible = couid > 0;
org = Business.Do<IOrganization>().OrganCurrent();
if (!this.IsPostBack)
{
InitBind();
fill();
}
this.Master.Enter_Click += btnEnter_Click;
this.Master.Next_Click += btnNext_Click;
}
#region 初始化
/// <summary>
/// 界面的初始绑定
/// </summary>
private void InitBind()
{
//所属专业
Song.Entities.Subject[] sbjs = Business.Do<ISubject>().SubjectCount(org.Org_ID, null, true, -1, -1);
ddlSubject.DataSource = sbjs;
this.ddlSubject.DataTextField = "Sbj_Name";
this.ddlSubject.DataValueField = "Sbj_ID";
this.ddlSubject.Root = 0;
this.ddlSubject.DataBind();
if (ddlSubject.Items.Count < 1)
{
ddlSubject.Items.Add(new ListItem("--(没有专业)--","-1"));
}
ddlSubject.Items.Insert(0,new ListItem("--所属专业--", "-1"));
}
/// <summary>
/// 当专业选择改变时
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
protected void ddlSubject_SelectedIndexChanged(object sender, EventArgs e)
后面还有 143 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读 AI
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
