⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 biopsiesprostateform.ascx.cs

📁 医疗决策支持系统
💻 CS
📖 第 1 页 / 共 2 页
字号:
namespace Caisis.UI.Modules.Prostate.DataEntryForms
{
	using System;
	using System.Data;
	using System.Data.SqlClient;
	using System.Drawing;
	using System.Web;
	using System.Web.UI.WebControls;
	using System.Web.UI.HtmlControls;
	using System.Collections;
	using System.Collections.Specialized;

	using Caisis.Controller;
	using Caisis.DataAccess;
	using Caisis.BusinessObject;

	using Caisis.UI.Core.Classes;
	using Caisis.UI.Core.Classes.CustomControls;

	public abstract class BiopsyProstateForm : DataEntryControl
	{

		protected HtmlInputText BxCPT_Code;
		protected HtmlInputText BxCPT_Description;
		protected HtmlInputCheckBox BxPending;
		protected HtmlInputText BxPathNum;
		protected HtmlInputText BxPathNumRevd;
		protected HtmlInputText BxDateText;
		protected HtmlInputText BxDate;
		protected HtmlSelect BxType;
		protected ComboBox BxIndication;
		protected HtmlInputHidden BxSummary;
		protected HtmlInputText BxPosCores;
		protected HtmlInputText BxPosCoresRevd;
		protected HtmlInputText BxNumCores;
		protected HtmlInputText BxNumCoresRevd;
		protected HtmlInputCheckBox BxSystematic;
		protected HtmlInputText BxPosSites;
		protected HtmlInputText BxPosSitesRevd;
		protected HtmlInputText BxNumSites;
		protected HtmlInputText BxNumSitesRevd;
		protected HtmlInputText BxGG1;
		protected HtmlInputText BxGG1_Revd;
		protected HtmlInputText BxGG2;
		protected HtmlInputText BxGG2_Revd;
		protected HtmlInputText BxGGS;
		protected HtmlInputText BxGGS_Revd;
		protected HtmlSelect BxResult;
		protected HtmlSelect BxResultRevd;
		protected HtmlSelect BxAtrophy;
		protected HtmlSelect BxProstatitis;
		protected HtmlSelect BxASAP;
		protected HtmlInputText BxPercCancer;
		protected HtmlInputText BxPercCancerRevd;
		protected HtmlInputText BxMaxPercCancer;
		protected HtmlInputText BxMaxPercCancerRevd;
		protected HtmlInputText BxTotalCancerLength;
		protected HtmlInputText BxTotalCoreLength;
		protected HtmlSelect BxPIN;
		protected HtmlSelect BxPNI;
		protected HtmlSelect BxExtension;
		protected HtmlInputText BxGramsResected;
		protected HtmlInputText BxPercTissueExamined;
		protected HtmlInputText BxPosChips;
		protected HtmlInputText BxNumChips;
		protected HtmlInputText BxNumFociCancer;
		protected ComboBox BxPathologist;
		protected ComboBox BxInstitution;
		protected HtmlTextArea BxNotes;
		protected ComboBox BxDataSource;
		protected HtmlSelect BxQuality;
		protected HtmlSelect BxQualityRevd;
		protected HtmlInputHidden BiopsyProstateId;
		protected Caisis.UI.Core.Classes.PDLabel PdLabel1;

		protected HyperLink BiopsyCoresProstateFormLink;

		protected HtmlImage BxDateTextCal;

