modify('+1 day'); // 형식화된 날짜 (예: Y-m-d 형식)로 출력 $outdateplusone = $date->format('Y-m-d'); } else { // 출고일이 없을 경우 기본값 $outdateplusone = ''; } $orderdate = isset($_REQUEST['orderdate']) ? $_REQUEST['orderdate'] : ''; // 발주일 $prodCode = isset($_REQUEST['prodCode']) ? $_REQUEST['prodCode'] : ''; // prodCode 받기 $warrantyNum = isset($_REQUEST['warrantyNum']) ? $_REQUEST['warrantyNum'] : ''; // warrantyNum 받기 // 추가된 변수 받기 $delivery = isset($_REQUEST['delivery']) ? $_REQUEST['delivery'] : ''; // 배송 옵션 받기 $outworkplace = isset($_REQUEST['outworkplace']) ? $_REQUEST['outworkplace'] : ''; // 출고 작업장 받기 $outputplace = isset($_REQUEST['outputplace']) ? $_REQUEST['outputplace'] : ''; // 배송 주소지 require_once($_SERVER['DOCUMENT_ROOT'] . "/lib/mydb.php"); require_once($_SERVER['DOCUMENT_ROOT'] . "/estimate/fetch_unitprice.php"); $pdo = db_connect(); try { $sql = "select * from {$DB}.{$tablename} where num = ? "; $stmh = $pdo->prepare($sql); $stmh->bindValue(1, $num, PDO::PARAM_STR); $stmh->execute(); $count = $stmh->rowCount(); if ($count < 1) { print "검색결과가 없습니다.
"; } else { $row = $stmh->fetch(PDO::FETCH_ASSOC); include "_row.php"; // output_extra 테이블에서 데이터 불러오기 require_once $_SERVER['DOCUMENT_ROOT'] . '/output/load_output_extraTable.php'; } } catch (PDOException $Exception) { print "오류: " . $Exception->getMessage(); } // 전체수량 합산 $shutterSurang = 0; // 셔터 수량 합계를 저장할 변수 초기화 $shutterSurang_slat = 0; // 철재 $lotVolumn = 0; // 길이, 높이 $screen_width = []; $screen_height = []; $slat_width = []; $slat_height = []; // JSON 데이터를 배열로 디코딩 $eList_screenData = json_decode($eList_screen, true); $eList_slatData = json_decode($eList_slat, true); // 초기화 $eList = []; if (is_array($eList_screenData) && !empty($eList_screenData)) { foreach ($eList_screenData as $item) { $shutterSurang += isset($item['col14']) ? (int)$item['col14'] : 0; $screen_width[] = isset($item['col8']) ? intval($item['col8']) : 0; $screen_height[] = isset($item['col9']) ? intval($item['col9']) : 0; } $screenorslat = '스크린'; $eList = $eList_screenData; // eList 설정 if ($shutterSurang > 0) { $lotVolumn = $shutterSurang; } } if (is_array($eList_slatData) && !empty($eList_slatData)) { foreach ($eList_slatData as $item) { $shutterSurang_slat += isset($item['col15']) ? (int)$item['col15'] : 0; $slat_width[] = isset($item['col8']) ? intval($item['col8']) : 0; $slat_height[] = isset($item['col9']) ? intval($item['col9']) : 0; } $screenorslat = '철재'; $eList = $eList_slatData; // eList 설정 if ($shutterSurang_slat > 0) { $lotVolumn = $shutterSurang_slat; } } // echo '
';
// print_r($eList);
// echo '
'; // echo '
';
// print_r($lotVolumn);
// echo '
'; // 각 배열 요소가 모두 빈 문자열인지 확인하는 함수 function isEmptyData($dataArray) { if (!is_array($dataArray)) { return true; } foreach ($dataArray as $item) { // 객체 형태로 저장된 경우 (연관 배열) if (is_array($item) && isset($item['value'])) { if (trim($item['value']) !== '') { return false; // 하나라도 빈값이 아니면 false } } else { // 만약 단순 값이라면 if (trim($item) !== '') { return false; } } } return true; } $jsonFilePath = "../output/real_json/" . $num . ".json"; if (file_exists($jsonFilePath)) { $data = file_get_contents($jsonFilePath); $realiList = json_decode($data, true); // 검사할 필드 목록 (저장할 때 사용한 모든 키) $fields = [ 'inputValue', 'beforeWidth', 'beforeHeight', 'afterWidth', 'afterHeight', 'recordComent', 'exceptCheck' ]; $allEmpty = true; foreach ($fields as $field) { // 해당 필드가 존재하고, 값이 비어있지 않다면 전체가 빈 상태가 아님. if (isset($realiList[$field]) && !isEmptyData($realiList[$field])) { $allEmpty = false; break; } } // 모든 지정된 필드가 비어있다면 기본값으로 설정 if ($allEmpty) { $realiList = '{}'; } } else { $realiList = '{}'; // 파일이 없으면 기본값 사용 } echo ""; $prodName = ""; // 상품명을 저장할 변수 // if문을 사용하여 제품 코드에 따른 상품명 설정 if ($prodCode == 'KSS01') { $prodName = '국민방화 스크린 셔터'; $arrayWidth = $screen_width[$page-1] ; $arrayHeight = $screen_height[$page-1] ; } elseif ($prodCode == 'KSE01') { $prodName = '국민방화 스크린 셔터'; $arrayWidth = $screen_width[$page-1] ; $arrayHeight = $screen_height[$page-1] ; } elseif ($prodCode == 'KWE01') { $prodName = '국민방화 스크린 플러스 셔터'; $arrayWidth = $screen_width[$page-1] ; $arrayHeight = $screen_height[$page-1] ; } elseif ($prodCode == 'KD-SL60') { $prodName = '국민방화 스틸 셔터'; $arrayWidth = $slat_width[$page-1] ; $arrayHeight = $slat_height[$page-1] ; } elseif ($prodCode == 'KTE01') { $prodName = '국민방화 스틸 셔터'; $arrayWidth = $slat_width[$page-1] ; $arrayHeight = $slat_height[$page-1] ; } elseif ($prodCode == 'KQTS01') { $prodName = '국민방화 투시형 스틸 셔터'; $arrayWidth = $slat_width[$page-1] ; $arrayHeight = $slat_height[$page-1] ; } else { $prodName = "유효하지 않은 제품 코드입니다."; } $pageWidth = $arrayWidth; $pageHeight = $arrayHeight; // 품질담당자 및 관리자인 경우 권한 부여 $QCadmin = false ; if($user_name=='이세희' || $user_name=='개발자' || $user_name=='함신옥' || $user_name=='노완호' ) $QCadmin = true ; ?>

경동기업
자동방화셔터(인정제품) 제품검사요청서
접수일
기본정보
발주처(업체명) 담당자
발주번호 담당자 연락처
현장명 납품일
현장주소
셔터총수량
(개소)
검사방문요청일(전화예정)
*필수 입력사항*
건축공사장 현장
대지위치 지번
자재유통업자
성명 회사명
회사주소 전화번호
공사시공자
(건설사)
성명 회사명
회사주소 전화번호
공사감리자
성명 회사명
회사주소 전화번호
'; for ($i = 1; $i <= 13; $i++) { switch ($i) { case 1: echo ''; break; case 2: echo ''; break; case 3: echo ''; break; case 4: echo ''; break; case 5: echo ''; break; case 6: echo ''; break; case 7: echo ''; break; case 8: echo ''; break; case 9: echo ''; break; } } echo ''; $row_count ++ ; } ?>
검사대상 사전 고지 정보
일련
번호
층수 부호 오픈사이즈 변경사유
발주규격 시공후규격
가로 세로 가로 세로