40 lines
901 B
C#
40 lines
901 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Web;
|
|
using System.Web.UI;
|
|
using System.Web.UI.WebControls;
|
|
using WebLib;
|
|
|
|
namespace Education.Forms.選課
|
|
{
|
|
public partial class ShowCourseDetail : FormBase
|
|
{
|
|
protected int 課程ID;
|
|
protected DAC_場地遴選 Dao場地遴選;
|
|
|
|
protected void Page_Load(object sender, EventArgs e)
|
|
{
|
|
FunctionName = "課程詳情";
|
|
|
|
Dao場地遴選 = new DAC_場地遴選(conn);
|
|
|
|
if (!IsPostBack)
|
|
{
|
|
課程ID = DAC.GetInt32(Request["id"]);
|
|
}
|
|
}
|
|
|
|
protected string Get訓練地點()
|
|
{
|
|
場地 d = GetData.取得選定場地(課程ID);
|
|
return d.場地名稱;
|
|
}
|
|
|
|
protected string Get課程講師姓名(object 課程序號)
|
|
{
|
|
講師 d = GetData.取得選定講師(課程ID, DAC.GetInt32(課程序號));
|
|
return d.姓名;
|
|
}
|
|
}
|
|
} |