📄 brachybooking.ascx.cs
字号:
namespace Caisis.UI.Modules.Prostate.Eforms
{
using System;
using System.Data;
using System.Drawing;
using System.Web;
using System.Web.UI.WebControls;
using System.Web.UI.HtmlControls;
using Caisis.DataAccess;
using Caisis.BusinessObject;
using Caisis.UI.Core.Classes;
using Caisis.UI.Core.Classes.CustomControls;
/// <summary>
/// Summary description for BrachyBooking.
/// </summary>
public class BrachyBooking : BaseEFormControl
{
protected EformSelect ActionItem;
protected EformTextBox ActionDateText;
protected EformSelect BrachyPrescribedDose;
protected EformSelect BrachyIsotope;
protected Literal brachyMsg;
protected override void Page_Load(object sender, EventArgs e)
{
// check if patient already had Brachy- if so disable fields
BrachyTherapyDa da = new BrachyTherapyDa();
DataSet ds = da.GetRecord(int.Parse(Session[SessionKey.PatientId].ToString()));
if(ds.Tables[0].Rows.Count > 0) // patient already had brachy
{
// select boxes now inherit from combo which inherits from text! so use "disable" again
//ActionItem.Disabled = true;
//ActionDateText.Enabled = true;
//BrachyPrescribedDose.Disabled = true;
//BrachyIsotope.Disabled = true;
// brandon: EformControls are now (mostly) WebControls
ActionItem.Enabled = false;
ActionDateText.Enabled = false;
BrachyPrescribedDose.Enabled = false;
BrachyIsotope.Enabled = false;
brachyMsg.Text = "You may not enter brachy data because patient has prior brachy information entered.";
}
base.Page_Load (sender, e);
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -