EVOLUTION-NINJA
Edit File: planned_article_details.php
<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; } </style> <div class="page-content-wrapper"> <div class="page-content"> <!-- BEGIN PAGE HEADER--> <h3 class="page-title"> Planning Article Details </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="#" > Article Details </a></li> </ul> </div> <input type="hidden" id="edit_id" class="edit_id" value="<?php if(empty($access_row)){ } else { echo $access_row->edit_id; } ?>" > <div class="radio-list" style="margin-left: 2%;"> <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; } ?>" > </div><br> <div> <input type="submit" id="generate_submit" value="Submit" class="generate_submit" style="float: right !important;"/> </div><br/> <form action="<?php echo base_url('planning/planned_article_details_preview'); ?>" method="post" class="form" > <input type="hidden" id="check_box_ids" name="check_box_ids" > </form> <div id="Weaving_Pending_Order" class="table-responsive"> <div id = "jaytab" class="jaytab"> <table id="list2"></table> <div id="pager2"></div> <div id="dialogSelectRow" title="Warning" style="display:none"> <p>Please select row</p> </div> </div> </div> <br/> <!-- 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; } </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){ $("#list2").jqGrid('setGridParam',{datatype:'json'}).trigger('reloadGrid'); } }); }); $("#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; } </style> <!-----------------datepicker-------------> <!-- The link to the CSS that the grid needs --> <script> <!---------------------------compelte indent -----------------------------------------> $(document).ready(function (){ var ll; jQuery("#list2").jqGrid({ url:"<?php echo base_url('planning/all_article_det')?>", mtype : "post", datatype: "json", colNames:['Id','Article','Loom Width', 'Reed', 'Warp Total Ends','Warp Yarn ','Warp Denier','Warp Final Denier','Warp Specification','Weft Yarn','Weft Denier','Weft Final Denier','Weft Specification','Weft Picks'], colModel:[ {name:'id',index:'id',hidden:true, width:50,editable:true,width:100}, {name:'articleNo',index:'articleNo', width:50,editable:false,width:100}, {name:'loomWidth',index:'loomWidth',editable:false, width:100}, {name:'reed',index:'reed',editable:false,editrules:{required: true},editoptions: {size:10, maxlength: 10}, width:100}, {name:'warpTotalEnds',index:'warpTotalEnds',edittype:'text',editable:false,editrules:{required: true}, width:100}, {name:'Warp_Quality',index:'Warp_Quality', width:50,editable:false,width:100}, {name:'Warp_Denier',index:'Warp_Denier',editable:false, width:100}, {name:'Warp_Final_Denier',index:'Warp_Final_Denier',editable:false, width:100}, {name:'Warp_Specification',index:'Warp_Specification',editable:false,editrules:{required: true},editoptions: {size:10, maxlength: 10}, width:100}, {name:'Weft_Quality',index:'Weft_Quality', width:50,editable:false,width:100}, {name:'Weft_Denier',index:'Weft_Denier', width:50,editable:false,width:100}, {name:'Weft_Final_Denier',index:'Weft_Final_Denier', width:50,editable:false,width:100}, {name:'Weft_Specification',index:'Weft_Specification',edittype:'text',editable:false,editrules:{required: true}, width:100}, {name:'PPC',index:'PPC',edittype:'text',editable:false,editrules:{required: true}, width:100}, ], height: 'auto', rowNum:50, rowTotal: 200000000000000000000000000, rowList : [50,100,200,300,500,1000,5000], rownumbers: true, rownumWidth: 40, pager:"#pager2", sortname:'id', multiselect: true, viewrecords: true, gridview: true, autowidth: true, sortorder:"asc", loadonce:true, caption:"Article Details", }); //$("#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" // } // ); }); $("#generate_submit").on('click', function () { var id=''; $("input[type=checkbox]:checked").each(function() { id += $(this).closest('tr').attr('id') + "|"; }); //alert(id); // $(".checked_ids").val(''); $("#check_box_ids").val(id); var check_values=$("#check_box_ids").val(); //alert(check_values); $.ajax({ url:"<?php echo base_url('planning/check_box_checked_packing_valuess')?>", dataType: "json", data:{'check_values':check_values}, type:"POST", async:true, success:function(data) { //var obj = jQuery.parseJSON(data); //alert(obj.invoice); //alert(obj.invoice_num); var confirmMsg= confirm("Do You Want To Add One More OSL.!"); if (confirmMsg==true) { $("#list2").jqGrid('setGridParam',{datatype:'json'}).trigger('reloadGrid'); } else if (confirmMsg==false) { $(".form").submit(); // window.location.href = '<?php echo base_url('fabric/issue_fabric_datas');?>'; } } }); }); </script> <style> .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("weaving_panel/outsource_osl_preview"); ?>', data:{'as':as}, async:false, success:function() { window.location.href = '<?php echo base_url('weaving_panel/outsource_osl_preview');?>/'+ '?id='+as; } }); }); </script> <style> .preview { padding-bottom:3px !important; padding-top:3px !important; } @media only screen and (min-width:641px) and (max-width:991px) { #jaytab { overflow-x:scroll; } } @media only screen and (min-width:992px) and (max-width:1258px) { #jaytab { overflow-x:scroll; } } </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'); ?>" />