EVOLUTION-NINJA
Edit File: madeups_consumable_grid.php
<script> function planningtypes(str) { if(str=="Weaving_Pending_Order") { $('#Completed_Order').hide(); $('#Weaving_Inprocess').hide(); $('#less1').hide(); $('#less2').hide(); $('#less').show(); $('#more1').hide(); $('#more2').hide(); $('#more').hide(); $('#Weaving_Pending_Order').show(); } else if(str=="Completed_Order") { $('#more1').hide(); $('#more2').hide(); $('#more').hide(); $('#less1').show(); $('#less').hide(); $('#less2').hide(); $('#Completed_Order').show(); $('#Weaving_Inprocess').hide(); $('#Weaving_Pending_Order').hide(); } else if(str=="Weaving_Inprocess") { $('#more1').hide(); $('#more2').hide(); $('#more').hide(); $('#less2').show(); $('#less1').hide(); $('#less').hide(); $('#Completed_Order').hide(); $('#Weaving_Inprocess').show(); $('#Weaving_Pending_Order').hide(); } } </script> <style> #gview_list2 { width:1072px !important; } #gview_list3 { width:1072px !important; } #gview_list4 { width:1072px !important; } .ui-jqgrid-htable { width:1072px !important; } #list4 { width:1072px !important; } #pager3 { width:1072px !important; } #list3 { width:1072px !important; } #pager4 { width:1072px !important; } #gbox_list3 { width:1072px !important; } .ui-jqgrid-hdiv { width:1072px !important; } .ui-jqgrid-bdiv { width:1072px !important; } .ui-jqgrid { text-transform: capitalize !important; } .tablediv { text-transform: uppercase !important; } .ui-jqgrid tr.jqgrow td{ text-transform: uppercase !important; } #Completed_Order { display:none; } #Weaving_Inprocess { display:none; } .badge { background: -webkit-radial-gradient( 1px -11px, circle, rgba(17, 208, 85, 0.98) 8%, rgb(7, 46, 80) 26px ); background-color: #ef0e0e; border: 1px solid white; border-radius: 12px; color: white; font: bold 12px/9px Helvetica, Verdana, Tahoma; height: 17px; padding: 3px 3px 0 3px; text-align: center; min-width: 19px; margin-bottom: 16px; } </style> <script> function planningtypes(str) { if(str=="indent_pending") { $('#table_approved_indent').hide(); $('#table_pending_indent').show(); } else if(str=="approved_indent") { $('#table_approved_indent').show(); $("#list3").jqGrid('setGridParam',{datatype:'json'}).trigger('reloadGrid'); $('#table_pending_indent').hide(); } } </script> <div class="page-content-wrapper"> <div class="page-content"> <!-- BEGIN PAGE HEADER--> <h3 class="page-title"> ISSUE TO MADEUPS </h3> <div class="page-bar"> <ul class="page-breadcrumb"> <li><i class="fa fa-home"></i> <a href="https://swansilk.co/dashboard/dashboard_fun">Home</a> <i class="fa fa-angle-right"></i> <a href="#" > Consumables </a></li> </ul> </div> <input type="hidden" id="preview_id" class="preview_id" value="<?php if(empty($access_row)){ } else { echo $access_row->preview_id; } ?>" > <input type="hidden" id="edit_id" class="edit_id" value="<?php if(empty($access_row)){ } else { echo $access_row->edit_id; } ?>" > <input type="hidden" id="delete_id" class="delete_id" value="<?php if(empty($access_row)){ } else { echo $access_row->delete_id; } ?>" > <input type="hidden" id="approval_id" class="approval_id" value="<?php if(empty($access_row)){ } else { echo $access_row->approval_id; } ?>" > <input type="hidden" id="insert_id" class="insert_id" value="<?php if(empty($access_row)){ } else { echo $access_row->insert_id; } ?>" > <div class="radio-list" style="margin-left: 2%;"> <input type="hidden" value="<?php echo $ref; ?>" id="ref_id" > <input type="hidden" value="<?php echo $url_val; ?>" id="url_ref" style="width: 230px;" > <?php if($ref == 'today_dashboard' || $ref == 'month_dashboard' || $ref == 'year_dashboard') { ?> <label class="radio-inline"> <input type="radio" checked="checked" name="planningorder" id="planningorder" onclick="planningtypes('indent_pending')" /> Pending Order </label> <span class="badge"><?php echo $pen_list; ?></span> <label class="radio-inline"> <input type="radio" name="planningorder" id="planningorder" onclick="planningtypes('approved_indent')" /> Completed Order </label><span class="badge"><?php echo $app_list; ?></span> <?php } else { ?> <label class="radio-inline"> <input type="radio" checked="checked" name="planningorder" id="planningorder" onclick="planningtypes('indent_pending')" /> Pending Order </label> <label class="radio-inline"> <input type="radio" name="planningorder" id="planningorder" onclick="planningtypes('approved_indent')" /> Completed Order </label> <?php } ?> </div><br> <div class="table-responsive"> <div id="table_pending_indent"> <div id = "jaytab" class="jaytab" style="width:100%;"> <table id="list2"></table> <div id="pager2"></div> <div id="dialogSelectRow" title="Warning" style="display:none"> <p>Please select row</p> </div> </div> </div> </div> <div class="table-responsive"> <div id="table_approved_indent"> <div id = "jaytab1" class="jaytab1" style="width:100%;"> <table id="list3"></table> <div id="pager3"></div> <div id="dialogSelectRow" title="Warning" style="display:none"> <p>Please select row</p> </div> </div> </div> </div> <br/> <div id="myModall" class="modal fade" role="dialog" style="color:#000;"> <div class="modal-dialog" style="width:80%" > <!-- Modal content--> <div class="modal-content"> <div class="modal-header"> <button type="button" class="close" data-dismiss="modal">×</button> <h4 class="modal-title">Weaving Details</h4> </div> <div class="modal-body"> <fieldset> <div > <input type="hidden" id="row_id" name="row_id" > <div class="row"> <div class="col-md-8"> <div class="form-group"> <label class="control-label col-md-3">Status :</label> <div class="col-md-9 "> <select name="statuss" id="statuss" class="form-control"> <option value="Select">Select</option> <?php if(isset($status)) { foreach($status as $status) { ?> <option value="<?php echo $status->status; ?>"><?php echo $status->status; ?></option> <?php }} ?> </select> </div> </div> </div><br/> </div> <!-- row -4--> <br/> <button id="generate_modal_data" class="btn btn-primary generate_modal_data" value="Generate" style="margin-left:40% !important;" data-dismiss="modal" >Submit</button> </div> </div> </div> </div> </div> <div id="myModal" class="modal fade" role="dialog" style="color:#000;"> <div class="modal-dialog" style="width:80%" > <!-- Modal content--> <div class="modal-content"> <div class="modal-header"> <button type="button" class="close" data-dismiss="modal">×</button> <h4 class="modal-title">Weaving Details</h4> </div> <div class="modal-body"> <fieldset> <div > <input type="hidden" id="row_id" name="row_id" > <div class="row"> <div class="col-md-8"> <div class="form-group"> <label class="control-label col-md-3">Status :</label> <div class="col-md-9 "> <select name="status" id="status" class="form-control"> <option value="Select">Select</option> <?php if(isset($statuss)) { foreach($statuss as $status) { ?> <option value="<?php echo $status->status; ?>"><?php echo $status->status; ?></option> <?php }} ?> </select> </div> </div> </div><br/> </div> <!-- row -4--> <br/> <button id="generate" class="btn btn-primary generate" value="Generate" style="margin-left:40% !important;" data-dismiss="modal" >Submit</button> </div> </div> </div> </div> </div> <!-- End BEGIN CONTAINER --> <!-- BEGIN FOOTER --> <input type="hidden" id="checked_ids" class="checked_ids"/> <style> #ui-id-1 { height:50px !important; overflow-y: scroll; overflow-x:hidden !important; } #weavinf_panel { overflow-x:scroll; } #table_approved_indent { display:none; } #refresh_list3 { display:none !important; } #search_list2 { display:none !important; } #list2_122_t { height:0px !important; } list2_136_t { height:12px !important; } .scroll { height:12px !important; } .ui-jqgrid-btable { } .ui-jqgrid-titlebar { background: rgb(72,91,127) !important; color: white !important; } .ui-common-table { height:12px !important; } #refresh_list2 { display:none !important; } #client_edit { padding-right:12px !important; } @media only screen and (min-width:320px) and (max-width:641px){ .ui-jqgrid { margin-left: 1px !important; } #jaytab{ margin-top: 0 !important; margin-left: 0 !important; overflow-x: scroll; width: 100% !important; padding-left: 0 !important; } #editmodlist2 { width:90% !important; } #sData span, #cData span { margin-left: 0 !important; } } @media only screen and (min-width:641px) and (max-width:991px){ .ui-jqgrid { margin-left: 1px !important; } #jaytab{ margin-top: 0 !important; margin-left: 0 !important; overflow-x: scroll; width: 100% !important; padding-left:0 !important; padding-right:9px !important; } } .colCell { cursor: pointer; cursor: hand; } .tablediv { width: auto !important; overflow: inherit !important; } .ui-jqgrid .ui-jqgrid-bdiv { position: relative; margin: 0; padding: 0; overflow: inherit !important; text-align: left; } </style> <!-----------------datepicker-------------> <!-- The link to the CSS that the grid needs --> <link href="<?php echo base_url('assets/css/sweetalert2.min.css');?>" rel="stylesheet"/> <script src="<?php echo base_url('assets/js/sweetalert2.min.js');?>"></script> <script type="text/ecmascript" src="<?php echo base_url('jqgrid/js/jquery.jqGrid.min.js'); ?>"></script> <!-- This is the localization file of the grid controlling messages, labels, etc. <!-- We support more than 40 localizations --> <script type="text/ecmascript" src="<?php echo base_url('jqgrid/js/i18n/grid.locale-en.min.js'); ?>"></script> <!-- A link to a jQuery UI ThemeRoller theme, more than 22 built-in and many more custom --> <!-- The link to the CSS that the grid needs --> <link rel="stylesheet" type="text/css" media="screen" href="<?php echo base_url('jqgrid/css/ui.jqgrid.min.css'); ?>" /> <link rel="stylesheet" type="text/css" media="screen" href="<?php echo base_url('jqgrid/css/ui.jqgrid-bootstrap.min.css'); ?>" /> <link rel="stylesheet" type="text/css" media="screen" href="<?php echo base_url('jqgrid/css/ui.jqgrid-bootstrap-ui.min.css'); ?>" /> <link rel="stylesheet" href="<?php echo base_url('assets/css/code_jquery.min.css');?>"> <script src="<?php echo base_url('assets/js/jquery-ui.min.js'); ?>" type="text/javascript"></script> <link rel="stylesheet" type="text/css" media="screen" href="<?php echo base_url('assets/css/jquery-ui.min.css'); ?>" /> <script> $("#generate").click(function(e) { e.preventDefault(); var status =$('#status').val(); var row_id =$('#row_id').val(); //alert(status); //alert(row_id); $.ajax({ url:"<?php echo base_url('out_source/insert_weaving_panel_data');?>", type:"POST", data:{'row_id':row_id,'status':status}, async:false, success:function(data){ window.location.reload(); } }); }); $("#generate_modal_data").click(function(e) { e.preventDefault(); var ids= $(".checked_ids").val(); //alert(ids); var status =$('#statuss').val(); $.ajax({ url:"<?php echo base_url('weaving_panel/weaving_panel_status');?>", type:"POST", data:{'ids':ids,'status':status}, async:false, success:function(data){ window.location.reload(); } }); }); function getDesignAndQuality(articleNo) { $.ajax({ type: "post", url: "<?php echo base_url(); ?>marketing/getDesignAndQuality", data: "articleNo=" + articleNo, success: function (data) { var objData = jQuery.parseJSON(data); document.getElementById("design").value = objData.design; document.getElementById("quality").value = objData.quality; } }); } </script> <style> #list2 { width:1072px !important; } #pager2 { width:1072px !important; } #gbox_list2 { width: 1072px !important; // overflow-x: scroll; } #table_approved_indent { display:none; } #refresh_list3 { display:none !important; } #refresh_list4 { display:none !important; } .coledit { color:rgb(111,183,245) !important; } </style> <!-----------------datepicker-------------> <!-- The link to the CSS that the grid needs --> <link href="<?php echo base_url('assets/css/sweetalert2.min.css');?>" rel="stylesheet"/> <script src="<?php echo base_url('assets/js/sweetalert2.min.js');?>"></script> <script> <!---------------------------compelte indent -----------------------------------------> $(document).ready(function (){ var l=$("#ref_id").val(); $('#more').hide(); var ll; jQuery("#list2").jqGrid({ url:"<?php echo base_url('madeups/consumeable_planned_data')?>/s"+l+"/", datatype: "json", colNames:['ID','CUSTOMER ID','DTL #','ORDERTYPE','SIZE','ARTICLE','QUALITY','DESCRIPTION','DESIGN','SHADE','SSL SHADE','ORDER QTY','DELIVERY DATE','ISSUE STOCK','STATUS','CONFIRM','PREVIEW'], colModel:[ {name:'id',index:'id',hidden:true, editable:true,width:60}, {name:'fileNo',index:'fileNo', width:50,editable:false}, {name:'oslNo',index:'oslNo', width:50,editable:false}, {name:'subOrderType',index:'subOrderType', width:50,editable:false,editrules:{required: true}}, {name:'width',index:'width',editable:false,hidden:false,width:50, editrules : {edithidden:true}}, {name:'articleNo',index:'articleNo',editable:false,editrules:{required: true},width:40}, {name:'quality',index:'quality',hidden:false, width:40,editable:false, editrules : {edithidden:true}}, {name:'description',index:'description', width:60,hidden:false}, {name:'design',index:'design', editable:false,width:50}, {name:'buyerShade',index:'buyerShade', editable:false,width:50}, {name:'shadeName',index:'shadeName', editable:false,width:60}, {name:'quantity',index:'quantity', editable:false,width:60}, {name:'deliveryDate',index:'deliveryDate', editable:false,width:60,formatter: 'date', formatoptions: { newformat: 'd-m-Y'}}, // {name:'consumable_stock',index:'consumable_stock',classes:'coledit',align: "center",editable:false,style:'cursor:pointer',editrules:{required: true},width:80,classes:'coledit',formatter:'showlink',formatoptions:{baseLinkUrl:'<?php echo base_url('madeups/consumable_madeups_stock')?>'}}, {name:'',index:'',align: "center",editable:false,editrules:{required: true}, width:100,cellattr: function (rowId, tv, rawObject, cm, rdata) { return ' onclick="fun_stock($(this))" '; },formatter:function (cellvalue, options, rowObject) { return "<input type='button' class='fa fa-eye' value='ISSUE STOCK' onclick='some_function' classes='preview' \>"; }}, {name:'consumable_issue_status',index:'consumable_issue_status', editable:false,width:60}, {name:'cons_confirm',index:'cons_confirm',align: "center",editable:false,editrules:{required: true}, width:60,cellattr: function (rowId, tv, rawObject, cm, rdata) { return ' onclick="check_fun($(this))" '; },formatter:function (cellvalue, options, rowObject) { return "<input type='checkbox' id='check' class='check' value='SELECT' \>"; }}, {name:'',index:'',align: "center",editable:false,editrules:{required: true}, width:100,cellattr: function (rowId, tv, rawObject, cm, rdata) { return ' onclick="fun_preview($(this))" '; },formatter:function (cellvalue, options, rowObject) { return "<input type='button' class='fa fa-eye' value='PREVIEW' onclick='some_function' classes='preview' \>"; }} ], height: 'auto', rowNum:50, rowTotal: 200000000000000000000000000, rowList : [50,100,200,300,500,1000,5000], rownumbers: true, rownumWidth: 40, pager:"#pager2", sortname:'id', viewrecords: true, gridview: true, onSelectRow: function(id){ if(id && id!==ll){ jQuery('#list2').jqGrid('restoreRow',ll); jQuery('#list2').jqGrid('editRow',id,true,pickdates); ll=id; } }, editurl: "<?php echo base_url('out_source/edit_tentative_goods_details');?>", autowidth: true, sortorder:"asc", loadonce:true, caption:"CONSUMABLES PENDING DETAILS", subGrid: true, subGridRowExpanded: function(subgrid_id, row_id) { var subgrid_table_id; //alert(row_id); swan_id=row_id; //alert(swan_id); subgrid_table_id = subgrid_id+"_t"; jQuery("#"+subgrid_id).html("<table id='"+subgrid_table_id+"' class='scroll'></table>"); jQuery("#"+subgrid_table_id).jqGrid({ url:"<?php echo base_url('madeups/madeups_consumable_subgrid');?>/s"+row_id+"/", //data:{'sub_id':123}, mtype : "get", datatype: "json", colNames:['ID','DTL #','WIDTH','ARTICLE','DESIGN','SHADE','ISSUE MTRS','ISSUE DATE','LOCATION','ISSUED BY'], colModel:[ {name:'id',index:'id',hidden:true, editable:true,width:60}, {name:'osl',index:'osl', width:150,editable:false,editrules:{required: true}}, {name:'size',index:'size', editable:false,editrules:{required: true},width:145}, {name:'article',index:'article', width:100,editable:false}, {name:'design',index:'design', width:130,editable:false}, {name:'shades',index:'shades', width:100,editable:false}, {name:'issued_quantity',index:'issued_quantity', width:130,editable:false}, {name:'issue_date',index:'issue_date',editable:false,editrules:{required: true},width:110}, {name:'location',index:'location', width:160,editable:false}, {name:'issued_by',index:'issued_by', width:130,editable:false}, ], height: 'auto', rowNum:20000000, sortname: 'num', sortorder: "asc" }); } }); //$("#list2").jqGrid('filterToolbar',{searchOperators : false}); //for multisearch code,remove if not required jQuery("#list2").jqGrid('filterToolbar', { stringResult: true, searchOnEnter: false, defaultSearch: "cn" }); $("#list2").jqGrid('navGrid','#pager2', {edit:false,add:false,del:false,search:false,refreshstate:"current"}, { }, { }, { }, { sopt:['eq', 'ne', 'lt', 'gt', 'cn', 'bw', 'ew'], closeOnEscape: true, multipleSearch: true, closeAfterSearch: true } ); // $("#list2").navButtonAdd('#pager2', // { caption:"Add", // buttonicon:"ui-icon-plus", // onClickButton: addRow, // position: "last", // title:"", // cursor: "pointer", // id:"service_add" // } // ); }); function check_fun(rowId) { var v=$('#approval_id').val(); if(v == 1) { var id = rowId.closest('tr').attr('id'); $.ajax({ //alert(email); url:"<?php echo base_url('madeups/add_status_confirmation')?>", type:"POST", data:{'id':id}, success:function(data) { var objData = jQuery.parseJSON(data); //alert(objData.status_val); if(objData.consumable_issue_status == 'PARTLY') { var confirmMsg= confirm("Do You Want To Confirm!"); if (confirmMsg==true) { swal({ title: 'Remarks', input: 'text', showCancelButton: true, confirmButtonText: 'Submit', showLoaderOnConfirm: true, }).then(function (email) { $.ajax({ //alert(email); url:"<?php echo base_url('madeups/cons_add_yes_loom_confirmation')?>", type:"POST", data:{'id':id,'remarks':email}, success:function(data){ if(data==""){ $("#editmodlist2").remove(); $("#list2").trigger("reloadGrid"); $("#jaytab").trigger("reloadGrid"); $("#jqGrid").trigger("reloadGrid"); //window.location.reload(); $("#list2").jqGrid('setGridParam',{datatype:'json'}).trigger('reloadGrid'); } else{ $("#list2").jqGrid('setGridParam',{datatype:'json'}).trigger('reloadGrid'); } } }); swal({ type: 'success', // title: 'Approved By', // html: '' + email }); }); } else if (confirmMsg==false) { $("#list2").jqGrid('setGridParam',{datatype:'json'}).trigger('reloadGrid'); } } else { swal({ title: 'Data is Not yet Received', text: "", }); $("#list2").jqGrid('setGridParam',{datatype:'json'}).trigger('reloadGrid'); } } }); } else { $("#list2").jqGrid('setGridParam',{datatype:'json'}).trigger('reloadGrid'); swal({ title: "You Don't Have Access For This Approval", text: "", }); } } <!-----------------------approved fabric grid ----------------------------------------------------> $(document).ready(function (){ $("#list3").jqGrid('setGridParam',{datatype:'json'}).trigger('reloadGrid'); var l=$("#ref_id").val(); jQuery("#list3").jqGrid({ url:"<?php echo base_url('madeups/consumeable_yes_planned_data')?>/s"+l+"/", datatype: "json", colNames:['ID','CUSTOMER ID','DTL #','ORDERTYPE','SIZE','ARTICLE','QUALITY','DESCRIPTION','DESIGN','SHADE','SSL SHADE','ORDER QTY','DELIVERY DATE','STATUS','CONFIRM','APPROVED BY','APPROVED DATE','PREVIEW'], colModel:[ {name:'id',index:'id',hidden:true, editable:true,width:60}, {name:'fileNo',index:'fileNo', width:50,editable:false}, {name:'oslNo',index:'oslNo', width:50,editable:false}, {name:'subOrderType',index:'subOrderType', width:50,editable:false,editrules:{required: true}}, {name:'width',index:'width',editable:false,hidden:false,width:50, editrules : {edithidden:true}}, {name:'articleNo',index:'articleNo',editable:false,editrules:{required: true},width:40}, {name:'quality',index:'quality',hidden:false, width:40,editable:false, editrules : {edithidden:true}}, {name:'description',index:'description', width:60,hidden:false}, {name:'design',index:'design', editable:false,width:50}, {name:'buyerShade',index:'buyerShade', editable:false,width:50}, {name:'shadeName',index:'shadeName', editable:false,width:60}, {name:'quantity',index:'quantity', editable:false,width:60}, {name:'deliveryDate',index:'deliveryDate', editable:false,width:60,formatter: 'date', formatoptions: { newformat: 'd-m-Y'}}, {name:'consumable_issue_status',index:'consumable_issue_status', editable:false,width:60}, { name: 'cons_confirm', index: 'cons_confirm', width: 50, align: 'center', formatter: 'checkbox', editoptions: { value: '1:0' }, formatoptions: { disabled: true } }, {name:'cons_approved_by',index:'cons_approved_by', editable:false,width:60}, {name:'cons_approved_date',index:'cons_approved_date', editable:false,width:60}, // {name:'cons_confirm',index:'cons_confirm',align: "center",editable:false,editrules:{required: true}, width:60,cellattr: function (rowId, tv, rawObject, cm, rdata) // { // return ' onclick="check_fun($(this))" '; // },formatter:function (cellvalue, options, rowObject) { // return "<input type='checkbox' id='check' class='check' value='SELECT' \>"; // }}, {name:'',index:'',align: "center",editable:false,editrules:{required: true}, width:100,cellattr: function (rowId, tv, rawObject, cm, rdata) { return ' onclick="fun_preview($(this))" '; },formatter:function (cellvalue, options, rowObject) { return "<input type='button' class='fa fa-eye' value='PREVIEW' onclick='some_function' classes='preview' \>"; }} ], height: 'auto', rowNum:50, rowTotal: 200000000000000000000000000, rowList : [50,100,200,300,500,1000,5000], rownumbers: true, rownumWidth: 40, pager:"#pager3", sortname:'id', viewrecords: true, gridview: true, autowidth: true, sortorder:"asc", loadonce:true, caption:"CONSUMABLES APPROVED DETAILS", subGrid: true, subGridRowExpanded: function(subgrid_id, row_id) { var subgrid_table_id; //alert(row_id); swan_id=row_id; //alert(swan_id); subgrid_table_id = subgrid_id+"_t"; jQuery("#"+subgrid_id).html("<table id='"+subgrid_table_id+"' class='scroll'></table>"); jQuery("#"+subgrid_table_id).jqGrid({ url:"<?php echo base_url('madeups/madeups_consumable_subgrid');?>/s"+row_id+"/", //data:{'sub_id':123}, mtype : "get", datatype: "json", colNames:['ID','DTL #','WIDTH','ARTICLE','DESIGN','SHADE','ISSUE MTRS','ISSUE DATE','LOCATION','ISSUED BY'], colModel:[ {name:'id',index:'id',hidden:true, editable:true,width:60}, {name:'osl',index:'osl', width:150,editable:false,editrules:{required: true}}, {name:'size',index:'size', editable:false,editrules:{required: true},width:145}, {name:'article',index:'article', width:100,editable:false}, {name:'design',index:'design', width:130,editable:false}, {name:'shades',index:'shades', width:100,editable:false}, {name:'issued_quantity',index:'issued_quantity', width:130,editable:false}, {name:'issue_date',index:'issue_date',editable:false,editrules:{required: true},width:110}, {name:'location',index:'location', width:160,editable:false}, {name:'issued_by',index:'issued_by', width:130,editable:false}, ], height: 'auto', rowNum:20000000, sortname: 'num', sortorder: "asc" }); } }); //$("#list2").jqGrid('filterToolbar',{searchOperators : false}); //for multisearch code,remove if not required jQuery("#list3").jqGrid('filterToolbar', { stringResult: true, searchOnEnter: false, defaultSearch: "cn" }); $("#list3").jqGrid('navGrid','#pager3', {edit:false,add:false,del:false,search:false,refreshstate:"current"}, { }, { }, { }, { sopt:['eq', 'ne', 'lt', 'gt', 'cn', 'bw', 'ew'], closeOnEscape: true, multipleSearch: true, closeAfterSearch: true } ); }); function fun_preview(rowId) { var v=$('#preview_id').val(); if(v == 1) { var id = rowId.closest('tr').attr('id'); var as=id; $.ajax({ type:'post', url:'<?php echo base_url("madeups/fabric_madeups_preview"); ?>', data:{'as':as}, async:false, success:function() { var url_r=$('#url_ref').val(); if(url_r == '1') { window.location.href = '<?php echo base_url('madeups/cs_madeups_preview');?>/'+ '?id='+as; } else if(url_r == '2') { window.location.href = '<?php echo base_url('madeups/cs_madeups_view');?>/'+ '?id='+as; } else if(url_r == '3') { window.location.href = '<?php echo base_url('madeups/cs_madeups_details');?>/'+ '?id='+as; } else if(url_r == '4') { window.location.href = '<?php echo base_url('madeups/cs_madeups_data');?>/'+ '?id='+as; } } }); } else { swal({ title: "You Don't Have Access For This Preview", text: "", }); } } function fun_stock(rowId) { //alert(); var v=$('#insert_id').val(); if(v == 1) { var id = rowId.closest('tr').attr('id'); var as=id; $.ajax({ type:'post', url:'<?php echo base_url("madeups/consumable_madeups_stock"); ?>', data:{'as':as}, async:false, success:function() { window.location.href = '<?php echo base_url('madeups/consumable_madeups_stock');?>/'+ '?id='+as; } }); } else { swal({ title: "You Don't Have Access For This Preview", text: "", }); } } </script> <style> .tablediv { width: auto !important; overflow: scroll !important; } .preview { padding-bottom:3px !important; padding-top:3px !important; } #gbox_list4 { width:1072px !important; // overflow-x:scroll !important; } #gbox_list3 { width:1072px !important; // overflow-x:scroll !important; } @media only screen and (min-width:320px) and (min-height:640px){ #gbox_list2{ width:1072px !important; } #gview_list2{ width:100% !important; } .ui-jqgrid-hdiv{ width:100% !important; } .ui-jqgrid-htable{ width:100% !important; } #list2{ width:100% !important; } .modal-dialog{ //width:80% ; } option{ width:100px; } } @media only screen and (min-width:320px) and (max-width:641px){ .ui-jqgrid { margin-left: 1px !important; } #jaytab{ margin-top: 0 !important; margin-left: 0 !important; overflow-x: scroll; width: 100% !important; padding-left: 0 !important; } #editmodlist2 { width:90% !important; } #sData span, #cData span { margin-left: 0 !important; } .weaving-order { padding-left:30px !important; } } @media only screen and (min-width:641px) and (max-width:991px){ .ui-jqgrid { margin-left: 1px !important; } #jaytab{ margin-top: 0 !important; margin-left: 0 !important; overflow-x: scroll; width: 100% !important; padding-left:0 !important; padding-right:9px !important; } } #sData span, #cData span { margin-left: 3px; } #sData { height: 29px; } #cData { height: 29px; } .jqgfirstrow { height: 0px !important; } </style> <link rel="stylesheet" href="<?php echo base_url('assets/css/code_jquery.min.css');?>"> <script src="<?php echo base_url('assets/js/jquery-ui.min.js'); ?>" type="text/javascript"></script> <link rel="stylesheet" type="text/css" media="screen" href="<?php echo base_url('assets/css/jquery-ui.min.css'); ?>" /> <script> $(document).ready(function() { $( "#customer" ).autocomplete({ source: '<?php echo base_url('request/auto_sea'); ?>', }); }); function searchname() { var customer = document.getElementById('customer').value; $.ajax({ url:"<?php echo base_url('request/search_by_fetch')?>", dataType: "json", data:{'customer':customer}, type:"POST", async:true, success:function(data) { // alert('hai'); var obj=JSON.parse(data); document.getElementById('customer_id').value=obj[0].customerID; } }); } </script> <script> $("#osl_button").click(function(e) { var as =$('#osl_num').val(); $.ajax({ type:'post', url:'<?php echo base_url("out_source/outsource_osl_preview"); ?>', data:{'as':as}, async:false, success:function() { window.location.href = '<?php echo base_url('out_source/outsource_osl_preview');?>/'+ '?id='+as; } }); }); </script> <style> .preview { padding-bottom:3px !important; padding-top:3px !important; } @media only screen and (min-width:320px) and (max-width:640px) { .radio-list { padding-left:5%; } } </style> <link rel="stylesheet" href="<?php echo base_url('assets/css/code_jquery.min.css');?>"> <script src="<?php echo base_url('assets/js/jquery-ui.min.js'); ?>" type="text/javascript"></script> <link rel="stylesheet" type="text/css" media="screen" href="<?php echo base_url('assets/css/jquery-ui.min.css'); ?>" />