biopsiesprostate.ascx.cs

来自「医疗决策支持系统」· CS 代码 · 共 59 行

CS
59
字号
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.BusinessObject;
	using Caisis.UI.Core.Classes;
	using Caisis.UI.Modules.Prostate.PaperForms;
	using Caisis.DataAccess;

	/// <summary>
	///		Summary description for MedicationsClinical.
	/// </summary>
	public class BiopsiesProstate : BaseEFormControl
	{


		override protected void Page_Load(object sender, System.EventArgs e)
		{
			base.Page_Load(sender, e);
			BuildBiopsies(this._patientId, this._eformName, "Dynamic");
		}


		override protected void EFormRepeaterOnDataBound(Object Sender, RepeaterItemEventArgs e)
		{

			base.EFormRepeaterOnDataBound(Sender, e);


			Literal ResultField;
			ResultField = (Literal) e.Item.FindControl("ResultField");


			if (e.Item.ItemType == ListItemType.Item || e.Item.ItemType == ListItemType.AlternatingItem) 
			{
				if ( ((DataRowView) e.Item.DataItem )["TableName"].ToString().Length > 0 && ((DataRowView) e.Item.DataItem )["TableName"].ToString().ToUpper().IndexOf("PROSTATE") > -1)
				{
					ResultField.Text = ((DataRowView) e.Item.DataItem )["BxResult2"].ToString();
				}
				else
				{
					ResultField.Text = ((DataRowView) e.Item.DataItem )["BxResult"].ToString();
				}
			}


		}




	}
}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?