diff --git a/application/views/statusofservicepurchaseorder.php b/application/views/statusofservicepurchaseorder.php
index 2505a2d7..0b9066cb 100644
--- a/application/views/statusofservicepurchaseorder.php
+++ b/application/views/statusofservicepurchaseorder.php
@@ -149,18 +149,7 @@ $('#PONO').change(function() {
{
$('#content').loader('show');
- var y = ;
- $.each(y, function(idx, obj) {
-
- if(id == obj.PONO)
- {
- //alert(obj.ServiceWorkStatus);
- // $('#WorkStatus').val(obj.ServiceWorkStatus);
- // $("#WorkStatus").append( $('').val(obj.ServiceWorkStatus).html(obj.ServiceWorkStatus));
- return;
- }
- });
$.ajax({
data:{id:id},
@@ -181,27 +170,7 @@ $('#PONO').change(function() {
});
- /*var rowcount =document.getElementById('StatusTable').rows.length;
- for(i=1;i<=rowcount;i++)
- {
- alert($('#Status1').val());
- // var tr= document.getElementById(i);
- // cells = tr.getElementsByTagName('td');
- // var Statusval = cells[0].innerHTML;
- $('').attr({
- type: 'hidden',
- id: 'hidStatus'+i,
- name: 'hidStatus'+i,
- value: $('#Status'+i).val()
- }).appendTo('form');
-
- $('').attr({
- type: 'hidden',
- id: 'hidRemarks'+i,
- name: 'hidRemarks'+i,
- value: $('#Remark'+i).val()
- }).appendTo('form');
- } //alert(rowcount);*/
+
}
else
@@ -211,45 +180,7 @@ $('#PONO').change(function() {
});
});
- function saveToDatabase(Index) {
- var id = $('#Remarks'+Index).val();
- var Status = $('#Status'+Index).val();
- var strMsg = 'Do you want to Approve the Requisition?';
- var answer = confirm(strMsg);
- var Selectedvalue = [];
- Selectedvalue[0]= id;
- Selectedvalue[1]= Status;
- Selectedvalue[2]= PONO;
- if (answer)
- {
- $('#content').loader('show');
- $.ajax({
- data:{id:id},
- type:"POST",
- url:"requisitionform/ApproveRequest?Status="+StatusCode+"&ReqNo="+ReqId,
- success:function(data) {
- if(data)
- {
- $('#content').loader('hide');
- alert(data);
- location.reload();
- }
- else
- {
- alert("Error");
- }
-
- }
-
-
- });
-
- }
- else
- {
- return;
- }
- }
+