📄 dataexport.aspx
字号:
<%@ Page language="c#" Codebehind="DataExport.aspx.cs" AutoEventWireup="false" Inherits="Caisis.UI.Core.DataAnalysis.Export.DataExport" %>
<%@ Register TagPrefix="val" TagName="ErrorMsg" Src="../../Utilities/ErrorMsg.ascx" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<html>
<head>
<title>DataExportForm</title>
<meta name="GENERATOR" Content="Microsoft Visual Studio .NET 7.1">
<meta name="CODE_LANGUAGE" Content="C#">
<meta name="vs_defaultClientScript" content="JavaScript">
<meta name="vs_targetSchema" content="http://schemas.microsoft.com/intellisense/ie5">
<link href="../../../StyleSheets/GlobalStyles.css" type="text/css" rel="stylesheet">
<script src="../../../ClientScripts/utilities.js" type="text/javascript"></script>
<script src="../../../ClientScripts/headerJS.js" type="text/javascript"></script>
<script language="javascript">
function setRadios(radioSet, radioNum)
{
document.getElementById('radioSet1').className = 'formTabOff';
document.getElementById('radioSet2').className = 'formTabOff';
document.getElementById('radioSet3').className = 'formTabOff';
document.getElementById('radioSet4').className = 'formTabOff';
document.getElementById('radioSet5').className = 'formTabOff';
document.getElementById(radioSet).className = 'formTabOn';
}
function swapVisibleTables()
{
document.getElementById('exportWaitIcon').style.display = 'block';
document.getElementById('exportFields').style.display = 'none';
}
//
//Validates that combination of radios selected is appropriate for export. Validation also
//implemented server side in case clients script fails.
//
var toggleView = 0;
function toggleExportView()
{
if (toggleView == 0)
{
MM_showHideLayers('ExportDiv','','show');
MM_swapImage('toggleButton','','../../../images/ExportReturn.gif',1)
toggleView = 1;
}
else
{
MM_showHideLayers('ExportDiv','','hide');
MM_swapImage('toggleButton','','../../../images/SelectTablesForExport.gif',1)
toggleView = 0;
}
}
function validate()
{
var errors = 'false';
if(document.getElementById('privacyLimited').checked)//Limited data
{
//Limited data set should be exported with IRB approval of Data User Agreement
if(!document.getElementById('approvalType4').checked)
{
errors = 'true';
alert("Unable to export. Limited dataset requires Data User Agreement from IRB.\n\nPlease resubmit when appropriate authathorization has been granted.");
}
}
else if(document.getElementById('privacyIdentified').checked)//Identified data
{
if(document.getElementById('approvalType4').checked || document.getElementById('approvalType5').checked)//none or data user agreeement
{
errors = 'true';
alert("Unable to export. You may not export an identified dataset with the selected approval type.");
}
else if(document.getElementById('approvalDate').value == '')
{
errors = 'true';
alert("Unable to export. Approval date required to export identified datasets.");
}
else if(!document.getElementById('purpose4').checked)//Operations Data Analysis only valid purpose for export
{
errors = 'true';
alert("Unable to export. You may not export identified data with the selected purpose");
}
}
if(errors == 'false')
{
return true;
}
else
{
return false;
}
}
function confirmExport()
{
if(validate())
{
var exportFormat = document.forms[0].exportMethod.options[document.forms[0].exportMethod.options.selectedIndex].text;
var submit = confirm('You are exporting all patients to ' + exportFormat + '. This process may take up to ten minutes. Would you like to continue?')
if(submit)
{
swapVisibleTables();
document.forms[0].submitBool.value = true;
document.forms[0].submit();
}
else
{
return false;
}
}
}
</script>
</head>
<%-- onblur="MM_swapImage('exportingImage','','../images/ExportingStatic.gif',1)" --%>
<body>
<table width="100%">
<tr>
<td> </td>
</tr>
<tr>
<td align="center">
<form id="ExportForm" method="post" runat="server"> <!-- action="DataExportSubmit.aspx"><!-- target="NewWindow" -->
<input type="hidden" name="submitBool" value="false">
<div id="exportFields" style="OVERFLOW: scroll"><img src="../../../images/shim.gif" height="10" width="1" border="0" />
<br />
<br />
<table width="850" border="0" cellspacing="0" cellpadding="0" align="center">
<tr>
<td colspan="4" class="ListManTitle">Select Parameters for Data Export</td>
<td valign="bottom" align="right"> </td>
<td> </td>
</tr>
<tr>
<td colspan="6"><img src="../../../images/shim.gif" width="10" height="8"></td>
</tr>
<tr>
<td bgcolor="#f1f7fc"><img src="../../../images/ListManCornerTopLeft.gif" width="5" height="5"></td>
<td class="ListManagerBGTableTop"><img src="../../../images/shim.gif" width="10" height="5"></td>
<td class="ListManagerBGTableTop"><img src="../../../images/shim.gif" width="20" height="5"></td>
<td class="ListManagerBGTableTop"><img src="../../../images/shim.gif" width="430" height="5"></td>
<td class="ListManagerBGTableTop"><img src="../../../images/shim.gif" width="360" height="5"></td>
<td bgcolor="#f1f7fc"><img src="../../../images/ListManCornerTopRight.gif" width="5" height="5"></td>
</tr>
<tr>
<td class="ListManBGTableLeftSide"><img src="../../../images/shim.gif" width="1" height="1"></td>
<td colspan="4" class="ListManBGTableBody"><img src="../../../images/shim.gif" width="10" height="8"></td>
<td class="ListManBGTableRightSide"><img src="../../../images/shim.gif" width="1" height="1"></td>
</tr>
<tr>
<td class="ListManBGTableLeftSide"><img src="../../../images/shim.gif" width="1" height="1"></td>
<td colspan="4" class="ListManBGTableBody"><img src="../../../images/shim.gif" width="10" height="8"></td>
<td class="ListManBGTableRightSide"><img src="../../../images/shim.gif" width="1" height="1"></td>
</tr>
<tr>
<td height="300" class="ListManBGTableLeftSide"> </td>
<td colspan="2" class="ListManBGTableBody"> </td>
<td colspan="2" valign="top" class="ListManBGTableBody">
<val:ErrorMsg id="errMsg" runat="Server"></val:ErrorMsg>
<div class="patientDataFormDiv" id="ExportDiv" style="BORDER-RIGHT: #000000 1px; BORDER-TOP: #000000 1px; Z-INDEX: 1; VISIBILITY: hidden; OVERFLOW: auto; BORDER-LEFT: #000000 1px; WIDTH: 100%; BORDER-BOTTOM: #000000 1px; POSITION: absolute; HEIGHT: 280px; BACKGROUND-COLOR: #f1f7fc; layer-background-color: #f1f7fc">
<%-- <div id="exportTablesOn" style="DISPLAY: none"> --%>
<table>
<tr>
<td colspan="6"><strong><%= disease%>
Tables</strong><br>
<asp:CheckBoxList RepeatColumns="5" ID="diseaseTables" Runat="server"></asp:CheckBoxList>
</td>
</tr>
<tr>
<td><br>
</td>
</tr>
<tr>
<td colspan="6"><strong>Base Tables:</strong><br>
<asp:CheckBoxList RepeatColumns="6" ID="baseTables" Runat="server"></asp:CheckBoxList>
</td>
</tr>
</table>
</div>
<table width="810" cellspacing="0" cellpadding="8" border="0">
<tr>
<td style="border-right: solid 1px #e8e8e8" id="radioSet1" width="140" valign="top"
class="formTabOn">
<strong>Disease Type<br>
<br>
<br>
</strong><input id="diseaseProstate" name="diseaseRadio" type="radio" value="Prostate" runat="server"
onClick="document.forms[0].submit()" checked> Prostate<br>
<input id="diseaseBladder" name="diseaseRadio" type="radio" onClick="document.forms[0].submit()"
runat="server" value="Bladder"> Bladder<br>
<input id="diseaseAll" name="diseaseRadio" type="radio" runat="server" onClick="document.forms[0].submit()"
value="All"> All
</td>
<td style="border-right: solid 1px #e8e8e8;" id="radioSet2" width="140" valign="top"
class="formTabOn">
<strong>Dataset Privacy Level<br>
<br>
<br>
</strong><input id="privacyDeidentified" name="privacyRadio" runat="server" type="radio" runat="server"
onClick="document.forms[0].submit()" value="Deidentified" checked> De-Identified<br>
<input id="privacyLimited" name="privacyRadio" runat="server" type="radio" runat="server"
onClick="document.forms[0].submit()" value="Limited"> Limited<br>
<input id="privacyIdentified" name="privacyRadio" runat="server" type="radio" runat="server"
onClick="document.forms[0].submit()" value="Identified"> Identified<br>
</td>
<td style="border-right: solid 1px #e8e8e8;" id="radioSet3" width="240" valign="top"
class="formTabOn">
<strong>Dataset Purpose<br>
<br>
<br>
</strong><input id="purpose1" name="purposeRadio" runat="server" type="radio" value="Data Exploration"
checked> Data Exploration<br>
<input id="purpose2" name="purposeRadio" runat="server" type="radio" value="Data Review Preparatory To Research">
Data Review Preparatory To Research<br>
<input id="purpose3" name="purposeRadio" runat="server" type="radio" value="Research Data Analysis">
Research Data Analysis<br>
<input id="purpose4" name="purposeRadio" runat="server" type="radio" value="Operations Data Analysis">
Operations Data Analysis<br>
</td>
<td id="radioSet4" width="240" valign="top" class="formTabOn">
<strong>Institution Review Board<br>
Approval Type<br>
<br>
</strong><input id="approvalType1" name="approvalTypeRadio" runat="server" type="radio" value="Research Authorization"
checked> Research Authorization<br>
<input id="approvalType2" name="approvalTypeRadio" runat="server" type="radio" value="Waiver of Authorization">
Waiver of Authorization<br>
<input id="approvalType3" name="approvalTypeRadio" runat="server" type="radio" value="Data Review Preparatory To Research">
Data Review Preparatory To Research<br>
<input id="approvalType4" name="approvalTypeRadio" runat="server" type="radio" value="Data Use Agreement">
Data Use Agreement<br>
<input id="approvalType5" name="approvalTypeRadio" runat="server" type="radio" value="None">
None<br>
<br>
<img src="../../../images/shim.gif" width="15">IRB approval date:<br>
<img src="../../../images/shim.gif" width="17"><input type="text" runat="server" style="width:80" onblur="isDate(this.value);" id="approvalDate"
NAME="approvalDate">
</td>
</tr>
</table>
<br />
<br />
<br />
<br />
</td>
<td class="ListManBGTableRightSide"> </td>
</tr>
<tr>
<td bgcolor="#f1f7fc"><img src="../../../images/ListManCornerBottomLeft.gif" width="5" height="5"></td>
<td class="ListManagerBGTableBottom"><img src="../../../images/shim.gif" width="10" height="5"></td>
<td class="ListManagerBGTableBottom"><img src="../../../images/shim.gif" width="20" height="5"></td>
<td colspan="2" class="ListManagerBGTableBottom"><img src="../../../images/shim.gif" width="1" height="1"></td>
<td bgcolor="#f1f7fc"><img src="../../../images/ListManCornerBottomRight.gif" width="5" height="5"></td>
</tr>
<tr>
<td colspan="4" valign="bottom"><img src="../../../images/shim.gif" width="40" height="1">
<a onclick="toggleExportView();"><img id="toggleButton" name="toggleButton" src="../../../images/SelectTablesForExport.gif" width="153" height="22" align="absbottom" style="cursor:hand;"></a>
</td><!--<option value="access">Access Database</option>-->
<td colspan="2" align="right" height="40" valign="top">Export Format:
<select id="exportMethod" runat=server NAME="exportMethod">
<option value="xmlWithSchema">XML for Access</option>
<option value="xmlOnly">XML (without schema)</option>
</select>
<img src="../../../images/shim.gif" width="20">
<!--<asp:Button ID="submitBtn" OnCommand="onSubmitBtnCommand" Runat=server Text="Run Export"></asp:Button>-->
<img src="../../../images/RunExport.gif" align="absbottom" width="85" height="22" onclick="confirmExport();" style="cursor:hand;">
<!--<input type="button" onclick="confirmExport();" Value="Run Export">-->
<img src="../../../images/shim.gif" width="40">
</td>
</tr>
</table>
</div>
<div id="exportWaitIcon" style="DISPLAY: none">
<table width="90%">
<tr>
<%--- <td colspan="2" align=center><img id="exportingImage" name="exportingImage" src="../../../images/Exporting.gif" height="112" width="284" vspace="50"></td> ---%>
<td width="18%"> </td>
<td><img id="exportingImage" name="exportingImage" src="../../../images/ExportingStatic.gif" height="112"
width="284"><br />
<br />
</td>
</tr>
<tr>
<td width="18%" > </td>
<td style="font-size: 12px"><br>
<br>
<strong>To complete your download:</strong><br>
1) When the dialogue box pops up, click the "Save" button. Do NOT click the
"Open" button: the export will fail.<br>
2) Save the .xml file to your local drive.<br>
3) When download is complete, if another dialogue box appears, either click
"Close" or "Open Folder"; do NOT click "Open".<br>
<br>
<br>
<strong>To import XML to Microsoft Access 2002 or 2003:</strong>
<br>
1) Open Access
<br>
2) Create a new database
<br>
3) From the file menu, click "File" -> "Get External Data" -> "Import"
<br>
4) Find the .xml file you just downloaded and click "Import"
<br>
5) Click "Okay" to accept the defaults
<br>
</td>
</tr>
</table>
</div>
</form>
</td>
</tr>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -