function Page_BeforeShow(&$sender) { $Page_BeforeShow = true; $Component =& $sender; $Container =& CCGetParentContainer($sender); global $t_laporan_pencetakan_bulanan; //Compatibility //End Page_BeforeShow //Custom Code @10-2A29BDB7 // ------------------------- // Write your own code here. if ($t_laporan_pencetakan_bulanan->cetak_laporan->GetValue() == 'T') { $param_arr = array(); $param_arr['year_code'] = $t_laporan_pencetakan_bulanan->year_code->GetValue(); $param_arr['year_period_id'] = $t_laporan_pencetakan_bulanan->p_year_period_id->GetValue(); $param_arr['date_start'] = $t_laporan_pencetakan_bulanan->date_start_laporan->GetValue(); $param_arr['date_end'] = $t_laporan_pencetakan_bulanan->date_end_laporan->GetValue(); if (empty($param_arr['date_start'])) { $param_arr['date_start'] = $param_arr['year_code'] - 1 . '-12-01'; } if (empty($param_arr['date_end'])) { $param_arr['date_end'] = $param_arr['year_code'] . '-12-31'; } print_laporan($param_arr); } // ------------------------- //End Custom Code //Close Page_BeforeShow @1-4BC230CD return $Page_BeforeShow; }
function Page_BeforeShow(&$sender) { $Page_BeforeShow = true; $Component =& $sender; $Container =& CCGetParentContainer($sender); global $t_laporan_penerimaan_bphtb_teller; //Compatibility //End Page_BeforeShow //Custom Code @10-2A29BDB7 // ------------------------- // Write your own code here. // ------------------------- //End Custom Code // ------------------------- $param_arr = array(); if (empty($param_arr['uid'])) { $param_arr['uid'] = CCGetFromGet('uid'); } if (empty($param_arr['report_type'])) { $param_arr['report_type'] = CCGetFromGet('report_type'); } if ($param_arr['report_type'] == 'excel') { print_excel($param_arr); } else { print_laporan($param_arr); } // ------------------------- //Close Page_BeforeShow @1-4BC230CD return $Page_BeforeShow; }
function Page_BeforeShow(&$sender) { $Page_BeforeShow = true; $Component =& $sender; $Container =& CCGetParentContainer($sender); global $t_laporan_rekap_bphtb; //Compatibility //End Page_BeforeShow global $Label1; //Custom Code @10-2A29BDB7 // ------------------------- // Write your own code here. $doAction = CCGetFromGet('doAction'); if ($doAction == 'view_html') { $param_arr = array(); if (empty($param_arr['date_start'])) { $param_arr['date_start'] = CCGetFromGet('date_start'); } if (empty($param_arr['date_end'])) { $param_arr['date_end'] = CCGetFromGet('date_end'); } $param_arr['filter_lap'] = CCGetFromGet('filter_lap'); $Label1->SetText(GetCetakHTML($param_arr)); $t_laporan_rekap_bphtb->date_start_laporan->SetValue($param_arr['date_start']); $t_laporan_rekap_bphtb->date_end_laporan->SetValue($param_arr['date_end']); $t_laporan_rekap_bphtb->ListBox1->SetValue($param_arr['filter_lap']); } else { if ($doAction == 'print_excel') { $param_arr = array(); if (empty($param_arr['date_start'])) { $param_arr['date_start'] = CCGetFromGet('date_start'); } if (empty($param_arr['date_end'])) { $param_arr['date_end'] = CCGetFromGet('date_end'); } $param_arr['filter_lap'] = CCGetFromGet('filter_lap'); $t_laporan_rekap_bphtb->date_start_laporan->SetValue($param_arr['date_start']); $t_laporan_rekap_bphtb->date_end_laporan->SetValue($param_arr['date_end']); $t_laporan_rekap_bphtb->ListBox1->SetValue($param_arr['filter_lap']); print_excel($param_arr); } else { if ($t_laporan_rekap_bphtb->cetak_laporan->GetValue() == 'T') { $param_arr = array(); if (empty($param_arr['date_start'])) { $param_arr['date_start'] = CCGetFromGet('date_start'); } if (empty($param_arr['date_end'])) { $param_arr['date_end'] = CCGetFromGet('date_end'); } $param_arr['filter_lap'] = CCGetFromGet('filter_lap'); print_laporan($param_arr); } } } // ------------------------- //End Custom Code //Close Page_BeforeShow @1-4BC230CD return $Page_BeforeShow; }
function Page_BeforeShow(&$sender) { $Page_BeforeShow = true; $Component =& $sender; $Container =& CCGetParentContainer($sender); global $t_laporan_harian_sptpd; //Compatibility //End Page_BeforeShow //Custom Code @10-2A29BDB7 // ------------------------- // Write your own code here. // ------------------------- //End Custom Code $cetak_laporan = CCGetFromGet("cetak_laporan", ""); // ------------------------- // Write your own code here. if ($cetak_laporan == 'excel') { $param_arr = array(); $param_arr['year_code'] = $t_laporan_harian_sptpd->year_code->GetValue(); $param_arr['year_period_id'] = $t_laporan_harian_sptpd->p_year_period_id->GetValue(); $param_arr['date_start'] = $t_laporan_harian_sptpd->date_start_laporan->GetValue(); $param_arr['date_end'] = $t_laporan_harian_sptpd->date_end_laporan->GetValue(); $param_arr['p_vat_type_id'] = $t_laporan_harian_sptpd->p_vat_type_id->GetValue(); $param_arr['p_vat_type_dtl_id'] = $t_laporan_harian_sptpd->p_vat_type_dtl_id->GetValue(); $param_arr['vat_code_dtl'] = $t_laporan_harian_sptpd->vat_code_dtl->GetValue(); if (empty($param_arr['date_start'])) { $param_arr['date_start'] = $param_arr['year_code'] . '-01-01'; } if (empty($param_arr['date_end'])) { $param_arr['date_end'] = $param_arr['year_code'] . '-12-31'; } print_excel($param_arr); } else { if ($t_laporan_harian_sptpd->cetak_laporan->GetValue() == 'T') { $param_arr = array(); $param_arr['year_code'] = $t_laporan_harian_sptpd->year_code->GetValue(); $param_arr['year_period_id'] = $t_laporan_harian_sptpd->p_year_period_id->GetValue(); $param_arr['date_start'] = $t_laporan_harian_sptpd->date_start_laporan->GetValue(); $param_arr['date_end'] = $t_laporan_harian_sptpd->date_end_laporan->GetValue(); $param_arr['p_vat_type_id'] = $t_laporan_harian_sptpd->p_vat_type_id->GetValue(); $param_arr['p_vat_type_dtl_id'] = $t_laporan_harian_sptpd->p_vat_type_dtl_id->GetValue(); $param_arr['vat_code_dtl'] = $t_laporan_harian_sptpd->vat_code_dtl->GetValue(); if (empty($param_arr['date_start'])) { $param_arr['date_start'] = $param_arr['year_code'] . '-01-01'; } if (empty($param_arr['date_end'])) { $param_arr['date_end'] = $param_arr['year_code'] . '-12-31'; } print_laporan($param_arr); } } // ------------------------- //Close Page_BeforeShow @1-4BC230CD return $Page_BeforeShow; }
function Page_BeforeShow(&$sender) { $Page_BeforeShow = true; $Component =& $sender; $Container =& CCGetParentContainer($sender); global $t_laporan_penerimaan_bphtb; //Compatibility //End Page_BeforeShow //Custom Code @10-2A29BDB7 // ------------------------- $type_cetak = CCGetFromGet('cetak_laporan'); if ($type_cetak == 'excel') { $param_arr = array(); if (empty($param_arr['date_start'])) { $param_arr['date_start'] = CCGetFromGet('date_start'); } if (empty($param_arr['date_end'])) { $param_arr['date_end'] = CCGetFromGet('date_end'); } $param_arr['receipt_no'] = CCGetFromGet('receipt_no'); $param_arr['njop_pbb'] = CCGetFromGet('njop_pbb'); $param_arr['wp_name'] = CCGetFromGet('wp_name'); $param_arr['p_region_id_kecamatan'] = CCGetFromGet('p_region_id_kecamatan'); $param_arr['p_region_id_kelurahan'] = CCGetFromGet('p_region_id_kelurahan'); $param_arr['p_bphtb_legal_doc_type_id'] = CCGetFromGet('p_bphtb_legal_doc_type_id', 0); $param_arr['verificated_by'] = CCGetFromGet('verificated_by', '0'); print_excel($param_arr); } else { if ($t_laporan_penerimaan_bphtb->cetak_laporan->GetValue() == 'T') { $param_arr = array(); if (empty($param_arr['date_start'])) { $param_arr['date_start'] = CCGetFromGet('date_start'); } if (empty($param_arr['date_end'])) { $param_arr['date_end'] = CCGetFromGet('date_end'); } $param_arr['receipt_no'] = CCGetFromGet('receipt_no'); $param_arr['njop_pbb'] = CCGetFromGet('njop_pbb'); $param_arr['wp_name'] = CCGetFromGet('wp_name'); $param_arr['p_region_id_kecamatan'] = CCGetFromGet('p_region_id_kecamatan'); $param_arr['p_region_id_kelurahan'] = CCGetFromGet('p_region_id_kelurahan'); $param_arr['p_bphtb_legal_doc_type_id'] = CCGetFromGet('p_bphtb_legal_doc_type_id', 0); print_laporan($param_arr); } } // ------------------------- //End Custom Code //Close Page_BeforeShow @1-4BC230CD return $Page_BeforeShow; }
function t_vat_setllementGrid_cetak_sptpd_BeforeShow(&$sender) { $t_vat_setllementGrid_cetak_sptpd_BeforeShow = true; $Component =& $sender; $Container =& CCGetParentContainer($sender); global $t_vat_setllementGrid; //Compatibility //End t_vat_setllementGrid_cetak_sptpd_BeforeShow // ------------------------- // Write your own code here. $pajak = $t_vat_setllementGrid->total_vat_amount->GetValue(); $denda = $t_vat_setllementGrid->total_penalty_amount->GetValue(); $totaltotal = $pajak + $denda; $t_vat_setllementGrid->total_total->SetValue($totaltotal); $nilai = $t_vat_setllementGrid->t_vat_setllement_id->GetValue(); $nilai2 = $t_vat_setllementGrid->p_vat_type_id->GetValue(); $t_vat_setllementGrid->cetak_sptpd->SetValue("<input type='button' style='display:none;' value='CETAK' style='WIDTH: 57px; HEIGHT: 22px' class='Button' onclick=\"" . "cetakSptpd(" . $nilai . "," . $nilai2 . ")\">"); $action_button = CCGetFromGet("action_button", ""); $action_button2 = CCGetFromGet("action_button2", ""); if ($action_button == 'flag_payment' && $action_button2 != 'cetak_register') { $dbConn = new clsDBConnSIKP(); $sql = "select sikp.f_payment_manual(" . CCGetFromGet('t_customer_order_id') . ",'" . CCGetSession('UserLogin') . "')"; $dbConn->query($sql); $dbConn->next_record(); echo "\r\n \t\t<script>\r\n \t\talert('" . $dbConn->f('f_payment_manual') . "');\r\n \t\t</script>\r\n \t\t"; $dbConn->close(); } else { if ($action_button2 == 'cetak_register') { $dbConn = new clsDBConnSIKP(); $sql = "select sikp.f_print_register(" . CCGetFromGet('t_customer_order_id') . ",'" . CCGetSession('UserLogin') . "')"; $dbConn->query($sql); $dbConn->next_record(); print_laporan($dbConn->f('f_print_register')); /*echo " <script> window.open('../services/print_string.php?input_number=".$dbConn->f('f_print_register')."', '_blank', 'location=yes,height=570,width=520,scrollbars=yes,status=yes'); </script> ";*/ $dbConn->close(); exit; } } // ------------------------- //Close t_vat_setllementGrid_cetak_sptpd_BeforeShow @300-BF0BB7F2 return $t_vat_setllementGrid_cetak_sptpd_BeforeShow; }
function Page_BeforeShow(&$sender) { $Page_BeforeShow = true; $Component =& $sender; $Container =& CCGetParentContainer($sender); global $t_laporan_piutang_pajak; //Compatibility //End Page_BeforeShow //Custom Code @10-2A29BDB7 // ------------------------- // Write your own code here. // ------------------------- //End Custom Code $cetak_laporan = CCGetFromGet('cetak_laporan'); global $Label1; // ------------------------- // Write your own code here. if ($cetak_laporan == 'view_html') { $param_arr = array(); $param_arr['year_period_id'] = $t_laporan_piutang_pajak->p_year_period_id->GetValue(); $param_arr['p_vat_type_id'] = $t_laporan_piutang_pajak->p_vat_type_id->GetValue(); $param_arr['year_code'] = $t_laporan_piutang_pajak->year_code->GetValue(); $param_arr['vat_code'] = $t_laporan_piutang_pajak->vat_code->GetValue(); $t_laporan_piutang_pajak->p_year_period_id->SetValue($param_arr['year_period_id']); $t_laporan_piutang_pajak->year_code->SetValue($param_arr['year_code']); $t_laporan_piutang_pajak->p_vat_type_id->SetValue($param_arr['p_vat_type_id']); $t_laporan_piutang_pajak->vat_code->SetValue($param_arr['vat_code']); $Label1->SetText(view_html($param_arr)); } else { if ($t_laporan_piutang_pajak->cetak_laporan->GetValue() == 'T') { $param_arr = array(); $param_arr['year_period_id'] = $t_laporan_piutang_pajak->p_year_period_id->GetValue(); $param_arr['p_vat_type_id'] = $t_laporan_piutang_pajak->p_vat_type_id->GetValue(); $param_arr['year_code'] = $t_laporan_piutang_pajak->year_code->GetValue(); print_laporan($param_arr); exit; } } // ------------------------- //Close Page_BeforeShow @1-4BC230CD return $Page_BeforeShow; }
function Page_BeforeShow(&$sender) { $Page_BeforeShow = true; $Component =& $sender; $Container =& CCGetParentContainer($sender); global $t_laporan_penerimaan_pajak; //Compatibility //End Page_BeforeShow //Custom Code @10-2A29BDB7 // ------------------------- // Write your own code here. if ($t_laporan_penerimaan_pajak->cetak_laporan->GetValue() == 'T') { $year_code = $t_laporan_penerimaan_pajak->year_code->GetValue(); $year_period_id = $t_laporan_penerimaan_pajak->p_year_period_id->GetValue(); $date_start = $t_laporan_penerimaan_pajak->date_start_laporan->GetValue(); $jenisLaporan = CCGetFromGet('jenisLaporan', 'pdf'); if (empty($date_start)) { $date_start = $year_code . '-01-01'; } $date_end = $t_laporan_penerimaan_pajak->date_end_laporan->GetValue(); if (empty($date_end)) { $date_end = $year_code . '-12-31'; } $p_rqst_type_id = $t_laporan_penerimaan_pajak->p_rqst_type_id->GetValue(); $jenis_tahun = $t_laporan_penerimaan_pajak->jenis_tahun->GetValue(); $rqst_type_code = $t_laporan_penerimaan_pajak->rqst_type_code->GetValue(); if ($jenisLaporan == 'excel') { GetCetakExcel($p_rqst_type_id, $year_code, $year_period_id, $date_start, $date_end, $jenis_tahun, $rqst_type_code); } if ($jenisLaporan == 'pdf') { print_laporan($p_rqst_type_id, $year_code, $year_period_id, $date_start, $date_end, $jenis_tahun, $rqst_type_code); } } // ------------------------- //End Custom Code //Close Page_BeforeShow @1-4BC230CD return $Page_BeforeShow; }
function Page_BeforeShow(&$sender) { $Page_BeforeShow = true; $Component =& $sender; $Container =& CCGetParentContainer($sender); global $t_laporan_per_npwpd; //Compatibility //End Page_BeforeShow //Custom Code @10-2A29BDB7 // ------------------------- // Write your own code here. // ------------------------- //End Custom Code // ------------------------- // Write your own code here. if ($t_laporan_per_npwpd->cetak_laporan->GetValue() == 'T') { $param_arr = array(); print_laporan($param_arr); } // ------------------------- //Close Page_BeforeShow @1-4BC230CD return $Page_BeforeShow; }
function t_vat_setllementForm_BeforeShow(&$sender) { $t_vat_setllementForm_BeforeShow = true; $Component =& $sender; $Container =& CCGetParentContainer($sender); global $t_vat_setllementForm; //Compatibility //End t_vat_setllementForm_BeforeShow global $t_vat_setllementGrid; //Custom Code @380-2A29BDB7 // ------------------------- // Write your own code here. $pajak = $t_vat_setllementGrid->total_vat_amount->GetValue(); $denda = $t_vat_setllementGrid->total_penalty_amount->GetValue(); $totaltotal = $pajak + $denda; $t_vat_setllementForm->total_total->SetValue($totaltotal); $nilai = $t_vat_setllementGrid->t_vat_setllement_id->GetValue(); $nilai2 = $t_vat_setllementGrid->p_vat_type_id->GetValue(); $t_vat_setllementGrid->cetak_sptpd->SetValue("<input type='button' style='display:none;' value='CETAK' style='WIDTH: 57px; HEIGHT: 22px' class='Button' onclick=\"" . "cetakSptpd(" . $nilai . "," . $nilai2 . ")\">"); $action_button = CCGetFromGet("action_button", ""); $action_button2 = CCGetFromGet("action_button2", ""); $p_payment_type_id = CCGetFromGet("p_payment_type_id", ""); if ($action_button == 'flag_payment' && $action_button2 != 'cetak_register') { $dbConn = new clsDBConnSIKP(); $sql = "select sikp.f_payment_manual_paymentkey_v2(" . CCGetFromGet('t_customer_order_id') . ",'" . CCGetSession('UserLogin') . "'," . $p_payment_type_id . ")"; $dbConn->query($sql); $dbConn->next_record(); $pesan = $dbConn->f('f_payment_manual_paymentkey_v2'); echo "\r\n \t\t<script>\r\n \t\talert('" . $dbConn->f('f_payment_manual_paymentkey_v2') . "');\r\n \t\t</script>\r\n \t\t"; $dbConn->close(); $dbConn2 = new clsDBConnSIKP(); $sql2 = "select sikp.f_print_register(" . CCGetFromGet('t_customer_order_id') . ",'" . CCGetSession('UserLogin') . "')"; $dbConn2->query($sql2); $dbConn2->next_record(); if ($pesan != "Proses dibatalkan. Flag Pembayaran sudah pernah dilakukan.") { echo "\r\n\t \t\t\t<script>\r\n\t \t\t\t\twindow.open('../report/cetak_registrasi_payment_large_arial.php?t_customer_order_id=" . CCGetFromGet('t_customer_order_id') . "&codeline=" . $dbConn2->f('f_print_register') . "', '_blank', 'location=yes,height=500,width=800,scrollbars=yes,status=yes');\r\n\t \t\t\t</script>\r\n\t \t\t"; } $dbConn2->close(); } else { if ($action_button2 == 'cetak_register') { $dbConn = new clsDBConnSIKP(); $sql = "select sikp.f_print_register(" . CCGetFromGet('t_customer_order_id') . ",'" . CCGetSession('UserLogin') . "')"; $dbConn->query($sql); $dbConn->next_record(); print_laporan($dbConn->f('f_print_register')); /*echo " <script> window.open('../../mpd-wp/client/ws.php?json&module=bds&class=t_vat_settlement&method=printNoBayar&no_bayar=".CCGetFromGet('s_keyword')."', '_blank', 'location=yes,height=570,width=520,scrollbars=yes,status=yes'); </script> ";*/ $dbConn->close(); exit; } } // ------------------------- //End Custom Code //Close t_vat_setllementForm_BeforeShow @23-08204CD1 return $t_vat_setllementForm_BeforeShow; }