<!-- body -->
<div class="container contents af902x" style="width:1260px;">
   <!-- header menu
    ================================================== -->
  <div class="bs-docs-section clearfix">
    <form id="headerTop" class="header form-horizontal  {$noeventClassHeader}">
      <div class="col wp-100 well">
        <div class="col wp-100" style="height:38px"></div> {*メニュー分あける*}
       <div class="col wp-100">
        <div class="col wp-100 janGrp ">
          <label class="control-label wd-100  poplabel in-required" >JAN</label>
          <input name="jan" type="text" class="form-control input-sm item wd-M jan popJan required eventjan clear keycd inpjan" maxlength="13" data-stpflg="2" value="{$header.jan}">
          <input name="ijan" type="hidden" class="ijan clear" value="{$header.ijan}"/>
          <input type="button" class="col popbtn cmdJan" tabindex="-1" value="?"/>
          <input type="text" class="dummy" />

          <div class="right">
            <label class="control-label wd-050 modelbl clear" ></label>
          </div>
        </div>

        <!-- 1:新規, 2:更新 -->
        <input id="smode" name="smode" type="hidden" class="smode" value="{$header.smode}" />
        <input name="param1" type="hidden" class="param1" value="{$header.param1}"/> {*メニューから渡されてきた値*}
      </div>
    </form>
  </div>

  <!-- body
  ================================================== -->
  <div class="bs-docs-section">
    <form class="body" >
      <div id="detailTop" class="bs-component col wp-100 {$noeventClassBody}">
        <div id="detail" class="col wp-100 detailArea noSelectRow">
          <!-- ↓↓↓*** rows ***↓↓↓ -->
          <div class="col wp-100 detail ">

            {*↓↓↓↓↓品名とかの基本情報*}
            <div class="col wp-100 ">
              <div class="col wp-100 ">
                <div class="col wp-040 ">
                  <label class="control-label wd-100 in-required">品名</label>
                  <input name="gdjnm" type="text" class="form-control input-sm item wd-300 gdjnm clear required keycd" maxlength="40" value="{$data.gdjnm}"/>
                </div>
                <div class="col wp-040 ">
                  <label class="control-label wd-100 ">規格</label>
                  <input name="gdjstnd" type="text" class="form-control input-sm item wd-300 gdjstnd clear" maxlength="40" value="{$data.gdjstnd}"/>
                </div>
                <div class="col janGrp">
                  <label class="control-label wd-090 in-required">商品コード</label>
                  <input name="vjan" type="text" class="form-control input-sm item wd-100 vjan clear required lpad popJan inpjan" maxlength="10" value="{$data.vjan}"/>
                  <input type="button" class="col popbtn cmdJan" tabindex="-1" value="?"/>
                </div>
              </div>

              <div class="col wp-100 ">
                <div class="col wp-040 ">
                  <label class="control-label wd-100 ">カナ(半角)</label>
                  <input name="gdnm" type="text" class="form-control input-sm item wd-M gdnm clear" maxlength="20" value="{$data.gdnm}"/>
                </div>
                <div class="col wp-040 ">
                  <label class="control-label wd-100 ">カナ(半角)</label>
                  <input name="gdstnd" type="text" class="form-control input-sm item wd-M gdstnd clear" maxlength="20" value="{$data.gdstnd}"/>
                </div>
              </div>

              <div class="col wp-100 ">
                <div class="col wp-040">
                  <label class="control-label wd-100 ">略称</label>
                  <input name="gdnms" type="text" class="form-control input-sm item wd-M gdnms clear" maxlength="20" value="{$data.gdnms}"/>
                </div>
                <div class="col wp-040">
                  <label class="control-label wd-100 ">ITFコード</label>
                  <input name="itfcd" type="text" class="form-control input-sm item wd-M itfcd clear" maxlength="16" value="{$data.itfcd}"/>
                </div>
              </div>

              <div class="col wp-100 scls90Grp ">
                <label class="control-label wd-100 poplabel">ブランド</label>
                <input name="brand" type="text" class="form-control input-sm item wd-050 brand scls1 eventscls90 popScls90 scls90 clear" data-cls90="7" maxlength="3" value="">
                <input type="button" class="col popbtn cmdScls1" tabindex="-1" value="?"/>
                <input name="brandnm" type="text" class="form-control input-sm item wd-LL brandnm scls90nm clear " readonly value=""/>
              </div>
            </div>
            {*↑↑↑↑↑品名とかの基本情報*}

            <hr>

            {*左側*}
            <div class="col" style="width:58%;">
              {*↓↓↓↓↓単価情報*}
              <div class="col wp-100">
                <label class="control-label wd-100 " style="padding-bottom: 0px; margin-bottom:0px;">【単価情報】</label>
                <div class="col wp-100">
                  <div class="col wd-250">
                    <label class="control-label wd-100 ">定価</label>
                    <input name="gdacst" type="text" class="form-control input-sm item wd-number gdacst number clear" maxlength="9" value="{$data.gdacst}"/>
                    <div class="item wd-SS">&nbsp;</div>
                  </div>
                  <div class="col wd-220">
                    <label class="control-label wd-070 ">売価</label>
                    <input name="gdsal" type="text" class="form-control input-sm item wd-number gdsal number clear" maxlength="9" value="{$data.gdsal}"/>
                    <div class="item wd-SS">&nbsp;</div>
                  </div>
                  <div class="col">
                    <label class="control-label wd-100 ">標準納入単価</label>
                    <input name="gdbcst" type="text" class="form-control input-sm item wd-number gdbcst number clear" fixed="2" maxlength="12" value="{$data.gdbcst}"/>
                  </div>
                </div>

                <div class="col wp-100">
                  <div class="col wd-250">
                    <label class="control-label wd-100 ">仕入単価</label>
                    <input name="gdcst" type="text" class="form-control input-sm item wd-number gdcst number clear" fixed="2" maxlength="12" value="{$data.gdcst}"/>
                    <div class="item wd-SS">&nbsp;</div>
                  </div>
                  <div class="col wd-220">
                    <label class="control-label wd-070 ">特売売価</label>
                    <input name="gdtsal" type="text" class="form-control input-sm item wd-number gdtsal number clear" maxlength="9" value="{$data.gdtsal}"/>
                    <div class="item wd-SS">&nbsp;</div>
                  </div>
                </div>
              </div>
              {*↑↑↑↑↑単価情報*}

              <hr>

              {*↓↓↓↓↓受注業務関連とか*}
              <div class="col wp-100 ">
                <label class="control-label wp-100 " style="padding-bottom: 0px; margin-bottom:0px;">【受注業務関連】</label>
                <div class="col wd-250 ">
                  <label class="control-label wd-100 " style="letter-spacing:-1px;">最小受注単位数</label>
                  <input name="gdstun" type="text" class="form-control input-sm item wd-number gdstun number clear" maxlength="5" value="{$data.gdstun}"/>
                  <div class="item wd-SS">&nbsp;</div>
                </div>
                <div class="col wd-250 date">
                  <label class="control-label wd-050 " >発売日</label>
                  <input name="rldat" type="text" class="form-control input-sm item wd-date rldat datepicker clear" maxlength="10" value="{$data.rldat}"/>
                  <input type="button" class="col popbtn cmdDatepicker" tabindex="-1" value="?"/>
                  <div class="item wd-SS">&nbsp;</div>
                </div>
              </div>
              {*↑↑↑↑↑受注業務関連とか*}


              <hr>

              {*↓↓↓↓↓仕入先明細*}
              <div class="col wp-100">
                <input id="m02mcd" name="m02mcd" type="hidden" class="m02mcd clear" value="{$data.m02mcd}"/>
                <label class="control-label wp-100 " style="padding-bottom: 0px; margin-bottom:0px;">【仕入先】</label>
                <div class="col wp-100">
                  <div class="col wp-100" style="height:16px;">
                    <label class="control-label wd-kbn center" >代表</label>
                    <label class="control-label wd-090 " >仕入先</label>
                    <label class="control-label wd-kbn " ></label>
                    <label class="control-label wd-MM  " ></label>
                    <label class="control-label wd-S text-right" >仕入単価&nbsp;&nbsp;</label>
                    <label class="control-label wd-S text-right" >旧仕入単価&nbsp;&nbsp;</label>
                    <label class="control-label wd-S text-right" >返品単価&nbsp;&nbsp;</label>
                    <label class="control-label wd-060 center" >返品単価</label>
                    <label class="control-label wd-kbn center" >削除</label>
                  </div>
                </div>
                <div id="detail2" class="col wp-100 x_scroll detailArea" style="height:120px;">
                  <hr>
                  <div class="col wp-100 detail">

                  </div>
                </div>
                <hr>
                
              </div>

              <div class="col wp-100">
                <input id="lastDetail2" type="text" style="opacity:0;height:0px;width:1px;"/>
                <label class="control-label">※チェックをつけた仕入先が代表仕入先になります</label>
              </div>
              <div class="col wp-100 mcdGrp">
                <label class="control-label wd-100 ">補填用仕入先</label>
                <input name="meka" type="text" class="form-control input-sm item wd-S meka clear mcd popMcd eventmcd" maxlength="7" value="{$data.meka}"/>
                <input type="button" class="col popbtn cmdMcd " tabindex="-1" value="?"/>
                <input name="mekanm" type="text" class="form-control input-sm item wd-L mekanm clear mnm" readonly value="{$data.mekanm}"/>
              </div>
              {*↑↑↑↑↑仕入先*}

            </div>


            {*右と左の間の隙間*}
            <div class="col" style="width:2%;">&nbsp;</div>


            {*右側*}
            <div class="col wp-040">
              {*↓↓↓↓↓分類*}
              <div class="col wp-100 gdclsGrp">
                <label class="control-label wp-100 " style="padding-bottom: 0px; margin-bottom:0px;">【分類】</label>
                {*分類左*}
                <div class="col wp-050 gdclsGrp">
                  <div class="col wp-100">
                    <label class="control-label wd-050" >大分類</label>
                    <select id="gdcls1" name="gdcls1" class="col form-control input-sm wd-160 gdcls1 clear">
                      <option value=""></option>
                      {foreach from=$listGdcls1 item=select name=select}
                        <option value="{$select.cd}" {if $data.gdcls1 eq $select.cd}selected{/if}>{$select.nm}</option>
                      {/foreach}
                    </select>
                  </div>
                  <div class="col wp-100">
                    <label class="control-label wd-050" >中分類</label>
                    <select id="gdcls2" name="gdcls2" class="col form-control input-sm wd-160 gdcls2 clear">
                      <option value=""></option>
                      {foreach from=$listGdcls2 item=select name=select}
                        <option value="{$select.cd}" {if $data.gdcls2 eq $select.cd}selected{/if}>{$select.nm}</option>
                      {/foreach}
                    </select>
                  </div>
                  <div class="col wp-100">
                    <label class="control-label wd-050" >小分類</label>
                    <select id="gdcls3" name="gdcls3" class="col form-control input-sm wd-160 gdcls3 clear">
                      <option value=""></option>
                      {foreach from=$listGdcls3 item=select name=select}
                        <option value="{$select.cd}" {if $data.gdcls3 eq $select.cd}selected{/if}>{$select.nm}</option>
                      {/foreach}
                    </select>
                  </div>
                  <div class="col wp-100">
                    <label class="control-label wd-100" >出荷制限区分</label>
                    <select id="gdpkf" name="gdpkf" class="col form-control input-sm wd-110 gdpkf clear">
                      <option value=""></option>
                      {foreach from=$listGdpkf item=select name=select}
                        <option value="{$select.cd}" {if $data.gdpkf eq $select.cd}selected{/if}>{$select.nm}</option>
                      {/foreach}
                    </select>
                  </div>
                </div>
                {*分類右*}
                <div class="col wp-050">
                  <div class="col wp-100">
                    <label class="control-label wd-080" >商品外区分</label>
                    <select id="gdcls7" name="gdcls7" class="col form-control input-sm wd-160 gdcls7 clear">
                      <option value=""></option>
                      {foreach from=$listGdcls7 item=select name=select}
                        <option value="{$select.cd}" {if $data.gdcls7 eq $select.cd}selected{/if}>{$select.nm}</option>
                      {/foreach}
                    </select>
                  </div>
                  <div class="col wp-100">
                    <label class="control-label wd-080" >改廃区分</label>
                    <select id="gdcls9" name="gdcls9" class="col form-control input-sm wd-160 gdcls9 clear">
                      <option value=""></option>
                      {foreach from=$listGdcls9 item=select name=select}
                        <option value="{$select.cd}" {if $data.gdcls9 eq $select.cd}selected{/if}>{$select.nm}</option>
                      {/foreach}
                    </select>
                    <input type="text" class="dummy"/>
                  </div>
                </div>
              </div>
              {*↑↑↑↑↑分類*}

              <hr>

              {*↓↓↓↓↓サイズ・入数*}

              <div class="tabs " style="height:180px;margin-top:15px;" >
                {*p01,p02,p03は下で使っているので、p11,p12を使用する*}
                <input id="p11" type="radio" name="tab2_item" class="tab" checked>
                <label class="tab_item" for="p11">通常</label>
                <input id="p12" type="radio" name="tab2_item" class="tab">
                <label class="tab_item" for="p12">物流用</label>             

                {*通常*}
                <div class="col wp-100 tab_content" id="p11_content" style="height:180px;">
                  <div class="col wp-100 calCapGrp">
                    <div calss="col ">
                      <div class="col wd-600" >
                        <div class="col wp-100" style="height:5px;">&nbsp;</div>
                        <div class="col wp-100"  style="height:20px; margin-top:-12px;">
                          <label class="control-label wd-050" >&nbsp;</label>
                          <label class="control-label wd-S text-right" >入数</label>
                          <label class="control-label wd-S text-right" >幅(mm)</label>
                          <label class="control-label wd-S text-right" >奥行(mm)</label>
                          <label class="control-label wd-S text-right" >高さ(mm)</label>
                          <label class="control-label wd-S text-right" >重量(g)</label>
                        </div>
                        <div class="col wp-100">
                          <label class="control-label wd-050" >ケース</label>
                          <input name="gdcnum" type="text" class="form-control input-sm item wd-S cnum calcCap gdcnum number clear" maxlength="5" value="{$data.gdcnum}"/>
                          <input name="gdcwid" type="text" class="form-control input-sm item wd-S cwid calcCap gdcwid number clear" maxlength="5" value="{$data.gdcwid}"/>
                          <input name="gdcdep" type="text" class="form-control input-sm item wd-S cdep calcCap gdcdep number clear" maxlength="5" value="{$data.gdcdep}"/>
                          <input name="gdchig" type="text" class="form-control input-sm item wd-S chig calcCap gdchig number clear" maxlength="5" value="{$data.gdchig}"/>
                          <input name="gdcwgh" type="text" class="form-control input-sm item wd-S cwgh calcCap gdcwgh number clear" fixed="2" maxlength="8" value="{$data.gdcwgh}"/>
                        </div>
                        <div class="col wp-100">
                          <label class="control-label wd-050" >ボール</label>
                          <input name="gdbnum" type="text" class="form-control input-sm item wd-S bnum calcCap gdbnum number clear" maxlength="5" value="{$data.gdbnum}"/>
                          <input name="gdbwid" type="text" class="form-control input-sm item wd-S bwid calcCap gdbwid number clear" maxlength="5" value="{$data.gdbwid}"/>
                          <input name="gdbdep" type="text" class="form-control input-sm item wd-S bdep calcCap gdbdep number clear" maxlength="5" value="{$data.gdbdep}"/>
                          <input name="gdbhig" type="text" class="form-control input-sm item wd-S bhig calcCap gdbhig number clear" maxlength="5" value="{$data.gdbhig}"/>
                          <input name="gdbwgh" type="text" class="form-control input-sm item wd-S bwgh calcCap gdbwgh number clear" fixed="2" maxlength="8" value="{$data.gdbwgh}"/>
                        </div>
                        <div class="col wp-100">
                          <label class="control-label wd-050" >ピース</label>
                          <div class="item wd-080">&nbsp;</div>
                          <input name="gdpwid" type="text" class="form-control input-sm item wd-S pwid calcCap gdpwid number clear" maxlength="5" value="{$data.gdpwid}"/>
                          <input name="gdpdep" type="text" class="form-control input-sm item wd-S pdep calcCap gdpdep number clear" maxlength="5" value="{$data.gdpdep}"/>
                          <input name="gdphig" type="text" class="form-control input-sm item wd-S phig calcCap gdphig number clear" maxlength="5" value="{$data.gdphig}"/>
                          <input name="gdpwgh" type="text" class="form-control input-sm item wd-S pwgh calcCap gdpwgh number clear" fixed="2" maxlength="8" value="{$data.gdpwgh}"/>
                        </div>
                      </div>
                      <div class="col wp-100">
                        <div class="col wp-100" style="height:10px;">&nbsp;</div>
                        <div class="col wp-100">
                          <div class="col wp-045">
                            <div class="col wd-080">&nbsp;</div>
                            <label class="control-label wd-050" >単位名</label>
                            <input name="gdunm" type="text" class="form-control input-sm item wd-SS gdunm number clear" maxlength="4" value="{$data.gdunm}"/>
                            <input type="text" class="dummy" />
                          </div>
                          <div class="col wp-050">
                            <label class="control-label wd-070" style="height:12px;">ピース体積</label>
                            <input name="gdbcap" type="text" class="form-control input-sm item wd-100 pcap gdpcap number clear" readonly value="{$data.gdpcap}"/>
                            <label class="control-label wd-040" style="height:12px;">(mm<sup>3</sup>)</label>
                          </div>
                        </div>
                      </div>
                    </div>
                  </div>
                </div>

                {*物流用*}
                <div class="col wp-100 tab_content" id="p12_content" style="height:180px;">
                  <div class="col wp-100 calCapGrp">
                    <div calss="col ">
                      <div class="col wd-600">
                        <div class="col wp-100" style="height:5px;">&nbsp;</div>
                        <div class="col wp-100"  style="height:20px; margin-top:-12px;">
                          <label class="control-label wd-050" >&nbsp;</label>
                          <label class="control-label wd-S text-right" >入数</label>
                          <label class="control-label wd-S text-right" >幅(mm)</label>
                          <label class="control-label wd-S text-right" >奥行(mm)</label>
                          <label class="control-label wd-S text-right" >高さ(mm)</label>
                          <label class="control-label wd-S text-right" >重量(g)</label>
                        </div>
                        <div class="col wp-100">
                          <label class="control-label wd-050" >ケース</label>
                          <input name="gdcnum2" type="text" class="form-control input-sm item wd-S cnum calcCap gdcnum2 number clear" maxlength="5" value="{$data.gdcnum2}"/>
                          <input name="gdcwid2" type="text" class="form-control input-sm item wd-S cwid calcCap gdcwid2 number clear" maxlength="5" value="{$data.gdcwid2}"/>
                          <input name="gdcdep2" type="text" class="form-control input-sm item wd-S cdep calcCap gdcdep2 number clear" maxlength="5" value="{$data.gdcdep2}"/>
                          <input name="gdchig2" type="text" class="form-control input-sm item wd-S chig calcCap gdchig2 number clear" maxlength="5" value="{$data.gdchig2}"/>
                          <input name="gdcwgh2" type="text" class="form-control input-sm item wd-S cwgh calcCap gdcwgh2 number clear" fixed="2" maxlength="8" value="{$data.gdcwg2}"/>
                        </div>
                        <div class="col wp-100">
                          <label class="control-label wd-050" >ボール</label>
                          <input name="gdbnum2" type="text" class="form-control input-sm item wd-S bnum calcCap gdbnum2 number clear" maxlength="5" value="{$data.gdbnum2}"/>
                          <input name="gdbwid2" type="text" class="form-control input-sm item wd-S bwid calcCap gdbwid2 number clear" maxlength="5" value="{$data.gdbwid2}"/>
                          <input name="gdbdep2" type="text" class="form-control input-sm item wd-S bdep calcCap gdbdep2 number clear" maxlength="5" value="{$data.gdbdep2}"/>
                          <input name="gdbhig2" type="text" class="form-control input-sm item wd-S bhig calcCap gdbhig2 number clear" maxlength="5" value="{$data.gdbhig2}"/>
                          <input name="gdbwgh2" type="text" class="form-control input-sm item wd-S bwgh calcCap gdbwgh2 number clear" fixed="2" maxlength="8" value="{$data.gdbwgh2}"/>
                        </div>
                        <div class="col wp-100">
                          <label class="control-label wd-050" >ピース</label>
                          <div class="item wd-080">&nbsp;</div>
                          <input name="gdpwid2" type="text" class="form-control input-sm item wd-S pwid calcCap gdpwid2 number clear" maxlength="5" value="{$data.gdpwid2}"/>
                          <input name="gdpdep2" type="text" class="form-control input-sm item wd-S pdep calcCap gdpdep2 number clear" maxlength="5" value="{$data.gdpdep2}"/>
                          <input name="gdphig2" type="text" class="form-control input-sm item wd-S phig calcCap gdphig2 number clear" maxlength="5" value="{$data.gdphig2}"/>
                          <input name="gdpwgh2" type="text" class="form-control input-sm item wd-S pwgh calcCap gdpwgh2 number clear" fixed="2" maxlength="8" value="{$data.gdpwgh2}"/>
                          <input type="text" class="dummy" />
                        </div>
                      </div>
                      <div class="col wp-100">
                        <div class="col wp-100" style="height:10px;">&nbsp;</div>
                        <div class="col wp-100">
                          <div class="col wp-045">
                            &nbsp;
                          </div>
                          <div class="col wp-050">
                            <label class="control-label wd-070" style="height:12px;">ピース体積</label>
                            <input name="gdbcap2" type="text" class="form-control input-sm item wd-100 pcap gdpcap2 number clear" readonly value="{$data.gdpcap2}"/>
                            <label class="control-label wd-040" style="height:12px;">(mm<sup>3</sup>)</label>
                          </div>
                        </div>
                      </div>
                    </div>
                  </div>
                </div>
              </div>
              {*↑↑↑↑↑サイズ・入数*}
            </div>

            <hr>

            {*↓↓↓↓↓下側のタブ↓↓↓↓↓*}
            <div class="tabs " style="height:230px;margin-top:15px;" >
              <input id="p01" type="radio" name="tab_item" class="tab" checked>
              <label class="tab_item" for="p01">注釈</label>
              <input id="p02" type="radio" name="tab_item" class="tab">
              <label class="tab_item" for="p02">発注業務関連</label>
              <input id="p03" type="radio" name="tab_item" class="tab">
              <label class="tab_item" for="p03">消費税関連</label>

              {*注釈*}
              <div class="col wp-100 tab_content" id="p01_content" style="height:230px;">
                <div class="col wp-100">
                  {*左*}
                  <div class="col wp-050">
                    <div class="col wp-100 ">
                      <label class="control-label wd-100 ">メーカー名</label>
                      <input name="mknm" type="text" class="form-control input-sm item wd-310 mknm clear " maxlength="40" value="{$data.mknm}"/>
                    </div>
                    <div class="col wp-100 ">
                      <label class="control-label wd-100 ">商品トピック</label>
                      <input name="gdtpc" type="text" class="form-control input-sm item wd-240 gdtpc clear " maxlength="30" value="{$data.gdtpc}"/>
                    </div>
                    <div class="col wp-100 ">
                      <label class="control-label wd-100 ">取扱要因</label>
                      <input name="gdhdfc" type="text" class="form-control input-sm item wd-310 gdhdfc clear " maxlength="40" value="{$data.gdhdfc}"/> {*DB定義は256。一旦40で製造*}

                    </div>
                    <div class="col wp-100 ">
                      <label class="control-label wd-100 ">POPコメント</label>
                      <input name="gdpopcmt" type="text" class="form-control input-sm item wd-310 gdpopcmt clear " maxlength="40" value="{$data.gdpopcmt}"/> {*DB定義は256。一旦40で製造*}
                    </div>
                  </div>

                  {*右*}
                  <div class="col wp-050" style="margin-top: -10px;">
                    <div class="col wp-100 ">
                      <div class="col wd-200 ">
                        <label class="control-label wd-080 ">賞味日数</label>
                        <input name="slimit" type="text" class="form-control input-sm item wd-S slimit number clear" maxlength="5" value="{$data.slimit}"/>
                      </div>
                      <div class="col wd-200 ">
                        <label class="control-label wd-080 " style="letter-spacing: -1px;" >出庫可能日数</label>
                        <input name="glimit" type="text" class="form-control input-sm item wd-S glimit number clear" maxlength="4" value="{$data.glimit}"/>
                      </div>
                    </div>
                    <div class="col wp-100">
                      <div class="col wd-200">
                        <label class="control-label wd-080" style="letter-spacing: -1px;" >定価厳守区分</label>
                        <select id="gdtcls" name="gdtcls" class="col form-control input-sm wd-100 gdtcls clear">
                          <option value=""></option>
                          {foreach from=$listGdtcls item=select name=select}
                            <option value="{$select.cd}" {if $data.gdtcls eq $select.cd}selected{/if}>{$select.nm}</option>
                          {/foreach}
                        </select>
                      </div>
                      <div class="col wd-200">
                        <label class="control-label wd-080" >返品区分</label>
                        <select id="gdretcls" name="gdretcls" class="col form-control input-sm wd-100 gdretcls clear">
                          <option value=""></option>
                          {foreach from=$listGdretcls item=select name=select}
                            <option value="{$select.cd}" {if $data.gdretcls eq $select.cd}selected{/if}>{$select.nm}</option>
                          {/foreach}
                        </select>
                      </div>
                      <div class="col ">
                        <label class="control-label wd-070" >ネット販売</label>
                        <select id="gdcls8" name="gdcls8" class="col form-control input-sm wd-100 gdcls8 clear">
                          <option value=""></option>
                          {foreach from=$listGdcls8 item=select name=select}
                            <option value="{$select.cd}" {if $data.gdcls8 eq $select.cd}selected{/if}>{$select.nm}</option>
                          {/foreach}
                        </select>
                      </div>
                    </div>
                    <div class="col wp-100 ">
                      <label class="control-label wd-080 ">備考</label>
                      <input name="gdcom" type="text" class="form-control input-sm item wd-310 gdcom clear " maxlength="40" value="{$data.gdcom}"/> {*DB定義は128。一旦40で製造*}
                    </div>
                    <div class="col wp-100 ">
                      <label class="control-label wd-080 ">中止要因</label>
                      <input name="dscom" type="text" class="form-control input-sm item wd-310 dscom clear " maxlength="40" value="{$data.dscom}"/> {*DB定義は256。一旦40で製造*}
                    </div>
                    <div class="col wp-100 date">
                      <label class="control-label wd-080 ">中止日</label>
                      <input name="dsdat" type="text" class="form-control input-sm item wd-date dsdat datepicker clear" maxlength="10" value="{$data.dsdat}"/>
                      <input type="text" class="dummy" />
                    </div>
                  </div>
                </div>
              </div>

              {*発注業務関連*}
              <div class="col wp-100 tab_content" id="p02_content" style="height:230px;">
                <div class="col wp-100">
                  <div class="col wd-220 ">
                    <label class="control-label wd-100 " >発注単位数量</label>
                    <input name="gdhtun" type="text" class="form-control input-sm item wd-S gdhtun number clear" maxlength="5" value="{$data.gdhtun}"/>
                  </div>
                  <div class="col wd-250 ">
                    <label class="control-label wd-150 " style="letter-spacing:-1px;">発注リードタイム(予定日)</label>
                    <input name="htlmt1" type="text" class="form-control input-sm item wd-SS htlmt1 number clear" maxlength="3" value="{$data.htlmt1}"/>
                  </div>
                  <div class="col wd-250 ">
                    <label class="control-label wd-150 " style="letter-spacing:-1px;">発注リードタイム(期限)</label>
                    <input name="htlmt2" type="text" class="form-control input-sm item wd-SS htlmt2 number clear" maxlength="3" value="{$data.htlmt2}"/>
                  </div>
                </div>

                <div class="col wp-100" style="height:20px; margin-top:10px;">
                  <label class="control-label wd-SS  " >倉庫</label>
                  <label class="control-label wd-040 " ></label>
                  <label class="control-label wd-L   " ></label>
                  <label class="control-label wd-150 " >発注計算区分</label>
                  <label class="control-label wd-130 " >発注店区分</label>
                  <label class="control-label wd-100 text-right" >発注点係数&nbsp;&nbsp;</label>
                  <label class="control-label wd-100 text-right" >安全在庫係数&nbsp;&nbsp;</label>
                  <label class="control-label wd-100 text-right" >固定発注店&nbsp;&nbsp;</label>
                  <label class="control-label wd-110 text-right" >固定安全在庫数&nbsp;&nbsp;</label>
                  <label class="control-label wd-kbn center" >削除</label>
                </div>
                <hr>
                <div id="detail3" class="col wp-100 x_scroll detailArea" style="height:100px;">
                  <div class="col wp-100 detail">
                  </div>
                </div>
                <hr>
                <input id="lastDetail3" type="text" style="opacity:0;height:0px;width:1px;"/>
              </div>


              {*消費税関連*}
              <input name="mcd" id="m02mcd" type="hidden" class="mcd clear" value="{$data.mcd}"/>
              <div class="col wp-100 tab_content" id="p03_content" style="height:230px;">
                <div class="col wd-300">
                  <div class="col wp-100">
                    <label class="control-label wd-200" >【税関連情報】</label>
                  </div>
                  <div class="col wp-100">
                    <label class="control-label wd-090" >課税区分</label>
                    <select id="gdtax" name="gdtax" class="col form-control input-sm wd-select-S gdtax clear">
                      {foreach from=$listGdtax item=select name=select}
                        <option value="{$select.cd}" {if $data.gdtax eq $select.cd}selected{/if}>{$select.nm}</option>
                      {/foreach}
                    </select>
                    <input name="gdcls6nm" type="text" class="form-control input-sm item wd-SS gdcls6nm clear" readonly value="{$data.gdcls6nm}">
                    <input name="gdcls6" type="hidden" class="gdcls6 clear" readonly value="{$data.gdcls6}">
                  </div>
                  <div class="col wp-100">
                    <label class="control-label wd-090" style="letter-spacing:-1px;">新消費税開始日</label>
                    <select id="taxrtd" name="taxrtd" class="col form-control input-sm wd-select-S taxrtd clear">
                      <option value="" selected></option>
                      {foreach from=$listTaxrtd item=select name=select}
                        <option value="{$select.cd}" data-val="{$select.scls1}" {if $data.taxrtd eq $select.cd}selected{/if}>{$select.nm}</option>
                      {/foreach}
                    </select>
                    <label class="control-label wd-020" >&nbsp;</label>
                  </div>
                  <div class="col wp-100">
                    <label class="control-label wd-090" >新消費税区分</label>
                    <select id="gdtaxn" name="gdtaxn" class="col form-control input-sm wd-select-S gdtaxn clear">
                      <option value="" selected></option>
                      {foreach from=$listGdtaxn item=select name=select}
                        <option value="{$select.cd}" data-val="{$select.scls1}" {if $data.gdtaxn eq $select.cd}selected{/if}>{$select.nm}</option>
                      {/foreach}
                    </select>
                    <input name="gdclsgnm" type="text" class="form-control input-sm item wd-SS gdclsgnm clear" readonly value="{$data.gdclsgnm}">
                    <input name="gdclsg" type="hidden" class="gdclsg clear" readonly value="{$data.gdclsg}">
                    <input type="text" class="dummy2" />
                  </div>
                </div>
              </div>
            </div>
            {*↑↑↑↑↑下側のタブ↑↑↑↑↑*}


            <div id="footerArea" class="col wp-100">
              <div class="item wd-600"></div>
              <label class="control-label wd-020 "></label>
              <label class="control-label wd-040">登録日</label>
              <input name="gdreg" type="text" class="form-control input-sm item wd-120 gdreg clear" readonly tabindex="-1" value="{$data.gdreg}" />
              <label class="control-label wd-020 "></label>
              <label class="control-label wd-040">更新日</label>
              <input name="gdupd" type="text" class="form-control input-sm item wd-120 gdupd clear" readonly tabindex="-1" value="{$data.gdupd}" />
              <label class="control-label wd-020 "></label>
              <label class="control-label wd-040">廃止日</label>
              <input name="gdstp" type="text" class="form-control input-sm item wd-120 gdstp stpdat clear"  readonly tabindex="-1" value="{$data.gdstp}" />
              <input type="text" class="dummy2 dummy">
            </div>

          </div>
        </div>
      </div>
    </form>
  </div>
  <!-- footer
  ================================================== -->

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

</div>
