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