<!-- body -->
<div class="container contents af283x2" style="width:1260px;">
  <!-- header menu
  ================================================== -->
  <div class="bs-docs-section clearfix">
    <form id="headerTop" class="header form-horizontal  {$noeventClassHeader}">
        <div class="col wp-100" style="height:38px"></div> {*メニュー分あける*}
      <div class="col wp-100 well header">

        <div class="col cucdGrp cuscdGrp wp-100 ">
          <div class="col mcdGrp">
            <label class="control-label wd-070 ">仕入先</label>
            <input name="mcd" type="text" class="form-control input-sm item wd-S mcd eventmcd popMcd keycd clear" maxlength="7" value="{$header.mcd}">
            <input type="button" class="col popbtn cmdMcd" tabindex="-1" value="?"/>
            <input name="mnm" type="text" class="form-control input-sm item wd-L mnm clear " readonly value="{$header.mnm}"/>
          </div>
        </div>

        <div class="col wp-100 date">
          <div class="col ">
            <label class="control-label wd-070 in-required" >計上日</label>
            <input name="adats" type="text" class="form-control input-sm item wd-date adats datepicker clear" maxlength="10" value="{$header.adats}"/>
            <input type="button" class="col popbtn cmdDatepicker" tabindex="-1" value="?"/>
            <div class="col wd-020 center">～</div>
            <input name="adate" type="text" class="form-control input-sm item wd-date adate datepicker clear" maxlength="10" value="{$header.adate}"/>
            <input type="button" class="col popbtn cmdDatepicker" tabindex="-1" value="?"/>
          </div>
        </div>

        <div class="col wp-100">
          <div class="col janGrp">
            <label class="col wd-070 control-label" >JAN</label>
            <input name="jan" type="text" class="form-control input-sm item wd-jan jan inpjan eventjan popJan clear" maxlength="13" value="{$header.jan}">
            <input type="button" class="col popbtn cmdJan" tabindex="-1" value="?"/>
            <input name="gdcls9nm" type="text" class="form-control input-sm item wd-kbn gdcls9nm clear" readonly value="{$header.gdcls9nm}"/>
            <input name="gdjnm" type="text" class="form-control input-sm item wd-gdjnm gdjnm clear" readonly value="{$header.gdjnm}"/>
            <input name="gdjstnd" type="text" class="form-control input-sm item wd-gdjnm gdjstnd clear" readonly value="{$header.gdjstnd}"/>
            <input name="ijan" type="hidden" class="ijan clear" readonly value="{$header.ijan}"/>
          </div>
        </div>

        <div class="col wp-100 ">
          <div class="col ">
            <label class="col wd-070 control-label " >伝票番号</label>
            <input name="vseq" type="text" class="form-control input-sm item wd-M vseq clear" maxlength="13" value="{$header.vseq}"/>
          </div>
          <div class="col wd-040">&nbsp;</div>
          <div class="col ">
            <label class="control-label wd-040 ">区分</label>
            <select name="cls" class="col form-control item input-sm wd-100 cls">
              {foreach from=$listCls item=select name=select}
                <option value="{$select.cd}" {if $header.cls eq $select.cd}selected{/if}>{$select.nm}</option>
              {/foreach}
            </select>
          </div>
          <input type="text" class="dummy"/>
        </div>
      </div>

      <input name="p_title" type="hidden" class="p_title" value="{$header.p_title}" />
      <input name="p_apid" type="hidden" class="p_apid" value="{$header.p_apid}" />

      <div class="col wp-100">
        <div class="col wd-180 right" >
          <label class="control-label wd-060">ページ</label>
          <input id="pagecnt" name="pagecnt" type="text" class="form-control input-sm item wd-SS pagecnt clear number" readonly value="{$header.pagecnt}"><div class="item wd-010">/</div><input id="lastpage" name="lastpage" type="text" class="form-control input-sm item wd-SS lastpage clear number" readonly value="{$header.lastpage}">
        </div>
        <hr>
      </div>
    </form>
  </div>

  <!-- body
  ================================================== -->
  <div class="bs-docs-section">
    <form class="body" >
      <div id="detailTop" class="bs-component col wp-100 {$noeventClassBody}">

        <!-- *** header *** -->
        <div id="detailHeader" class="col wp-100 detailHeader">
          <div class="col wp-100 detailHeader">
            <div class="col wp-100" style="height:18px;">
              <label class="control-label wd-date">計上日</label>
              <label class="control-label wd-date">納品日</label>
              <label class="control-label wd-100">区分</label>
              <label class="control-label wd-S">得意先</label>
              <label class="control-label wd-L"></label>
              <label class="control-label wd-100">伝票番号</label>
              <label class="control-label wd-020">行</label>
              <label class="control-label wd-S text-right">受注数量</label>
              <label class="control-label wd-number text-right">納入単価</label>
              <label class="control-label wd-number text-right">受注金額</label>
            </div>
            <div class="col wp-100" style="height:18px;">
              <label class="control-label wd-SS">倉庫</label>
              <label class="control-label " style="width:125px;"></label>
              <label class="control-label wd-100">センターコード</label>
              <label class="control-label wd-S">店舗</label>
              <label class="control-label wd-L"></label>
              <label class="control-label wd-100">JAN</label>
              <label class="control-label wd-020"></label>
              <label class="control-label wd-S text-right">売上数量</label>
              <label class="control-label wd-number text-right">仕入単価</label>
              <label class="control-label wd-number text-right">売上金額</label>
              <label class="control-label wd-number text-right">入金金額</label>
            </div>
          </div>
        </div>

        <hr>

        <div id="detail" class="col wp-100 x_scroll detailArea">
          <!-- ↑↑↑*** rows ***↑↑↑ -->
        </div>
        <hr>
        <div id="FooterArea" class="col wp-100 footer">
          <div class="col wp-100">
            <div class="col" style="width:783px;">&nbsp;</div>
            <label class="control-label wd-040" > 合計</label>
            <input name="ttpno" type="text" class="form-control item input-sm wd-120 number clear " readonly value="{$header.ttpno|number_format}" />
            <div class="col" style="width:122px;">&nbsp;</div>
            <input name="tamt" type="text" class="form-control item input-sm wd-120 number clear " readonly value="{$header.tamt|number_format}" />
          </div>
        </div>

      </div>
    </form>
  </div>

  <!-- footer
  ================================================== -->

  {include file="./funcMenu.tpl"} <!-- Function Menu -->

</div>
