<!-- body -->
<div class="container contents af203x" 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 af203x1popup af203x2popup">

        <div class="col wp-100 cshcdGrp   " >
          <div class="col wp-100 header1 cucdGrp cuscdGrp">

            <div class="col wp-100 vseqGrp ">
              <div class="col wd-1020 ">
                <label class="control-label wd-090 poplabel in-required">得意先コード</label>
                <input name="cucd" type="text" class="form-control input-sm item wd-S cucd popCucd eventcucd required keycd clear" maxlength="7" value="{$header.cucd}">
                <input name="cuscd" type="text" class="form-control input-sm item wd-S cuscd popCuscd eventcuscd 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}"/>
              </div>
              <label class="control-label wd-060 poplabel" >伝票番号</label>
              <input name="vseq" type="text" class="form-control input-sm item wd-100 vseq clear popAf203x2" maxlength="11" value="{$header.vseq}">
              <input type="button" class="col popbtn cmdAf203x2" tabindex="-1" value="?"/>

            </div>
            <div class="col wp-100 ">
              <label class="control-label wd-090  ">注意点</label>
              <input name="com3" type="text" class="form-control input-sm item wd-700 com3 clear red" readonly value=""/>
              <div class="col wd-020">&nbsp;</div>
              <label class="control-label wd-S inchklbl clear" ></label> <div class="col" style="width:2px;">&nbsp;</div>
              <label class="control-label wd-S jmcatlbl " ></label> <div class="col" style="width:2px;">&nbsp;</div>
              <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" style="height:10px;">&nbsp;</div>{*ちょっとあける*}

          <div class="col wp-100 header2">
            <div class="col wd-900">
              <div class="col wp-100 ktktcdGrp">
                <div class="col wd-400">
                  <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 required clear" 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 class="col wd-020">&nbsp;</div>
                </div>

                <label class="control-label wd-080 in-required" >販売区分</label>
                <input name="gdflg" type="text" class="form-control input-sm item wd-kbn gdflg clear  required" maxlength="1" />
                <div class="col wd-100" style="padding-top:3px;">&nbsp;     1:定番 2:特売</div>

                <label class="control-label wd-280 asnlbl clear" style="letter-spacing: -2px;" ></label>

              </div>
              <div class="col wp-100 date">
                <div class="col wd-400 date">
                  <label class="control-label wd-080 in-required" >出庫予定日</label>
                  <input name="ydat" type="text" class="form-control input-sm item wd-date ydat 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-080 poplabel " style="letter-spacing: -3px;">センターコード</label>
                <input name="cudcd" type="text" class="form-control input-sm item wd-SS cshcd eventcshcd popCshcd cudcd clear " maxlength="3" value="">  
                <input type="button" class="col popbtn cmdCshcd " tabindex="-1" value="?"/>
                <input name="cudnm" type="text" class="form-control input-sm item wd-L cshnm cudnm clear" readonly value="">
                <label class="control-label wd-S lblcutax clear "  ></label>
              </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  " 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  " 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  " maxlength="3" />
                  <div class="col wd-030">&nbsp;</div>
                </div>

                {*あるけど非表示*}
                <label class="control-label wd-080 " style="display:none;">売上区分</label>
                <label class="control-label checkbox-label"  style="display:none;"><input name="jmcat" type="radio" value="1" class="form-control item input-sm wd-020 clear jmcat default-chk" checked tabindex="-1" />通常</label> <div class="col wd-020">&nbsp;</div>
                <label class="control-label checkbox-label"  style="display:none;"><input name="jmcat" type="radio" value="2" class="form-control item input-sm wd-020 clear jmcat" tabindex="-1" />サンプル・代替品</label>
              </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="com" type="text" class="form-control input-sm item wd-300 com2 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  " 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  " 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  " 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  " 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="cutaxcls" type="hidden" class="cutaxcls " value="{$header.cutaxcls}" /> {*994.cls(CUTAXCLS) 総額得意先の単価入力制御 0:税抜入力, 1:税込入力*}
          <input name="cstchk"   type="hidden" class="cstchk " value="{$header.cstchk}" /> {*994.cls(AF203X) 単価チェック 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=""/> {*税率混在可不可 ''0':混在不可 '1':混在許可*}
          <input name="cusacls"  type="hidden" class="cusacls clear"  value=""/> {*0:受注入力画面に小売売価を表示しない　1:する*}

          <input name="wseq"     type="hidden" class="wseq clear" />
          <input name="cuiseq"   type="hidden" class="cuiseq clear"/>
          <input name="hflg"     type="hidden" class="hflg clear" /> {*呼び出した伝票が引当済かどうか。'1'なら引当済。修正=引当解除となるので登録押下時メッセージ出す*}

          <input name="defjmcat" type="hidden" class="defjmcat" /> {*初期表示ダイアログの値保持　クリアで消さない*}
          <input name="deftoday" type="hidden" class="deftoday" /> {*初期表示ダイアログの値保持　クリアで消さない*}

          <input name="jmcat2"   type="hidden" class="jmcat2" /> {*jmcat='1'or'3'は明細毎に設定可　クリアで消さない*}

          <input name="pkbn1"    type="hidden" class="pkbn1" /> {*伝票印字区分(社名) チェック:0, 未チェック:1*}
          <input name="pkbn2"    type="hidden" class="pkbn2" /> {*伝票印字区分(納入単価) チェック:0, 未チェック:1*}


          <input name="sdday"  type="hidden" class="sdday" value="{$header.sdday}" />
          <input name="sysday" type="hidden" class="sysday" value="{$header.sysday}" />
          <input name="jdat"   type="hidden" class="jdat clear" value="{$header.jdat}" /> 
          <input name="wret"   type="hidden" class="wret" value="{$header.wret}" />       {*表示用plsqlの返り値*}
        </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>
            <div class="col wd-number"><label class="control-label text-right sallbl chgvisible right">売価</label>&nbsp;</div>
            <label class="control-label wd-030 center"></label>
            <label class="control-label wd-SS"></label>
            <label class="control-label wd-S cutaxlbl white center" style="height:17px;">総額得意先</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>
            <div class="col wd-number"><label class="control-label text-right chgvisible right">売価金額</label>&nbsp;</div>
            <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:622px;">
            <div class="col wp-100" style="height:15px;">
              <label class="control-label wd-100" >【納入単価】</label>
              <label class="control-label wd-400 red" >赤色：納入単価＜仕入単価</label>
            </div>
            <div class="col wp-100" style="height:18px;">
              <label class="control-label wd-100" >&nbsp;</label>
              <label class="control-label wd-400 blue" >青色：納入単価＞小売単価</label>
            </div>
          </div>
          <label class="control-label wd-040" > 合計</label>
          {*<input id="sum_mvpno" name="gcst" type="text" class="form-control item input-sm wd-number number gmvpno clear " readonly value="{$data.gmvpno}" />*}
          <div class="col" style="width:102px;">&nbsp;</div>
          <input id="sum_scst" name="gcst" type="text" class="form-control item input-sm wd-number number gcst clear " style="width:82px;" readonly value="{$data.gcst}" />
          <div class="item inputReadOnly" style="width:15px;">&nbsp;</div>
          <input id="sum_ssal" name="gsal" type="text" class="form-control item input-sm wd-number number gsal clear " readonly value="{$data.gsal}" />
  
<input id="lastDetail" type="text" style="opacity:0;height:0px;"/>
<input type="text" class="dummy wd-010" />
          </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>

  {*起動時の入力別選択子画面*}
  <div id="selectJmcat" class="col dialog " style="{if $header.nodspselectjmcat eq "1"}display:none;{/if}" >
    <div class="col wp-100 title">入力別選択</div>
    <div class="col wp-100 main ">
      <div class="col wp-100 blue" style="line-height: 30px;">入力種別を選択してください</div>
      <div class="col wp-010">&nbsp;</div>
      <div class="col wp-090">
        <div class="col wp-100">
          <label class="control-label checkbox-label"><input name="rdo_jmcat" type="radio" value="1" class="form-control item input-sm wd-020 rdo_jmcat clear default-chk" checked tabindex="-1" />商品</label> <div class="col wd-020">&nbsp;</div>
          <label class="control-label checkbox-label"><input name="rdo_jmcat" type="radio" value="2" class="form-control item input-sm wd-020 rdo_jmcat clear" tabindex="-1" />販促品・サンプル</label>
        </div>
        <div class="col wp-100" style="height:5px;">&nbsp;</div>
        <div class="col wp-100">
          <label class="control-label checkbox-label"><input name="rdo_today" type="radio" value="1" class="form-control item input-sm wd-020 rdo_today clear default-chk" checked tabindex="-1" />当日</label> <div class="col wd-020">&nbsp;</div>
          <label class="control-label checkbox-label"><input name="rdo_today" type="radio" value="2" class="form-control item input-sm wd-020 rdo_today clear" tabindex="-1" />翌日</label>
        </div>
      </div>
    </div>
    <div class="col wp-100 bottom ">
      <hr>
      <div class="col right">
        <input type="button" class="wd-func btn-main wd-080 center btn-yes kettei"  value="決定" />
      </div>
    </div>
  </div>

  {*登録前のの伝票印字区分設定子画面*}
  <div id="af895x" class="col dialog " style="display:none;">
    <div class="col wp-100 title">伝票印字区分設定</div>
    <div class="col wp-100 main ">
      <div class="col wp-100" style="line-height: 30px;">印字区分を設定して下さい</div>
      <hr style="margin: 3px 0px;" >
      <div class="col wp-100">
        <div class="col wp-100">
          <label class="control-label checkbox-label lblpkbn1 " style="margin-bottom:0px; padding-bottom:0px;">
            <input type="checkbox" value="0" class="form-control item input-sm wd-020 pkbn1 clear" checked tabindex="-1" />社名印字する {*チェック:0, 未チェック:1*}
          </label>
          <div class="col wd-020">&nbsp;</div>
          <label class="control-label checkbox-label lblpkbn2 " style="margin-bottom:0px; padding-bottom:0px;">
            <input type="checkbox" value="0" class="form-control item input-sm wd-020 pkbn2 clear" checked tabindex="-1" />納入単価印字する {*チェック:0, 未チェック:1*}
          </label> 
        </div>
      </div>

    </div>
    <div class="col wp-100 bottom ">
      <hr>
      <div class="col right">
        <input type="button" class="wd-func btn-main wd-080 center kettei noevent Func9"  value="決定[F9]" />
        <input type="button" class="wd-func btn-main wd-080 center modoru  noevent Func12"  value="戻る[F12]" />
      </div>
    </div>
  </div>


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

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

</div>
