300 lines
8.0 KiB
PHP
300 lines
8.0 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 class="#">Item Issue </li>
|
||
|
|
<li class="active">Veterinary Treatment list</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_vet_stock_issue_list.php" />
|
||
|
|
<input type="hidden" name="excel_action" id="excel_action" value="excel_vet_stock_issue_list.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: 'veterinary_issue_list_script.php',
|
||
|
|
dataType: 'json',
|
||
|
|
colModel: [{
|
||
|
|
display: 'Actions',
|
||
|
|
name: '',
|
||
|
|
width: w * .08,
|
||
|
|
sortable: false,
|
||
|
|
align: 'center'
|
||
|
|
},
|
||
|
|
{
|
||
|
|
display: 'Sr',
|
||
|
|
name: 'stock_issue_id',
|
||
|
|
width: w * .04,
|
||
|
|
sortable: true,
|
||
|
|
align: 'center'
|
||
|
|
},
|
||
|
|
{
|
||
|
|
display: 'Issue Ref No',
|
||
|
|
name: 'issue_ref_no',
|
||
|
|
width: w * .1,
|
||
|
|
sortable: true,
|
||
|
|
align: 'center'
|
||
|
|
},
|
||
|
|
{
|
||
|
|
display: 'Issue Date',
|
||
|
|
name: 'issue_date',
|
||
|
|
width: w * .1,
|
||
|
|
sortable: true,
|
||
|
|
align: 'center'
|
||
|
|
},
|
||
|
|
{
|
||
|
|
display: 'Beneficiary',
|
||
|
|
name: 'beneficiary',
|
||
|
|
width: w * .1,
|
||
|
|
sortable: true,
|
||
|
|
align: 'center'
|
||
|
|
},
|
||
|
|
{
|
||
|
|
display: 'Agency',
|
||
|
|
name: 'distribution_vendor',
|
||
|
|
width: w * .1,
|
||
|
|
sortable: true,
|
||
|
|
align: 'center'
|
||
|
|
},
|
||
|
|
{
|
||
|
|
display: 'Program',
|
||
|
|
name: 'program_name',
|
||
|
|
width: w * .1,
|
||
|
|
sortable: true,
|
||
|
|
align: 'center'
|
||
|
|
},
|
||
|
|
{
|
||
|
|
display: 'Activity',
|
||
|
|
name: 'activity_name',
|
||
|
|
width: w * .1,
|
||
|
|
sortable: true,
|
||
|
|
align: 'center'
|
||
|
|
},
|
||
|
|
// {
|
||
|
|
// display: 'Center Location',
|
||
|
|
// name: 'ohc_location_id',
|
||
|
|
// width: w * .1,
|
||
|
|
// sortable: true,
|
||
|
|
// align: 'center'
|
||
|
|
// },
|
||
|
|
// {display: 'Box / Ambulance', name: 'amb_no_box_code', width: w*.1, sortable: true, align: 'center'},
|
||
|
|
// {
|
||
|
|
// display: 'Issue By',
|
||
|
|
// name: ' stock_issue_id',
|
||
|
|
// width: w * .15,
|
||
|
|
// sortable: true,
|
||
|
|
// align: 'center'
|
||
|
|
// },
|
||
|
|
// {
|
||
|
|
// display: 'Requisition No/Direct Issue',
|
||
|
|
// name: ' stock_issue_id',
|
||
|
|
// width: w * .15,
|
||
|
|
// sortable: true,
|
||
|
|
// align: 'center'
|
||
|
|
// },
|
||
|
|
{
|
||
|
|
display: 'Issued Items',
|
||
|
|
name: 'issue_ref_no',
|
||
|
|
width: w * .2,
|
||
|
|
sortable: true,
|
||
|
|
align: 'center'
|
||
|
|
},
|
||
|
|
{
|
||
|
|
display: 'Issued By',
|
||
|
|
name: 'stock_issue_emp_id',
|
||
|
|
width: w * .2,
|
||
|
|
sortable: true,
|
||
|
|
align: 'center'
|
||
|
|
},
|
||
|
|
// {
|
||
|
|
// display: 'Approval Status',
|
||
|
|
// name: 'status',
|
||
|
|
// width: w * .1,
|
||
|
|
// sortable: true,
|
||
|
|
// align: 'center'
|
||
|
|
// },
|
||
|
|
|
||
|
|
{
|
||
|
|
display: 'Remarks',
|
||
|
|
name: 'remarks',
|
||
|
|
width: w * .15,
|
||
|
|
sortable: true,
|
||
|
|
align: 'center'
|
||
|
|
},
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
],
|
||
|
|
buttons: [
|
||
|
|
|
||
|
|
// {
|
||
|
|
// name: 'Add',
|
||
|
|
// bclass: 'add',
|
||
|
|
// onpress: add
|
||
|
|
// },
|
||
|
|
{
|
||
|
|
separator: true
|
||
|
|
},
|
||
|
|
{
|
||
|
|
name: '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 Ref No.',
|
||
|
|
name: 'issue_ref_no'
|
||
|
|
},
|
||
|
|
// {
|
||
|
|
// display: 'Issue Date',
|
||
|
|
// name: 'issue_date'
|
||
|
|
// },
|
||
|
|
{
|
||
|
|
display: 'Beneficiary',
|
||
|
|
name: 'beneficiary'
|
||
|
|
},
|
||
|
|
{
|
||
|
|
display: 'Agency',
|
||
|
|
name: 'distribution_vendor'
|
||
|
|
},
|
||
|
|
{
|
||
|
|
display: 'Program',
|
||
|
|
name: 'program_name'
|
||
|
|
},
|
||
|
|
{
|
||
|
|
display: 'Activity',
|
||
|
|
name: 'activity_name'
|
||
|
|
}
|
||
|
|
|
||
|
|
],
|
||
|
|
sortname: "stock_issue_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 = "add_vet_item_issue_new.php";
|
||
|
|
|
||
|
|
|
||
|
|
}
|
||
|
|
function addhariyaliDirect() {
|
||
|
|
location.href = "add_item_issue_hariyadi.php";
|
||
|
|
|
||
|
|
|
||
|
|
}
|
||
|
|
|
||
|
|
function open_stock_item_issue(stock_issue_id, req_id, action) {
|
||
|
|
if (action == "V") {
|
||
|
|
if (req_id != null && req_id != '')
|
||
|
|
location.href = "view_item_issue.php?stock_issue_id=" + stock_issue_id + "";
|
||
|
|
else
|
||
|
|
location.href = "view_direct_item_issue.php?stock_issue_id=" + stock_issue_id + "";
|
||
|
|
} else {
|
||
|
|
if (req_id != null && req_id != '')
|
||
|
|
location.href = "add_item_issue.php?stock_issue_id=" + stock_issue_id + "";
|
||
|
|
else
|
||
|
|
location.href = "add_vet_item_issue_new.php?stock_issue_id=" + stock_issue_id + "";
|
||
|
|
|
||
|
|
}
|
||
|
|
|
||
|
|
}
|
||
|
|
|
||
|
|
function add() {
|
||
|
|
location.href = "add_item_issue.php";
|
||
|
|
}
|
||
|
|
|
||
|
|
function pdf() {
|
||
|
|
window.open('pdf_vet_stock_issue_list.php');
|
||
|
|
|
||
|
|
// window.open('ajax_pdf.php', 'Item Issue List');
|
||
|
|
}
|
||
|
|
|
||
|
|
function excel() {
|
||
|
|
window.open('excel_vet_stock_issue_list.php', 'Item Issue List');
|
||
|
|
}
|
||
|
|
|
||
|
|
function download_template() {
|
||
|
|
window.location = 'download_template.php';
|
||
|
|
}
|
||
|
|
|
||
|
|
function upload_excel() {
|
||
|
|
window.location = 'upload_excel_procurement.php';
|
||
|
|
}
|
||
|
|
</script>
|
||
|
|
|
||
|
|
<?php include('techsyn_footer.php'); ?>
|