Exemplo n.º 1
0
     # Get Data
     $where = "kodeorg='" . $param['kodeorg'] . "' and shift=" . $param['shift'];
     $cols = "nik";
     $query = selectQuery($dbname, 'pabrik_5shiftanggota', $cols, $where);
     $data = fetchData($query);
     $dataShow = $data;
     foreach ($dataShow as $key => $row) {
         $dataShow[$key]['nik'] = $optKary[$row['nik']];
     }
     # Form
     $theForm2 = new uForm('kasbankForm', $_SESSION['lang']['form'] . " " . $_SESSION['lang']['anggotashif']);
     $theForm2->addEls('nik', $_SESSION['lang']['nik'], '', 'select', 'L', 20, $optKary);
     # Table
     $theTable2 = new uTable('kasbankTable', $_SESSION['lang']['tabel'] . " " . $_SESSION['lang']['anggotashif'], $cols, $data, $dataShow);
     # FormTable
     $formTab2 = new uFormTable('ftPrestasi', $theForm2, $theTable2, null, array('kodeorg##shift'));
     $formTab2->_target = "pabrik_slave_5shift";
     #== Display View
     # Draw Tab
     echo "<fieldset><legend><b>Detail</b></legend>";
     $formTab2->render();
     echo "</fieldset>";
     break;
 case 'add':
     $cols = array('nik', 'kodeorg', 'shift');
     $data = $param;
     unset($data['numRow']);
     $query = insertQuery($dbname, 'pabrik_5shiftanggota', $data, $cols);
     if (!mysql_query($query)) {
         echo "DB Error : " . mysql_error();
         exit;
Exemplo n.º 2
0
     $theForm1->addEls('kodekegiatan', $_SESSION['lang']['kodekegiatan'], '', 'select', 'L', 25, $optAct);
     $theForm1->_elements[1]->_attr['onchange'] = "updSatuan()";
     $theForm1->addEls('hk', $_SESSION['lang']['hk'], '1', 'textnum', 'R', 10);
     $theForm1->addEls('hasilkerjajumlah', $_SESSION['lang']['volumekontrak'], '0', 'textnum', 'R', 10);
     $theForm1->_elements[3]->_attr['onkeyup'] = "calrppersatuan()";
     $theForm1->addEls('satuan', $_SESSION['lang']['satuan'], $satuan, 'text', 'L', 25);
     $theForm1->_elements[4]->_attr['disabled'] = "true";
     $theForm1->addEls('jumlahrp', $_SESSION['lang']['rupiah'] . ' ' . $_SESSION['lang']['total'], '0', 'textnum', 'R', 10);
     $theForm1->_elements[5]->_attr['onchange'] = 'this.value=remove_comma(this);this.value = _formatted(this)';
     $theForm1->_elements[5]->_attr['onkeyup'] = 'calrppersatuan()';
     $theForm1->addEls('rupiahpersatuan', $_SESSION['lang']['rupiah'] . ' ' . $_SESSION['lang']['per'] . ' ' . $_SESSION['lang']['satuan'], '0', 'textnum', 'R', 10);
     $theForm1->_elements[6]->_attr['disabled'] = 'true';
     # Table
     $theTable1 = new uTable('detailTable', 'Tabel Detail', $cols, $data, $dataShow);
     # FormTable
     $formTab1 = new uFormTable('ftDetail', $theForm1, $theTable1, null, array('notransaksi'));
     $formTab1->_target = "log_slave_spk_detail";
     $formTab1->_numberFormat = '##jumlah';
     $formTab1->_noEnable = '##satuan##rupiahpersatuan';
     $formTab1->_noClearField = '##satuan';
     //$formTab1->_defValue = '##satuan='.$satuan;
     $formTab1->_afterEditMode = "afterEditMode";
     #== Display View
     # Draw Tab
     echo "<fieldset><legend><b>Detail</b></legend>";
     $formTab1->render();
     echo "</fieldset>";
     break;
     /** Add New Detail Data */
 /** Add New Detail Data */
 case 'add':
     }
     # Form
     $theForm3 = new uForm('materialForm', $_SESSION['lang']['form'] . ' ' . $_SESSION['lang']['pakaimaterial'], 2);
     $theForm3->addEls('kodeorg', $_SESSION['lang']['kodeorg'], $theBlok, 'select', 'L', 40, $optOrg);
     $theForm3->_elements[0]->_attr['disabled'] = 'disabled';
     $theForm3->addEls('kwantitasha', $_SESSION['lang']['kwantitasha'], '0', 'textnum', 'R', 10);
     $theForm3->addEls('kodegudang', $_SESSION['lang']['pilihgudang'], '', 'select', 'L', 40, $optGudang);
     $theForm3->_elements[2]->_attr['onchange'] = 'changeGudang()';
     $theForm3->_elements[2]->_attr['disabled'] = 'disabled';
     $theForm3->addEls('kodebarang', $_SESSION['lang']['kodebarang'], '', 'searchBarangGudang', 'L', 20, null, null, null, null, 'kodegudang', 'saldoMaterial');
     $theForm3->addEls('kwantitas', $_SESSION['lang']['kwantitas'], '0', 'textnum', 'R', 10);
     //$theForm3->_elements[4]->_attr['onkeyup'] = 'cekSaldo()';
     # Table
     $theTable3 = new uTable('materialTable', $_SESSION['lang']['tabel'] . ' ' . $_SESSION['lang']['pakaimaterial'], $cols, $data, $dataShow);
     # FormTable
     $formTab3 = new uFormTable('ftMaterial', $theForm3, $theTable3, null, array('notransaksi'));
     $formTab3->_target = "kebun_slave_operasional_material";
     $formTab3->_noClearField = '##kodebarang';
     $formTab3->_noEnable = '##kodebarang##kodeorg##kodegudang##kwantitas';
     // $formTab3->_numberFormat = '##kwantitas';
     $contentFrame[2] = $formTab3->prep();
     #== Display View
     # Draw Tab
     echo "<fieldset><legend><b>Detail</b></legend>";
     drawTab('FRM', $headFrame, $contentFrame, 150, '100%');
     echo "<input type='hidden' id='saldoMaterial' value=0>";
     echo "<input type='hidden' id='satuan' value='" . json_encode($satuan) . "'>";
     echo "<input type='hidden' id='firstSatuan' value='" . reset($satuan) . "'>";
     echo "</fieldset>";
     break;
 case 'updateUMR':
        $theForm->_elements[3]->_attr['onchange'] = 'this.value=remove_comma(this);this.value = _formatted(this)';
        $theForm->addEls('matauang', $_SESSION['lang']['matauang'], 'IDR', 'select', 'L', 25, $optMatauang);
        $theForm->addEls('kurs', $_SESSION['lang']['kurs'], '1', 'textnum', 'R', 10);
        $theForm->addEls('noaruskas', $_SESSION['lang']['noaruskas'], '', 'select', 'L', 25, $optCashFlow);
        $theForm->addEls('kodesegment', $_SESSION['lang']['segment'], '', 'searchSegment', 'L', 25);
        $theForm->addEls('kodekegiatan', $_SESSION['lang']['kodekegiatan'], '', 'select', 'L', 25, $optKegiatan);
        $theForm->addEls('kodeasset', $_SESSION['lang']['aktivadalam'], '', 'select', 'L', 35, $optAsset);
        $theForm->addEls('kodebarang', $_SESSION['lang']['kodebarang'], '', 'searchBarang', 'L', 10);
        $theForm->addEls('nik', $_SESSION['lang']['nik'], '', 'select', 'L', 35, $optKary);
        $theForm->addEls('kodecustomer', $_SESSION['lang']['kodecustomer'], '', 'select', 'L', 35, $optCustomer);
        $theForm->addEls('kodesupplier', $_SESSION['lang']['kodesupplier'], '', 'select', 'L', 35, $optSupplier);
        $theForm->addEls('kodevhc', $_SESSION['lang']['kodevhc'], '', 'select', 'L', 35, $optVhc);
        $theForm->addEls('nodok', $_SESSION['lang']['nodok'], '', 'text', 'L', 30);
        $theForm->addEls('kodeblok', $_SESSION['lang']['kodeblok'], '', 'select', 'L', 30, $optBlok);
        $theForm->addEls('revisi', $_SESSION['lang']['revisi'], $ids['revisi'], 'select', 'L', 25, $optRev);
        $theForm->_elements[17]->_attr['disabled'] = 'disabled';
        # Table
        $theTable = new uTable('jurnalTable', 'Tabel Jurnal Detail', "", $data, $dataShow);
        # FormTable
        $formTab = new uFormTable('ftJurnalDt', $theForm, $theTable, null, array('nojurnal', 'kodejurnal', 'tanggal', 'matauang', 'revisi'));
        $formTab->_target = "keu_slave_jurnal_audit_manage_detail";
        $formTab->_defValue = '##matauang=IDR##kurs=1##kodesegment=##kodebarang=##keterangan=';
        $formTab->_numberFormat = '##jumlah';
        $formTab->_noEnable = '##kodesegment##kodebarang##revisi';
        //        $formTab->_freezeEls = '##revisi';
        //        $formTab->_switchException = array('revisi');
        $formTab->render();
        break;
    default:
        break;
}
Exemplo n.º 5
0
         $dataShow[$key]['nik'] = $optKary[$row['nik']];
         $total += $dataShow[$key]['jumlahpotongan'];
     }
     $data[] = array('tanggal' => '', 'nik' => 'Total', 'jumlahpotongan' => number_format($total), 'keterangan' => '');
     $dataShow[] = array('tanggal' => '', 'nik' => 'Total', 'jumlahpotongan' => number_format($total), 'keterangan' => '');
     $theForm1 = new uForm('detailForm', 'Form Detail', 2);
     $theForm1->addEls('tanggal', $_SESSION['lang']['tanggal'], '', 'text', 'L', 15);
     $theForm1->_elements[0]->_attr['readonly'] = 'readonly';
     $theForm1->_elements[0]->_attr['onmousemove'] = 'setCalendar(this.id)';
     $theForm1->addEls('nik', $_SESSION['lang']['nik'], '', 'select', 'L', 25, $optKary);
     $theForm1->addEls('jumlahpotongan', $_SESSION['lang']['potongan'], '0', 'textnum', 'R', 10);
     $theForm1->addEls('keterangan', $_SESSION['lang']['keterangan'], '', 'text', 'L', 50);
     # Table
     $theTable1 = new uTable('detailTable', 'Tabel Detail', $cols, $data, $dataShow);
     # FormTable
     $formTab1 = new uFormTable('ftDetail', $theForm1, $theTable1, null, array('kodeorg', 'periodegaji'));
     $formTab1->_target = "sdm_slave_potongan_detail";
     $formTab1->setFreezeEls('##tanggal##nik');
     #== Display View
     # Draw Tab
     echo "<fieldset><legend><b>Detail</b></legend>";
     $formTab1->render();
     echo "</fieldset>";
     break;
 case 'add':
     $cols = array('tanggal', 'nik', 'jumlahpotongan', 'keterangan', 'kodeorg', 'periodegaji');
     $data = $param;
     unset($data['numRow']);
     $data['tanggal'] = tanggalsystem($data['tanggal']);
     $periode = $data['periodegaji'];
     $str = "select * from " . $dbname . ".setup_periodeakuntansi where periode='" . $periode . "' and\r\n        kodeorg='" . $_SESSION['empl']['lokasitugas'] . "' and tutupbuku=1";