		protected HtmlImage BxCoreDetailFlagOn;
		protected Caisis.UI.Core.Classes.PDLabel BxCPT_Code_PdLabel;
		protected Caisis.UI.Core.Classes.PDLabel BxCPT_Description_PdLabel;
		protected Caisis.UI.Core.Classes.PDLabel BxDateText_PdLabel;
		protected Caisis.UI.Core.Classes.PDLabel BxPending_PdLabel;
		protected Caisis.UI.Core.Classes.PDLabel BxDate_PdLabel;
		protected Caisis.UI.Core.Classes.PDLabel BxType_PdLabel;
		protected Caisis.UI.Core.Classes.PDLabel BxIndication_PdLabel;
		protected Caisis.UI.Core.Classes.PDLabel BxSystematic_PdLabel;
		protected Caisis.UI.Core.Classes.PDLabel BxPathNum_PdLabel;
		protected Caisis.UI.Core.Classes.PDLabel BxPosCores_PdLabel;
		protected Caisis.UI.Core.Classes.PDLabel BxNumCores_PdLabel;
		protected Caisis.UI.Core.Classes.PDLabel BxPosSites_PdLabel;
		protected Caisis.UI.Core.Classes.PDLabel BxNumSites_PdLabel;
		protected Caisis.UI.Core.Classes.PDLabel BxGG1_PdLabel;
		protected Caisis.UI.Core.Classes.PDLabel BxGG2_PdLabel;
		protected Caisis.UI.Core.Classes.PDLabel BxGGS_PdLabel;
		protected Caisis.UI.Core.Classes.PDLabel BxResult_PdLabel;
		protected Caisis.UI.Core.Classes.PDLabel BxPercCancer_PdLabel;
		protected Caisis.UI.Core.Classes.PDLabel BxMaxPercCancer_PdLabel;
		protected Caisis.UI.Core.Classes.PDLabel BxPathNumRevd_PdLabel;
		protected Caisis.UI.Core.Classes.PDLabel BxPosCoresRevd_PdLabel;
		protected Caisis.UI.Core.Classes.PDLabel BxNumCoresRevd_PdLabel;
		protected Caisis.UI.Core.Classes.PDLabel BxPosSitesRevd_PdLabel;
		protected Caisis.UI.Core.Classes.PDLabel BxNumSitesRevd_PdLabel;
		protected Caisis.UI.Core.Classes.PDLabel BxGG1_Revd_PdLabel;
		protected Caisis.UI.Core.Classes.PDLabel BxGG2_Revd_PdLabel;
		protected Caisis.UI.Core.Classes.PDLabel BxGGS_Revd_PdLabel;
		protected Caisis.UI.Core.Classes.PDLabel BxResultRevd_PdLabel;
		protected Caisis.UI.Core.Classes.PDLabel BxPercCancerRevd_PdLabel;
		protected Caisis.UI.Core.Classes.PDLabel BxMaxPercCancerRevd_PdLabel;
		protected Caisis.UI.Core.Classes.PDLabel BxAtrophy_PdLabel;
		protected Caisis.UI.Core.Classes.PDLabel BxProstatitis_PdLabel;
		protected Caisis.UI.Core.Classes.PDLabel BxASAP_PdLabel;
		protected Caisis.UI.Core.Classes.PDLabel BxTotalCancerLength_PdLabel;
		protected Caisis.UI.Core.Classes.PDLabel BxTotalCoreLength_PdLabel;
		protected Caisis.UI.Core.Classes.PDLabel BxPIN_PdLabel;
		protected Caisis.UI.Core.Classes.PDLabel BxPNI_PdLabel;
		protected Caisis.UI.Core.Classes.PDLabel BxExtension_PdLabel;
		protected Caisis.UI.Core.Classes.PDLabel BxGramsResected_PdLabel;
		protected Caisis.UI.Core.Classes.PDLabel BxPercTissueExamined_PdLabel;
		protected Caisis.UI.Core.Classes.PDLabel BxPosChips_PdLabel;
		protected Caisis.UI.Core.Classes.PDLabel BxNumChips_PdLabel;
		protected Caisis.UI.Core.Classes.PDLabel BxNumFociCancer_PdLabel;
		protected Caisis.UI.Core.Classes.PDLabel BxPathologist_PdLabel;
		protected Caisis.UI.Core.Classes.PDLabel BxInstitution_PdLabel;
		protected Caisis.UI.Core.Classes.PDLabel BxNotes_PdLabel;
		protected Caisis.UI.Core.Classes.PDLabel BxDataSource_PdLabel;
		protected Caisis.UI.Core.Classes.PDLabel BxQuality_PdLabel;
		protected Caisis.UI.Core.Classes.PDLabel BxQualityRevd_PdLabel;
		protected HtmlImage BxCoreDetailFlagOff;

		override protected void Page_Load(object sender, System.EventArgs e)
		{
			//Old sublink code
			//BxCoreDetailFlagOn.Visible = false;
			//BxCoreDetailFlagOff.Visible = true;
			
			//populate look up and distinct value select boxes
			//PageUtil.FillLkpDropDown(BxCPT_Code, "CPT_Codes", ViewState);
			PageUtil.FillLkpDropDown(BxType, "BxTypeProstate", ViewState);
			PageUtil.FillLkpDropDown(BxResult, "ResultProstate", ViewState);
			PageUtil.FillLkpDropDown(BxResultRevd, "ResultProstate", ViewState);
			PageUtil.FillLkpDropDown(BxAtrophy, "Atrophy", ViewState);
			PageUtil.FillLkpDropDown(BxProstatitis, "YesNoUnknown", ViewState);
			PageUtil.FillLkpDropDown(BxASAP, "ASAP", ViewState);
			PageUtil.FillLkpDropDown(BxPIN, "PIN", ViewState);
			PageUtil.FillLkpDropDown(BxPNI, "PNI", ViewState);
			PageUtil.FillLkpDropDown(BxExtension, "YesNoUnknown", ViewState);
			PageUtil.FillLkpDropDown(BxQuality, "DataQuality", ViewState);
			PageUtil.FillLkpDropDown(BxQualityRevd, "DataQuality", ViewState);
			
			//create arrays that populate combo boxes
			Page.RegisterClientScriptBlock("BxInstitution", PageUtil.FillComboDropDown(BxInstitution.RefBy, "Institution"));
			Page.RegisterClientScriptBlock("BxIndication", PageUtil.FillComboDropDown(BxIndication.RefBy, "Indication"));
			Page.RegisterClientScriptBlock("BxPathologist", PageUtil.FillComboDropDown(BxPathologist.RefBy, "Pathologist"));
			Page.RegisterClientScriptBlock("BxDataSource", PageUtil.FillComboDropDown(BxDataSource.RefBy, "DataSource"));

			string reqFieldArray = PageUtil.CreateValidationScript("'"+BxType.ClientID+"'");
			Page.RegisterClientScriptBlock("requiredFieldArray", reqFieldArray);


			PageUtil.AddCalendarFunction(BxDateTextCal, BxDateText);
			PageUtil.AddFuzzyDateFunction(BxDateText, BxDate);

			//automated gleason summary and result calculation. JS function is in PatientData.js file
			BxGG1.Attributes.Add("OnBlur", "validateGleason("+BxGG1.ClientID+"," + BxGG2.ClientID + ", " + BxGGS.ClientID + ", false); calcResult(" + BxGGS.ClientID + ", '" + BxResult.ClientID + "');");
			BxGG2.Attributes.Add("OnBlur", "validateGleason("+BxGG1.ClientID+"," + BxGG2.ClientID + ", " + BxGGS.ClientID + ", false); calcResult(" + BxGGS.ClientID + ", '" + BxResult.ClientID + "');");
			BxGGS.Attributes.Add("OnBlur", "validateGleason("+BxGG1.ClientID+"," + BxGG2.ClientID + ", " + BxGGS.ClientID + ", true);  calcResult(" + BxGGS.ClientID + ", '" + BxResult.ClientID + "');");

			BxGG1_Revd.Attributes.Add("OnBlur", "validateGleason("+BxGG1_Revd.ClientID+"," + BxGG2_Revd.ClientID + ", " + BxGGS_Revd.ClientID + ", false); calcResult(" + BxGGS_Revd.ClientID + ", '" + BxResultRevd.ClientID + "');");
			BxGG2_Revd.Attributes.Add("OnBlur", "validateGleason("+BxGG1_Revd.ClientID+"," + BxGG2_Revd.ClientID + ", " + BxGGS_Revd.ClientID + ", false); calcResult(" + BxGGS_Revd.ClientID + ", '" + BxResultRevd.ClientID + "');");
			BxGGS_Revd.Attributes.Add("OnBlur", "validateGleason("+BxGG1_Revd.ClientID+"," + BxGG2_Revd.ClientID + ", " + BxGGS_Revd.ClientID + ", true);  calcResult(" + BxGGS_Revd.ClientID + ", '" + BxResultRevd.ClientID + "');");


			base.Page_Load(sender, e);
		}

		override protected object SaveViewState()
		{
			//add select and combo boxes to view state
			
			//PageUtil.AddSelectToViewState(ViewState,BxCPT_Code);

⌨️ 快捷键说明

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