257 lines
8.3 KiB
PHP
257 lines
8.3 KiB
PHP
|
<?php include('techsyn_header.php'); ?>
|
||
|
<!-- Main Content Container for side bar and body-->
|
||
|
<div class="main-container ace-save-state" id="main-container">
|
||
|
<script type="text/javascript">
|
||
|
try {
|
||
|
ace.settings.loadState('main-container')
|
||
|
} catch (e) {}
|
||
|
</script>
|
||
|
<?php include('techsyn_sidebar.php'); ?>
|
||
|
|
||
|
<!--breadcrumb-->
|
||
|
<div class="main-content">
|
||
|
<div class="main-content-inner">
|
||
|
<div class="breadcrumbs ace-save-state" id="breadcrumbs">
|
||
|
<ul class="breadcrumb">
|
||
|
<li>
|
||
|
<i class="ace-icon fa fa-home home-icon"></i>
|
||
|
<a href="#">Home</a>
|
||
|
</li>
|
||
|
<li class="#">Inventory</li>
|
||
|
<li class="active">Pending Checklist approval</li>
|
||
|
</ul>
|
||
|
</div>
|
||
|
<!-- End of breadcrumb -->
|
||
|
|
||
|
|
||
|
<div>
|
||
|
|
||
|
<form name="f1" method="post" action="" id="flex_form_unit">
|
||
|
<div id="flex1" style="width:100%">
|
||
|
</div>
|
||
|
<input type="hidden" name="flex_unit_id" id="flex_unit_id" />
|
||
|
</form>
|
||
|
<form name="export_form" method="post" id="export_form" action="">
|
||
|
<input type="hidden" name="flex_medical_form" id="flex_medical_form" />
|
||
|
<input type="hidden" name="pdf_action" id="pdf_action" value="pdf_pending_patient_list.php" />
|
||
|
<input type="hidden" name="excel_action" id="excel_action" value="excel_pending_patient_list.php" />
|
||
|
</form>
|
||
|
<form name="flex_appointment_form" method="post" id="flex_appointment_form" action="">
|
||
|
<input type="hidden" name="param_month" id="param_month" />
|
||
|
<input type="hidden" name="param_year" id="param_year" />
|
||
|
<input type="hidden" name="ambulance_number" id="ambulance_number" />
|
||
|
<input type="hidden" name="ohc_number" id="ohc_number" />
|
||
|
<input type="hidden" name="inventory_type2" id="inventory_type2" />
|
||
|
<input type="hidden" name="status_id" id="status_id" />
|
||
|
<input type="hidden" name="status" id="status" />
|
||
|
<input type="hidden" name="issue_type" id="issue_type" />
|
||
|
<input type="hidden" name="shift" id="shift" />
|
||
|
<input type="hidden" name="inventory_item_type2" id="inventory_item_type2" />
|
||
|
</form>
|
||
|
</div>
|
||
|
|
||
|
|
||
|
|
||
|
</div><!-- /.page-content -->
|
||
|
</div>
|
||
|
</div><!-- /.main-content -->
|
||
|
<script>
|
||
|
$(function() {
|
||
|
|
||
|
var w = screen.width * .90;
|
||
|
|
||
|
h = (screen.height - ($("#navbar").height() + $(".breadcrumbs").height())) * .67;
|
||
|
$("#flex1").flexigrid({
|
||
|
url: 'pending_checklist_script.php',
|
||
|
|
||
|
dataType: 'json',
|
||
|
colModel: [{
|
||
|
display: 'Sr',
|
||
|
name: 'count',
|
||
|
width: w * .05,
|
||
|
sortable: false,
|
||
|
align: 'left'
|
||
|
},
|
||
|
{
|
||
|
display: '',
|
||
|
name: 'link',
|
||
|
width: w * .05,
|
||
|
sortable: false,
|
||
|
align: 'left'
|
||
|
},
|
||
|
{
|
||
|
display: 'AMBULANCE/OHC',
|
||
|
name: 'ambulance',
|
||
|
width: w * .15,
|
||
|
sortable: true,
|
||
|
align: 'left'
|
||
|
},
|
||
|
{
|
||
|
display: 'Month',
|
||
|
name: 'month',
|
||
|
width: w * .06,
|
||
|
sortable: false,
|
||
|
align: 'left'
|
||
|
},
|
||
|
|
||
|
{
|
||
|
display: 'Year',
|
||
|
name: '',
|
||
|
width: w * .08,
|
||
|
sortable: true,
|
||
|
align: 'left'
|
||
|
},
|
||
|
{
|
||
|
display: 'shift',
|
||
|
name: '',
|
||
|
width: w * .08,
|
||
|
sortable: true,
|
||
|
align: 'left'
|
||
|
},
|
||
|
{
|
||
|
display: 'Checker',
|
||
|
name: '',
|
||
|
width: w * .08,
|
||
|
sortable: true,
|
||
|
align: 'left'
|
||
|
},
|
||
|
{
|
||
|
display: 'Status',
|
||
|
name: 'status',
|
||
|
width: w * .15,
|
||
|
sortable: true,
|
||
|
align: 'left'
|
||
|
}
|
||
|
],
|
||
|
buttons: [
|
||
|
|
||
|
|
||
|
{
|
||
|
name: 'PDF',
|
||
|
bclass: 'print',
|
||
|
onpress: pdf
|
||
|
},
|
||
|
{
|
||
|
separator: true
|
||
|
},
|
||
|
{
|
||
|
name: 'Excel',
|
||
|
bclass: 'print_excel',
|
||
|
onpress: excel
|
||
|
},
|
||
|
{
|
||
|
separator: true
|
||
|
},
|
||
|
{
|
||
|
name: 'ADD NEW',
|
||
|
bclass: 'add',
|
||
|
onpress: add_new
|
||
|
},
|
||
|
|
||
|
],
|
||
|
searchitems: [
|
||
|
|
||
|
{
|
||
|
display: 'Year',
|
||
|
name: 'param_year',
|
||
|
isdefault: true
|
||
|
},
|
||
|
|
||
|
{
|
||
|
display: 'status',
|
||
|
name: 'status',
|
||
|
isdefault: true
|
||
|
},
|
||
|
|
||
|
{
|
||
|
display: 'Date (dd/mm/yyyy)',
|
||
|
name: 'approve_date'
|
||
|
},
|
||
|
|
||
|
{
|
||
|
display: 'Amb Name',
|
||
|
name: 'ambulance_name',
|
||
|
isdefault: true
|
||
|
}
|
||
|
],
|
||
|
sortname: "approve_date",
|
||
|
sortorder: "desc",
|
||
|
usepager: true, //pagination
|
||
|
//title:"Employee OPD",
|
||
|
useRp: true,
|
||
|
rp: 50, //records per page
|
||
|
showTableToggleBtn: false, //toggle button for the whole table
|
||
|
resizable: true,
|
||
|
// width: w,
|
||
|
height: h,
|
||
|
singleSelect: true
|
||
|
});
|
||
|
});
|
||
|
|
||
|
function open_employee_appointment(param_year, param_month, amb_id, item_cat, status_id, status, issue_type, shift,
|
||
|
action) {
|
||
|
// alert(param_year + '--' + param_month + '--' + amb_id + '--' + item_cat + '--' + status_id + '--' + action);
|
||
|
$("#flex_appointment_form").find("#param_month").val(param_month - 1);
|
||
|
$("#flex_appointment_form").find("#param_year").val(param_year);
|
||
|
$("#flex_appointment_form").find("#inventory_type2").val(amb_id);
|
||
|
|
||
|
$("#flex_appointment_form").find("#ambulance_number").val(amb_id);
|
||
|
$("#flex_appointment_form").find("#ohc_number").val(amb_id);
|
||
|
$("#flex_appointment_form").find("#issue_type").val(issue_type);
|
||
|
$("#flex_appointment_form").find("#shift").val(shift);
|
||
|
$("#flex_appointment_form").find("#status_id").val(status_id);
|
||
|
$("#flex_appointment_form").find("#status").val(status);
|
||
|
$("#flex_appointment_form").find("#inventory_item_type2").val(item_cat);
|
||
|
$("#flex_appointment_form").method = "post";
|
||
|
$("#flex_appointment_form").attr('action', 'inventory_checklist_details.php');
|
||
|
$("#flex_appointment_form").submit();
|
||
|
}
|
||
|
|
||
|
function pdf() {
|
||
|
window.open('ajax_pdf.php', 'Pending Patient List');
|
||
|
}
|
||
|
|
||
|
function excel() {
|
||
|
window.open('ajax_excel.php', 'Pending Patient List');
|
||
|
}
|
||
|
|
||
|
function add_new() {
|
||
|
window.location = 'ohc_selector.php';
|
||
|
}
|
||
|
|
||
|
function delete_employee_appointment_history(appointment_id) {
|
||
|
//$("#flex_appointment_id").val(appointment_id);
|
||
|
|
||
|
BootstrapDialog.confirm('Are you sure to delete?', function(result) {
|
||
|
if (result) {
|
||
|
$.ajax({
|
||
|
url: 'delete_appointment.php',
|
||
|
type: "POST",
|
||
|
data: {
|
||
|
flex_appointment_id: appointment_id
|
||
|
},
|
||
|
success: function(data) {
|
||
|
if (data.indexOf("SUCCESS") != -1) {
|
||
|
var history_record = $("#history_record").text();
|
||
|
|
||
|
$('#history_record').text(parseInt(history_record) - 1);
|
||
|
BootstrapDialog.alert('Deleted Successfully.');
|
||
|
$("#flex1").flexReload();
|
||
|
//loadAppointmentHistory('<?php echo $_REQUEST['flex_opd_id']?>');
|
||
|
|
||
|
} else {
|
||
|
BootstrapDialog.alert('Error Deleting');
|
||
|
}
|
||
|
return;
|
||
|
},
|
||
|
error: function(data) {
|
||
|
BootstrapDialog.alert('Error Deleting');
|
||
|
return;
|
||
|
}
|
||
|
});
|
||
|
}
|
||
|
});
|
||
|
|
||
|
}
|
||
|
</script>
|
||
|
<?php include 'techsyn_footer.php'; ?>
|