201 lines
5.8 KiB
PHP
201 lines
5.8 KiB
PHP
<?php include('techsyn_header.php'); ?>
|
|
<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 class="active">Add CheckList Stock Item</li>
|
|
</ul>
|
|
</div>
|
|
<!-- End of breadcrumb -->
|
|
|
|
|
|
<div class="page-content">
|
|
|
|
<form name="f1" method="post" action="" id="flex_form_procurement">
|
|
<div id="flex1" style="width:100%">
|
|
</div>
|
|
<input type="hidden" name="flex_procurement_id" id="flex_procurement_id" />
|
|
</form>
|
|
<form name="export_form" method="post" id="export_form" action="">
|
|
|
|
<input type="hidden" name="pdf_action" id="pdf_action" value="pdf_item_issue.php" />
|
|
<input type="hidden" name="excel_action" id="excel_action" value="excel_item_issue.php" />
|
|
</form>
|
|
</div>
|
|
|
|
|
|
|
|
</div><!-- /.page-content -->
|
|
</div>
|
|
</div><!-- /.main-content -->
|
|
|
|
|
|
|
|
|
|
<script type="text/javascript">
|
|
$(function() {
|
|
|
|
var w = screen.width * .90;
|
|
var h = 0;
|
|
h = (window.innerHeight - ($("#navbar").height() + $(".breadcrumbs").height())) * .75;
|
|
$("#flex1").flexigrid({
|
|
url: 'ambulance_item_master_list_script.php',
|
|
dataType: 'json',
|
|
colModel: [{
|
|
display: '',
|
|
name: '',
|
|
width: w * .08,
|
|
sortable: false,
|
|
align: 'left'
|
|
},
|
|
{
|
|
display: 'Sr',
|
|
name: 'count',
|
|
width: w * .04,
|
|
sortable: true,
|
|
align: 'left'
|
|
},
|
|
{
|
|
display: 'Issue To',
|
|
name: 'issue_type',
|
|
width: w * .1,
|
|
sortable: true,
|
|
align: 'left'
|
|
},
|
|
{
|
|
display: 'Airlift Number/OHC Location',
|
|
name: 'issue_ref_no',
|
|
width: w * .2,
|
|
sortable: true,
|
|
align: 'left'
|
|
},
|
|
{
|
|
display: 'Items',
|
|
name: 'items',
|
|
width: w * .2,
|
|
sortable: true,
|
|
align: 'left'
|
|
},
|
|
],
|
|
buttons: [
|
|
|
|
{
|
|
name: 'Add',
|
|
bclass: 'add',
|
|
onpress: add
|
|
},
|
|
{
|
|
separator: true
|
|
},
|
|
// {name: 'Direct Item Issue', bclass: 'add', onpress : addDirect},
|
|
// {separator: true},
|
|
// {name: 'PDF', bclass: 'print', onpress : pdf},
|
|
// {separator: true},
|
|
// {name: 'Excel', bclass: 'print_excel', onpress : excel},
|
|
// {separator: true},
|
|
|
|
],
|
|
searchitems: [
|
|
|
|
// {display: 'Parent ID', name: 'parent_id', isdefault: true},
|
|
{
|
|
display: 'Issue Refno',
|
|
name: 'issue_ref_no'
|
|
},
|
|
// {display: 'Issue Date(DD/MM/YYYY)', name: 'issue_date'},
|
|
// {display: 'Box / Ambulance ', name: 'amb_no_box_code'},
|
|
// {display: 'Item Desc ', name: 'item_desc'},
|
|
// {display: 'Remarks ', name: 'remarks'},
|
|
// {display: 'Direct Issue(Y/N)', name: 'direct_issue'},
|
|
// {display: 'Requisition No', name: 'req_ref_no'},
|
|
// {display: 'Ohc Location', name: 'ohc_loc'}
|
|
|
|
],
|
|
sortname: "ohc_type_id",
|
|
sortorder: "desc",
|
|
usepager: true, //pagination
|
|
|
|
useRp: true,
|
|
rp: 50, //records per page
|
|
showTableToggleBtn: false, //toggle button for the whole table
|
|
resizable: true,
|
|
//width: w,
|
|
height: h,
|
|
singleSelect: true
|
|
});
|
|
});
|
|
|
|
|
|
|
|
function addDirect() {
|
|
location.href = "ambulance_issue_checklist_master.php";
|
|
|
|
|
|
}
|
|
|
|
function open_stock_item_issue(id, action) {
|
|
location.href = "edit_ambulance_issue_checklist_master.php?id=" + id + "";
|
|
}
|
|
|
|
function add() {
|
|
location.href = "ambulance_issue_checklist_master.php";
|
|
}
|
|
|
|
function pdf() {
|
|
//window.open('pdf_manage_item.php');
|
|
|
|
window.open('ajax_pdf.php', 'Item Issue List');
|
|
}
|
|
|
|
function excel() {
|
|
window.open('ajax_excel.php', 'Item Issue List');
|
|
}
|
|
|
|
function download_template() {
|
|
window.location = 'download_template.php';
|
|
}
|
|
|
|
function upload_excel() {
|
|
window.location = 'upload_excel_procurement.php';
|
|
}
|
|
</script>
|
|
<script>
|
|
function delete_amb_check_issue(id) {
|
|
$("#flex_procurement_id").val(id);
|
|
BootstrapDialog.confirm('Are you sure to delete the Ambulance Check List?', function(result) {
|
|
if (result) {
|
|
$.ajax({
|
|
url: 'delete_ambulance_checklist_master.php',
|
|
type: "POST",
|
|
data: $("#flex_form_procurement").serialize(),
|
|
success: function(data) {
|
|
if (data.indexOf("SUCCESS") != -1) {
|
|
BootstrapDialog.alert('Ambulance Check List Deleted Successfully.');
|
|
$("#flex1").flexReload();
|
|
} else {
|
|
BootstrapDialog.alert('Error Deleting Ambulance CheckList');
|
|
}
|
|
return;
|
|
},
|
|
error: function(data) {
|
|
BootstrapDialog.alert('Error Deleting Ambulance CheckList');
|
|
return;
|
|
}
|
|
});
|
|
}
|
|
});
|
|
|
|
}
|
|
</script>
|
|
|
|
<?php include('techsyn_footer.php'); ?>
|