<!-- body -->
<div class="container contents af905x" 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 ktktcdGrp">
          <label class="control-label wd-090 poplabel in-required ">倉庫コード</label>
          <input name="ktktcd" type="text" class="form-control input-sm item wd-SS ktktcd popKtktcd eventKtktcd required clear keycd" data-stpflg="2" maxlength="3" value="{$header.ktktcd}"/>
          <input type="button" class="col popbtn cmdKtktcd" 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}" />
      </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 ">
                <label class="control-label wd-090 in-required" >倉庫名</label>
                <input name="ktktnm" type="text" class="form-control input-sm item wd-M ktktnm clear keycd" maxlength="16" value="{$data.ktktnm}">
              </div>
              <div class="col wp-100 ">
                <label class="control-label wd-090 " >カナ(半角)</label>
                <input name="ktktnk" type="text" class="form-control input-sm item wd-M ktktnk clear " maxlength="12" value="{$data.ktktnk}">
                <label class="control-label wd-050 " >&nbsp;</label>
                <label class="control-label wd-090" >拠点識別</label>
                <select id="af905xKtcls" name="ktcls" class="col form-control item input-sm wd-M ktcls clear">
                  <option value="" {if $data.ktcls eq $select.cd}selected{/if}></option>
                  {foreach from=$listKtcls item=select name=select}
                    <option value="{$select.cd}" data-val="{$select.kbn}" {if $data.ktcls eq $select.cd}selected{/if}>{$select.nm}</option>
                  {/foreach}
                </select>
              </div>
            </div>

            <hr>

            <div class="col wp-100">
              <label class="control-label wd-120" >【住所】</label>
            </div>
            <div class="col wp-100">
              <div class="col wd-350">
                <label class="control-label wd-090 " >〒</label>
                <input name="ktzip" type="text" class="form-control input-sm item wd-S ktzip clear " maxlength="8" value="{$data.ktzip}">
                <label class="control-label wd-080" >&nbsp;</label>
              </div>
            </div>
            <div class="col wp-100 scls90Grp">
              <label class="control-label wd-090" >住所</label>
              <input name="ktad1" type="text" class="form-control input-sm item wd-L ktad1 clear " maxlength="32" value="{$data.ktad1}">
              <input name="ktad2" type="text" class="form-control input-sm item wd-LL ktad2 clear " maxlength="40" value="{$data.ktad2}">
            </div>
            <div class="col wp-100">
              <label class="control-label wd-090 " >TEL</label>
              <input name="kttel" type="text" class="form-control input-sm item wd-M kttel clear " maxlength="15" value="{$data.kttel}">
              <label class="control-label wd-050" >&nbsp;</label>
              <label class="control-label wd-060 " >FAX</label>
              <input name="ktfax" type="text" class="form-control input-sm item wd-M ktfax clear " maxlength="15" value="{$data.ktfax}">
            </div>
            <hr>
            <div class="col wp-100" style="height:5px;"></div>
            <div class="col well2" style="width:40%;">
              <div class="col wp-100">
                <label class="control-label wd-120" >【発注業務関連】</label>
              </div>
              <div class="col wp-100">
                <label class="control-label wd-180">自動発注計算</label>
                <select name="htcls" class="col form-control item input-sm wd-M htcls clear">
                  <option value=""></option>
                  {foreach from=$listHtcls item=select name=select}
                    <option value="{$select.cd}" {if $data.htcls eq $select.cd}selected{/if}>{$select.nm}</option>
                  {/foreach}
                </select>
              </div>
              <div class="col wp-100">
                <label class="control-label wd-180 " >発注点係数(日)</label>
                <input name="htpnt1" type="text" class="form-control input-sm item wd-SS htpnt1 clear number" maxlength="3" value="{$data.htpnt1}">
              </div>
              <div class="col wp-100">
                <label class="control-label wd-180 " >安全在庫係数(日)</label>
                <input name="htpnt2" type="text" class="form-control input-sm item wd-SS htpnt2 clear number" maxlength="3" value="{$data.htpnt2}">
              </div>
              <div class="col wp-100">
                <label class="control-label wd-180 " >発注リードタイム(予定日)</label>
                <input name="htlmt1" type="text" class="form-control input-sm item wd-SS htlmt1 clear number" maxlength="3" value="{$data.htlmt1}">
              </div>
              <div class="col wp-100">
                  <label class="control-label wd-180 " >発注リードタイム(期限)</label>
                  <input name="htlmt2" type="text" class="form-control input-sm item wd-SS htlmt2 clear number" maxlength="3" value="{$data.htlmt2}">
              </div>
              <div class="col wp-100">
                <label class="control-label wd-180">入庫予定送信対象</label>
                <select name="nyflg" class="col form-control item input-sm wd-M nyflg clear">
                  {foreach from=$listNyflg item=select name=select}
                    <option value="{$select.cd}" {if $data.nyflg eq $select.cd}selected{/if}>{$select.nm}</option>
                  {/foreach}
                </select>
              </div>
            </div>
            <div class="col " style="width:10%;">
              <label class="control-label wd-090" >&nbsp;</label>
            </div>
            <div class="col " style="width:50%;">
              <div class="col wp-100" style="height:20px;"></div>
              <div class="col wp-100 ">
                <label class="control-label wd-150 " >実棚卸日</label>
                <input name="tday" type="text" class="form-control input-sm item wd-date tday clear datepicker" maxlength="10" value="{$data.tday}">
              </div>
              <div class="col wp-100 ktktcdGrp">
                <label class="control-label wd-150 " >未処理在庫管理用倉庫</label>
                <input name="ruktcd" type="text" class="form-control input-sm item wd-SS ktktcd eventktktcd popKtktcd ruktcd clear" data-ktcls="50" maxlength="2" value="{$data.ruktcd}">
                <input type="button" class="col popbtn cmdKtktcd" tabindex="-1" value="?"/>
                <input name="ruktnm" type="text" class="form-control input-sm item wd-L ktktnm ruktnm clear" readonly value="{$data.ruktcd}"/>
              </div>
            </div>
            {*非表示項目*}
            <div class="col wp-100">
              <input name="constr" type="hidden" class="form-control input-sm item wd-SS constr" value="{$data.constr}">    
              <input name="dbuser" type="hidden" class="form-control input-sm item wd-SS constr" value="{$data.dbuser}">    
              <input name="dbpass" type="hidden" class="form-control input-sm item wd-SS constr" value="{$data.dbpass}">    
              <input name="hstr" type="hidden" class="form-control input-sm item wd-SS constr" value="{$data.hstr}">    
              <input name="sdno" type="hidden" class="form-control input-sm item wd-SS constr" value="{$data.sdno}">    
              <input name="sdcd" type="hidden" class="form-control input-sm item wd-SS constr" value="{$data.sdcd}">    
              <input name="ipsegadr" type="hidden" class="form-control input-sm item wd-SS constr" value="{$data.ipsegadr}">    
              <input name="constr2" type="hidden" class="form-control input-sm item wd-SS constr" value="{$data.constr2}">    
              <input name="dbuser2" type="hidden" class="form-control input-sm item wd-SS constr" value="{$data.dbuser2}">    
              <input name="dbpass2" type="hidden" class="form-control input-sm item wd-SS constr" value="{$data.dbpass2}">    
              <input name="hstr2" type="hidden" class="form-control input-sm item wd-SS constr" value="{$data.hstr2}">    
            </div>

            <input type="text" class="dummy" />

            <div class="col wp-100">
              <div class="item wd-600"></div>
              <label class="control-label wd-040">登録日</label>
              <input name="reg" type="text" class="form-control input-sm item wd-120 reg clear " readonly tabindex="-1" value="{$data.reg}" />
              <label class="control-label wd-020 "></label>
              <label class="control-label wd-040">更新日</label>
              <input name="upd" type="text" class="form-control input-sm item wd-120 upd clear " readonly tabindex="-1" value="{$data.upd}" />
              <label class="control-label wd-020 "></label>
              <label class="control-label wd-040">廃止日</label>
              <input name="stp" type="text" class="form-control input-sm item wd-120 stp stpdat clear "  readonly tabindex="-1" value="{$data.stp}" />
              <input type="text" class="dummy2 dummy">
            </div>
          </div>
        </div>
      </div>
    </form>
  </div>
  <!-- footer
  ================================================== -->
  <div class="col wp-100" style="height:30px"></div> {*メニュー分あける*}

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

</div>
