82 lines
2.1 KiB
C#
82 lines
2.1 KiB
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 查詢作業 : FormBase
|
|
{
|
|
protected void Page_Load(object sender, EventArgs e)
|
|
{
|
|
FunctionName = "查詢作業";
|
|
|
|
if (!IsPostBack)
|
|
{
|
|
ddl場地地區.DataSource = Dao場地.Select地區ForDropDown();
|
|
ddl場地地區.DataTextField = "Name";
|
|
ddl場地地區.DataValueField = "Value";
|
|
ddl場地地區.DataBind();
|
|
|
|
ddl講師地區.DataSource = Dao講師.Select地區ForDropDown();
|
|
ddl講師地區.DataTextField = "Name";
|
|
ddl講師地區.DataValueField = "Value";
|
|
ddl講師地區.DataBind();
|
|
|
|
ddl場地教室類型.DataSource = Dao場地.Select教室類型ForDropDown();
|
|
ddl場地教室類型.DataTextField = "Name";
|
|
ddl場地教室類型.DataValueField = "Value";
|
|
ddl場地教室類型.DataBind();
|
|
}
|
|
else
|
|
{
|
|
gv場地.DataBind();
|
|
gv講師.DataBind();
|
|
}
|
|
}
|
|
|
|
protected void btn查詢1_Click(object sender, EventArgs e)
|
|
{
|
|
|
|
}
|
|
|
|
protected void btn清除1_Click(object sender, EventArgs e)
|
|
{
|
|
ddl場地地區.SelectedValue = "";
|
|
txt場地價格1.Text = "";
|
|
txt場地價格2.Text = "";
|
|
txt場地人數1.Text = "";
|
|
txt場地人數2.Text = "";
|
|
ddl場地教室類型.SelectedValue = "";
|
|
txt場地滿意度1.Text = "";
|
|
txt場地滿意度2.Text = "";
|
|
}
|
|
|
|
protected void btn查詢2_Click(object sender, EventArgs e)
|
|
{
|
|
|
|
}
|
|
|
|
protected void btn清除2_Click(object sender, EventArgs e)
|
|
{
|
|
ddl講師地區.SelectedValue = "";
|
|
txt講師專長.Text = "";
|
|
txt講師學歷.Text = "";
|
|
txt講師滿意度1.Text = "";
|
|
txt講師滿意度2.Text = "";
|
|
}
|
|
|
|
protected void gv場地_DataBound(object sender, EventArgs e)
|
|
{
|
|
pnl場地.Visible = gv場地.Rows.Count > 0;
|
|
}
|
|
|
|
protected void gv講師_DataBound(object sender, EventArgs e)
|
|
{
|
|
pnl講師.Visible = gv講師.Rows.Count > 0;
|
|
}
|
|
}
|
|
} |