<!-- body -->
<div class="container contents af212x" 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 af212x1popup">
        <div class="col wp-100 well header1 ">
          <div class="col wp-100">
            <div class="col mcdGrp">
              <label class="control-label wd-080  in-required">仕入先</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 class="col wd-SS">&nbsp;</div>
            <div class="col">
              <label class="control-label wd-080 poplabel">伝票番号</label>
              <input name="vseq" type="text" class="form-control input-sm item wd-100 vseq popAf212x1 clear lpad" maxlength="6" value="{$header.vseq}">
              <input type="button" class="col popbtn cmdAf212x1" tabindex="-1" value="?"/>
              <input type="text" class="dummy" />
            </div>
            <div class="right">
              <label class="control-label wd-050 modelbl clear" ></label>
            </div>
          </div>
        </div>

        <div class="col wp-100 header2">
          <div class="col wp-100 date" >
            <label class="control-label wd-080 in-required">入庫予定日</label>
            <input name="dat" type="text" class="form-control input-sm item wd-date dat datepicker required clear" maxlength="10" value=""/>
            <input type="button" class="col popbtn cmdDatepicker" tabindex="-1" value="?"/>
            <label class="control-label wd-SS"></label>
            <label class="control-label wd-050 in-required">発注日</label>
            <input name="dat1" type="text" class="form-control input-sm item wd-date dat1 datepicker required clear" maxlength="10" value=""/>
            <input type="button" class="col popbtn cmdDatepicker" tabindex="-1" value="?"/>
          </div>
          <div class="col wp-100 ">
            <div class="col ktktcdGrp">
              <label class="control-label wd-080 poplabel in-required">倉庫</label>
              <input name="spktcd" type="text" class="form-control input-sm item wd-SS spktcd ktktcd eventktktcd popKtktcd clear " maxlength="2" value="">
              <input type="button" class="col popbtn cmdKtktcd" tabindex="-1" value="?"/>
              <input name="spktnm" type="text" class="form-control input-sm item wd-L spktnm ktktnm clear" readonly value=""/>
            </div>
          </div>
          <div class="col wp-100 date" >
            <label class="control-label wd-080">摘要</label>
            <input name="com1" type="text" class="form-control input-sm item wd-LL com1 clear" maxlength="60" value=""/>
          </div>
        </div>
        <input name="sdday"   type="hidden" class="sdday  " value="{$header.sdday}" />
        <input name="maxvlin" type="hidden" class="maxvlin" value="{$header.maxvlin}" /> {*6行固定のはず*}
        <input name="cuiseq"  type="hidden" class="cuiseq clear" value="{$header.cuiseq}" />

        <input name="scutaxc" type="hidden" class="scutaxc clear" clear value="" /> {*afm04.scutaxc 端数処理区分 0:四捨五入 1:切捨て 2:切上*}
        <input name="mtaxdiv" type="hidden" class="mtaxdiv clear" clear value="" /> {*afm04.mtaxdiv 税率毎伝票制御区分 '0':混在不可 '1':混在許可*}
        <input name="sflg"    type="hidden" class="sflg clear" clear value="" /> {*登録処理区分 0:通常, 1:即時確定(FAX&プリンタ), 3:即時確定(プリンタ)*}

        <input name="p_title" type="hidden" class="p_title" clear value="{$header.p_title}" /> {*メニュー以外から呼ばれる場合の、元画面名*}
        


        <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:18px;">
            <label class="control-label wd-kbn"></label>
            <label class="control-label wd-jan in-required">JAN</label>
            <label class="control-label wd-popbtn"></label>
            <label class="control-label wd-030"></label>
            <label class="control-label wd-gdjnm">品名</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">仕入単価</label>
            <label class="control-label wd-100 text-right">仕入金額</label>
            <label class="control-label wd-040 ">削除</label>
          </div>
          <div class="col wp-100"  style="height:18px;">
          <label class="control-label wd-kbn"></label>
          <label class="control-label wd-jan in-required"></label>
          <label class="control-label wd-popbtn"></label>
          <label class="control-label wd-030"></label>
          <label class="control-label wd-gdjnm">規格</label>
          <label class="control-label wd-number text-right">発注単位</label>
          <label class="control-label wd-L">備考</label>
          <label class="control-label wd-040 "></label>
        </div>
     </div>

        <div id="detail" class="col wp-100 x_scroll detailArea">
          <hr>
    {foreach from=$dataList item=data name=detail}
          <!-- ↓↓↓*** rows ***↓↓↓ -->
          <div class="col wp-100 detail">
          </div>
    {/foreach}
          <!-- ↑↑↑*** rows ***↑↑↑ -->
        </div>
        <hr>
        <div class="col wp-100 detailFooter " >
          <div class="col" style="width:525px;">&nbsp;</div>
          <label class="control-label wd-060">数量合計</label>
          <input id="sum_mvpno" name="smvpno" type="text" class="form-control input-sm item wd-number smvpno clear number" readonly value=""/>
          <label class="control-label" style="width:18px;">&nbsp;</label>
          <label class="control-label wd-080">仕入金額合計</label>
          <input id="sum_scst" name="sscst" type="text" class="form-control input-sm item wd-number sscst clear number" readonly value=""/>
<input id="lastDetail" type="text" style="opacity:0;height:0px;width:0px"/>
<input type="text" class="dummy" />
         <hr>
          <div class="col wp-100">
            <div  class="col wp-100">
              <div class="col" style="width:480px;">&nbsp;</div>
              <label class="control-label wd-040" >登録</label>
              <input id="chgcdnm" name="chgnm" type="text" class="form-control item input-sm wd-M chgcdnm clear " readonly value="{$footer.chgcdnm}" />
              <input id="idat" name="idat" type="text" class="form-control item input-sm wd-M idat clear " readonly value="{$footer.idat}" />
              <label class="control-label wd-040" > </label>
              <label class="control-label wd-040" >更新</label>
              <input id="upchgnm" name="upchgnm" type="text" class="form-control item input-sm wd-M upchgnm clear " readonly value="{$footer.upchgnm}" />
              <input id="udat" name="udat" type="text" class="form-control item input-sm wd-M udat clear " readonly value="{$footer.udat}" />
            </div>
          </div>

        </div>

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

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

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

</div>
