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

        <div class="col wp-100">
          <div class="col wp-100 mcdGrp">
            <label class="control-label wd-100 poplabel in-required">仕入先コード</label>
            <input name="mcd" type="text" class="form-control input-sm item wd-S mcd popMcd headerMcd required lpad" data-errflg="2" maxlength="7" value="{$header.mcd}"/>
            <input type="button" class="col popbtn cmdMcd" tabindex="-1" value="?"/>
            <input type="text" class="dummy" />

            <div class="right">
						  <label class="control-label wd-050 {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>

      </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-070 in-required" >仕入先名</label>
              <input name="mnm" type="text" class="form-control input-sm item wd-LL mnm required" maxlength="50" value="{$data.mnm}">
              <label class="control-label wd-050" >&nbsp;</label>
              <label class="control-label wd-070 " >略称</label>
              <input name="mnms" type="text" class="form-control input-sm item wd-LL mnms " maxlength="20" value="{$data.mnms}">
            </div>
            <div class="col wp-100">
              <label class="control-label wd-070">カナ(半角)</label>
              <input name="mknm" type="text" class="form-control input-sm item wd-L mknm" maxlength="25" value="{$data.mknm}"/>
              <label class="control-label wd-150" >&nbsp;</label>
              <label class="control-label wd-070 " >カナ(半角)</label>
              <input name="mknms" type="text" class="form-control input-sm item wd-M mknms " maxlength="10" value="{$data.mknms}">
            </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">
                <label class="control-label wd-070 " >〒</label>
                <input name="mzip" type="text" class="form-control input-sm item wd-S mzip " maxlength="8" value="{$data.mzip}">
              </div>
              <div class="col wp-100">
                <label class="control-label wd-070 " >住所</label>
                <input name="madd1" type="text" class="form-control input-sm item wd-LL madd1 " maxlength="40" value="{$data.madd1}">
                <input name="madd2" type="text" class="form-control input-sm item wd-LL madd2 " maxlength="40" value="{$data.madd2}">
              </div>
              <div class="col wp-100">
                <label class="control-label wd-070 " >カナ(半角)</label>
                <input name="mkad1" type="text" class="form-control input-sm item wd-L mkad1 " maxlength="25" value="{$data.mkad1}">
                <input name="mkad2" type="text" class="form-control input-sm item wd-L mkad2 " maxlength="25" value="{$data.mkad2}">
              </div>
              <div class="col wp-100">
                <label class="control-label wd-070 " >TEL</label>
                <input name="mtel" type="text" class="form-control input-sm item wd-M mtel " maxlength="15" value="{$data.mtel}">
                <label class="control-label wd-020" >&nbsp;</label>
                <label class="control-label wd-030 " >FAX</label>
                <input name="mfax" type="text" class="form-control input-sm item wd-M mfax " maxlength="15" value="{$data.mfax}">
                <label class="control-label wd-020" >&nbsp;</label>
                <label class="control-label wd-040 " >MAIL</label>
                <input name="mmail" type="text" class="form-control input-sm item wd-LL mmail " maxlength="50" value="{$data.mmail}">
              </div>
            </div>

            <div class="col wp-100" style="height:5px;"></div>
            <div class="col wp-100">
              <div class="col wd-450 chgcdGrp">
                <label class="control-label wd-070 poplabel">仕入担当者</label>
                <input name="mchgcd" type="text" class="form-control input-sm item wd-SS mchgcd chgcd eventchgcd popChgcd" maxlength="5" value="{$data.mchgcd}">
                <input type="button" class="col popbtn cmdChgcd" tabindex="-1" value="?"/>
                <input name="mchgcdnm" type="text" class="form-control input-sm item wd-L mchgcdnm chgnm" readonly maxlength="40" value="{$data.mchgcdnm}" />
              </div>
              <label class="control-label wd-020" >&nbsp;</label>
              <div class="col wd-450 chgcdGrp">
                <label class="control-label wd-070 poplabel">営業担当者</label>
                <input name="echgcd" type="text" class="form-control input-sm item wd-SS echgcd chgcd eventchgcd popChgcd" maxlength="5" value="{$data.echgcd}">
                <input type="button" class="col popbtn cmdChgcd" tabindex="-1" value="?"/>
                <input name="echgcdnm" type="text" class="form-control input-sm item wd-L echgcdnm chgnm" readonly maxlength="40" value="{$data.echgcdnm}" />
              </div>
            </div>

            <div class="col wp-100">
              <label class="control-label wd-070">部署</label>
              <input name="mpnm" type="text" class="form-control input-sm item wd-M mpnm" maxlength="20" value="{$data.mpnm}" />
              <label class="control-label wd-020" >&nbsp;</label>
              <label class="control-label wd-050">担当者</label>
              <input name="mchgnm" type="text" class="form-control input-sm item wd-LL mchgnm" maxlength="40" value="{$data.mchgnm}" />
              <label class="control-label wd-020" >&nbsp;</label>
              <label class="control-label wd-080">発注コメント</label>
              <input name="mcom" type="text" class="form-control input-sm item wd-M mcom" maxlength="15" value="{$data.mcom}" />
            </div>

            <div class="col wp-100" style="height:3px;"></div>
            
            <div class="col wp-060 well2">
              <div class="col wp-100">
                <label class="control-label wd-110" >【発注業務関連】</label>
              </div>
              <div class="col wp-100">
                <div class="col wp-100">
                  <label class="control-label wd-060 " >TEL</label>
                  <input name="htel" type="text" class="form-control input-sm item wd-M htel " maxlength="15" value="{$data.htel}">
                  <label class="control-label wd-020" >&nbsp;</label>
                  <label class="control-label wd-030 " >FAX</label>
                  <input name="hfax" type="text" class="form-control input-sm item wd-M hfax " maxlength="15" value="{$data.hfax}">
                </div>
                <div class="col wp-100" style="height:27px;">
                  <label class="control-label wd-060" >発注方式</label>
                  <select name="modfr" class="col form-control item input-sm wd-select-M modfr">
                    <option value="" selected></option>
                    {foreach from=$listModfr item=select name=select}
                      <option value="{$select.cd}" {if $data.modfr eq $select.cd}selected{/if}>{$select.nm}</option>
                    {/foreach}
                  </select>
                  <label class="control-label wd-020" >&nbsp;</label>
                  <label class="control-label wd-120" >自動発注計算区分</label>
                  <select name="htcls" class="col form-control item input-sm wd-select-M htcls">
                    <option value="" selected></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>
              <div class="col wp-100">
                <label class="control-label wd-160" >発注点係数(日)</label>
                <input name="htpnt1" type="text" class="form-control input-sm item wd-SS htpnt1 " maxlength="3" value="{$data.htpnt1}">
                <label class="control-label wd-020" >&nbsp;</label>
                <label class="control-label wd-150" >安全在庫係数(日)</label>
                <input name="htpnt2" type="text" class="form-control input-sm item wd-SS htpnt2 " maxlength="3" value="{$data.htpnt2}">
             </div>
              <div class="col wp-100">
                <label class="control-label wd-160" >発注リードタイム(予定日)</label>
                <input name="htlmt1" type="text" class="form-control input-sm item wd-SS htlmt1 " maxlength="3" value="{$data.htlmt1}">
                <label class="control-label wd-020" >&nbsp;</label>
                <label class="control-label wd-150" >発注リードタイム(期限)</label>
                <input name="htlmt2" type="text" class="form-control input-sm item wd-SS htlmt2 " maxlength="3" value="{$data.htlmt2}">
             </div>
            </div>
            
            <div class="col wp-040 well2">
              <div class="col wp-100">
                <label class="control-label wd-100" >【PLANET関連】</label>
              </div>
              <div class="col wp-100">
                <label class="control-label wd-130">PLANETコード</label>
                <input name="plcd" type="text" class="form-control input-sm item wd-M plcd" maxlength="7" value="{$data.plcd}" />
              </div>
              <div class="col wp-100">
                <label class="control-label wd-130">共通取引先コード</label>
                <input name="mtori" type="text" class="form-control input-sm item wd-M mtori" maxlength="6" value="{$data.mtori}" />
                <label class="control-label wd-020" >&nbsp;</label>
                <label class="control-label wd-040">枝番</label>
                <input name="meda" type="text" class="form-control input-sm item wd-SS meda" maxlength="2" value="{$data.meda}" />
              </div>
              <div class="col wp-100">
                <label class="control-label wd-130">実績送信区分</label>
                <input name="plhcls" type="text" class="form-control input-sm item wd-S plhcls" maxlength="6" value="{$data.plhcls}" />
              </div>
              <div class="col wp-100">
                <label class="control-label wd-020" >&nbsp;</label>
              </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-030">
                <label class="control-label wd-070" >支払区分</label>
                <select name="paycls" class="col form-control item input-sm wd-select-M paycls">
                  <option value="" selected></option>
                  {foreach from=$listPaycls item=select name=select}
                    <option value="{$select.cd}" {if $data.paycls eq $select.cd}selected{/if}>{$select.nm}</option>
                  {/foreach}
                </select>
                <div class="col wp-100">
                  <label class="control-label wd-070" >支払日</label>
                  <select name="mpcls" class="col form-control item input-sm wd-select-S mpcls">
                    <option value="" selected></option>
                    {foreach from=$listMpcls item=select name=select}
                      <option value="{$select.cd}" {if $data.mpcls eq $select.cd}selected{/if}>{$select.nm}</option>
                    {/foreach}
                  </select>
                  <input name="paydat" type="text" class="form-control input-sm item wd-S paydat  number" maxlength="2" value="{$data.paydat}">
                  <div class="col wd-020">日</div>
                </div>
                <div class="col wp-100">
                  <label class="control-label wd-070" >支払サイト</label>
                  <input name="pmn" type="text" class="form-control input-sm item wd-S pmn  number" maxlength="3" value="{$data.pmn}">
                </div>
              </div>
              <div class="col wp-030">
                <div class="col wp-100">
                  <label class="control-label wd-100" >請求データ形式</label>
                  <select name="cdcls" class="col form-control item input-sm wd-select-S cdcls">
                  <option value="" selected></option>
                    {foreach from=$listCdcls item=select name=select}
                      <option value="{$select.cd}" {if $data.cdcls eq $select.cd}selected{/if}>{$select.nm}</option>
                    {/foreach}
                  </select>
                </div>
                <div class="col wp-100">
                  <label class="control-label wd-100" >再請求区分</label>
                  <select name="mres" class="col form-control item input-sm wd-select-S mres">
                    <option value="" selected></option>
                    {foreach from=$listMres item=select name=select}
                      <option value="{$select.cd}" {if $data.mpcls eq $select.cd}selected{/if}>{$select.nm}</option>
                    {/foreach}
                  </select>
                </div>
                <div class="col wp-100">
                  <label class="control-label wd-100" >支払対象区分</label>
                  <select name="mpay" class="col form-control item input-sm wd-select-M mpay">
                    <option value="" selected></option>
                    {foreach from=$listMpay item=select name=select}
                      <option value="{$select.cd}" {if $data.mpcls eq $select.cd}selected{/if}>{$select.nm}</option>
                    {/foreach}
                  </select>
                </div>
                <div class="col wp-100">
                  <label class="control-label wd-100" >照合単位</label>
                  <select name="msu" class="col form-control item input-sm wd-select-S msu">
                    <option value="" selected></option>
                    {foreach from=$listMsu item=select name=select}
                      <option value="{$select.cd}" {if $data.mpcls eq $select.cd}selected{/if}>{$select.nm}</option>
                    {/foreach}
                  </select>
                </div>
              </div>
              <div class="col wp-040 mcdGrp">
                <label class="control-label wd-060 in-required poplabel">買掛管理</label>
                <input name="kmcd" type="text" class="form-control input-sm item wd-S kmcd mcd eventmcd popMcd required" data-errflg="2" maxlength="7" value="{$data.kmcd}">
                <input type="button" class="col popbtn cmdMcd" tabindex="-1" value="?"/>
                <input name="kmnm" type="text" class="form-control input-sm wd-L item knmn mnm" readonly maxlength="40" value="{$data.kmnm}" />
              </div>
            </div>

            <div class="col wp-100" style="height:5px;"></div>
            <div class="col wp-100">
              <label class="control-label wd-070" >物流費</label>
              <input name="rper" type="text" class="form-control input-sm item wd-S rper number" maxlength="5" fixed="3" value="{$data.rper|number_format:3}" />
            </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>
  <!-- footer
  ================================================== -->
  <div class="col wp-100" style="height:50px"></div> {*メニュー分あける*}

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

</div>
