📄 medicationsclinical_gu.ascx
字号:
<%@ 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 <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;"> 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"> </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"> <%# DataBinder.Eval(Container.DataItem, "Medication") %></td>
<td align="center" class="ClinicalEformPopulatedColumn"> <%# DataBinder.Eval(Container.DataItem, "MedDose") %></td>
<td align="center" class="ClinicalEformPopulatedColumn"> <%# DataBinder.Eval(Container.DataItem, "MedUnits") %></td>
<td align="center" class="ClinicalEformPopulatedColumn"> <%# DataBinder.Eval(Container.DataItem, "MedSchedule") %></td>
<td class="ClinicalEformPopulatedColumn"> <%# 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."> </td>
</tr>
</ItemTemplate>
</asp:Repeater>
<tr >
<td height="28" class="ClinicalEformGridColumnOne"> <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"/> </td>
<td valign="baseline"><euc:EformSelect RecordId="1" LookupCode="MedUnits" TABLE="Medications" FIELD="MedUnits" Runat="server" ID="MedUnits_1"/></td>
<td > <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> </td>
</tr>
<tr >
<td height="28" class="ClinicalEformGridColumnOne">
<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"/> </td>
<td valign="baseline"><euc:EformSelect RecordId="2" LookupCode="MedUnits" TABLE="Medications" FIELD="MedUnits" Runat="server" ID="MedUnits_2"/></td>
<td > <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> </td>
</tr>
<tr >
<td height="28" class="ClinicalEformGridColumnOne">
<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"/> </td>
<td valign="baseline"><euc:EformSelect RecordId="3" LookupCode="MedUnits" TABLE="Medications" FIELD="MedUnits" Runat="server" ID="MedUnits_3"/></td>
<td > <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> </td>
</tr>
<tr>
<td height="28" class="ClinicalEformGridColumnOne">
<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"/> </td>
<td valign="baseline"><euc:EformSelect RecordId="4" LookupCode="MedUnits" TABLE="Medications" FIELD="MedUnits" Runat="server" ID="MedUnits_4"/></td>
<td > <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> </td>
</tr>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -