Commit a3b679f9 authored by skumbhar's avatar skumbhar

*** empty log message ***


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@95108 ce508802-f39f-4f6c-b175-0d175dae99d5
parent cec3c6ca
function finishAction( value ) function finishAction( value , frm)
{ {
//alert("call finishAction"); alert("call finishAction");
document.getElementById("action").value = value; document.getElementById("action").value = value;
var reconciletype = document.getElementById("reconciletype").value;
var samplItem = []; var samplItem = [];
var method = "post"; var method = "post";
...@@ -16,17 +17,60 @@ function finishAction( value ) ...@@ -16,17 +17,60 @@ function finishAction( value )
valueXmlString += " <site_code_to><![CDATA["+ document.getElementById("site_code_to").value +"]]></site_code_to> "; valueXmlString += " <site_code_to><![CDATA["+ document.getElementById("site_code_to").value +"]]></site_code_to> ";
valueXmlString += " <chg_user><![CDATA["+ document.getElementById("chg_user").value +"]]></chg_user> "; valueXmlString += " <chg_user><![CDATA["+ document.getElementById("chg_user").value +"]]></chg_user> ";
valueXmlString += " <chg_term><![CDATA["+ document.getElementById("chg_term").value +"]]></chg_term> "; valueXmlString += " <chg_term><![CDATA["+ document.getElementById("chg_term").value +"]]></chg_term> ";
valueXmlString += " <sundry_type_fr><![CDATA["+ document.getElementById("sundry_type_fr").value +"]]></sundry_type_fr> ";
valueXmlString += " <sundry_type_to><![CDATA["+ document.getElementById("sundry_type_to").value +"]]></sundry_type_to> ";
valueXmlString += " <sundry_code_fr><![CDATA["+ document.getElementById("sundry_code_fr").value +"]]></sundry_code_fr> ";
valueXmlString += " <sundry_code_to><![CDATA["+ document.getElementById("sundry_code_to").value +"]]></sundry_code_to> ";
valueXmlString += " </Detail1> "; valueXmlString += " </Detail1> ";
valueXmlString += getCheckedValues(frm);
valueXmlString += " </Root> "; valueXmlString += " </Root> ";
samplItem["SAVE_SAMPLE_DATA"] = valueXmlString; samplItem["SAVE_SAMPLE_DATA"] = valueXmlString;
samplItem["RECONCILETYPE"] = reconciletype;
post_to_url(path, samplItem, method); post_to_url(path, samplItem, method);
} }
function getCheckedValues(frm) {
var cnt = "Your chose:\n\n";
alert(cnt);
var xmlData = "<Detail2>";
// For each checkbox see if it has been checked, record the value.
for (i = 0; i < frm.checkbox1.length; i++) {
if (frm.checkbox1[i].checked) {
cnt = frm.checkbox1[i].value;
alert("messages111-- " + cnt)
var trandate = document.getElementById("TRAN_DATE" + cnt).innerHTML;
var refser = document.getElementById("REF_SER" + cnt).innerHTML;
var refid = document.getElementById("REF_ID" + cnt).innerHTML;
var sitecode = document.getElementById("SITE_CODE" + cnt).innerHTML;
var drAmt = document.getElementById("DR_AMT" + cnt).innerHTML;
var crAmt = document.getElementById("CR_AMT" + cnt).innerHTML;
alert("Tran date-- " + trandate);
alert("Ref ser-- " + refser);
alert("Ref ID-- " + refid);
alert("sitecode-- " + sitecode);
alert("DR_AMT-- " + drAmt);
alert("CR_AMT-- " + crAmt);
xmlData += "<Detail>";
xmlData += "<TRAN_DATE><![CDATA[" + trandate + "]]></TRAN_DATE>";
xmlData += "<REF_SER><![CDATA[" + refser + "]]></REF_SER>";
xmlData += "<REF_ID><![CDATA[" + refid + "]]></REF_ID>";
xmlData += "<SITE_CODE><![CDATA[" + sitecode + "]]></SITE_CODE>";
xmlData += "<DR_AMT><![CDATA[" + drAmt + "]]></DR_AMT>";
xmlData += "<CR_AMT><![CDATA[" + crAmt + "]]></CR_AMT>";
xmlData += "</Detail>";
}
}
xmlData += "</Detail2>";
alert("xmlData : " + xmlData);
return xmlData;
}
function isNumberKey(e) function isNumberKey(e)
{ {
//alert("isNumberKey called..."); // alert("isNumberKey called...");
var unicode = e.charCode ? e.charCode : e.keyCode; var unicode = e.charCode ? e.charCode : e.keyCode;
if ((unicode == 8) || (unicode == 9) || (unicode > 47 && unicode < 58) if ((unicode == 8) || (unicode == 9) || (unicode > 47 && unicode < 58)
|| (unicode == 37) || (unicode == 46) || (unicode == 39) || (unicode == 37) || (unicode == 46) || (unicode == 39)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment