?
Current Path : /home1/savoy/public_html/savoyglobal.net/sibsmoved/system/application/views/Report/ |
Linux gator3171.hostgator.com 4.19.286-203.ELK.el7.x86_64 #1 SMP Wed Jun 14 04:33:55 CDT 2023 x86_64 |
Current File : /home1/savoy/public_html/savoyglobal.net/sibsmoved/system/application/views/Report/production.php |
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');?> <?php $this->load->view('header'); ?> <script type="text/javascript"> $(document).ready(function(){ //Display Loading Image loadproduction(); }); function loadproduction() { $("#productiondiv").empty().html('<CENTER><img src="<?=base_url()?>/assets/images/loading.gif" class="loading"/></CENTER>'); $("#productiondiv").load("<?= site_url('report/load_report_list/production/viewproduction') ?>"); } function singleproduction(rwd,target) { $("#ck_permission").load("<?= site_url('master/check_permissions/') ?>"+"/"+rwd,function(data) { if(data==1) { $("#productiondiv").empty().html('<CENTER><img src="<?=base_url()?>/assets/images/loading.gif" class="loading"/></CENTER>'); $("#productiondiv").load("<?= site_url('report/single/production/') ?>"+"/" +target); } }); } function showcustomerdiv() { $("#customerdiv").empty().html('<CENTER><img src="<?=base_url()?>/assets/images/loading.gif" class="loading"/></CENTER>'); $("#customerdiv").load("<?= site_url('sales/ajaxload/searchcustomer/customers/') ?>"); $("#customdi").colorbox({width:"75%",height:"70%", inline:true, href:"#customerdiv"}); } function searchCust(serctext,seloption,pagenum) { $("#custlist").empty().html('<CENTER><img src="<?=base_url()?>/assets/images/loading.gif" class="loading"/></CENTER>'); $('#custlist').load("<?php echo site_url('sales/listSearchcustomer/'); ?>/"+ seloption + "/"+ pagenum + "/" + serctext ); } function usecust(insured,id) { $("input#customername").val(insured); $("input#customerid").val(id); $.fn.colorbox.close(); } function showempdiv() { $("#custlist").empty().html('<CENTER><img src="<?=base_url()?>/assets/images/loading.gif" class="loading"/></CENTER>'); $("#staffdiv").load("<?= site_url('report/ajaxload/searchemployee/staffpersonaldetails/') ?>"); $("#staffdi").colorbox({width:"75%",height:"70%", inline:true, href:"#staffdiv"}); } function showagentdiv() { $("#custlist").empty().html('<CENTER><img src="<?=base_url()?>/assets/images/loading.gif" class="loading"/></CENTER>'); $("#staffdiv").load("<?= site_url('report/ajaxload/searchagent/staffpersonaldetails/') ?>"); $("#staffdi").colorbox({width:"75%",height:"70%", inline:true, href:"#staffdiv"}); } function searchagent(serctext,seloption,pagenum) { $("#stafflist").empty().html('<CENTER><img src="<?=base_url()?>/assets/images/loading.gif" class="loading"/></CENTER>'); $('#stafflist').load("<?php echo site_url('report/listSearchagent/'); ?>/"+ pagenum+ "/" +seloption + "/" + serctext); } function searchemployee(serctext,seloption,pagenum) { $("#stafflist").empty().html('<CENTER><img src="<?=base_url()?>/assets/images/loading.gif" class="loading"/></CENTER>'); $('#stafflist').load("<?php echo site_url('report/listSearchemployee/'); ?>/"+ pagenum+ "/" +seloption + "/" + serctext); } function usestaff(staffname,id,employeeid,designation,department) { $("input#staffname").val(staffname); $("input#staffid").val(id); $.fn.colorbox.close(); document.getElementById('stfinfodet').innerHTML="<fieldset><li><label>Employee No</label>"+employeeid+"</li>\n\ <li><label>Designation</label>"+designation+"</li><li><label>Department</label>"+department+"</li></fieldset>"; } function searchproduction(search,selectsearch) { $("#productiondiv").empty().html('<CENTER><img src="<?=base_url()?>/assets/images/loading.gif" class="loading"/></CENTER>'); pagenum = 1; search = search.replace(/ /g,"~"); search = search.replace(/\//g,"_"); $("#productiondiv").load("<?= site_url('report/ajaxload/viewproduction/reports_production/') ?>"+"/"+pagenum+"/"+selectsearch+"/"+search+"/"); } function generatesalesbranchwise() { if(validateform('branchid')) { search = $('#branchid').val(); fromdate= $('#fromdate').val(); todate = $('#todate').val(); $("#productiondiv").empty().html('<CENTER><img src="<?=base_url()?>/assets/images/loading.gif" class="loading"/></CENTER>'); var target = 'salesbranchwiserep'; if (search == "") search = 'search'; if(fromdate == '') fromdate = 'fromdate'; if(todate=='') todate = 'todate'; $("#productiondiv").load("<?= site_url('report/genrepsalesbranchwise/placing_slip/') ?>"+"/"+target+"/"+fromdate+"/"+todate+"/"+search+"/"+"/",Hide_Load()); } else { return false; } } function generatesalescoverwise() { if(validateform('cover') && validateform('cover_id') ) { search = $('#cover_id').val(); fromdate= $('#fromdate').val(); todate = $('#todate').val(); branch_id = $('#branchid').val(); $("#productiondiv").empty().html('<CENTER><img src="<?=base_url()?>/assets/images/loading.gif" class="loading"/></CENTER>'); var target = 'salescoverwiserep'; if (search == "") search = 'search'; if(fromdate == '') fromdate = 'fromdate'; if(todate=='') todate = 'todate'; if(branch_id=='') branch_id = 'branch_id'; $("#productiondiv").load("<?= site_url('report/genrepsalescoverwise/placing_slip/') ?>"+"/"+target+"/"+fromdate+"/"+todate+"/"+search+"/"+branch_id+"/",Hide_Load()); } else { return false; } } function generatesalesinsclasswise() { if(validateform('segment_id') ) { search = $('#segment_id').val(); fromdate= $('#fromdate').val(); todate = $('#todate').val(); branch_id = $('#branchid').val(); $("#productiondiv").empty().html('<CENTER><img src="<?=base_url()?>/assets/images/loading.gif" class="loading"/></CENTER>'); var target = 'salesinsclasswiserep'; if (search == "") search = 'search'; if(fromdate == '') fromdate = 'fromdate'; if(todate=='') todate = 'todate'; if(branch_id=='') branch_id = 'branch_id'; $("#productiondiv").load("<?= site_url('report/genrepsalesinsclasswise/placing_slip/') ?>"+"/"+target+"/"+fromdate+"/"+todate+"/"+search+"/"+branch_id+"/",Hide_Load()); } else { return false; } } function generatesalesstfwise() { if(validateform('employee') ) { search = $('#employee_id').val(); fromdate= $('#fromdate').val(); todate = $('#todate').val(); cover_id = $('#cover_id').val(); branch_id = $('#branchid').val(); $("#productiondiv").empty().html('<CENTER><img src="<?=base_url()?>/assets/images/loading.gif" class="loading"/></CENTER>'); var target = 'salesstfwiserep'; if (search == "") search = 'search'; if(fromdate == '') fromdate = 'fromdate'; if(todate=='') todate = 'todate'; if(cover_id== '0' || cover_id =='') cover_id = 'cover_id'; if(branch_id=='') branch_id = 'branch_id'; $("#productiondiv").load("<?= site_url('report/genrepsalesstfwise/placing_slip/') ?>"+"/"+target+"/"+fromdate+"/"+todate+"/"+search+"/"+cover_id+"/"+branch_id+"/",Hide_Load()); } else { return false; } } function generatesalesagentwise() { if(validateform('agent') ) { search = $('#agent_id').val(); fromdate= $('#fromdate').val(); todate = $('#todate').val(); cover_id = $('#cover_id').val(); branch_id = $('#branchid').val(); $("#productiondiv").empty().html('<CENTER><img src="<?=base_url()?>/assets/images/loading.gif" class="loading"/></CENTER>'); var target = 'salesstfwiserep'; if (search == "") search = 'search'; if(fromdate == '') fromdate = 'fromdate'; if(todate=='') todate = 'todate'; if(cover_id== '0' || cover_id =='') cover_id = 'cover_id'; if(branch_id=='') branch_id = 'branch_id'; $("#productiondiv").load("<?= site_url('report/genrepsalesstfwise/placing_slip/') ?>"+"/"+target+"/"+fromdate+"/"+todate+"/"+search+"/"+cover_id+"/"+branch_id+"/",Hide_Load()); } else { return false; } } function generatesalesinscompwise() { if(validateform('insurance_company_id') ) { search = $('#insurance_company_id').val(); fromdate= $('#fromdate').val(); todate = $('#todate').val(); branch_id = $('#branchid').val(); cover_id = $('#cover_id').val(); $("#productiondiv").empty().html('<CENTER><img src="<?=base_url()?>/assets/images/loading.gif" class="loading"/></CENTER>'); var target = 'salesinscompwiserep'; if (search == "") search = 'search'; if(fromdate == '') fromdate = 'fromdate'; if(todate=='') todate = 'todate'; if(cover_id== '0' || cover_id =='') cover_id = 'cover_id'; if(branch_id=='') branch_id = 'branch_id'; $("#productiondiv").load("<?= site_url('report/genrepsalesinscompwise/placing_slip/') ?>"+"/"+target+"/"+fromdate+"/"+todate+"/"+search+"/"+cover_id+"/"+branch_id+"/",Hide_Load()); } else { return false; } } function generatecommissioninscompwise() { if(validateform('insurance_company_id')) { search = $('#insurance_company_id').val(); fromdate= $('#fromdate').val(); todate = $('#todate').val(); branch_id = $('#branchid').val(); cover_id = $('#cover_id').val(); $("#productiondiv").empty().html('<CENTER><img src="<?=base_url()?>/assets/images/loading.gif" class="loading"/></CENTER>'); var target = 'commissioninscompwiserep'; if (search == "") search = 'search'; if(fromdate == '') fromdate = 'fromdate'; if(todate=='') todate = 'todate'; if(cover_id== '0' || cover_id =='') cover_id = 'cover_id'; if(branch_id=='') branch_id = 'branch_id'; $("#productiondiv").load("<?= site_url('report/genrepcommissioninscompwise/placing_slip/') ?>"+"/"+target+"/"+fromdate+"/"+todate+"/"+search+"/"+cover_id+"/"+branch_id+"/",Hide_Load()); } else { return false; } } function generatecustomersoa() { if(!validateform('customer_id')) { alert("Customer name is required"); return false; } var search = $('#customer_id').val(); var fromdate= $('#fromdate').val(); var todate = $('#todate').val(); var payment_status = $('#payment_status').val(); var payment_mode = $('#payment_mode').val(); $("#productiondiv").empty().html('<CENTER><img src="<?=base_url()?>/assets/images/loading.gif" class="loading"/></CENTER>'); if (search == "") search = 'search'; if(fromdate == '') fromdate = 'fromdate'; if(todate=='') todate = 'todate'; $("#productiondiv").load("<?= site_url('report/genrepcustomersoa/') ?>"+"/customersoarep/"+fromdate+"/"+todate+"/"+search+"/"+payment_status+"/"+payment_mode+"/",Hide_Load()); } function generateqcbsummary() { var search = $('#customer_id').val(); var fromdate= $('#fromdate').val(); var todate = $('#todate').val(); var payment_status = $('#payment_status').val(); var payment_mode = $('#payment_mode').val(); $("#productiondiv").empty().html('<CENTER><img src="<?=base_url()?>/assets/images/loading.gif" class="loading"/></CENTER>'); if (search == "") search = 'search'; if(fromdate == '') fromdate = 'fromdate'; if(todate=='') todate = 'todate'; $("#productiondiv").load("<?= site_url('report/genrepqcbsummary/') ?>"+"/qcbsummaryrep/"+fromdate+"/"+todate+"/"+search+"/"+payment_status+"/"+payment_mode+"/",Hide_Load()); } function generatecoversummary() { var year = $('#year').val(); $("#productiondiv").empty().html('<CENTER><img src="<?=base_url()?>/assets/images/loading.gif" class="loading"/></CENTER>'); $("#productiondiv").load("<?= site_url('report/genrepcoversummary/') ?>"+"/view/"+year+"/",Hide_Load()); } function generateinsurancecosummary() { var year = $('#year').val(); $("#productiondiv").empty().html('<CENTER><img src="<?=base_url()?>/assets/images/loading.gif" class="loading"/></CENTER>'); $("#productiondiv").load("<?= site_url('report/genrepinsurancecosummary/') ?>"+"/view/"+year+"/",Hide_Load()); } function generatecompanypayment() { var customer_id = $('#customer_id').val() != "" ? $('#customer_id').val() : 0; var insurance_company_id = $('#insurance_company_id').val()? $('#insurance_company_id').val() : 0; var date_filter = $('#date_filter').val(); var fromdate= $('#fromdate').val(); var todate = $('#todate').val(); var payment_status = $('#payment_status').val(); var payment_completed = ($('input[name="payment_completed"]:checked').length > 0) ? "1" : "0"; $("#productiondiv").empty().html('<CENTER><img src="<?=base_url()?>/assets/images/loading.gif" class="loading"/></CENTER>'); if(fromdate == '') fromdate = 'fromdate'; if(todate=='') todate = 'todate'; console.log("<?= site_url('report/genrepcompanypayment/') ?>"+"/companypaymentrep/"+fromdate+"/"+todate+"/"+date_filter+"/"+customer_id+"/"+insurance_company_id+"/"+payment_status+"/"+payment_completed+"/"); $("#productiondiv").load("<?= site_url('report/genrepcompanypayment/') ?>"+"/companypaymentrep/"+fromdate+"/"+todate+"/"+date_filter+"/"+customer_id+"/"+insurance_company_id+"/"+payment_status+"/"+payment_completed+"/",Hide_Load()); } function generatecustomersummary() { var fromdate= $('#fromdate').val(); var todate = $('#todate').val(); $("#productiondiv").empty().html('<CENTER><img src="<?=base_url()?>/assets/images/loading.gif" class="loading"/></CENTER>'); if(fromdate == '') fromdate = 'fromdate'; if(todate=='') todate = 'todate'; $("#productiondiv").load("<?= site_url('report/genrepcustomersummary/') ?>"+"/customersummaryrep/"+fromdate+"/"+todate+"/",Hide_Load()); } function generatecustomerreceipt() { var fromdate= $('#fromdate').val(); var todate = $('#todate').val(); if (fromdate == '' || todate == '') { alert("Please select dates"); return; } var payment_method = $('#payment_method').val(); $("#productiondiv").empty().html('<CENTER><img src="<?=base_url()?>/assets/images/loading.gif" class="loading"/></CENTER>'); if(fromdate == '') fromdate = 'fromdate'; if(todate=='') todate = 'todate'; $("#productiondiv").load("<?= site_url('report/genrepcustomerreceipt/') ?>"+"/customerreceiptrep/"+fromdate+"/"+todate+"/"+payment_method,Hide_Load()); } function generateageingsummary() { $("#productiondiv").empty().html('<CENTER><img src="<?=base_url()?>/assets/images/loading.gif" class="loading"/></CENTER>'); $("#productiondiv").load("<?= site_url('report/genrepageingsummary/') ?>"+"/ageingsummaryrep/",Hide_Load()); } function generatesalesclientwise() { if(validateform('customer') ) { search = $('#customer_id').val(); selectsearch = $('#selectsearch').val(); fromdate= $('#fromdate').val(); todate = $('#todate').val(); cover_id = $('#cover_id').val(); $("#productiondiv").empty().html('<CENTER><img src="<?=base_url()?>/assets/images/loading.gif" class="loading"/></CENTER>'); var pagenum = 1; var target = 'salesclientwiserep'; if (search == "") search = 'search'; if(fromdate == '') fromdate = 'fromdate'; if(todate=='') todate = 'todate'; if(cover_id== '0' || cover_id =='') cover_id = 'cover_id'; $("#productiondiv").load("<?= site_url('report/genclientrepsales/placing_slip/') ?>"+"/"+target+"/"+pagenum+"/"+search+"/"+fromdate+"/"+todate+"/"+"/"+cover_id+"/",Hide_Load()); } else { return false; } } function makefalsevalue() { $('input#cover_st').val(false); } function findcovercode(code) { if(code=="") { alert("No code selected") } else { $.ajax({ type: "POST", url: "<?= site_url('master/checkcovercodeexist/') ?>/"+code, success: function(msg){ if(msg==0) { alert("No cover with code "+code) $('input#cover_id_direct').val(""); $('input#cover_st').val(false); return false; } else { $('#coverdisp').html("<label>Cover Name :</label>"+msg) $('input#cover_st').val(true); } }, async:false }); } } </script> <div id="main"> <?php $this->load->view('menu'); ?> <div id="middle"> <?php $this->load->view('leftbar'); ?> <div id="center-column"> <?php $this->load->view('topbar'); ?> <div class="table"> <div id="successdiv" ></div> <p> </p> <div style="overflow: auto;" id="productiondiv"> </div> <div style='display:none'> <div id='customerdiv' style='padding:10px; background:#fff;'> </div> </div> <div style='display:none'> <div id='staffdiv' style='padding:10px; background:#fff;'> </div> </div> <div id="loading" align="center"></div> </div> </div> </div> <?php $this->load->view('footer'); ?> </div> </html>