?? yanse.cs
字號:
using System;
using WebBase;
using System.Data;
using System.Web.UI.WebControls;
namespace TextileManager
{
public class YanSe: TableDefinition {
#region overrided funtion & DropDownList
public override string TableName { get{return "顏色表";}}
public override WebControl GetEditControl(System.Data.DataColumn dc){
switch (dc.ColumnName){
case "名稱": case "代碼": return new TextBoxImeOff(dc.MaxLength);
default: return base.GetEditControl (dc);
}
}
public class DropDownList : GsDropDownList {
public DropDownList() : base("SELECT TextField=代碼+' '+名稱, ValueField=名稱 FROM 顏色表 ORDER BY TextField",160) {
}
}
#endregion
public override void CreateControlsForAppend(BaseAppendPage page) {
page.CreateTitle("添加新顏色");
page.CreateControls("名稱","代碼","色卡編號");
page.CreateAppendButton();
page.CreateBrowseButton();
}
public override void CreateControlsForBrowse(BaseBrowsePage page) {
page.CreateTitle("顏色咨詢頁面");
page.CreateControl1("名稱",5);
page.CreateAppendButton();
page.CreateQueryButton();
}
}
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -