Update Laporan Hasil(Header :, Ubah Format tgl, Ubah TTD dr Komang)

This commit is contained in:
mikael-zakaria 2025-03-15 00:05:50 +08:00
parent 69fcc8e464
commit aa31a93939
4 changed files with 25 additions and 23 deletions

View File

@ -489,10 +489,10 @@ class PrintResult extends BaseController {
if ($hostordernumber[0] == 'B' || $hostordernumber[0] == 'Z') {
if ($uservalidator != null){
$doctor = "dr. I Komang Parwata, SpPK Subip.B.D.K.T.(K)";
$doctor = "dr. I Komang Parwata, SpPK Subsp.B.D.K.T.(K)";
$analyst = "Mrs. Gusti Ayu Riska Mastari";
$noreg = "Reg. No: 570/SIPDS/0001/I/DPMPTSP/2023";
$signature = "<td class='margin_right'><img src='http://cmod.id/assets/img/ttd_dr_komang.png' alt=''></td>";
$signature = "<td class='margin_right_img_bali'><img id='ttd_k' src='http://cmod.id/assets/img/ttdnewdokpar3.png' alt=''></td>";
$enteredby = "<td><u>Entered By</u></td>";
$labtech = "<td>Lab Technician</td>";
$verifiedby = "<td class='margin_right'><u>Verified By</u></td>";
@ -556,7 +556,7 @@ class PrintResult extends BaseController {
$birth_date = $data[0]['BIRTHDATE'];
$birth_date = \DateTime::createFromFormat('Y-m-d H:i:s.u', $birth_date);
if ($birth_date) { $birth_date = $birth_date->format('d-m-Y'); }
if ($birth_date) { $birth_date = $birth_date->format('d F Y'); }
if ($hostordernumber[0] == 'B' || $hostordernumber[0] == 'Z') {
$branch = "PMG Bali";
@ -569,7 +569,7 @@ class PrintResult extends BaseController {
$collection_date = $data[0]['COLLECTIONDATE'];
$dateTimeCol = \DateTime::createFromFormat('Y-m-d H:i:s.u', $collection_date);
if ($dateTimeCol) {
$collection_date = $dateTimeCol->format('d-m-Y H:i');
$collection_date = $dateTimeCol->format('d F Y H:i');
}
$result_date = end($resultData);
@ -584,7 +584,7 @@ class PrintResult extends BaseController {
if ($year < 2020) {
$result_date = "";
} else {
$result_date = $dateTimeRes->format('d-m-Y H:i');
$result_date = $dateTimeRes->format('d F Y H:i');
}
// $result_date = $dateTimeRes->format('d-m-Y H:i');
@ -621,35 +621,28 @@ class PrintResult extends BaseController {
</tr>
<tr>
<td style='width:50%' align='left' class='left-pad'><pre><b>RM Number:</b> $rm_number</pre></td>
<td style='width:50%' align='left' class='left-pad'><pre><b>Visit Number:</b> $hostordernumber</pre></td>
<td style='width:50%' align='left' class='left-pad'><pre><b>RM Number :</b> $rm_number</pre></td>
<td style='width:50%' align='left' class='left-pad'><pre><b>Visit Number :</b> $hostordernumber</pre></td>
</tr>
<tr>
<td align='left' class='left-pad'><pre><b>Name:</b> $first_name $last_name</pre></td>
<td align='left' class='left-pad'><pre><b>Company:</b> $company</pre></td>
<td align='left' class='left-pad'><pre><b>Name :</b> $first_name $last_name</pre></td>
<td align='left' class='left-pad'><pre><b>Company :</b> $company</pre></td>
</tr>
<tr>
<td align='left' class='left-pad'><pre><b>DOB:</b> $birth_date</pre></td>
<td align='left' class='left-pad'><pre><b>Visit Type:</b> $visittype</pre></td>
<td align='left' class='left-pad'><pre><b>DOB :</b> $birth_date</pre></td>
<td align='left' class='left-pad'><pre><b>Visit Type :</b> $visittype</pre></td>
</tr>
<tr>
<td align='left' class='left-pad'><pre><b>Gender:</b> $sex</pre></td>
<td align='left' class='left-pad'><pre><b>Order Date / Time:</b> $collection_date</pre></td>
<td align='left' class='left-pad'><pre><b>Gender :</b> $sex</pre></td>
<td align='left' class='left-pad'><pre><b>Order Date / Time :</b> $collection_date</pre></td>
</tr>
<tr>
<td align='left' class='left-pad'><pre><b>Branch:</b> $branch</pre></td>
<td align='left' class='left-pad'><pre><b>Result Date / Time:</b> $result_date</pre></td>
<td align='left' class='left-pad'><pre><b>Branch :</b> $branch</pre></td>
<td align='left' class='left-pad'><pre><b>Result Date / Time :</b> $result_date</pre></td>
</tr>
</table>

View File

@ -41,7 +41,7 @@ body {
margin: 0;
padding: 0;
/* height: 18.47cm; */
height: 19.60cm;
height: 18.40cm;
}
.result {
/* table-layout:fixed; */
@ -179,6 +179,11 @@ tr.chapter td {
text-align: right;
/* background-color: aqua; */
}
.table_footer tr td.margin_right_img_bali {
padding-right: 55px;
text-align: right;
/* background-color: aqua; */
}
.table_footer tr td.margin_right_sby_img {
padding-right: 5px;
@ -200,6 +205,10 @@ tr.chapter td {
#ttd_p {
width: 25%;
}
#ttd_k {
width: 23%;
}
@media print {
@page { margin:0; size:210mm 297mm; }

Binary file not shown.

After

Width:  |  Height:  |  Size: 173 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB