Files
sam-kd/bendingfee/_request.php

28 lines
1.2 KiB
PHP
Raw Normal View History

<?php
$num = $_REQUEST['num'] ?? NULL;
$major_category = $_REQUEST['major_category'] ?? NULL; // 대분류
$seconditem = $_REQUEST['seconditem'] ?? NULL; // 중분류
$model_name = $_REQUEST['model_name'] ?? NULL; // 모델명
$spec = $_REQUEST['spec'] ?? NULL; // 규격
$finishing_type = $_REQUEST['finishing_type'] ?? NULL; // 마감타입
$unitprice = $_REQUEST['unitprice'] ?? NULL; // 산출단가/M
$description = $_REQUEST['description'] ?? ''; // 메모
$created_at = $_REQUEST['created_at'] ?? date('Y-m-d H:i:s');
$updated_at = $_REQUEST['updated_at'] ?? NULL; // 수정일
$update_log = $_REQUEST['update_log'] ?? NULL;
$is_deleted = $_REQUEST['is_deleted'] ?? 0;
$priceDate = $_REQUEST['priceDate'] ?? '';
$check_type = $_REQUEST['check_type'] ?? '';
$box_width = $_REQUEST['box_width'] ?? '';
$box_height = $_REQUEST['box_height'] ?? '';
$front_bottom_width = $_REQUEST['front_bottom_width'] ?? '';
$rail_width = $_REQUEST['rail_width'] ?? '';
$exit_direction = $_REQUEST['exit_direction'] ?? '';
// savejson 컬럼: 전달받은 값이 배열이면 JSON 문자열로 변환, 아니면 그대로 사용
$savejson = $_REQUEST['savejson'] ?? [];
if (is_array($savejson)) {
$savejson = json_encode($savejson, JSON_UNESCAPED_UNICODE);
}
?>