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=''>";
|
$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
|
// 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") {
|
if ($uservalidator == "MG") {
|
||||||
$analyst = "Mrs. Mega Rahayu Ningsih";
|
$analyst = "Mrs. Mega Rahayu Ningsih";
|
||||||
} else if ($uservalidator == "ACP") {
|
} else if ($uservalidator == "ACP") {
|
||||||
@ -33,7 +36,7 @@ class PrintResult extends BaseController {
|
|||||||
$noreg = " ";
|
$noreg = " ";
|
||||||
}
|
}
|
||||||
|
|
||||||
if($data[0] != null) {
|
if ($data[0] != null) {
|
||||||
|
|
||||||
$accessnumber = $data[0]['SP_ACCESSNUMBER'];
|
$accessnumber = $data[0]['SP_ACCESSNUMBER'];
|
||||||
|
|
||||||
|
|||||||
@ -4,6 +4,20 @@
|
|||||||
<?php
|
<?php
|
||||||
$now = date('Y-m-d H:i');
|
$now = date('Y-m-d H:i');
|
||||||
$visitdate = $now;
|
$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>
|
<style>
|
||||||
.table > tbody > tr > td {
|
.table > tbody > tr > td {
|
||||||
@ -53,7 +67,7 @@ $visitdate = $now;
|
|||||||
<table class='table table-sm table-borderless'>
|
<table class='table table-sm table-borderless'>
|
||||||
<tr>
|
<tr>
|
||||||
<td>Visit#</td>
|
<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>Visit Date</td>
|
||||||
<td><input type="datetime" id="visitdate" class="form-control form-control-sm" value='<?=$visitdate;?>'></td>
|
<td><input type="datetime" id="visitdate" class="form-control form-control-sm" value='<?=$visitdate;?>'></td>
|
||||||
</tr>
|
</tr>
|
||||||
@ -61,8 +75,7 @@ $visitdate = $now;
|
|||||||
<td>Location</td>
|
<td>Location</td>
|
||||||
<td colspan='3'>
|
<td colspan='3'>
|
||||||
<select id='loc' class='form-control'>
|
<select id='loc' class='form-control'>
|
||||||
<option value='DPS'>Denpasar</option>
|
<?=$locationdropdown;?>
|
||||||
<option value='SBY'>Surabaya</option>
|
|
||||||
</select>
|
</select>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user