<!-- body -->
<div class="container contents af215x" 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 af215x1popup af212x1popup">

        <div class="col wp-100 cshcdGrp   " >
          <div class="col wp-100 header1">
            <div class="col mcdGrp wd-900">
              <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 required" 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 vseqGrp ">
              <label class="control-label wd-060 poplabel" >発注番号</label>
              <input name="vseq" type="text" class="form-control input-sm item wd-100 vseq clear popAf212x1" maxlength="11" value="{$header.vseq}">
              <input type="button" class="col popbtn cmdAf212x1" tabindex="-1" value="?"/>
            </div>

            <div class="col wp-100">
              <div class="col cucdGrp cuscdGrp">
                <label class="control-label wd-080 poplabel in-required">店舗コード</label>
                <input name="cucd" type="text" class="form-control input-sm item wd-S cucd popCucd eventcucd keycd clear" maxlength="7" value="{$header.cucd}">
                <input name="cuscd" type="text" class="form-control input-sm item wd-S cuscd popCuscd eventcuscd 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}"/>
              </div>
              <div class="col wd-S">&nbsp;</div>
              <label class="control-label wd-S lblcutax clear "  ></label>
              <label class="control-label wd-S newlbl clear" ></label>   <div class="col" style="width:2px;">&nbsp;</div>

              <input type="text" class="dummy wd-010" />
            </div>
          </div>

          <div class="col wp-100" style="height:10px;">&nbsp;</div>{*ちょっとあける*}
          <hr>

          <div class="col wp-100 header2">
            <div class="col wd-900">
              <div class="col wp-100" style="height:10px;">&nbsp;</div>{*ちょっとあける*}
              <div class="col wp-100 date">
                <div class="col wd-400 date">
                  <label class="control-label wd-080 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 class="col wd-030">&nbsp;</div>
                  <label class="control-label wd-050 in-required" >納品日</label>
                  <input name="climit" type="text" class="form-control input-sm item wd-date climit datepicker required clear " maxlength="10" value="">
                  <input type="button" class="col popbtn cmdDatepicker" tabindex="-1" value="?"/>
                </div>
                {*
                あったけど消えたらしい
                <label class="control-label wd-100 " >仕入伝票番号</label>
                <input name="pgvseq" type="text" class="form-control input-sm item wd-S pgvseq clear newonly " maxlength="6" />
                *}
              </div>
              <div class="col wp-100">
                <div class="col wd-400">
                  <label class="control-label wd-080 dcubcdlbl" >分類コード</label>
                  <input name="dcubcd" type="text" class="form-control input-sm item wd-SS dcubcd clear newonly  " maxlength="4" />
                  <div class="col wd-030">&nbsp;</div>
                  <label class="control-label wd-070 cuslip2lbl" >伝票区分</label>
                  <input name="cuslip2" type="text" class="form-control input-sm item wd-kbn cuslip2 clear newonly  " maxlength="2" />
                  <div class="col wd-030">&nbsp;</div>
                  <label class="control-label wd-030 " >便</label>
                  <input name="bbno" type="text" class="form-control input-sm item wd-SS bbno clear newonly  " maxlength="3" />
                  <div class="col wd-030">&nbsp;</div>
                </div>

              </div>

              <div class="col wp-100">
                <div class="col wd-400">
                  <div class="col wp-100">
                    <label class="control-label wd-080 " >摘要</label>
                    <input name="com1" type="text" class="form-control input-sm item wd-300 com1 com clear  " maxlength="40" >
                  </div>
                  <div class="col wp-100">
                    <label class="control-label wd-080 " >D欄</label>
                    <input name="dtxt1" type="text" class="form-control input-sm item wd-L dtxt1 clear newonly  " maxlength="30" value="{$data.dtxt1}">
                  </div>
                  <div class="col wp-100">
                    <label class="control-label wd-080 " ></label>
                    <input name="dtxt2" type="text" class="form-control input-sm item wd-L dtxt2 clear newonly  " maxlength="30" value="{$data.dtxt2}">
                  </div>
                </div>
                <div class="col wd-400">
                  <label class="control-label wp-100 " >&nbsp;</label>
                  <div class="col wp-100">
                    <label class="control-label wd-080 " >L欄</label>
                    <input name="ltxt1" type="text" class="form-control input-sm item wd-L ltxt1 clear newonly " maxlength="25" value="{$data.ltxt1}">
                  </div>
                  <div class="col wp-100">
                    <label class="control-label wd-080 " ></label>
                    <input name="ltxt2" type="text" class="form-control input-sm item wd-L ltxt2 clear newonly  " maxlength="25" value="{$data.ltxt2}">
                  </div>
                </div>
              </div>
            </div>
            
            <div id="" class="col wd-300" style="height:160px;">
              <div class="col wp-100">
                <label class="control-label wp-100">【編集中一覧】</label>
              </div>
              <div id="detail2" class="col wp-100 x_scroll detailArea2" style="height:130px; background-color:white; border:solid 1px lightgray;">
              </div>


            
            </div>
          </div>

          <input name="old_pgvseq"  type="hidden" class="old_pgvseq clear"  /> 
          <input name="gdflg"  type="hidden" class="gdflg clear"  /> 

          <input name="cutaxcls" type="hidden" class="cutaxcls " value="{$header.cutaxcls}" /> {*994.cls(CUTAXCLS) 総額得意先の単価入力制御 0:税抜入力, 1:税込入力*}
          <input name="maxvlin"  type="hidden" class="maxvlin clear"  /> {*伝票行数*}
          <input name="cutax"    type="hidden" class="cutax clear"  /> {*afm03.cutax NULL:外税 1:原価総額*}
          <input name="cutaxdiv" type="hidden" class="cutaxdiv clear"  value=""/> {*afm03税率混在可不可 ''0':混在不可 '1':混在許可*}
          <input name="mtaxdiv"  type="hidden" class="mtaxdiv clear "  value=""/> {*afm04税率混在可不可 ''0':混在不可 '1':混在許可*}

          <input name="wseq"     type="hidden" class="wseq clear" />
          <input name="cuiseq"   type="hidden" class="cuiseq clear"/>

          <input name="sdday"  type="hidden" class="sdday" value="{$header.sdday}" />
          <input name="wret"   type="hidden" class="wret" value="{$header.wret}" />       {*表示用plsqlの返り値*}
          <input name="sflg"   type="hidden" class="sflg clear" value="" />       {*どのFunctionKeyから登録処理(update.php)を呼ぶか*}
        </div>
      </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" >No</label>
            <label class="control-label wd-vjan in-required">JAN</label>
            <label class="control-label " style="width:55px;"></label>
            <label class="control-label wd-50b">品名</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 cstlbl">仕入単価</label>
            <label class="control-label wd-number text-right ">仕入金額</label>
            <label class="control-label wd-M ">備考</label>
          </div>
          <div class="col wp-100" style="height:18px;">
            <label class="control-label wd-kbn" ></label>
            <label class="control-label wd-vjan in-required"></label>
            <label class="control-label " style="width:55px;"></label>
            <label class="control-label wd-50b">規格</label>
            <label class="control-label wd-number text-right ">発注単位数</label>
            <div class="col" style="width:102px;">&nbsp;</div>
            <label class="control-label wd-number text-right ">納入単価</label>
            <label class="control-label wd-number text-right ">納入金額</label>
            <label class="control-label wd-030">削除</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 class="col wd-1150 rowinfo detailMain janGrp">

            </div>
            <hr>
          </div>
    {/foreach}
          <!-- ↑↑↑*** rows ***↑↑↑ -->
        </div>
        <hr>
      </div>

      <div class="col wp-100 footer">
        <div class="col wp-100">
          <div class="col" style="width:776px;">&nbsp;</div>
          <label class="control-label wd-090" > 仕入金額合計</label>
          <input id="sum_sgdcst" name="ggdcst" type="text" class="form-control item input-sm wd-number number gsgdcst clear " readonly value="{$data.ggdcst}" />
  
<input id="lastDetail" type="text" style="opacity:0;height:0px;"/>
<input type="text" class="dummy wd-010" />
          </div>

        <div class="col wp-100">
          <div class="col" style="width:776px;">&nbsp;</div>
          <label class="control-label wd-090" > 納入金額合計</label>
          <input id="sum_scst" name="gcst" type="text" class="form-control item input-sm wd-number number gcst clear " readonly value="{$data.gcst}" />
        </div>

        <hr>

        <div class="col wp-100">
          <div class="col" style="width:500px;">&nbsp;</div>
          <label class="control-label wd-040" >登録</label>
          <input id="chgnm" name="chgnm" type="text" class="form-control item input-sm wd-M chgnm clear " readonly value="{$data.chgnm}" />
          <input id="idat" name="idat" type="text" class="form-control item input-sm wd-M idat clear " readonly value="{$data.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="{$data.upchgnm}" />
          <input id="udat" name="udat" type="text" class="form-control item input-sm wd-M udat clear " readonly value="{$data.udat}" />
        </div>


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



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

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

</div>
