<!-- body -->
<div class="container contents af227x" 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 date">
          <label class="control-label wd-070 in-required" >計上日</label>
          <input name="adats" type="text" class="form-control input-sm item wd-date adats datepicker keycd 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 class="col cucdGrp cuscdGrp wp-100 ">
          <label class="control-label wd-070 ">得意先</label>
          <input name="cucd" type="text" class="form-control input-sm item wd-S cucd eventcucd popCucd  clear" maxlength="7" value="{$header.cucd}">
          <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 cmdCucd" tabindex="-1" value="?"/>
          <input name="cunm" type="text" class="form-control input-sm item wd-L cunm clear " readonly value="{$header.cunm}"/>
          <input name="spnm" type="text" class="form-control input-sm item wd-L spnm clear " readonly value="{$header.spnm}"/>
        </div>
        <div class="col janGrp wp-100 ">
          <label class="control-label wd-070">商品コード</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 class="col wp-100 chgcdGrp ktktcdGrp">
          <label class="control-label wd-070">営業担当</label>
          <input name="chgcd" type="text" class="form-control input-sm item wd-S chgcd eventchgcd popChgcd clear" maxlength="5" value="{$header.chgcd}">
          <input type="button" class="col popbtn cmdChgcd" tabindex="-1" value="?"/>
          <input name="chgnm" type="text" class="form-control input-sm item wd-L chgnm clear" readonly value="{$header.chgnm}"/>
          <div class="col wd-010">&nbsp;</div>
          <label class="col checkbox-label"> <input name="chk_kbn1"  type="checkbox" class="form-control item input-sm wd-check chk_kbn1 clear" {if $header.chk_kbn1 eq "1"}checked{/if} value="1" tabindex="-1"/><div class="col">サブ担当も含む</div>
          <label class="col checkbox-label"> <input name="chk_kbn2"  type="checkbox" class="form-control item input-sm wd-check chk_kbn2 clear" {if $header.chk_kbn2 eq "1"}checked{/if} value="1" tabindex="-1"/><div class="col">業務担当も含む</div>
          <div class="col wd-050">&nbsp;</div>
          <label class="control-label wd-030 ">倉庫</label>
          <input name="spktcd" type="text" class="form-control input-sm item wd-SS spktcd ktktcd required popKtktcd eventktktcd clear" 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" />
        </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-date">計上日</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>
              <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>
              <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 id="FooterArea" class="col wp-100 footer">
          <div class="col wp-100">
            <label class="control-label wd-date" > 合計</label>
            <input name="tamt01" type="text" class="form-control item input-sm wd-number number clear " readonly value="{$header.tamt01|number_format}" />
            <input name="tamt02" type="text" class="form-control item input-sm wd-number number clear " readonly value="{$header.tamt02|number_format}" />
            <input name="trt02" type="text" class="form-control item input-sm wd-number number clear " readonly value="{$header.trt02|number_format:2}" />
            <input name="tamt03" type="text" class="form-control item input-sm wd-number number clear " readonly value="{$header.tamt03|number_format}" />
            <input name="trt03" type="text" class="form-control item input-sm wd-number number clear " readonly value="{$header.trt03|number_format:2}" />
            <input name="tamt" type="text" class="form-control item input-sm wd-number number clear " readonly value="{$header.tamt|number_format}" />
            <input name="tar" type="text" class="form-control item input-sm wd-number number clear " readonly value="{$header.tar|number_format}" />
            <input name="trtar" type="text" class="form-control item input-sm wd-number number clear " readonly value="{$header.trtar|number_format:2}" />
          </div>
        </div>

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

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

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

</div>
