<!-- body -->
<div class="container contents af244x" 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 header af244x1popup">
        <div class="col wp-100 well header1">
          <div class="col wp-100 " >
            <div class="col wp-100 mcdGrp ktktcdGrp">
              <div class="col wd-830">
                <div class="col wp-100">
                  <label class="control-label wd-060 poplabel in-required" >仕入先</label>
                  <input name="mcd" type="text" class="form-control input-sm item wd-S mcd eventmcd popMcd required 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 class="item wd=kbn">&nbsp;</div>
                  <label class="control-label wd-030 poplabel in-required">倉庫</label>
                  <input name="spktcd" type="text" class="form-control input-sm item wd-SS spktcd ktktcd eventktktcd popKtktcd required clear" data-stpflg="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-MM spktnm ktktnm clear" readonly value="{$header.spktnm}"/>
                  <input name="ktcls" type="hidden" class="ktcls " readonly value=""/>
                </div>
                <div class="col wp-100">
                  <label class="control-label wd-060" >伝票番号</label>
                  <input name="vseq" type="text" class="form-control input-sm item wd-M vseq clear lpad popAf244x1" lpadlength="6" maxlength="10" value="{$header.vseq}"/>
                  <input name="viseq" type="hidden" class="viseq clear" value="{$header.viseq}">
                  <input type="hidden" class="vseq244 clear" value="">  {*同一伝票番号複数あった時用*}
                  <input type="button" class="col popbtn cmdAf244x1" tabindex="-1" value="?"/>
                  <input type="text" class="dummy h_dummy"/>
                </div>
              </div>
              <div class="col wd-300">&nbsp;</div>
              <div class="col wd-050">
                <label class="control-label wd-050 newLabel" style="display:none;">新規</label>
              </div>
            </div>
            {*ヘッダー情報*}
            <input name="dat" type="hidden" class="dat clear" value="{$header.dat}">
            <input name="dat2" type="hidden" class="dat2 clear" value="{$header.dat2}">
            <input name="dat3" type="hidden" class="dat3 clear" value="{$header.dat3}">
            {*afm04情報*}
            <input name="cutaxc" type="hidden" class="cutaxc clear" value="{$header.cutaxc}"> {*afm04.scutaxc*}
            <input name="maxvlin" type="hidden" class="maxvlin clear" value="{$header.maxvlin}"> {*伝票行数得意先によって決まる*}
            <input name="newmode" type="hidden" class="newmode clear" value="{$header.newmode}"/> {*NEW or UPD*}
            {*引数や状態*}
            <input name="ssbat2" type="hidden" class="ssbat2" value="{$header.ssbat2}">
            <input name="ssdat2" type="hidden" class="ssdat2" value="{$header.ssdat2}">
          </div>
        </div>
        <div class="col wp-100 header2">
          <div class="col wp-100 date">
            <label class="control-label wd-060 in-required" >計上日</label>
            <input name="adat" type="text" class="form-control input-sm item wd-date adat datepicker clear required" maxlength="10" value="{$header.adat}">
            <input name="old_adat" type="hidden" class="old_adat clear" value="{$header.adat}">
            <div class="item wd=kbn">&nbsp;</div>
            <label class="control-label wd-040" >備考</label>
            <input name="com" type="text" class="form-control item input-sm wd-L com clear " maxlength="30" value="{$header.com}" />
            <input name="old_com" type="hidden" class="old_com clear" value="{$header.com}">
          </div>
        </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" style="height:13px;">
            <label class="control-label wd-kbn">&nbsp;</label>
            <label class="control-label wd-jan">JAN</label>
            <label class="control-label wd-popbtn">&nbsp;</label>
            <label class="control-label wd-020">&nbsp;</label>
            <label class="control-label wd-LL">品名</label>
            <label class="control-label wd-number text-right">不良在庫数</label>
            <label class="control-label wd-number text-right in-required">実績数</label>
            <label class="control-label wd-number text-right in-required">単価</label>
            <label class="control-label wd-number text-right">金額</label>
            <label class="control-label wd-M">&nbsp;</label>
            <label class="control-label wd-S center delttl1">削除</label>
          </div>
          <div class="col wp-100">
            <label class="control-label wd-kbn">&nbsp;</label>
            <label class="control-label wd-jan">&nbsp;</label>
            <label class="control-label wd-popbtn">&nbsp;</label>
            <label class="control-label wd-020">&nbsp;</label>
            <label class="control-label wd-LL">規格</label>
            <label class="control-label wd-number">&nbsp;</label>
            <label class="control-label wd-L">備考</label>
          </div>
        </div>

        <div id="detail" class="col wp-100 x_scroll detailArea">
          <hr>
          <!-- ↓↓↓*** rows ***↓↓↓ -->
          <div class="col wp-100 detail">
            {*明細*}
          </div>
          <!-- ↑↑↑*** rows ***↑↑↑ -->
        </div>
        <hr>
        <div id="footer_content" class="col wp-100 footer">
          <div class="col wp-100">
            <div class="col" style="width:769px;">&nbsp;
              <input id="lastDetail" type="text" class="hide" style="opacity:0;height:0px;"/>
            </div>
            <label class="control-label wd-090" >金額合計</label>
            <input id="sum_s_cst" name="g_cst" type="text" class="form-control item input-sm wd-number number sum_s_cst  " readonly value="" />
          </div>
          <hr>
          <div class="col wp-100">
            <div class="col wd-480">&nbsp;</div>
            <label class="control-label wd-030" >登録</label>
            <input name="chgcdnm" type="text" class="form-control item input-sm wd-M chgcdnm longnm clear" readonly value="" />
            <input name="idat" type="text" class="form-control item input-sm wd-M idat  clear " readonly value="" />
            <div class="col wd-010">&nbsp;</div>
            <label class="control-label wd-030" >更新</label>
            <input name="upchgnm" type="text" class="form-control item input-sm wd-M upchgnm longnm clear" readonly value="" />
            <input name="udat" type="text" class="form-control item input-sm wd-M udat  clear" readonly value="" />
          </div>
        </div>
      </div>
    </form>
    <hr>
  </div>

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

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

</div>
