Browse Source

pengampu

main
pecintaseni 7 months ago
parent
commit
60922adb89
  1. 4
      app/Controllers/Kewilayahan/Kytp.php
  2. 2
      app/Controllers/Kewilayahan/Ref.php
  3. 10
      app/Controllers/Kewilayahan/Sebaran/Pengampu.php
  4. 41
      app/Views/kewilayahan/dist/kpdl.js
  5. 3
      app/Views/kewilayahan/kytp/TabProgresifitas.js
  6. 29
      app/Views/kewilayahan/kytp/kpdl.js

4
app/Controllers/Kewilayahan/Kytp.php

@ -100,7 +100,7 @@ class Kytp extends Controller
public function sebaranPengampu() public function sebaranPengampu()
{ {
ini_set('max_input_vars', 3000);
$sebaran = new Pengampu; $sebaran = new Pengampu;
$dataReturn['assign'] = $sebaran->data($this->request, 'assign'); $dataReturn['assign'] = $sebaran->data($this->request, 'assign');
$dataReturn['unassign'] = $sebaran->data($this->request, 'unassign'); $dataReturn['unassign'] = $sebaran->data($this->request, 'unassign');
@ -110,7 +110,7 @@ class Kytp extends Controller
private function get_poi_agg() private function get_poi_agg()
{ {
ini_set('max_input_vars', 3000);
$opsiWilZona = $this->request->getPost('opsiWilZona') ?? null; $opsiWilZona = $this->request->getPost('opsiWilZona') ?? null;
$adm4_pcode = $this->request->getPost('adm4_pcode') ?? []; $adm4_pcode = $this->request->getPost('adm4_pcode') ?? [];
$id_poly_zona = $this->request->getPost('id_poly_zona') ?? []; $id_poly_zona = $this->request->getPost('id_poly_zona') ?? [];

2
app/Controllers/Kewilayahan/Ref.php

@ -133,4 +133,4 @@ class Ref extends Controller
return array_change_key_case($arr, CASE_LOWER); return array_change_key_case($arr, CASE_LOWER);
} }
} }

10
app/Controllers/Kewilayahan/Sebaran/Pengampu.php

@ -6,22 +6,22 @@ class Pengampu extends \App\Controllers\Kewilayahan\Kytp
{ {
protected function data($request, $jenis) protected function data($request, $jenis)
{ {
ini_set('max_input_vars', 3000);
$opsiWilZona = $request->getPost('opsiWilZona'); $opsiWilZona = $request->getPost('opsiWilZona');
$adm4_pcode = $request->getPost('adm4_pcode') ?? []; $adm4_pcode = $request->getPost('adm4_pcode') ?? [];
$id_poly_zona = $request->getPost('id_poly_zona') ?? []; $id_poly_zona = $request->getPost('id_poly_zona') ?? [];
$db = \Config\Database::connect(); $db = \Config\Database::connect();
$npwp = $db->table('KPDL_MV_LOKASI_SUBJEK')->select("NM_KPP_ADM, count(1) JML", false) $npwp = $db->table('KPDL_MV_LOKASI_SUBJEK')->select("NM_KANTOR_PENGAMPU, count(1) JML", false)
->groupBy("NM_KPP_ADM")->orderBy("JML", 'desc'); ->groupBy("NM_KANTOR_PENGAMPU")->orderBy("JML", 'desc');
$kolom = "JNS_WP_MFWP";
switch ($jenis) { switch ($jenis) {
case 'assign': case 'assign':
break; break;
case 'unassign': case 'unassign':
$npwp = $npwp->where("NIP_AR_PENGAMPU", "NPWP TIDAK DITEMUKAN"); $npwp = $npwp->where("NM_KANTOR_PENGAMPU", "NPWP TIDAK DITEMUKAN");
break; break;
default: default:
@ -42,7 +42,7 @@ class Pengampu extends \App\Controllers\Kewilayahan\Kytp
foreach ($data as $b) { foreach ($data as $b) {
array_push($ret, ['name' => $b->NM_KPP_ADM, array_push($ret, ['name' => $b->NM_KANTOR_PENGAMPU,
// 'color' => , // 'color' => ,
'y' => floatval($b->JML), 'y' => floatval($b->JML),
] ]

41
app/Views/kewilayahan/dist/kpdl.js vendored

@ -62459,6 +62459,11 @@ function TabProgresifitas({
header: "Pengampu" header: "Pengampu"
}, /*#__PURE__*/react.createElement(componentProgresifitas_Pengampu, { }, /*#__PURE__*/react.createElement(componentProgresifitas_Pengampu, {
dataSend: dataSend dataSend: dataSend
})), /*#__PURE__*/react.createElement(TabPanel, {
id: "tab_5",
header: "SPT Tahunan"
}, /*#__PURE__*/react.createElement(componentProgresifitas_Pengampu, {
dataSend: dataSend
})), /*#__PURE__*/react.createElement(TabPanel, { })), /*#__PURE__*/react.createElement(TabPanel, {
id: "tab_6", id: "tab_6",
header: "KLU" header: "KLU"
@ -62623,11 +62628,11 @@ const Root = () => {
} }
}, [kecSelected]); }, [kecSelected]);
(0,react.useEffect)(() => { (0,react.useEffect)(() => {
setKpp([]); setKpp(null);
setSeksi([]); setSeksi([]);
setAr([]); setAr([]);
setZp([]); setZp([]);
setKppSelected([]); setKppSelected(null);
setSeksiSelected([]); setSeksiSelected([]);
setArSelected([]); setArSelected([]);
setZpSelected([]); setZpSelected([]);
@ -62654,7 +62659,8 @@ const Root = () => {
setArSelected([]); setArSelected([]);
setZpSelected([]); setZpSelected([]);
if (kppSelected && !isObjEmpty(kppSelected)) { if (kppSelected && !isObjEmpty(kppSelected)) {
const kpp = dist_default()(kppSelected).pluck("value").all(); // const kpp = collect(kppSelected).pluck("value").all()
const kpp = [kppSelected.value];
jquery_default().ajax({ jquery_default().ajax({
url: base_url + "kewilayahan/ref/zpseksi", url: base_url + "kewilayahan/ref/zpseksi",
method: "GET", method: "GET",
@ -62674,7 +62680,7 @@ const Root = () => {
setArSelected([]); setArSelected([]);
setZpSelected([]); setZpSelected([]);
if (seksiSelected && !isObjEmpty(seksiSelected)) { if (seksiSelected && !isObjEmpty(seksiSelected)) {
const kpp = dist_default()(kppSelected).pluck("value").all(); const kpp = [kppSelected.value];
const seksi = dist_default()(seksiSelected).pluck("value").all(); const seksi = dist_default()(seksiSelected).pluck("value").all();
jquery_default().ajax({ jquery_default().ajax({
url: base_url + "kewilayahan/ref/zpar", url: base_url + "kewilayahan/ref/zpar",
@ -62694,7 +62700,7 @@ const Root = () => {
setZp([]); setZp([]);
setZpSelected([]); setZpSelected([]);
if (arSelected && !isObjEmpty(arSelected)) { if (arSelected && !isObjEmpty(arSelected)) {
const kpp = dist_default()(kppSelected).pluck("value").all(); const kpp = kppSelected.value;
const seksi = dist_default()(seksiSelected).pluck("value").all(); const seksi = dist_default()(seksiSelected).pluck("value").all();
const ar = dist_default()(arSelected).pluck("value").all(); const ar = dist_default()(arSelected).pluck("value").all();
jquery_default().ajax({ jquery_default().ajax({
@ -63020,8 +63026,9 @@ const Root = () => {
onChange: e => { onChange: e => {
setKanwilSelected(e); setKanwilSelected(e);
}, },
classNamePrefix: "select", classNamePrefix: "select"
defaultValue: kanwilSelected, // defaultValue={kanwilSelected}
,
value: kanwilSelected, value: kanwilSelected,
isClearable: false, isClearable: false,
options: kanwil options: kanwil
@ -63030,20 +63037,18 @@ const Root = () => {
}, /*#__PURE__*/react.createElement(es_Label, { }, /*#__PURE__*/react.createElement(es_Label, {
className: "form-label", className: "form-label",
for: "Pilih KPP" for: "Pilih KPP"
}, "KPP"), /*#__PURE__*/react.createElement(je, { }, "KPP"), /*#__PURE__*/react.createElement(StateManagedSelect$1, {
className: "me-1 w-full", placeholder: "Pilih KPP",
hasSelectAll: true, className: "basic-single w-100",
debounceDuration: 300,
options: kpp,
value: kppSelected,
onChange: e => { onChange: e => {
setKppSelected(e); setKppSelected(e);
}, },
labelledBy: "Pilih KPP", classNamePrefix: "select"
overrideStrings: { // defaultValue={kanwilSelected}
allItemsAreSelected: "Semua dipilih", ,
selectSomeItems: "Pilih KPP" value: kppSelected,
} isClearable: false,
options: kpp
})), /*#__PURE__*/react.createElement(es_Col, { })), /*#__PURE__*/react.createElement(es_Col, {
md: "2" md: "2"
}, /*#__PURE__*/react.createElement(es_Label, { }, /*#__PURE__*/react.createElement(es_Label, {

3
app/Views/kewilayahan/kytp/TabProgresifitas.js

@ -37,6 +37,9 @@ export default function TabProgresifitas({ dataSend }) {
<TabPanel id="tab_5" header="Pengampu"> <TabPanel id="tab_5" header="Pengampu">
<Pengampu dataSend={dataSend} /> <Pengampu dataSend={dataSend} />
</TabPanel> </TabPanel>
<TabPanel id="tab_5" header="SPT Tahunan">
<Pengampu dataSend={dataSend} />
</TabPanel>
<TabPanel id="tab_6" header="KLU"></TabPanel> <TabPanel id="tab_6" header="KLU"></TabPanel>
</TabView> </TabView>
</div> </div>

29
app/Views/kewilayahan/kytp/kpdl.js

@ -131,11 +131,11 @@ const Root = () => {
}, [kecSelected]) }, [kecSelected])
useEffect(() => { useEffect(() => {
setKpp([]) setKpp(null)
setSeksi([]) setSeksi([])
setAr([]) setAr([])
setZp([]) setZp([])
setKppSelected([]) setKppSelected(null)
setSeksiSelected([]) setSeksiSelected([])
setArSelected([]) setArSelected([])
setZpSelected([]) setZpSelected([])
@ -161,7 +161,8 @@ const Root = () => {
setArSelected([]) setArSelected([])
setZpSelected([]) setZpSelected([])
if (kppSelected && !isObjEmpty(kppSelected)) { if (kppSelected && !isObjEmpty(kppSelected)) {
const kpp = collect(kppSelected).pluck("value").all() // const kpp = collect(kppSelected).pluck("value").all()
const kpp = [kppSelected.value]
jQuery.ajax({ jQuery.ajax({
url: base_url + "kewilayahan/ref/zpseksi", url: base_url + "kewilayahan/ref/zpseksi",
method: "GET", method: "GET",
@ -180,7 +181,7 @@ const Root = () => {
setArSelected([]) setArSelected([])
setZpSelected([]) setZpSelected([])
if (seksiSelected && !isObjEmpty(seksiSelected)) { if (seksiSelected && !isObjEmpty(seksiSelected)) {
const kpp = collect(kppSelected).pluck("value").all() const kpp = [kppSelected.value]
const seksi = collect(seksiSelected).pluck("value").all() const seksi = collect(seksiSelected).pluck("value").all()
jQuery.ajax({ jQuery.ajax({
@ -199,7 +200,7 @@ const Root = () => {
setZp([]) setZp([])
setZpSelected([]) setZpSelected([])
if (arSelected && !isObjEmpty(arSelected)) { if (arSelected && !isObjEmpty(arSelected)) {
const kpp = collect(kppSelected).pluck("value").all() const kpp = kppSelected.value
const seksi = collect(seksiSelected).pluck("value").all() const seksi = collect(seksiSelected).pluck("value").all()
const ar = collect(arSelected).pluck("value").all() const ar = collect(arSelected).pluck("value").all()
jQuery.ajax({ jQuery.ajax({
@ -535,7 +536,7 @@ const Root = () => {
setKanwilSelected(e) setKanwilSelected(e)
}} }}
classNamePrefix="select" classNamePrefix="select"
defaultValue={kanwilSelected} // defaultValue={kanwilSelected}
value={kanwilSelected} value={kanwilSelected}
isClearable={false} isClearable={false}
options={kanwil} options={kanwil}
@ -545,7 +546,19 @@ const Root = () => {
<Label className="form-label" for="Pilih KPP"> <Label className="form-label" for="Pilih KPP">
KPP KPP
</Label> </Label>
<MultiSelect <Select
placeholder="Pilih KPP"
className="basic-single w-100"
onChange={(e) => {
setKppSelected(e)
}}
classNamePrefix="select"
// defaultValue={kanwilSelected}
value={kppSelected}
isClearable={false}
options={kpp}
/>
{/* <MultiSelect
className="me-1 w-full" className="me-1 w-full"
hasSelectAll={true} hasSelectAll={true}
debounceDuration={300} debounceDuration={300}
@ -556,7 +569,7 @@ const Root = () => {
}} }}
labelledBy="Pilih KPP" labelledBy="Pilih KPP"
overrideStrings={{ allItemsAreSelected: "Semua dipilih", selectSomeItems: "Pilih KPP" }} overrideStrings={{ allItemsAreSelected: "Semua dipilih", selectSomeItems: "Pilih KPP" }}
/> /> */}
</Col> </Col>
<Col md="2"> <Col md="2">
<Label className="form-label" for="Pilih Seksi"> <Label className="form-label" for="Pilih Seksi">

Loading…
Cancel
Save