<div style="height:20px;">
	
</div>
<input type="hidden" id="hdnassycode" value="<?php echo $id_bom_hdr; ?>"/>
<table id="tbl_bom_dtl"></table> <div id="ptbl_bom_dtl"></div>
<script type="text/javascript">
    
    $(document).ready(function(){
		jQuery("#tbl_bom_dtl").jqGrid({
			url:'<?php echo base_url().'production/ct_planprod/data_planprod_bom'; ?>',
			mtype : "post",
			postData:{'q':'1', hdnassycode:$("#hdnassycode").val()},
			datatype: "json",
			colNames:['id_bom', 'ASSY CODE', 'ASSY NO', 'PART NO','PARTNO2','PART NAME','QTY','FLAG','STATUS'],
			colModel:[
				{name:'id_bom',index:'id_bom', width:60, hidden:true},
				{name:'ASSY_CODE',index:'ASSY_CODE', width:73, hidden:false},
				{name:'ASSY_NO',index:'ASSY_NO', width:189, hidden:false},
				{name:'PART_NO',index:'PART_NO', width:164, hidden:false},
				{name:'PARTNO2',index:'PARTNO2', width:139, hidden:true},
				{name:'part_name',index:'part_name', width:139, hidden:false},
				{name:'QTY',index:'QTY', width:77, hidden:false, align:'right'},
				{name:'FLAG',index:'FLAG', width:89, hidden:false, align:'right'},
				{name:'STATUS',index:'STATUS', width:89, hidden:false}
				
			],
			rowNum:10,
			rowList:[10,20,30],
			pager: '#ptbl_bom_dtl',
			sortname: 'id_bom',
			viewrecords: true,
			sortorder: "asc",
			width: 770,
			height:280,
			jsonReader: { repeatitems : false },
			caption:"DATA BOM LOADED",
			rownumbers: true,
			shrinkToFit: false,
			afterInsertRow: function(){
				
				
			}
		}); 
		
		jQuery("#tbl_bom_dtl").jqGrid('navGrid','#ptbl_bom_dtl',{del:false,add:false,edit:false},{},{},{},{multipleSearch:false});
		jQuery("#tbl_bom_dtl").jqGrid('filterToolbar',{stringResult: true,searchOnEnter : false, defaultSearch: 'cn', ignoreCase: true});
		

	});
		  	
</script>



	
	