<!-- body -->
<div class="container contents af222x" style="width:1300px;">
  <!-- 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 af222x1popup af203x2popup ">
        <div class="col wp-100 well header1">
          <div class="col wp-100 " >
            <div class="col wp-100 cucdGrp cuscdGrp">
              <div class="col wd-830">
                <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 required clear" maxlength="7" value="{$header.cucd}">
                <input name="cuscd" type="text" class="form-control input-sm item wd-S cuscd eventcuscd popCuscd required clear" 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}"/>
                <input name="cusacls" type="hidden" class="cusacls clear " readonly value="{$header.cusacls}"/>
              </div>
              <div class="col wd-270">
    {if $header.tcls == "01" && $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-M cvseq clear popAf203x2" maxlength="11" value="{$header.cvseq}"/>
                  <input name="cuiseq" type="hidden" class="cuiseq clear" value="{$header.cuiseq}">
                  <input type="button" class="col popbtn cmdAf203x2" 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 popAf222x1" maxlength="15" value="{$header.vseq}"/>
                  <input name="viseq" type="hidden" class="viseq clear" value="{$header.viseq}">
                  <input type="hidden" class="vseq222 clear" value="">  {*同一伝票番号複数あった時用*}
                  <input type="button" class="col popbtn cmdAf222x1" tabindex="-1" value="?"/>
                  <input type="text" class="dummy h_dummy"/>
                </div>
              </div>
              <div class="col wd-150">
                <div class="col wd-010">&nbsp;</div>
                <label class="control-label wd-050 cutaxLabel" style="display:none;">税込</label>
                <label class="control-label wd-050 cutaxLabel_none">&nbsp;</label>
                <label class="control-label wd-050 newLabel" style="display:none;">新規</label>
              </div>
            </div>
            {*ヘッダー情報*}
            <input name="sbat" type="hidden" class="sbat clear" value="{$header.sbat}">
            <input name="cdat" type="hidden" class="cdat clear" value="{$header.cdat}">
            <input name="sts" type="hidden" class="sts clear" value="{$header.sts}">
            <input name="dat3" type="hidden" class="dat3 clear" value="{$header.dat3}">
            <input name="dat4" type="hidden" class="dat4 clear" value="{$header.dat4}">
            <input name="hvseq" type="hidden" class="hvseq clear" value="{$header.hvseq}">
            {if $header.tcls == "01" && $header.issue_mode == "1"} {*売上 出庫有*}
              {*ヘッダー部に有*}
            {else}
            <input name="spktcd" type="hidden" class="spktcd clear" value="{$header.spktcd}">
            {/if}
            <input name="old_spktcd" type="hidden" class="old_spktcd clear" value="{$header.spktcd}">
            {*afm03情報*}
            <input name="cutax" type="hidden" class="cutax clear" value="{$header.cutax}">
            <input name="cutaxc" type="hidden" class="cutaxc clear" value="{$header.cutaxc}">
            <input name="cutaxdiv" type="hidden" class="cutaxdiv clear" value="{$header.cutaxdiv}">
            <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 or UNDER*}
            {*引数や状態*}
            <input name="param1" type="hidden" class="param1" value="{$header.param1}"/> {*メニューから渡されてきた値 01:利上げ, 03:値引き*}
            <input name="pmode" type="hidden" class="pmode" value="{$header.pmode}"/> {*1=照会*}
            <input name="title" type="hidden" class="title" value="{$header.title}"/> {*index.phpで作成したタイトル*}
            <input name="cutaxcls" type="hidden" class="cutaxcls" value="{$header.cutaxcls}"/> {*総額得意先の単価入力 axm994より*}
            <input name="tcls" type="hidden" class="tcls" value="{$header.tcls}"/>
            <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="p_tcls" type="hidden" class="p_tcls" value="{$header.p_tcls}"/>
            <input name="p_cucd" type="hidden" class="p_cucd" value="{$header.p_cucd}"/>
            <input name="p_cuscd" type="hidden" class="p_cuscd" value="{$header.p_cuscd}"/>
            <input name="p_vseq" type="hidden" class="p_vseq" value="{$header.p_vseq}"/>
            <input name="p_viseq" type="hidden" class="p_viseq" value="{$header.p_viseq}"/>
          </div>
        </div>
        <div class="col wp-100 header2">
          <div class="col wd-670">
            <div class="col wp-100 date">
              <label class="control-label wd-080 in-required" >納品日</label>
              <input name="dat2" type="text" class="form-control input-sm item wd-date dat2 datepicker clear required" maxlength="10" value="{$header.dat2}">
              <input type="button" class="col popbtn cmdDatepicker" tabindex="-1" value="?"/>
              <input name="old_dat2" type="hidden" class="old_dat2 clear" value="{$header.dat2}">
              <div class="col wd-kbn">&nbsp;</div>
              <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 type="button" class="col popbtn cmdDatepicker" tabindex="-1" value="?"/>
              <input name="old_adat" type="hidden" class="old_adat clear" value="{$header.adat}">
            </div>
            <div class="col wp-100 ktktcdGrp">
              <label class="control-label wd-080" >分類コード</label>
              <input name="dcubcd" type="text" class="form-control input-sm item wd-SS dcubcd clear" maxlength="4" value="{$header.dcubcd}">
              <input name="old_dcubcd" type="hidden" class="old_dcubcd clear" value="{$header.dcubcd}">
              <div class="col wd-010">&nbsp;</div>
              <label class="control-label wd-060" >伝票区分</label>
              <input name="cuslip" type="text" class="form-control input-sm item wd-kbn cuslip clear" maxlength="2" value="{$header.cuslip}">
              <input name="old_cuslip" type="hidden" class="old_cuslip clear" value="{$header.cuslip}">
              <div class="col wd-010">&nbsp;</div>
              <label class="control-label wd-020" >便</label>
              <input name="bbno" type="text" class="form-control input-sm item wd-040 bbno clear" maxlength="3" value="{$header.bbno}">
              <input name="old_bbno" type="hidden" class="old_bbno clear" value="{$header.bbno}">
{if $header.tcls == "01" && $header.issue_mode == "1"} {*売上 出庫有*}
              <div class="col wd-010">&nbsp;</div>
              <label class="control-label wd-070 poplabel">倉庫コード</label>
              <input name="spktcd" type="text" class="form-control input-sm item wd-SS spktcd ktktcd eventktktcd popKtktcd 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=""/>
{/if}
            </div>
          </div>
          <div class="col wd-300">
            <div class="col wp-100">
              <label class="control-label wd-030" >D欄</label>
              <input name="dtxt1" type="text" class="form-control item input-sm wd-L dtxt1 clear " maxlength="30" value="{$header.dtxt1}" />
              <input name="old_dtxt1" type="hidden" class="old_dtxt1 clear" value="{$header.dtxt1}">
            </div>
            <div class="col wp-100">
              <label class="control-label wd-030" >&nbsp;</label>
              <input name="dtxt2" type="text" class="form-control item input-sm wd-L dtxt2 clear " maxlength="30" value="{$header.dtxt2}" />
              <input name="old_dtxt2" type="hidden" class="old_dtxt2 clear" value="{$header.dtxt2}">
            </div>
          </div>
          <div class="col wd-300">
            <div class="col wp-100">
              <label class="control-label wd-030" >L欄</label>
              <input name="ltxt1" type="text" class="form-control item input-sm wd-L ltxt1 clear " maxlength="25" value="{$header.ltxt1}" />
              <input name="old_ltxt1" type="hidden" class="old_ltxt1 clear" value="{$header.ltxt1}">
            </div>
            <div class="col wp-100">
              <label class="control-label wd-030" >&nbsp;</label>
              <input name="ltxt2" type="text" class="form-control item input-sm wd-L ltxt2 clear " maxlength="25" value="{$header.ltxt2}" />
              <input name="old_ltxt2" type="hidden" class="old_ltxt2 clear" value="{$header.ltxt2}">
            </div>
          </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 in-required">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">納入単価</label>
            <label class="control-label wd-number text-right">納入金額</label>
            <label class="control-label wd-number text-right">仕入単価</label>
            <label class="control-label wd-M">&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 ">&nbsp;</label>
            <label class="control-label wd-number">&nbsp;</label>
            <label class="control-label wd-number">&nbsp;</label>
            <label class="control-label wd-number">&nbsp;</label>
            <label class="control-label wd-number text-right">小売単価</label>
            <label class="control-label wd-M">&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">
            <div class="col" style="width:771px;">
              <input id="lastDetail" type="text" class="hide" style="opacity:0;height:0px;"/>
              <label class="control-label wd-050" >&nbsp;</label>
              <label class="control-label wd-040" >備考</label>
              <input name="txt1" type="text" class="form-control item input-sm wd-300 txt1 clear " maxlength="40" value="" />
              <input name="old_txt1" type="hidden" class="old_txt1 clear" value="{$header.txt1}">
              <input type="text" class="dummy f_dummy"/>
            </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>
