47 lines
1.2 KiB
C#
47 lines
1.2 KiB
C#
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.View
|
|
{
|
|
public partial class Contents : Extend.CustomPage
|
|
{
|
|
|
|
protected void Page_Load(object sender, EventArgs e)
|
|
{
|
|
if (!this.IsPostBack)
|
|
{
|
|
ddlColumnBind();
|
|
}
|
|
}
|
|
/// <summary>
|
|
/// 栏目下拉绑定
|
|
/// </summary>
|
|
private void ddlColumnBind()
|
|
{
|
|
//所属机构的所有课程
|
|
Song.Entities.Organization org = Business.Do<IOrganization>().OrganCurrent();
|
|
Song.Entities.Columns[] nc = Business.Do<IColumns>().All(org.Org_ID, true);
|
|
this.ddlColumns.DataSource = nc;
|
|
this.ddlColumns.DataTextField = "Col_Name";
|
|
this.ddlColumns.DataValueField = "Col_ID";
|
|
this.ddlColumns.DataBind();
|
|
}
|
|
|
|
}
|
|
}
|