<!-- body -->
<div class="container contents af9032x" 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 header">
        <div class="col wp-100" style="height:38px"></div> {*メニュー分あける*}
        <div class="col wp-100 cucdGrp cuscdGrp">
          <div class="col cucdGrp">
            <label class="control-label wd-090 in-required" >得意先コード</label>
            <input name="cucd" type="text" class="form-control input-sm item wd-S cucd popCucd required clear keycd eventcucd" maxlength="7" value="{$header.cucd}">
            <input type="button" class="col popbtn cmdCucd" tabindex="-1" value="?"/>
            <input name="cunm" type="text" class="form-control input-sm item wd-M cunm cunm" readonly maxlength="40" value="{$header.cunm}">
            <div class="col wd-050">&nbsp;</div>
          </div>
          <label class="control-label wd-080  in-required">店舗コード</label>
          <input name="cuscd" type="text" class="form-control input-sm item wd-S cuscd eventcuscd popCuscd required" data-stpflg="2" data-cucdchk="1" maxlength="6" value="{$header.cuscd}"/>
          <input type="button" class="col popbtn cmdCucd" tabindex="-1" value="?"/>
          <input type="text" class="dummy" />

          <div class="right">
            <label class="control-label wd-100 {if $header.smode == "1" || $header.smode == "2" }newLabel{/if} ">{if $header.smode == "1"}新規{elseif $header.smode == "2"}修正{/if}</label>
          </div>
        </div>

        <!-- 1:新規, 2:更新 -->
        <input id="smode" name="smode" type="hidden" class="smode" value="{$header.smode}" />
        <input name="p_jan" type="hidden" class="p_jan" value="{$header.p_jan}" />
      </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 ">
              <label class="control-label wd-110 in-required" >店舗名</label>
              <input name="spnm" type="text" class="form-control input-sm item wd-LL spnm required" maxlength="40" value="{$data.spnm}">
              <label class="control-label wd-020" >&nbsp;</label>
              <label class="control-label wd-040 " >略称</label>
              <input name="spnms" type="text" class="form-control input-sm item wd-M spnms " maxlength="20" value="{$data.spnms}">
              <label class="control-label wd-020" >&nbsp;</label>
              <label class="control-label wd-060 " >部課名称</label>
              <input name="spcls" type="text" class="form-control input-sm item wd-L spcls " maxlength="30" value="{$data.spcls}">
            </div>
            <div class="col wp-100">
              <label class="control-label wd-110">カナ(半角)</label>
              <input name="spknm" type="text" class="form-control input-sm item wd-M spknm" maxlength="20" value="{$data.spknm}"/>
              <label class="control-label wd-020" >&nbsp;</label>
              <label class="control-label wd-040" >区分</label>
              <select name="shflg" class="col form-control input-sm wd-select-S shflg">
                <option value="" selected></option>
                {foreach from=$listShflg item=select name=select}
                  <option value="{$select.cd}" {if $data.shflg eq $select.cd}selected{/if}>{$select.nm}</option>
                {/foreach}
              </select>
              <label class="control-label wd-020" >&nbsp;</label>
              <label class="control-label wd-050 " >年月日</label>
              <input name="shfdt" type="text" class="form-control input-sm item wd-S shfdt " maxlength="6" value="{$data.shfdt}">
              <label class="control-label wd-020" >&nbsp;</label>
              <label class="control-label wd-040 ">備考</label>
              <input name="biko" type="text" class="form-control input-sm item wd-LL biko " maxlength="40" value="{$data.biko}" />
            </div>

            <div class="col wp-100" style="height:3px;"></div>

            <div class="col wp-100 well2">
              <div class="col wp-100">
                <label class="control-label wd-100" >【住所】</label>
              </div>
              <div class="col wp-100 scls90Grp">
                <label class="control-label wd-070 " >〒</label>
                <input name="spzip" type="text" class="form-control input-sm item wd-S spzip " maxlength="8" value="{$data.spzip}">
              </div>
              <div class="col wp-100">
                <label class="control-label wd-070 " >住所</label>
                <input name="spad1" type="text" class="form-control input-sm item wd-LL spad1 " maxlength="40" value="{$data.spad1}">
                <input name="spad2" type="text" class="form-control input-sm item wd-LL spad2 " maxlength="40" value="{$data.spad2}">
              </div>
              <div class="col wp-100">
                <label class="control-label wd-070 " >カナ(半角)</label>
                <input name="spkad1" type="text" class="form-control input-sm item wd-MM spkad1 " maxlength="25" value="{$data.spkad1}">
                <input name="spkad2" type="text" class="form-control input-sm item wd-MM spkad2 " maxlength="25" value="{$data.spkad2}">
                <label class="control-label wd-020" >&nbsp;</label>
                <label class="control-label wd-030 " >TEL</label>
                <input name="sptel" type="text" class="form-control input-sm item wd-M sptel " maxlength="15" value="{$data.sptel}">
                <label class="control-label wd-020" >&nbsp;</label>
                <label class="control-label wd-030 " >FAX</label>
                <input name="spfax" type="text" class="form-control input-sm item wd-M spfax " maxlength="15" value="{$data.spfax}">
                <label class="control-label wd-020" >&nbsp;</label>
                <label class="control-label wd-040 " >地域</label>
                <input name="splct" type="text" class="form-control input-sm item wd-M splct " maxlength="20" value="{$data.splct}">
              </div>
            </div>

            <div class="col wp-100" style="height:5px;"></div>
            <div class="col well2" style="width:35%;">
              <label class="control-label wp-100">【先方コード】</label>
              <div class="col wp-100 ">
                <label class="control-label wd-130 ">得意先扱店舗コード</label>
                <input name="cuspcd" type="text" class="form-control input-sm item wd-S cuspcd " maxlength="9" value="{$data.cuspcd}" />
                <label class="control-label wd-020" >&nbsp;</label>
                <label class="control-label wd-080 ">社店コード</label>
                <input name="cusycd" type="text" class="form-control input-sm item wd-S cusycd " maxlength="9" value="{$data.cusycd}" />
              </div>
              <div class="col wp-100 ">
                <label class="control-label wd-130 ">取引先コード</label>
                <input name="cuedi" type="text" class="form-control input-sm item wd-M cuedi " maxlength="12" value="{$data.cuedi}" />
              </div>
              <div class="col wd-020">&nbsp;</div>
            </div>
            <div class="col well2" style="width:65%;">
              <label class="control-label wp-100">【元帳管理項目】</label>
              <div class="col ">
                <div class="col wp-100">
                  <label class="control-label wd-090 " >前回請求締日</label>
                  <input name="cdat" type="text" class="form-control input-sm item wd-date cdat " readonly maxlength="10" value="{$data.cdat}">
                  <div class="col wd-020">&nbsp;</div>
                  <label class="control-label wd-060 " >前回残高</label>
                  <input name="bal" type="text" class="form-control input-sm item wd-M bal number" readonly maxlength="13" value="{$data.bal|number_format}">
                </div>
                <div class="col wp-100">
                  <label class="control-label wd-090" >店舗請求</label>
                  <select name="cuclcls" class="col form-control item input-sm wd-select-S cuclcls">
                    <option value="" selected></option>
                    {foreach from=$listCuclcls item=select name=select}
                      <option value="{$select.cd}" {if $data.cuclcls eq $select.cd}selected{/if}>{$select.nm}</option>
                    {/foreach}
                  </select>
                  <div class="col " style="width:15px;">&nbsp;</div>
                  <label class="col wd-050">支払日</label>
                  <select name="cupcls" class="col form-control input-sm item wd-select-MM cupcls">
                    <option value="" selected></option>
                    {foreach from=$listCupcls item=select name=select}
                      <option value="{$select.cd}" {if $data.cupcls eq $select.cd}selected{/if}>{$select.nm}</option>
                    {/foreach}
                  </select>
                  <input name="cupdt" type="text" class="form-control input-sm item wd-SS cupdt text-right" maxlength="2" value="{$data.cupdt}">
                  <label class="col wd-020">日</label>
                </div>
                <div class="col wp-100">
                  <label class="col wd-090">支払サイト</label>
                  <input name="cupmn" type="text" class="form-control input-sm item wd-S cupmn number" maxlength="3" value="{$data.cupmn}">
                  <div class="col " style="width:15px;">&nbsp;</div>
                  <label class="col wd-070">入金区分</label>
                  <select name="cupycls" class="col form-control input-sm item wd-select-MM cupycls">
                    <option value="" selected></option>
                    {foreach from=$listCupycls item=select name=select}
                      <option value="{$select.cd}" {if $data.cupycls eq $select.cd}selected{/if}>{$select.nm}</option>
                    {/foreach}
                  </select>
                </div>
              </div>
            </div>

            <div class="col wp-100" style="height:5px;"></div>

            <div class="col well2" style="width:35%;">
              <div class="col wp-100">
                <label class="control-label wd-110" >【担当/管轄】</label>
              </div>
              <div class="col wp-100 chgcdGrp">
                <label class="control-label wd-100 " >担当営業</label>
                <input name="spslcd" type="text" class="form-control input-sm item wd-060 spslcd chgcd eventchgcd popChgcd " maxlength="5" value="{$data.spslcd}">
                <input type="button" class="col popbtn cmdChgcd" tabindex="-1" value="?"/>
                <input name="spslnm" type="text" class="form-control input-sm item wd-M spslnm chgnm" readonly maxlength="35" value="{$data.spslnm}">
              </div>
              <div class="col wp-100 chgcdGrp">
                <label class="control-label wd-100 " >担当営業(サブ)</label>
                <input name="spslcd2" type="text" class="form-control input-sm item wd-060 spslcd2 chgcd eventchgcd popChgcd " maxlength="5" value="{$data.spslcd2}">
                <input type="button" class="col popbtn cmdChgcd" tabindex="-1" value="?"/>
                <input name="spslnm2" type="text" class="form-control input-sm item wd-M spslnm2 chgnm" readonly maxlength="35" value="{$data.spslnm2}">
              </div>
              <div class="col wp-100 chgcdGrp">
                <label class="control-label wd-100 " >担当業務</label>
                <input name="spbscd" type="text" class="form-control input-sm item wd-060 spbscd chgcd eventchgcd popChgcd " maxlength="5" value="{$data.spbscd}">
                <input type="button" class="col popbtn cmdChgcd" tabindex="-1" value="?"/>
                <input name="spbsnm" type="text" class="form-control input-sm item wd-M spbsnm chgnm" readonly maxlength="35" value="{$data.spbsnm}">
              </div>
              <div class="col wp-100 ktktcdGrp">
                <label class="control-label wd-100 in-required" >出庫拠点</label>
                <input name="spktcd" type="text" class="form-control input-sm item wd-kbn spktcd ktktcd eventktktcd popKtktcd required" data-ktcls="1" maxlength="2" value="{$data.spktcd}">
                <input type="button" class="col popbtn cmdKtktcd" tabindex="-1" value="?"/>
                <input name="spktnm" type="text" class="form-control input-sm item wd-M spktnm ktktnm" readonly maxlength="50" value="{$data.spktnm}">
              </div>
              <div class="col wp-100 ktktcdGrp">
                <label class="control-label wd-100" >出荷制限</label>
                <select name="cuspkf" class="col form-control item input-sm wd-select-S cuspkf">
                  <option value="" selected></option>
                  {foreach from=$listCuspkf item=select name=select}
                    <option value="{$select.cd}" {if $data.cuspkf eq $select.cd}selected{/if}>{$select.nm}</option>
                  {/foreach}
                </select>
              </div>
            </div>

            <div class="col" style="width:65%;">

              <div class="col wp-100 well2">
                <div class="col wp-100 cshcdGrp">
                  <label class="control-label wd-150">得意先センター</label>
                  <input name="cshcd" type="text" class="form-control input-sm item wd-SS cshcd eventcshcd popCshcd" maxlength="3" value="">
                  <input type="button" class="col popbtn cmdCshcd" tabindex="-1" value="?"/>
                  <input name="cshnm" type="text" class="form-control input-sm item wd-L cshnm " readonly value=""/>
                  <input name="cucd" type="hidden" class="cucd " readonly value="{$header.cucd}">
                  <input name="cunm" type="hidden" class="cunm " readonly value="{$header.cunm}">
                </div>
                <div class="col wp-100 ">
                  <label class="control-label wd-150 ">コメント</label>
                  <input name="com" type="text" class="form-control input-sm item wd-LL com " maxlength="40" value="{$data.com}" />
                </div>
                <div class="col wp-100 ">
                  <label class="control-label wd-150" >業態</label>
                  <input name="spbucn" type="text" class="form-control input-sm item wd-L spbucn " maxlength="30" value="{$data.spbucn}">
                  <label class="control-label wd-030" >&nbsp;</label>
                  <label class="control-label wd-070" >分類コード</label>
                  <input name="dcubcd" type="text" class="form-control input-sm item wd-SS dcubcd " maxlength="4" value="{$data.dcubcd}">
                  <label class="control-label wd-020" >&nbsp;</label>
                  <label class="control-label wd-060" >伝票区分</label>
                  <input name="dcls" type="text" class="form-control input-sm item wd-kbn dcls " maxlength="2" value="{$data.dcls}">
                </div>

                <div class="col wp-100">
                  <div class="col wp-100">
                    <label class="control-label wd-150" >店舗分類</label>
                    <select name="spcat" class="col form-control item input-sm wd-select-S spcat">
                      <option value="" selected></option>
                      {foreach from=$listSpcat item=select name=select}
                        <option value="{$select.cd}" {if $data.spcat eq $select.cd}selected{/if}>{$select.nm}</option>
                      {/foreach}
                    </select>
                    <label class="control-label wd-020" >&nbsp;</label>
                    <label class="control-label wd-040" >ランク</label>
                    <select name="splnk" class="col form-control item input-sm wd-select-S splnk">
                      <option value="" selected></option>
                      {foreach from=$listSplnk item=select name=select}
                        <option value="{$select.cd}" {if $data.splnk eq $select.cd}selected{/if}>{$select.nm}</option>
                      {/foreach}
                    </select>
                  </div>
                  <div class="col wp-100">
                    <label class="col wd-150">出荷予定日リードタイム</label>
                    <input name="vdlmt" type="text" class="form-control input-sm item wd-kbn vdlmt number" maxlength="2" value="{$data.vdlmt}">
                    <div class="col " style="width:20px;">&nbsp;</div>
                    <label class="col wd-130">納品日リードタイム</label>
                    <input name="cllmt" type="text" class="form-control input-sm item wd-kbn cllmt number" maxlength="2" value="{$data.cllmt}">
                  </div>
                  <div class="col wp-100">
                    <label class="col wd-150">PLANET販売コード</label>
                    <input name="plcd" type="text" class="form-control input-sm item wd-S plcd " maxlength="8" value="{$data.plcd}">
                    <div class="col " style="width:20px;">&nbsp;</div>
                    <label class="col wd-130">PLANET本店コード</label>
                    <input name="plhocd" type="text" class="form-control input-sm item wd-S plhocd " maxlength="8" value="{$data.plhocd}">
                    <div class="col " style="width:20px;">&nbsp;</div>
                    <label class="col wd-130">PLANET住所コード</label>
                    <input name="pladcd" type="text" class="form-control input-sm item wd-S pladcd number" maxlength="5" value="{$data.plhocd}">
                  </div>
                </div>
              </div>
            </div>
            <div class="col wp-100" style="height:5px;"></div>

            <div class="col wp-100 well2">
              <div class="col wp-100">
                <label class="control-label wd-100" >【請求書用】</label>
              </div>
              <div class="col wp-100 ">
                <label class="control-label wd-070 " >店舗名</label>
                <input name="spsnm" type="text" class="form-control input-sm item wd-LL spsnm required" maxlength="40" value="{$data.spsnm}">
                <label class="control-label wd-050" >&nbsp;</label>
                <label class="control-label wd-080">カナ(半角)</label>
                <input name="spsnmk" type="text" class="form-control input-sm item wd-M spsnmk" maxlength="20" value="{$data.spsnmk}"/>
              </div>
              <div class="col wp-100 scls90Grp">
                <label class="control-label wd-070 " >〒</label>
                <input name="spszip" type="text" class="form-control input-sm item wd-S spszip " maxlength="8" value="{$data.spszip}">
              </div>
              <div class="col wp-100">
                <label class="control-label wd-070 " >住所</label>
                <input name="spsad1" type="text" class="form-control input-sm item wd-LL spsad1 " maxlength="40" value="{$data.spsad1}">
                <input name="spsad2" type="text" class="form-control input-sm item wd-LL spsad2 " maxlength="40" value="{$data.spsad2}">
              </div>
              <div class="col wp-100">
                <label class="control-label wd-070 " >カナ(半角)</label>
                <input name="spskad1" type="text" class="form-control input-sm item wd-MM spskad1 " maxlength="25" value="{$data.spskad1}">
                <input name="spskad2" type="text" class="form-control input-sm item wd-MM spskad2 " maxlength="25" value="{$data.spskad2}">
                <label class="control-label wd-020" >&nbsp;</label>
                <label class="control-label wd-030 " >TEL</label>
                <input name="spstel" type="text" class="form-control input-sm item wd-M spstel " maxlength="15" value="{$data.spstel}">
                <label class="control-label wd-020" >&nbsp;</label>
                <label class="control-label wd-030 " >FAX</label>
                <input name="spsfax" type="text" class="form-control input-sm item wd-M spsfax " maxlength="15" value="{$data.spsfax}">
              </div>
            </div>
            <div class="col wp-100" style="height:5px;"></div>


            <div class="col wp-100 well3">
              <div class="col wp-100" style="height:5px;"></div>
              <label class="control-label wd-680" >&nbsp;</label>
              <label class="control-label wd-050" >登録日</label>
              <input name="reg" type="text" class="form-control input-sm item wd-110 reg " readonly value="{$data.reg}">
              <label class="control-label wd-050" >更新日</label>
              <input name="upd" type="text" class="form-control input-sm item wd-110 upd " readonly value="{$data.upd}">
              <label class="control-label wd-050" >廃止日</label>
              <input name="stp" type="text" class="form-control input-sm item wd-110 stp stpdat" readonly value="{$data.stp}">

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

  {*↓↓↓↓↓↓ダイアログ*}
  <div id="af9032x1" class="col dialog " style="display:none;">
    <div class="col wp-100 title">コード変更</div>
    <div class="col wp-100 main ">
      <div class="col">
        <div class="col wd-020">&nbsp;</div>
      </div>
      <div class="col wp-100">
        <label class="control-label wd-200">店舗コードを変更します。</label>
      </div>
      <div class="col wp-100">
      <label class="control-label wd-020" >&nbsp;</label>{*ちょっとあける*}
        <label class="control-label wd-130  in-required">変更後の店舗コード</label>
        <input name="cuscd2" type="text" class="form-control input-sm item wd-S cuscd2 cuscd required" data-errflg="2" data-cucdchk="1" maxlength="6" value="{$header.cuscd}"/>
        <div class="col wp-100" style="height:5px;">&nbsp;</div>{*ちょっとあける*}
      </div>
      <hr class="col"></hr>
      <div class="col right browslike">
        <div class="col wp-100" style="height:5px;">&nbsp;</div>{*ちょっとあける*}
        <input type="button" class="wd-func btn-main wd-080 center btn-enter"  value="実行" />
        <input type="button" class="wd-func btn-main wd-080 center af9032x1-close"  value="戻る" />
      </div>

    </div>
  </div>
  {*↑↑↑↑↑↑ダイアログ*}

  <!-- footer
  ================================================== -->
  <div class="col wp-100" style="height:50px"></div> {*メニュー分あける*}

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

</div>
