📄 texttype.cs
字号:
namespace PowerEasy.WebSite.Controls.FieldControl
{
using PowerEasy.Common;
using PowerEasy.Controls;
using System;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
public class TextType : BaseFieldControl
{
protected PowerEasy.Controls.RequiredFieldValidator ReqTextSingleLine;
protected HtmlTableRow Tab;
protected TextBox TxtSingleLine;
protected void Page_Load(object sender, EventArgs e)
{
string str;
this.TxtSingleLine.MaxLength = DataConverter.CLng(base.Settings[0]);
this.TxtSingleLine.Columns = DataConverter.CLng(base.Settings[1]);
if (DataConverter.CBool(base.Settings[2]))
{
this.TxtSingleLine.TextMode = TextBoxMode.Password;
}
else
{
this.TxtSingleLine.TextMode = TextBoxMode.SingleLine;
}
if (((str = base.Settings[3]) != null) && (str != "0"))
{
if (!(str == "1"))
{
if (str == "2")
{
this.TxtSingleLine.Attributes.Add("style", "ime-mode:disabled;");
}
}
else
{
this.TxtSingleLine.Attributes.Add("style", "auto");
}
}
if (base.EnableNull)
{
this.ReqTextSingleLine.Visible = true;
}
if (!base.IsPostBack)
{
this.TxtSingleLine.Text = this.FieldValue;
}
else
{
this.FieldValue = this.TxtSingleLine.Text;
}
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -