Advertisement
Advertisement
| 06.25.2008 at 06:07AM PDT, ID: 23514271 |
|
[x]
Attachment Details
|
||
|
[x]
The Solution Rating System
|
||
With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.
Your Input Matters If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support. Thank you! |
||
1: 2: 3: 4: 5: 6: 7: 8: 9: 10: 11: 12: 13: 14: 15: 16: 17: 18: 19: 20: 21: 22: 23: 24: 25: 26: 27: 28: 29: 30: 31: 32: 33: 34: 35: 36: 37: 38: 39: 40: 41: 42: 43: 44: 45: 46: 47: 48: 49: 50: 51: 52: 53: 54: 55: 56: 57: 58: 59: 60: 61: 62: 63: 64: 65: 66: 67: 68: 69: 70: 71: 72: 73: 74: 75: 76: 77: 78: 79: 80: 81: 82: 83: 84: 85: 86: 87: 88: 89: 90: 91: 92: 93: 94: 95: 96: 97: 98: 99: 100: 101: 102: 103: 104: 105: 106: 107: 108: 109: 110: 111: 112: 113: 114: 115: 116: 117: 118: 119: 120: 121: 122: 123: 124: 125: 126: 127: 128: 129: 130: 131: 132: 133: 134: 135: 136: 137: 138: 139: 140: 141: 142: 143: 144: 145: 146: 147: 148: 149: 150: 151: 152: 153: 154: 155: 156: 157: 158: 159: 160: 161: 162: 163: 164: 165: 166: 167: 168: 169: 170: 171: 172: 173: 174: 175: 176: 177: 178: 179: 180: 181: 182: 183: 184: 185: 186: 187: 188: 189: 190: 191: 192: 193: 194: 195: 196: 197: 198: 199: 200: 201: 202: 203: 204: 205: 206: 207: 208: 209: 210: 211: 212: 213: 214: 215: 216: 217: 218: 219: 220: 221: 222: 223: 224: 225: 226: 227: 228: 229: 230: 231: 232: 233: 234: 235: 236: 237: 238: 239: 240: 241: 242: 243: 244: 245: 246: 247: 248: 249: 250: 251: 252: 253: 254: 255: 256: 257: 258: 259: 260: 261: 262: 263: 264: 265: 266: 267: 268: 269: 270: 271: 272: 273: 274: 275: 276: 277: 278: 279: 280: 281: 282: 283: 284: 285: 286: 287: 288: 289: 290: 291: 292: 293: 294: 295: 296: 297: 298: 299: 300: 301: 302: 303: |
<%@ Language=VBScript %>
<%
Response.AddHeader "cachecontrol","private"
Response.Expires =-1
Response.CacheControl="no-cache"
%>
<!--#include file="menu.asp" -->
<!--#include file="Constants.inc" -->
<%
if CStr(Session("sUserID")) = "" then
Response.Clear
Response.Redirect "Signoff.asp"
end if
if Trim(Interface_DomainName) = "" then
Response.Write "<div align='center'><font color=red><b>Interface Domain Name Required Some Value In Constant.inc File...</b></font></div>"
Response.End
End if
Dim sSession_UserId
sSession_UserId = Trim(UCase(Session("sUserID")))
%>
<HTML>
<HEAD>
<META NAME="GENERATOR" Content="Microsoft Visual Studio 6.0">
<meta http-equiv="Page-Enter" content="revealTrans(Duration=0,Transition=12)">
<link href="library/GUI.css" rel="stylesheet" type="text/css">
<Script language="JavaScript">
var statusText;
var iSearchType = '0';
var sInterface_DomainName = '<%=Interface_DomainName%>';
var sUserId = '<%=sSession_UserId%>';
//This part is used to call the Ajax.
// Define a list of Microsoft XML HTTP ProgIDs.
var XMLHTTPREQUEST_MS_PROGIDS = new Array("Msxml2.XMLHTTP.7.0",
"Msxml2.XMLHTTP.6.0",
"Msxml2.XMLHTTP.5.0",
"Msxml2.XMLHTTP.4.0",
"Msxml2.XMLHTTP.3.0",
"Msxml2.XMLHTTP",
"Microsoft.XMLHTTP" );
// Define ready state constants.
var XMLHTTPREQUEST_READY_STATE_UNINITIALIZED = 0;
var XMLHTTPREQUEST_READY_STATE_LOADING = 1;
var XMLHTTPREQUEST_READY_STATE_LOADED = 2;
var XMLHTTPREQUEST_READY_STATE_INTERACTIVE = 3;
var XMLHTTPREQUEST_READY_STATE_COMPLETED = 4;
var iRequest_Type = 0; //This will provides the type of the search (Attributes/Operators)
//-----------------------------------------------------------------------------
// Returns an XMLHttpRequest object.
//-----------------------------------------------------------------------------
function getXMLHttpRequest()
{
var httpRequest = null;
// Create the appropriate HttpRequest object for the browser.
if (window.XMLHttpRequest != null)
{ httpRequest = new window.XMLHttpRequest(); }
else if (window.ActiveXObject != null)
{
var success = false;
for (var i=0;i < XMLHTTPREQUEST_MS_PROGIDS.length && !success;i++)
{
try
{
httpRequest = new ActiveXObject(XMLHTTPREQUEST_MS_PROGIDS[i]);
success = true;
break;
}
catch (ex)
{}
}
}
if (httpRequest == null)
{alert("Error In HttpRequest():\n\nCannot create XMLHttpRequest object.");}
return httpRequest;
}
var DataLookup = getXMLHttpRequest();
function initiateDataLookup(sType,iDocumentType)
{
DataLookup.abort();
var url = 'loadDropDown.asp?SearchType=' + sType + '&DocType=' + iDocumentType;
DataLookup.onreadystatechange = DataReadyStateChange;
DataLookup.open("GET",url,true);
DataLookup.send(null);
}
function DataReadyStateChange()
{
switch (DataLookup.readystate)
{
case XMLHTTPREQUEST_READY_STATE_UNINITIALIZED:
statusText = "";
break;
case XMLHTTPREQUEST_READY_STATE_LOADING:
statusText = "Initializing...";
break;
case XMLHTTPREQUEST_READY_STATE_LOADED:
statusText = "Sending Data..";
break;
case XMLHTTPREQUEST_READY_STATE_INTERACTIVE:
statusText = "Downloading Data..";
break;
case XMLHTTPREQUEST_READY_STATE_COMPLETED:
try
{
statusText = "Data Downloaded..";
var data = DataLookup.responseText;
var sDescription = (data.split(':')[0]);
var sValue = (data.split(':')[1]);
if (Trim(sDescription) == "Export Lock")
{
if (Trim(sValue) == "-19001")
{
dvParent.style.display = 'none';
dvMandInfo.style.display = 'none';
dvExportStatus.style.display = 'block';
frmExport.HDProcessStatus.value = '1';
}
}
if (Trim(sDescription) == "Export Status")
{
if (Trim(sValue) != "0")
{
dvParent.style.display = 'none';
dvMandInfo.style.display = 'block';
dvExportStatus.style.display = 'none';
frmExport.HDProcessStatus.value = '1';
}
else
{
frmExport.HDProcessStatus.value = '0';
fncProcessRequest();
}
}
break;
}
catch(ex){
statusText = "Error In Downloading The Data..";
HDProcessStatus.value = '1';
}
break;
default:
statusText = "Unknown error..";
break;
}
//alert(statusText)
}
function fncInitRequest()
{
initiateDataLookup(37,1);
return false;
}
function fncYesClick()
{
try{
frmExport.HDProcessStatus.value = '0';
}
catch(e){}
fncProcessRequest();
return false;
}
function fncProcessRequest()
{
var processStatus = "";
try
{ processStatus = frmExport.HDProcessStatus.value;}
catch(e)
{ processStatus = '0';}
if (processStatus != '0')
{
alert('Error in processing the request...');
}
else
{
var sActionPage;
//initiateDataLookup(38,1);
//alert(sInterface_DomainName + " : " + sUserId);
sActionPage = "/" + sInterface_DomainName + "/exportThruWebservice.aspx?UserId=" + sUserId;
anchoreInterface.href = sActionPage;
anchoreInterface.click();
document.location = "./exportXMLStatus.asp";
}
dvParent.style.display = 'none';
dvMandInfo.style.display = 'none';
dvExportStatus.style.display = 'none';
return false;
}
function fncNoClick()
{
dvParent.style.display = 'block';
dvMandInfo.style.display = 'none';
dvExportStatus.style.display = 'none';
return false;
}
// Removes leading and trailing spaces from the passed String. Also removes
// consecutive spaces and replaces item with one space. If something besides
// a String is passed in (null, custom Object, etc.) then return the input.
function Trim(inputString) {
if (typeof inputString != "string") { return inputString; }
var retValue = inputString;
var ch = retValue.substring(0, 1);
while (ch == " ") { // Check for spaces at the beginning of the string
retValue = retValue.substring(1, retValue.length);
ch = retValue.substring(0, 1);
}
ch = retValue.substring(retValue.length-1, retValue.length);
while (ch == " ") { // Check for spaces at the end of the string
retValue = retValue.substring(0, retValue.length-1);
ch = retValue.substring(retValue.length-1, retValue.length);
}
while (retValue.indexOf(" ") != -1) { // Note that there are two spaces in the string - look for multiple spaces within the string
retValue = retValue.substring(0, retValue.indexOf(" ")) + retValue.substring(retValue.indexOf(" ")+1, retValue.length); // Again, there are two spaces in each of the strings
}
return retValue; // Return the trimmed string back to the user
} // Ends the "trim" function
</Script>
</HEAD>
<BODY link="#004080" alink="#004080" vlink="#004080" text=Red>
<form name="frmExport" id="frmExport" method="post">
<table width="100%" height="100%">
<tr>
<td class="bodycontent" valign="top">
<a style="display:none;" name="anchoreInterface" id="anchoreInterface"></a>
<div id="dvParent">
<table width=100% border=0 align=center cellpadding="0" cellspacing="0" ID="Table1">
<tr>
<td width=100% align=center class="pageheader"><b>Webserivce Export</b></td>
</tr>
</table>
<table width=100% border=0 align=center cellpadding="0" cellspacing="0" ID="Table2">
<tr>
<td class="tablecontent" width=35%>
<input type="button" class="cmdButtonsearch1" value="Export through webservice" Style="Cursor:Hand;" id="btnRequest" name="btnRequest" OnClick="JavaScript: return fncInitRequest();">
</td>
<td class="tablecontent" width=75%>
<input type="button" class="cmdbuttonNormal" value="Cancel" Style="Cursor:Hand;" id="btnCancel" name="btnCancel" OnClick="Javascript: document.location='./menu.asp';">
</td>
</tr>
</table>
</div>
<div id="dvMandInfo">
<br><br><br><br><br><br><br><br>
<table width="400" border="0" align="center" cellpadding="0" cellspacing="0" ID="Table2">
<tr>
<td width="10%" align="left"><div align="left"><img src="Images/left.gif" width="44" height="147"></div></td>
<td width="79%" background="Images/background.gif"><div align="center"><font size="3" face="Arial, Helvetica, sans-serif" color="#ffffff">
<strong>Records are yet to be audited<br><br>Do you want to Continue(Y/N)?
</Strong></font></div></td>
<td width="11%"><img src="Images/right.gif" width="44" height="147"></td>
</tr>
<tr>
<td colspan="3" background="Images/bg1.gif"><div align="center">
<input type=button class=cmdbutton value="Yes" name=cmdYes id=cmdYes Style="Cursor:Hand" OnClick="Javascript:return fncYesClick();">
<input type=button class=cmdbutton value="No" name=cmdNo id=cmdNo Style="Cursor:Hand" OnClick="Javascript:return fncNoClick();"></div></td>
</tr>
</table>
</div>
<div id="dvExportStatus">
<br><br><br><br><br><br><br><br>
<div style="font-weight:bolder;" align=center>Export Process is used by some other user..</div>
</div>
</td>
</tr>
</table>
<input type="Hidden" id="HDProcessStatus" Name="HDProcessStatus" value="0">
</form>
</BODY>
<script>
dvParent.style.display = 'block';
dvMandInfo.style.display = 'none';
dvExportStatus.style.display = 'none';
</script>
</HTML>
|