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

📄 medicationsclinical_gu.ascx

📁 医疗决策支持系统
💻 ASCX
📖 第 1 页 / 共 2 页
字号:
<%@ Control Language="c#" AutoEventWireup="false" Codebehind="MedicationsClinical.ascx.cs" Inherits="Caisis.UI.Modules.All.Eforms.MedicationsClinical" TargetSchema="http://schemas.microsoft.com/intellisense/ie5" %>
<%@ Register TagPrefix="euc" Namespace="Caisis.UI.Core.Classes.CustomControls" Assembly="Caisis.UI" %>
<script language="javascript">
	tableArray.MedicationsHtmlTable = "MedicationsHtmlTable";
</script>
<script>
	// we need to customize showFirstAdditionalRow(...) for medications
	function medications_showFirstAdditionalRow(linkReference, tableId) {
		var rowShown = false;
		var hideWidget = true;
		var table = document.getElementById(tableId);
		for (i = 0; i < table.rows.length; i++) {
			var row = table.rows[i];
			
			// skip rows with an id containing "_tr_"
			var rowId = row.id;
			if (rowId != null && rowId.indexOf('_tr_') != -1)
				continue;
				
			if (rowShown == false && row.style['display'] == 'none') {
				row.style['display'] = 'block';
				rowShown = true;
			} else if (rowShown == true && row.style['display'] == 'none') {
				hideWidget = false;
			}
		}
		
		if (hideWidget) {
			linkReference.style['display'] = 'none';
		}
		return false;
	}
	
	function modTaggedMedications(mode)
	{
		var table = document.getElementById('MedicationsHtmlTable');
		for (i = 0; i < table.rows.length; i++) {
			var row = table.rows[i];
			var rowId = row.id;
			if (rowId != null && rowId.indexOf('_tr_') != -1) {
				row.style.display = mode;
			}
		}
	}
	
	function showTaggedMedications(linkRef)
	{
		modTaggedMedications('block');
		linkRef.style.display = 'none';
		return false;
	}
	
	
	function toggleTaggedMedications(cbox)
	{
		if (cbox.checked)
		{
//			modTaggedMedications('none');
			document.getElementById('medicationCheckboxMsg').innerHTML = '<strong>Loading...  Please wait.</strong>';
			document.dataForm.submit();  //need to submit to switch medication view without losing changes
		}
		else
		{
			modTaggedMedications('block');
		}
		
		return false;
	}
</script>
<link href="../../../StyleSheets/EformStyles.css" rel="stylesheet" type="text/css">
<a name="MedicationsClinical" />
<span class="controlBoxTitle">Medications</span><table width="650" border="0" cellspacing="0" cellpadding="0" style="margin-top:10px; margin-bottom:5px;">
  
  <tr>
    <td >Last Bisphosphonate&nbsp;<euc:EformTextBox ShowCalendar="true" CalcDate="false" style="width:90px;" TABLE="NoTable"  FIELD="LastBisphosphonate" Runat="server" ID="LastBisphosphonate" /></td>
    <%--
	<td style="padding-right:20px;"><euc:EformCheckbox TABLE="NoTable" FIELD="VitaminDCal" Runat="server" ID="VitaminDCal" Value="True" />
    Vitamin D / Cal </td>
	--%>
    <td  align="right"><input type="checkbox" checked="checked" onclick="toggleTaggedMedications(this);" />
        <span id="medicationCheckboxMsg">Show Current Medications Only</span></td>
  </tr>
</table>

<table width="650" cellpadding="5" cellspacing="0" class="ClinicalEformTable" id="MedicationsHtmlTable">
  <tr> 
    <td width="31%" class="controlBoxDataGridHeaderFirstCol" style="text-align: left;">&nbsp;Agent</td>
    <td width="10%" class="controlBoxDataGridHeaderFirstCol">Dose</td>
    <td width="10%" class="controlBoxDataGridHeaderFirstCol">Dose Units </td>
    <td width="20%" class="controlBoxDataGridHeaderFirstCol">Schedule</td>
    <td height="9%" class="controlBoxDataGridHeaderFirstCol" nowrap>Stop Date</td>
    <td width="20%" class="controlBoxDataGridHeaderFirstCol">&nbsp;</td>
  </tr>
  
  
  
  <asp:Repeater ID="medicationsAll" runat="server"  OnItemCreated="DecorateMedicationsAll" > 
	<ItemTemplate> 
		<tr id="_tr_" runat="server" class="ClinicalEformPopulatedRow" onMouseOver="this.className='ClinicalEformHighlightedRow';" onMouseOut="this.className='ClinicalEformPopulatedRow';"> 
			<td class="ClinicalEformPopulatedColumn">&nbsp;<%# DataBinder.Eval(Container.DataItem, "Medication") %></td>
			<td align="center" class="ClinicalEformPopulatedColumn">&nbsp;<%# DataBinder.Eval(Container.DataItem, "MedDose") %></td>
			<td align="center" class="ClinicalEformPopulatedColumn">&nbsp;<%# DataBinder.Eval(Container.DataItem, "MedUnits") %></td>
			<td align="center" class="ClinicalEformPopulatedColumn">&nbsp;<%# DataBinder.Eval(Container.DataItem, "MedSchedule") %></td>
			<td class="ClinicalEformPopulatedColumn">&nbsp;<%# DataBinder.Eval(Container.DataItem, "MedStopDateText") %></td>
		    <td class="ClinicalEformPopulatedColumn"><img align="right" src="../../../Images/EformPopulatedRowLOCK.gif" width="9" height="11" id="LockImage" runat="server" title="This record has been locked.">&nbsp;</td>
		</tr>      
	</ItemTemplate>
  </asp:Repeater>
  
  
  

  <tr > 
    <td height="28" class="ClinicalEformGridColumnOne">&nbsp;<euc:EformCheckbox TABLE="Medications" FIELD="Medication" Runat="server" ID="Medication_1" Value="Vitamin D / Cal" RecordId="1" /> Vitamin D / Cal
    <%-- <euc:EformComboBox LookupCode="Medication,PercentUsage,Top80"  RefBy="Medication" style="width:140;" Field="Medication" RecordId="1" Table="Medications" Runat="server" id="Medication_1"  />--%>   </td>
    <td valign="baseline"><euc:EformTextBox RecordId="1" ShowCalendar="False" CalcDate="False" style="width:60px;" TABLE="Medications" FIELD="MedDose" Runat="server" ID="MedDose_1"/>&nbsp;&nbsp;</td>
    <td valign="baseline"><euc:EformSelect RecordId="1" LookupCode="MedUnits" TABLE="Medications" FIELD="MedUnits" Runat="server" ID="MedUnits_1"/></td>
    <td >&nbsp;<euc:EformComboBox LookupCode="MedSchedule" RefBy="MedSchedule" style="width:70;" Field="MedSchedule" RecordId="1" Table="Medications" Runat="server" id="MedSchedule_1"  /></td>
    <td><euc:EformDeleteIcon runat="server"/></td>
    <td>&nbsp;</td>
  </tr>
    <tr > 
    <td height="28" class="ClinicalEformGridColumnOne">&nbsp;
    <euc:EformComboBox  LookupCode="Medication,PercentUsage,Top80" RefBy="Medication" style="width:140;" Field="Medication" RecordId="2" Table="Medications" Runat="server" id="Medication_2"  />    </td>
    <td valign="baseline"><euc:EformTextBox RecordId="2" ShowCalendar="False" CalcDate="False" style="width:60px;" TABLE="Medications" FIELD="MedDose" Runat="server" ID="MedDose_2"/>&nbsp;&nbsp;</td>
    <td valign="baseline"><euc:EformSelect RecordId="2" LookupCode="MedUnits" TABLE="Medications" FIELD="MedUnits" Runat="server" ID="MedUnits_2"/></td>
    <td >&nbsp;<euc:EformComboBox  LookupCode="MedSchedule" RefBy="MedSchedule" style="width:70;" Field="MedSchedule" RecordId="2" Table="Medications" Runat="server" id="MedSchedule_2"  /></td>
    <td><euc:EformDeleteIcon runat="server"/></td>
    <td>&nbsp;</td>
  </tr>

  <tr > 
    <td height="28" class="ClinicalEformGridColumnOne">&nbsp;
    <euc:EformComboBox  LookupCode="Medication,PercentUsage,Top80" RefBy="Medication" style="width:140;" Field="Medication" RecordId="3" Table="Medications" Runat="server" id="Medication_3"  />    </td>
    <td valign="baseline"><euc:EformTextBox RecordId="3" ShowCalendar="False" CalcDate="False" style="width:60px;" TABLE="Medications" FIELD="MedDose" Runat="server" ID="MedDose_3"/>&nbsp;&nbsp;</td>
    <td valign="baseline"><euc:EformSelect RecordId="3" LookupCode="MedUnits" TABLE="Medications" FIELD="MedUnits" Runat="server" ID="MedUnits_3"/></td>
    <td >&nbsp;<euc:EformComboBox  LookupCode="MedSchedule" RefBy="MedSchedule" style="width:70;" Field="MedSchedule" RecordId="3" Table="Medications" Runat="server" id="MedSchedule_3"  /></td>
    <td><euc:EformDeleteIcon runat="server"/></td>
    <td>&nbsp;</td>
  </tr>
  <tr> 
    <td height="28" class="ClinicalEformGridColumnOne">&nbsp;
    <euc:EformComboBox  LookupCode="Medication,PercentUsage,Top80" RefBy="Medication" style="width:140;" Field="Medication" RecordId="4" Table="Medications" Runat="server" id="Medication_4"  />    </td>
    <td valign="baseline"><euc:EformTextBox RecordId="4" ShowCalendar="False" CalcDate="False" style="width:60px;" TABLE="Medications" FIELD="MedDose" Runat="server" ID="MedDose_4"/>&nbsp;&nbsp;</td>
    <td valign="baseline"><euc:EformSelect RecordId="4" LookupCode="MedUnits" TABLE="Medications" FIELD="MedUnits" Runat="server" ID="MedUnits_4"/></td>
    <td >&nbsp;<euc:EformComboBox  LookupCode="MedSchedule" RefBy="MedSchedule" style="width:70;" Field="MedSchedule" RecordId="4" Table="Medications" Runat="server" id="MedSchedule_4"  /></td>
    <td><euc:EformDeleteIcon runat="server"/></td>
    <td>&nbsp;</td>
  </tr>

⌨️ 快捷键说明

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