chore: 首次簽入 Thinkyu ASP.NET 專案
- 加入 Visual Studio / ASP.NET .gitignore - 排除建置輸出、IDE 設定、NuGet packages、大型 MSI 安裝檔
This commit is contained in:
@@ -0,0 +1,123 @@
|
||||
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.檢視UC
|
||||
{
|
||||
public partial class 場地遴選View : UserControlBase
|
||||
{
|
||||
public override void DataBind()
|
||||
{
|
||||
base.DataBind();
|
||||
int 課程ID = DAC.GetInt32(單號);
|
||||
|
||||
DAC_場地遴選 Dao場地遴選 = new DAC_場地遴選(ParentPage.conn);
|
||||
|
||||
訓練課程企劃List v1 = Dao訓練課程企劃.SelectOne(課程ID);
|
||||
if (v1.Count > 0)
|
||||
{
|
||||
lb課程企劃.Text = String.Format("[{0}] {1}", v1[0].顯示編號, v1[0].訓練名稱);
|
||||
}
|
||||
|
||||
lbPlaceA.Text = "(尚未選擇)";
|
||||
lbPlaceB.Text = "(尚未選擇)";
|
||||
lbPlaceC.Text = "(尚未選擇)";
|
||||
|
||||
txt安全舒適A.Text = "";
|
||||
txt空間大小A.Text = "";
|
||||
txt價格合理A.Text = "";
|
||||
txt交通便利A.Text = "";
|
||||
txt設備完善A.Text = "";
|
||||
lb合計A.Text = "";
|
||||
txt安全舒適B.Text = "";
|
||||
txt空間大小B.Text = "";
|
||||
txt價格合理B.Text = "";
|
||||
txt交通便利B.Text = "";
|
||||
txt設備完善B.Text = "";
|
||||
lb合計B.Text = "";
|
||||
txt安全舒適B.Text = "";
|
||||
txt空間大小B.Text = "";
|
||||
txt價格合理B.Text = "";
|
||||
txt交通便利B.Text = "";
|
||||
txt設備完善B.Text = "";
|
||||
lb合計B.Text = "";
|
||||
|
||||
txt總評.Text = "";
|
||||
txt備註.Text = "";
|
||||
|
||||
場地遴選List 場地 = Dao場地遴選.SelectOne(課程ID);
|
||||
if (場地.Count > 0)
|
||||
{
|
||||
if (場地[0].場地編號_A > 0)
|
||||
{
|
||||
lbPlaceA.Text = String.Format("[{0:0000}] {1}", 場地[0].場地編號_A, Get場地名稱(場地[0].場地編號_A));
|
||||
txt安全舒適A.Text = 場地[0].安全舒適_A.ToString();
|
||||
txt空間大小A.Text = 場地[0].空間大小_A.ToString();
|
||||
txt價格合理A.Text = 場地[0].價格合理_A.ToString();
|
||||
txt交通便利A.Text = 場地[0].交通便利_A.ToString();
|
||||
txt設備完善A.Text = 場地[0].設備完善_A.ToString();
|
||||
lb合計A.Text = 場地[0].合計_A.ToString();
|
||||
}
|
||||
else if (!String.IsNullOrEmpty(場地[0].場地名稱_A))
|
||||
{
|
||||
lbPlaceA.Text = 場地[0].場地名稱_A;
|
||||
txt安全舒適A.Text = 場地[0].安全舒適_A.ToString();
|
||||
txt空間大小A.Text = 場地[0].空間大小_A.ToString();
|
||||
txt價格合理A.Text = 場地[0].價格合理_A.ToString();
|
||||
txt交通便利A.Text = 場地[0].交通便利_A.ToString();
|
||||
txt設備完善A.Text = 場地[0].設備完善_A.ToString();
|
||||
lb合計A.Text = 場地[0].合計_A.ToString();
|
||||
}
|
||||
|
||||
if (場地[0].場地編號_B > 0)
|
||||
{
|
||||
lbPlaceB.Text = String.Format("[{0:0000}] {1}", 場地[0].場地編號_B, Get場地名稱(場地[0].場地編號_B));
|
||||
txt安全舒適B.Text = 場地[0].安全舒適_B.ToString();
|
||||
txt空間大小B.Text = 場地[0].空間大小_B.ToString();
|
||||
txt價格合理B.Text = 場地[0].價格合理_B.ToString();
|
||||
txt交通便利B.Text = 場地[0].交通便利_B.ToString();
|
||||
txt設備完善B.Text = 場地[0].設備完善_B.ToString();
|
||||
lb合計B.Text = 場地[0].合計_B.ToString();
|
||||
}
|
||||
else if (!String.IsNullOrEmpty(場地[0].場地名稱_B))
|
||||
{
|
||||
lbPlaceB.Text = 場地[0].場地名稱_B;
|
||||
txt安全舒適B.Text = 場地[0].安全舒適_B.ToString();
|
||||
txt空間大小B.Text = 場地[0].空間大小_B.ToString();
|
||||
txt價格合理B.Text = 場地[0].價格合理_B.ToString();
|
||||
txt交通便利B.Text = 場地[0].交通便利_B.ToString();
|
||||
txt設備完善B.Text = 場地[0].設備完善_B.ToString();
|
||||
lb合計B.Text = 場地[0].合計_B.ToString();
|
||||
}
|
||||
|
||||
if (場地[0].場地編號_C > 0)
|
||||
{
|
||||
lbPlaceC.Text = String.Format("[{0:0000}] {1}", 場地[0].場地編號_C, Get場地名稱(場地[0].場地編號_C));
|
||||
txt安全舒適C.Text = 場地[0].安全舒適_C.ToString();
|
||||
txt空間大小C.Text = 場地[0].空間大小_C.ToString();
|
||||
txt價格合理C.Text = 場地[0].價格合理_C.ToString();
|
||||
txt交通便利C.Text = 場地[0].交通便利_C.ToString();
|
||||
txt設備完善C.Text = 場地[0].設備完善_C.ToString();
|
||||
lb合計C.Text = 場地[0].合計_C.ToString();
|
||||
}
|
||||
else if (!String.IsNullOrEmpty(場地[0].場地名稱_C))
|
||||
{
|
||||
lbPlaceC.Text = 場地[0].場地名稱_C;
|
||||
txt安全舒適C.Text = 場地[0].安全舒適_C.ToString();
|
||||
txt空間大小C.Text = 場地[0].空間大小_C.ToString();
|
||||
txt價格合理C.Text = 場地[0].價格合理_C.ToString();
|
||||
txt交通便利C.Text = 場地[0].交通便利_C.ToString();
|
||||
txt設備完善C.Text = 場地[0].設備完善_C.ToString();
|
||||
lb合計C.Text = 場地[0].合計_C.ToString();
|
||||
}
|
||||
|
||||
txt總評.Text = 場地[0].總評.Replace("\r\n", "<br>").Replace("\r", "<br>").Replace("\n", "<br>");
|
||||
txt備註.Text = 場地[0].備註.Replace("\r\n", "<br>").Replace("\r", "<br>").Replace("\n", "<br>");
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user