144 lines
4.3 KiB
PHP
144 lines
4.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 class="#"> Item Issue </li><li class="active"> Direct Medicine Issue Approval</li>
|
|
</ul>
|
|
</div>
|
|
<!-- End of breadcrumb -->
|
|
|
|
|
|
<div class="page-content">
|
|
|
|
<form name="f1" method="post" action="" id="flex_form_issue">
|
|
<div id="flex1" style="width:100%">
|
|
</div>
|
|
<input type="hidden" name="flex_issue_id" id="flex_issue_id"/>
|
|
</form>
|
|
<form name="export_form" method="post" id="export_form" action="">
|
|
|
|
<input type="hidden" name="pdf_action" id="pdf_action" value="pdf_issue_approval.php"/>
|
|
<input type="hidden" name="excel_action" id="excel_action" value="excel_issue_approval.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: 'direct_medicine_issue_list_script.php',
|
|
dataType: 'json',
|
|
colModel: [
|
|
{display: '', name: '', width: w*.08, sortable: false, align: 'left'},
|
|
{display: 'Sr', name: 'count', width: w*.04, sortable: false, align: 'left'},
|
|
|
|
{display: 'Issue Date', name: 'date_of_issue', width: w*.08, sortable: true, align: 'left'},
|
|
{display: 'OHC Location', name: '', width: w*.09, sortable: true, align: 'left'},
|
|
|
|
{display: 'Item Desc', name: 'item', width: w*.2, sortable: true, align: 'left'},
|
|
{display: 'Approval Status', name: '', width: w*.1, sortable: true, align: 'left'},
|
|
{display: 'Approval Comments', name: '', width: w*.1, sortable: true, align: 'left'},
|
|
|
|
{display: 'Comments', name: 'comments', width: w*.18, 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 Date(DD/MM/YYYY)', name: 'date_of_issue'},
|
|
{display: 'Item Code ', name: 'item_code'},
|
|
{display: 'Item Desc ', name: 'item_desc'},
|
|
{display: 'Comments ', name: 'comments'},
|
|
{display: 'Direct Issue(Y/N)', name: 'direct_issue'},
|
|
|
|
{display: 'Ohc Location', name: 'ohc_loc'}
|
|
|
|
],
|
|
sortname: "date_of_issue",
|
|
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 open_direct_medicine_issue(flex_issue_log_id,action){
|
|
if(action=="V"){
|
|
location.href="view_direct_medicine_issue.php?flex_issue_id="+flex_issue_log_id+"";
|
|
|
|
}else{
|
|
location.href="direct_medicine_issue.php?flex_issue_id="+flex_issue_log_id+"";
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
function pdf(){
|
|
//window.open('pdf_manage_item.php');
|
|
|
|
window.open('ajax_pdf.php','Direct Issue Item Approved List');
|
|
}
|
|
function excel(){
|
|
window.open('ajax_excel.php','Direct Issue Item Approved List');
|
|
}
|
|
function download_template(){
|
|
window.location = 'download_template.php';
|
|
}
|
|
function upload_excel(){
|
|
window.location = 'upload_excel_procurement.php';
|
|
}
|
|
|
|
|
|
|
|
</script>
|
|
|
|
<?php include('techsyn_footer.php'); ?>
|