?? keshang.cs
字號:
using System;
using WebBase;
using System.Data;
using System.Web.UI.WebControls;
namespace TextileManager
{
public class KeShang : TableDefinition {
#region overrided function & DropDownList
public override string TableName { get{return "客商表";} }
public override WebControl GetEditControl(System.Data.DataColumn dc) {
switch (dc.ColumnName) {
case "代碼": case "電話": case "傳真": return new TextBoxImeOff(dc.MaxLength);
default: return base.GetEditControl (dc);
}
}
public class DropDownList : GsDropDownList {
public DropDownList() : base("客商表","名稱",110) {}
public DropDownList(string leiBie) : base("客商表","名稱",110,(leiBie=="加工廠"?"織廠=1 AND 染廠=1 AND 加工廠=1":leiBie+"=1")) {
}
}
#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.CreateControl1("電話",240);
page.CreateControl2("供貨商",5);
page.CreateQueryButton();
}
}
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -