5) { sleep(1); header("Location:" . $WebSite . "login/login_form.php"); exit; } include $_SERVER['DOCUMENT_ROOT'] . '/load_header.php'; $title_message = '수입검사 관리대장'; // 품질담당자 및 관리자인 경우 권한 부여 $QCadmin = 0 ; if($user_name=='이세희' || $user_name=='개발자' || $user_name=='함신옥' || $user_name=='노완호' ) $QCadmin = 1 ; ?> <?=$title_message?> query($sql); $itemNames = $stmh->fetchAll(PDO::FETCH_COLUMN, 0); // item_name 컬럼의 값을 배열로 저장 // 중복 제거 $uniqueItemNames = array_unique($itemNames); // 결과 출력 (예: 배열 확인용) // print_r($uniqueItemNames); } catch (PDOException $e) { echo "Error: " . $e->getMessage(); } // 현재 날짜 $currentDate = date("Y-m-d"); // fromdate 또는 todate가 빈 문자열이거나 null인 경우 기본 날짜 설정 if ($fromdate === "" || $fromdate === null || $todate === "" || $todate === null) { $fromdate = date("Y-m-d", strtotime("-32 weeks", strtotime($currentDate))); // 16주 전 $todate = date("Y-m-d", strtotime("+3 months", strtotime($currentDate))); // 3개월 후 $Transtodate = $todate; } else { $Transtodate = $todate; // 설정된 기간 } $SettingDate = "inspection_date"; // 정렬 기준 날짜 $order = " ORDER BY inspection_date DESC, lot_no asc "; if(checkNull($search)) { $sql = "SELECT * FROM {$DB}.{$tablename} WHERE inspection_date BETWEEN date('$fromdate') AND date('$Transtodate') AND searchtag LIKE '%$search%' AND is_deleted IS NULL " . $order; } else { $sql = "SELECT * FROM ".$DB.".".$tablename . " WHERE inspection_date BETWEEN date('$fromdate') AND date('$Transtodate') AND is_deleted IS NULL " . $order; } try { $stmh = $pdo->query($sql); $total_row = $stmh->rowCount(); ?>
'; print '
'; } else { print '
'; print '
'; } ?>
    
신규 작성시 로트번호는 년도(2자리) + 월(2자리) + 일(2자리) - 일련번호 형태로 초기 생성, 예시) 241128-01 서버 생성완료 :
    ~    
 
 
fetch(PDO::FETCH_ASSOC)) { include '_row.php'; $specification_clean = preg_replace('/\s+/', ' ', $specification); // 연속된 공백을 하나의 공백으로 변경 $remarks_clean = preg_replace('/\s+/', ' ', $remarks); // 연속된 공백을 하나의 공백으로 변경 // JSON을 배열로 디코딩 $iListArray = json_decode($iList, true); // resultJudgement 값을 찾기 위한 루프 $resultJudgement = null; foreach ($iListArray as $item) { // 배열에서 inputItems를 가진 항목이 있는지 확 if (isset($item['inputItems']['resultJudgement'])) { $resultJudgement = $item['inputItems']['resultJudgement']; break; // 값을 찾으면 루프 종료 } } ?> getMessage(); } ?>
번호 로트번호 판정 성적서 소진 품목코드 검사일 납품업체 품목명 규격 단위 입고량 자재번호 제조사 비고 매입가
(VAT별도)
중량(KG)
성적서