<!-- body -->
<div class="container contents af226x" 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 wp-100">得意先、又は計上日のどちらかを必須入力してください</div>
        <div class="col cucdGrp cuscdGrp wp-100 ">
          <div class="col wd-500">
            <label class="control-label wd-080 poplabel in-required">得意先</label>
            <input name="cucd" type="text" class="form-control input-sm item wd-S cucd eventcucd popCucd keycd clear" maxlength="7" value="{$header.cucd}">
            <input type="button" class="col popbtn cmdCucd" tabindex="-1" value="?"/>
            <input name="cunm" type="text" class="form-control input-sm item wd-L cunm clear " readonly value="{$header.cunm}"/>
            <div class="col wd-SS">&nbsp;</div>
          </div>
          <label class="control-label wd-060 poplabel">店舗</label>
          <input name="cuscd" type="text" class="form-control input-sm item wd-S cuscd popCuscd clear eventcuscd" maxlength="6" value="{$header.cuscd}">
          <input type="button" class="col popbtn cmdCuscd" tabindex="-1" value="?"/>
          <input name="spnm" type="text" class="form-control input-sm item wd-L spnm clear " readonly value="{$header.spnm}"/>
          <div class="col wd-SS">&nbsp;</div>
          <label class="control-label wd-030" >区分</label>
          <select name="cls" class="col form-control input-sm wd-130 cls clear">
            <option value="ALL" {if $header.cls eq "ALL"}checked{/if}>全て</option>
            <option value="01" {if $header.cls eq "01"}checked{/if}>売上</option>
            <option value="02" {if $header.cls eq "02"}checked{/if}>返品</option>
            <option value="03" {if $header.cls eq "03"}checked{/if}>値引</option>
            <option value="04" {if $header.cls eq "04"}checked{/if}>直送</option>
          </select>
        </div>
        <div class="col wp-100 ktktcdGrp">
          <div class="col wd-500 date">
            <label class="control-label wd-080 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 class="col wd-050">&nbsp;</div>
          </div>
          <div class="col wd-550 ">
            <label class="control-label wd-060 ">伝票番号</label>
            <input name="vseq" type="text" class="form-control input-sm item wd-120 vseq clear" maxlength="11" value="{$header.vseq}"/>
            <div class="col wd-020 center">&nbsp;</div>
            <label class="control-label wd-060 ">出庫倉庫</label>
            <input name="spktcd" type="text" class="form-control input-sm item wd-SS spktcd ktktcd required popKtktcd eventktktcd clear" data-ktcls="1" maxlength="2" value="{$header.spktcd}"/>
            <input type="button" class="col popbtn cmdKtktcd" tabindex="-1" value="?"/>
            <input name="spktnm" type="text" class="form-control input-sm item wd-M spktnm ktktnm clear" readonly value="{$header.spktnm}"/>
            <input type="text" class="dummy" />
            <input name="tcls" type="hidden" class="tcls" value="{$header.tcls}"/>
          </div>
        </div>
      </div>
      <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">
              <label class="control-label wd-S">得意先</label>
              <label class="control-label wd-M"></label>
              <label class="control-label wd-S">店舗</label>
              <label class="control-label wd-M"></label>
              <label class="control-label wd-SS">倉庫</label>
              <label class="control-label wd-SS">区分</label>
              <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-number text-right">売上金額</label>
              <label class="control-label wd-number text-right">仕入原価金額</label>
            </div>
          </div>
        </div>


        <div id="detail" class="col wp-100 x_scroll detailArea">
          <hr>
          <!-- ↑↑↑*** rows ***↑↑↑ -->
        </div>
        <hr>
        <div class="col wp-100 footer">
          <div class="col wp-100">
            <div class="col" style="width:589px;">&nbsp;</div>
            <label class="control-label wd-060" > 伝票件数</label>
            <input type="text" class="form-control item input-sm wd-number number clear " readonly value="{$header.vcnt|number_format}" />
            <div class="col" style="width:050px;">&nbsp;</div>
            <label class="control-label wd-040" > 合計</label>
            <input type="text" class="form-control item input-sm wd-number number clear " readonly value="{$header.tamt|number_format}" />
            <input type="text" class="form-control item input-sm wd-number number gsal clear " readonly value="{$header.tamt2|number_format}" />
          </div>
        </div>

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

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

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

</div>
