<!-- body -->
<div class="container contents af233x" 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 af233x1popup af212x1popup ">
        <div class="col wp-100 well header1">
          <div class="col wp-100 " >
            <div class="col wp-100 mcdGrp">
              <div class="col wd-830">
                <label class="control-label wd-050 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>
              <div class="col wd-300">
    {if $header.under_mode == "1"}
                <div class="col wp-100">
                  <label class="control-label wd-080" >発注伝票番号</label>
                  <input name="cvseq" type="text" class="form-control input-sm item wd-100 cvseq vseq popAf212x1 clear lpad" maxlength="6" value="{$header.cvseq}">
                  <input name="cuiseq3111" type="hidden" class="cuiseq3111 clear" value="{$header.cuiseq3111}">
                  <input type="button" class="col popbtn cmdAf212x1" tabindex="-1" value="?"/>
                </div>
    {/if}
                <div class="col wp-100">
                  <label class="control-label wd-080" >伝票番号</label>
                  <input name="vseq" type="text" class="form-control input-sm item wd-M vseq clear popAf233x1" date-mode2="1" maxlength="15" value="{$header.vseq}"/>
                  <input name="viseq" type="hidden" class="viseq clear" value="{$header.viseq}">
                  <input type="hidden" class="vseq233 clear" value="">  {*同一伝票番号複数あった時用*}
                  <input type="button" class="col popbtn cmdAf233x1" tabindex="-1" value="?"/>
                  <input type="text" class="dummy h_dummy"/>
                </div>
              </div>
              <div class="col wd-050">
                <label class="control-label wd-050 newLabel" style="display:none;">新規</label>
              </div>
            </div>
            {*ヘッダー情報*}
            <input name="hvseq" type="hidden" class="hvseq clear" value="{$header.hvseq}">
            <input name="spktcd" type="hidden" class="spktcd clear" value="{$header.spktcd}">
            <input name="tcls" type="hidden" class="tcls clear" value="{$header.tcls}">
            <input name="kflg_kbn" type="hidden" class="kflg_kbn" value="{$header.kflg_kbn}">
            {*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="under_mode" type="hidden" class="under_mode" value="{$header.under_mode}"/>
            <input name="issue_mode" type="hidden" class="issue_mode" value="{$header.issue_mode}"/>
            <input name="r30" type="hidden" class="r30" value="{$header.r30}">
          </div>
        </div>
        <div class="col wp-100 header2">
          <div class="col wp-100 date">
            <label class="control-label wd-050 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>
        </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">発注単価</label>
            <label class="control-label wd-number text-right">入庫金額</label>
            <label class="control-label wd-L">備考</label>
            <label class="control-label wd-040">&nbsp;</label>
            <label class="control-label wd-020 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 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-L">センター入庫日</label>
            <label class="control-label wd-040">&nbsp;</label>
            <label class="control-label wd-020 center delttl2">除</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">
            <input id="lastDetail" type="text" class="hide" style="opacity:0;height:0px;"/>
            <div class="col" style="width:669px;">&nbsp;</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>
          <div class="col wp-100">
            <div class="col" style="width:669px;">&nbsp;</div>
            <label class="control-label wd-090" >仕入金額合計</label>
            <input id="sum_s_fcst" name="g_fcst" type="text" class="form-control item input-sm wd-number number sum_s_fcst  " 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>
