From ce3fc19b49ee0bf5652671096564c974bdf12a93 Mon Sep 17 00:00:00 2001 From: mikael-zakaria Date: Fri, 29 Nov 2024 19:08:48 +0800 Subject: [PATCH] update print barcode_2 --- app/Controllers/Prints.php | 21 ++++++++++++--------- 1 file changed, 12 insertions(+), 9 deletions(-) diff --git a/app/Controllers/Prints.php b/app/Controllers/Prints.php index 8013279..99b8af9 100644 --- a/app/Controllers/Prints.php +++ b/app/Controllers/Prints.php @@ -82,6 +82,9 @@ class Prints extends BaseController { public function sample($access, $sample) { + $access = (string) $access; + $sample = (string) $sample; + // Buka Mapping Drive exec('net use L: \\\\10.148.5.20\\Labelshare /user:Administrator 2>&1', $output, $return_var); @@ -98,15 +101,15 @@ q400 Q224,24+0 I8,A,001 D10 -A10,3,0,3,1,1,N,'MRS. MIKAELA LETTA XABRIANA' -A10,25,0,1,1,1,N,'M 22Y' -A10,65,0,1,1,1,N,'$access' -A288,65,0,1,1,1,N,'2402084063' -B90,30,0,1,2,8,70,N,'2402084063' -A10,110,0,2,1,1,N,'PSA,HDL,LDL,BUN,SGOT' -A10,131,0,1,1,1,N,'LIS : 0978658' -A10,145,0,1,1,1,N,'HIS : 1252434' -A250,140,0,3,1,1,N,'$sample' +A10,3,0,3,1,1,N,\"MRS. MIKAELA LETTA XABRIANA\" +A10,25,0,1,1,1,N,\"M 22Y\" +A10,65,0,1,1,1,N,\"$access\" +A288,65,0,1,1,1,N,\"2402084063\" +B90,30,0,1,2,8,70,N,\"2402084063\" +A10,110,0,2,1,1,N,\"PSA,HDL,LDL,BUN,SGOT\" +A10,131,0,1,1,1,N,\"LIS : 0978658\" +A10,145,0,1,1,1,N,\"HIS : 1252434\" +A250,140,0,3,1,1,N,\"$sample\" P1";