Commit 1b0f7a61 authored by wansari's avatar wansari

D14IKAT004 removed detail3 checkbox function


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@97501 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 232aedc8
...@@ -36,7 +36,23 @@ function selectCheckbox() ...@@ -36,7 +36,23 @@ function selectCheckbox()
var field = document.getElementById("erp").value; var field = document.getElementById("erp").value;
if(field=="supp_code") if(field=="supp_code")
{ {
if(Wizard_SuppDetails.selectbox.length==undefined ) //this is for if only one checkbox
{
if(Wizard_SuppDetails.selectbox.checked)
{
supp_code=supp_code+document.getElementById("DetailITCode.1.fieldId").value;
det=det+document.getElementById("DetailITCode.1.fieldValue").value;
otherField1=otherField1+document.getElementById("DetailITCode.1.otherField1").value;
otherField2=otherField2+document.getElementById("DetailITCode.1.otherField2").value;
otherField3=otherField3+document.getElementById("DetailITCode.1.otherField3").value;
otherField4=otherField4+document.getElementById("DetailITCode.1.otherField4").value;
otherField5=otherField5+document.getElementById("DetailITCode.1.otherField5").value;
descr1=descr1+document.getElementById("DetailITCode.1.descr1").value;
}
}
else
{
for (var i = 1; i<=Wizard_SuppDetails.selectbox.length; i++) for (var i = 1; i<=Wizard_SuppDetails.selectbox.length; i++)
{ {
//i=i+1; //i=i+1;
...@@ -54,7 +70,7 @@ function selectCheckbox() ...@@ -54,7 +70,7 @@ function selectCheckbox()
descr1=descr1+document.getElementById("DetailITCode."+ i +".descr1").value; descr1=descr1+document.getElementById("DetailITCode."+ i +".descr1").value;
} }
} }
}
if(supp_code=="") if(supp_code=="")
{ {
alert('No Selection Made ! \nPlease Select the Code !'); alert('No Selection Made ! \nPlease Select the Code !');
...@@ -77,6 +93,17 @@ function selectCheckbox() ...@@ -77,6 +93,17 @@ function selectCheckbox()
} }
else if(field=="tran_code") else if(field=="tran_code")
{ {
if(Wizard_SuppDetails.selectbox.length==undefined ) //this is for if only one checkbox
{
if(Wizard_SuppDetails.selectbox.checked)
{
supp_code=supp_code+document.getElementById("DetailITCode.1.fieldId").value;
det=det+document.getElementById("DetailITCode.1.fieldValue").value;
extra=extra+document.getElementById("DetailITCode.1.otherField").value;
}
}
else
{
for (var i = 1; i<=Wizard_SuppDetails.selectbox.length; i++) for (var i = 1; i<=Wizard_SuppDetails.selectbox.length; i++)
{ {
//i=i+1; //i=i+1;
...@@ -87,7 +114,7 @@ function selectCheckbox() ...@@ -87,7 +114,7 @@ function selectCheckbox()
extra=extra+document.getElementById("DetailITCode."+ i +".otherField").value; extra=extra+document.getElementById("DetailITCode."+ i +".otherField").value;
} }
} }
}
if(supp_code=="") if(supp_code=="")
{ {
alert('No Selection Made ! \nPlease Select the Code !'); alert('No Selection Made ! \nPlease Select the Code !');
...@@ -1254,3 +1281,4 @@ function callForm1() ...@@ -1254,3 +1281,4 @@ function callForm1()
//window.location.href = url; //window.location.href = url;
//window.close(); //window.close();
} }
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