You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
128 lines
3.2 KiB
PHTML
128 lines
3.2 KiB
PHTML
@extends('temp.admin')
|
|
@php
|
|
use NN\Module\DB;
|
|
use NN\Module\Perusahaan as perush;
|
|
$demo = perush::datalogin()['data'][0]->demo;
|
|
$set = [
|
|
"title" => "Setting"
|
|
, "subtitle" => "Kode Simpanan"
|
|
, "thead" => [
|
|
"#","Transaksi","Kode","Nama Kode","Nama Row"
|
|
]
|
|
];
|
|
|
|
@endphp
|
|
@section("content")
|
|
|
|
@include("temp.temp1", $set)
|
|
<noscript id="datainternal">{!! json_encode(DB::query_result_object("SELECT kode id, keterangan text FROM dept")) !!}</noscript>
|
|
@endsection
|
|
|
|
@section('script')
|
|
<script>
|
|
|
|
var objectForm = {
|
|
title : function(){
|
|
return 'Kode Simpanan'
|
|
},
|
|
table :"jpinjam",
|
|
idform :"containerforms",
|
|
newkode: ``,
|
|
kode: 'kode',
|
|
view: ['typetransaksi','kode', 'nama','rw'],
|
|
custome: {
|
|
status: function(a){
|
|
if(a == '0'){
|
|
return 'Active';
|
|
}else{
|
|
return 'Tidak Active';
|
|
}
|
|
}
|
|
},
|
|
oncreate: function(a){
|
|
_selectNull('type');
|
|
globalThis['kode'].parent.removeAttribute('readonly');
|
|
},
|
|
onupdate: function(dt){
|
|
globalThis['kode'].parent.setAttribute('readonly', true);
|
|
},
|
|
dataSelect: ["*"],
|
|
queryTemp: "SELECT {select} FROM jpinjam || ORDER BY kode ASC",
|
|
validasiForm: ['kode','nama','rw'],
|
|
data: [
|
|
{
|
|
title: 'Kode',
|
|
type: 'text',
|
|
name: 'kode',
|
|
row: 12,
|
|
readonly: false,
|
|
action: function(){
|
|
|
|
},
|
|
}
|
|
,{
|
|
title: 'Type Simpanan',
|
|
type: 'select',
|
|
name: 'typetransaksi',
|
|
row: 12,
|
|
data: [{id:'simpanan', text:'Transaksi Simpanan'},{id:'angsuran', text:'Transaksi Angsuran'}],
|
|
readonly: false,
|
|
action: function(){
|
|
|
|
},
|
|
}
|
|
,{
|
|
title: 'Type',
|
|
type: 'select',
|
|
name: 'type',
|
|
row: 12,
|
|
data: [{id:'induk', text:'Simpanan Induk'},{id:'usp', text:'Simpanan USP'}],
|
|
readonly: false,
|
|
action: function(){
|
|
|
|
},
|
|
}
|
|
,{
|
|
title: 'Nama',
|
|
type: 'text',
|
|
name: 'nama',
|
|
row: 12,
|
|
readonly: false,
|
|
action: function(){
|
|
|
|
},
|
|
}
|
|
,{
|
|
title: 'Row Nama',
|
|
type: 'text',
|
|
name: 'rw',
|
|
row: 12,
|
|
readonly: false,
|
|
action: function(){
|
|
|
|
},
|
|
}
|
|
]
|
|
};
|
|
@if($demo == 1)
|
|
objectForm.disableEditor = true;
|
|
@endif
|
|
</script>
|
|
@include('temp.crudpinjaman')
|
|
@endsection
|
|
@section('css')
|
|
<style>
|
|
.dataTable tr td:nth-child(1){
|
|
white-space: nowrap;
|
|
max-width: 60px !important;
|
|
min-width: 60px !important;
|
|
width: 60px !important;
|
|
}
|
|
</style>
|
|
<style>
|
|
.dataTable tr td:nth-child(2){
|
|
white-space: nowrap;
|
|
}
|
|
</style>
|
|
@endsection
|