Perbaikan perbaikan null print result dan Create order sesuaikan berdasarkan lokasi user pada bagian Visir# dan Location
This commit is contained in:
parent
4f0d34c635
commit
a0fe7505ec
@ -19,7 +19,10 @@ class PrintResult extends BaseController {
|
||||
$signature = "<img id='ttd_p' src='http://cmod.id/assets/img/ttd_dr_putri.jpg' alt=''>";
|
||||
|
||||
// Digunakan untuk mengetahui user yang melakukan Validasi khusus analis surabaya
|
||||
$uservalidator = $resultData[0]['validator'];
|
||||
foreach($resultData as $result) {
|
||||
$uservalidator = $result['validator'];
|
||||
break;
|
||||
}
|
||||
if ($uservalidator == "MG") {
|
||||
$analyst = "Mrs. Mega Rahayu Ningsih";
|
||||
} else if ($uservalidator == "ACP") {
|
||||
@ -33,7 +36,7 @@ class PrintResult extends BaseController {
|
||||
$noreg = " ";
|
||||
}
|
||||
|
||||
if($data[0] != null) {
|
||||
if ($data[0] != null) {
|
||||
|
||||
$accessnumber = $data[0]['SP_ACCESSNUMBER'];
|
||||
|
||||
|
||||
@ -4,6 +4,20 @@
|
||||
<?php
|
||||
$now = date('Y-m-d H:i');
|
||||
$visitdate = $now;
|
||||
$usercityid = session()->get('usercityid');
|
||||
if ($usercityid == 1) {
|
||||
$placeholdervisitnumber = "placeholder='BV........'";
|
||||
$locationdropdown = "
|
||||
<option value='DPS'>Denpasar</option>
|
||||
<option value='SBY'>Surabaya</option>
|
||||
";
|
||||
} else if ($usercityid == 2){
|
||||
$placeholdervisitnumber = "placeholder='SV........'";
|
||||
$locationdropdown = "
|
||||
<option value='SBY'>Surabaya</option>
|
||||
<option value='DPS'>Denpasar</option>
|
||||
";
|
||||
}
|
||||
?>
|
||||
<style>
|
||||
.table > tbody > tr > td {
|
||||
@ -53,7 +67,7 @@ $visitdate = $now;
|
||||
<table class='table table-sm table-borderless'>
|
||||
<tr>
|
||||
<td>Visit#</td>
|
||||
<td><input type="text" id="visitnumber" class="form-control form-control-sm" oninput="this.value = this.value.toUpperCase();"></td>
|
||||
<td><input type="text" <?=$placeholdervisitnumber;?> id="visitnumber" class="form-control form-control-sm" oninput="this.value = this.value.toUpperCase();"></td>
|
||||
<td>Visit Date</td>
|
||||
<td><input type="datetime" id="visitdate" class="form-control form-control-sm" value='<?=$visitdate;?>'></td>
|
||||
</tr>
|
||||
@ -61,8 +75,7 @@ $visitdate = $now;
|
||||
<td>Location</td>
|
||||
<td colspan='3'>
|
||||
<select id='loc' class='form-control'>
|
||||
<option value='DPS'>Denpasar</option>
|
||||
<option value='SBY'>Surabaya</option>
|
||||
<?=$locationdropdown;?>
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user