| 번호 |
접수 |
요청 |
완료 |
발주처 |
제품종류 |
제품코드 |
수량(틀) |
현장명 |
메모 |
fetch(PDO::FETCH_ASSOC)) {
include '_row.php';
if($ACIregDate!="") {
$week = array("(일)" , "(월)" , "(화)" , "(수)" , "(목)" , "(금)" ,"(토)") ;
$ACIregDate = $ACIregDate . $week[ date('w', strtotime($ACIregDate) ) ] ;
}
$shutterSurang = 0; // 셔터 수량 합계를 저장할 변수 초기화
$shutterSurang_slat = 0; // 철재
// JSON 데이터를 배열로 디코딩
$eList_screenData = json_decode($eList_screen, true);
$eList_slatData = json_decode($eList_slat, true);
// echo '';
// print_r($eList_screen);
// echo '
';
// echo '';
// print_r($eList_slat);
// echo '
';
// 반복문을 통해 col14 값을 누적
if (is_array($eList_screenData)) {
foreach ($eList_screenData as $item) {
$shutterSurang += isset($item['col14']) ? (int)$item['col14'] : 0;
}
}
// slat 반복문을 통해 col15 값을 누적 slat
if (is_array($eList_slatData)) {
foreach ($eList_slatData as $item) {
$shutterSurang_slat += isset($item['col15']) ? (int)$item['col15'] : 0;
}
}
// 스크린,철재스라트 구분하기 JSON 데이터가 비어있는지 확인하여 값 설정
if (!empty(json_decode($eList_screen, true))) {
$separate_item = '스크린';
} elseif (!empty(json_decode($eList_slat, true))) {
$separate_item = '철재스라트';
}
?>
| = $start_num ?> |
= $ACIregDate ?> |
= $ACIaskDate === '0000-00-00' ? '' : $ACIaskDate ?> |
= $ACIdoneDate === '0000-00-00' ? '' : $ACIdoneDate ?> |
= $secondord ?> |
= $separate_item ?>
|
= $prodCode ?> |
= ($shutterSurang + $shutterSurang_slat) ?> |
= $outworkplace ?> |
= $ACImemo ?> |
getMessage();
}
?>