Blood Bank Stock Position
East Godavari
| Sl No | Blood Bank Name | Available Stock (Nos) | Place | Contact Number |
alert($("#hidval").val());jQuery.noConflict()(function ($) { $(document).ready(function () {
$('#ButShowReport').click(function () {
var bgid = $("#BG").val();
//alert(bgid);
$.ajax({
url: "http://eg.ap.gov.in/bbs/BBService.asmx/StockPosition",
data: {BGId: bgid},
method: "POST",
//contentType: "application/json; charset=utf-8",
dataType: "json",
success: function (data) {
$("#DisplayTable").find("tr:gt(0)").remove();
$.each(data, function (i, dt) {
$("#DisplayTable").append("
| " + dt.slno + " | " + dt.bbname + " | " + dt.stock + " | " + dt.address + " | " + dt.phone + " |
");
// slno, bgname, bbname, stock, address, phone
});
},
error: function (XHR, errStatus, errorThrown) {
var err = JSON.parse(XHR.responseText);
errorMessage = err.Message;
alert(errorMessage);
}
});
});
var conval = $("#hidval").val();
if (conval == 0) {
$.ajax({
url: "http://eg.ap.gov.in/bbs/BBService.asmx/BBGroupJSON",
data: "{}",
method: "POST",
//contentType: "application/json; charset=utf-8",
dataType: "json",
success: function (data) {
$("#BG").get(0).options.length = 0;
$("#BG").get(0).options[0] = new Option("Select Blood Group", "0");
$.each(data, function (i, dt) {
// $("#BG").get(0).options[$("#BG").get(0).options.length] = new Option(dt.BGName, dt.BGId);
$("#BG").append("" + dt.BGName + "");
});
},
error: function (XHR, errStatus, errorThrown) {
var err = JSON.parse(XHR.responseText);
errorMessage = err.Message;
alert(errorMessage);
}
});
$("#hidval").val('1');
//alert($("#hidval").val());
}
});
});