<?php
/*
 * @Overview 생산실적 등록
 * @History 2024-03-04 / 최승연 / 최초작성
 */
$cate_id = "REG_ORDER_RESULT";
include_once "{$_SERVER['DOCUMENT_ROOT']}/common.inc.php";
include_once _SVC_INC_PATH_ . "/header.php";
?>

<div class="container">
  <!-- 사이드바 불러오기 -->
  <?php include_once _SVC_INC_PATH_ . "/sidebar.php"; ?>
  <!-- 사이드바 불러오기 종료 // -->

    <!-- 검색 조회 및 저장 -->
    <div class="table-header">
      <div class="inner-container">

        <!-- 검색 조건 (인풋) -->
        <div class="search-container">

          <div class="input-container flexcol gap06">
            <div class="input-box">
              <input type="text" id="WO_NO_P" placeholder="생산오더">
              <span  onclick="popOrder({WO_NO:'WO_NO_P'})"><?php include _SVC_INC_PATH_ . '/img/popupIcon.php' ?></span>
            </div>
          </div>

          <div class="input-container flexcol gap06">
            <div class="input-box">
              <input type="text" id="ITEM_CD_P" placeholder="품목">
              <span  onclick="popItem({ITEM_CD:'ITEM_CD_P'})" ><?php include _SVC_INC_PATH_ . '/img/popupIcon.php' ?></span>
            </div>
          </div>

          <!-- <div class="input-container flexcol gap06" >
            <div class="input-box">
              <input type="text" id="BP_CD" placeholder="고객사">
              <span onclick="popClient({BP_CD:'BP_CD'})"><?php //include _SVC_INC_PATH_ . '/img/popupIcon.php' ?></span>
            </div>
          </div> -->

          <div class="input-container flexrow">
            <label for="date_st" style="display:flex; align-items:center; text-wrap: nowrap;">작업일:&nbsp</label>
            <div>
              <div class="input-box">
                <input type="date" max="9999-12-31" id="date_st">
              </div>
              <div class="input-box">
                <input type="date"  max="9999-12-31" id="date_ed">
              </div>
            </div>
          </div>
          
          <div class="input-container flexcol gap06">
            <div class="input-box">
              <input type="text" id="OP_CD_P" placeholder="공정">
              <span onclick="popOper({OP_CD:'OP_CD_P'})"><?php include _SVC_INC_PATH_ . '/img/popupIcon.php' ?></span>
            </div>
          </div>

          <div class="input-container flexcol gap06" >
            <div class="input-box">
              <input type="text" id="FACLT_CD_P" placeholder="설비">
              <span onclick="popFacility({FACLT_CD:'FACLT_CD_P'})"><?php include _SVC_INC_PATH_ . '/img/popupIcon.php' ?></span>
            </div>
          </div>

        </div>
        <!-- 검색 조건 종료 // -->

        <!-- 조회 및 저장 버튼 -->
        <div class="button-container">
          <div class="button-box">
            <button class="point-btn" id="excel_data">엑셀 다운로드</button>
            <button class="point-btn" id="filter_btn">조회</button>
            <button class="point-btn" id="put_btn">저장</button>
          </div>
        </div>
        <!-- 조회 및 저장 버튼 종료 // -->

      </div>
      <!-- 검색 조회 및 저장 종료 // -->
    </div>
    <!-- 테이블 헤더 종료 // -->



    <!-- 컨텐츠 컨테이너 -->
    <div class="contents-container">

      <!-- 테이블 컨테이너 -->
      <div class="table-container">
        <div class="inner-container flexcol gap20"> <!-- 테이블 컨텐츠 나오는 부분 vh로 높이 가로 맞춰놓기 -->

          <!-- 테이블 헤더 (제목, 추가, 삭제, 저장) -->
          <div class="table-box main-table flex-1 " id="order_report_table">
            <div class="table-title">
              <p class="title">
                생산 실적
                <!-- <span> ※더블클릭하면 수정창이 열립니다.</span> -->
              </p>

              <!-- 버튼 -->
              <div class="button-box">
                <button class="add-btn reverse-btn">
                  <?php include _SVC_INC_PATH_ . '/img/add.php' ?>
                  추가
                </button>
                <button class="remove-btn reverse-btn">
                  <?php include _SVC_INC_PATH_ . '/img/delete.php' ?>
                  삭제
                </button>
              </div>
              <!-- 버튼 종료 // -->

            </div>
            <!-- 테이블 헤더 종료 // -->

            <!-- 테이블 -->
            <div class="tb-height-full">
              <div class="hy-table group-table" id="main_table"></div>
            </div>
          </div>
          <!-- 테이블 종료 // -->

        </div>
      </div>
      <!-- 테이블 컨테이너 종료 // -->

    </div>
    <!-- 컨텐츠 컨테이너 종료 // -->

  </div>
  <!-- 메인 섹션 종료 // -->
</div>


<?php include_once _SVC_INC_PATH_ . "/footer_common.php"; ?>
<script src="./reg_order_result.js"></script>
<?php
include_once _SVC_INC_PATH_ . "/footer.php";
include_once _SVC_INC_PATH_ . "/menualBtn.php";