ordate.ascx.cs
来自「医疗决策支持系统」· CS 代码 · 共 47 行
CS
47 行
namespace Caisis.UI.Modules.All.Eforms
{
using System;
using System.Data;
using System.Drawing;
using System.Web;
using System.Web.UI.WebControls;
using System.Web.UI.HtmlControls;
using Caisis.UI.Core;
using Caisis.BusinessObject;
using Caisis.UI.Core.Classes;
/// <summary>
/// Summary description for ORDate.
/// </summary>
public class ORDate : BaseEFormControl
{
//protected EformTextBox ORDateText;
//protected EformHidden ORDateField;
//protected HtmlImage ORDateTextCal;
protected override void Page_Load(object sender, System.EventArgs e)
{
// calendar function is now a property of the field
//PageUtil.AddCalendarFunction(ORDateTextCal, ORDateText);
//ORDateText.Attributes.Add("onBlur", "fuzzyDate(" + ORDateText.ClientID.ToString() + ", " + ORDateField.ClientID.ToString() + ");");
// postback handled in base
base.Page_Load(sender, e);
// default OR date to today, must come after call to base page_load
//if(ORDateText.Value.Equals(""))
//{
// ORDateText.Value = DateTime.Now.ToShortDateString();
// ORDateField.Value = DateTime.Now.ToString();
//}
}
}
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?