<!-- body -->
<div class="container contents af422x" 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 wd-500 cucdGrp cuscdGrp">
          <div class="col wp-100">
            <label class="control-label wd-060 in-required">売上区分</label>
            <label class="col checkbox-label" > <input name="rdo_tcls" type="radio"  value="00" tabindex=-1 class=" input-sm wd-020 rdo_tcls" {if $header.rdo_tcls eq '00'}checked{/if}>全て</label><div class="col wd-010">&nbsp;</div>
            <label class="col checkbox-label" > <input name="rdo_tcls" type="radio"  value="01" tabindex=-1 class=" input-sm wd-020 rdo_tcls" {if $header.rdo_tcls eq '01'}checked{/if}>納品</label><div class="col wd-010">&nbsp;</div>
            <label class="col checkbox-label" > <input name="rdo_tcls" type="radio"  value="11" tabindex=-1 class=" input-sm wd-020 rdo_tcls" {if $header.rdo_tcls eq '11'}checked{/if}>直送</label><div class="col wd-010">&nbsp;</div>
            <label class="col checkbox-label" > <input name="rdo_tcls" type="radio"  value="02" tabindex=-1 class=" input-sm wd-020 rdo_tcls" {if $header.rdo_tcls eq '02'}checked{/if}>返品</label><div class="col wd-010">&nbsp;</div>
            <label class="col checkbox-label" > <input name="rdo_tcls" type="radio"  value="03" tabindex=-1 class=" input-sm wd-020 rdo_tcls" {if $header.rdo_tcls eq '03'}checked{/if}>値引</label>
          </div>
          <div class="col wp-100">
            <label class="control-label wd-060">得意先</label>
            <input name="cucd" type="text" class="form-control input-sm item wd-S cucd eventcucd popCucd  keycd clear" 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-L cunm clear" readonly value="{$header.cunm}"/>
          </div>
          <div class="col wp-100">
            <label class="control-label wd-060">店舗</label>
            <input name="cuscd" type="text" class="form-control input-sm item wd-S cuscd eventcuscd popCuscd clear" maxlength="6" value="{$header.cuscd}">
            <input type="button" class="col popbtn cmdCuscd" tabindex="-1" value="?"/>
            <input name="spnm" type="text" class="form-control input-sm item wd-L spnm clear" readonly value="{$header.spnm}"/>
          </div>
        </div>

        <div class="col wd-600 chgcdGrp">
          <div class="col wp-100">
{*            <label class="control-label wd-070 in-required">発行状態</label> *}
            <label class="col checkbox-label" > <input name="rdo_psts" type="radio"  value="0" tabindex=-1 class=" input-sm wd-020 rdo_psts" {if $header.rdo_psts eq '0'}checked{/if}>未発行</label><div class="col wd-010">&nbsp;</div>
            <label class="col checkbox-label" > <input name="rdo_psts" type="radio"  value="-1" tabindex=-1 class=" input-sm wd-020 rdo_psts" {if $header.rdo_psts eq '-1'}checked{/if}>再発行</label>
          </div>
          <div class="col wp-100">
            <label class="control-label wd-070 ">入力担当者</label>
            <input name="chgcd" type="text" class="form-control input-sm item wd-S chgcd eventchgcd popChgcd clear" maxlength="5" value="{$header.chgcd}">
            <input type="button" class="col popbtn cmdChgcd" tabindex="-1" value="?"/>
            <input name="chgnm" type="text" class="form-control input-sm item wd-M chgnm clear longnm" readonly value="{$header.chgnm}"/>
          </div>
          <div class="col wp-100 date">
            <label class="control-label wd-070 ">計上日</label>
            <input name="sadat" type="text" class="form-control input-sm item wd-date sadat datepicker clear" maxlength="10" value="{$header.sadat}">
            <input type="button" class="col popbtn cmdDatepicker" tabindex="-1" value="?"/>
            <div class="col wd-020">～</div>
            <input name="eadat" type="text" class="form-control input-sm item wd-date eadat datepicker clear" maxlength="10" value="{$header.eadat}">
            <input type="button" class="col popbtn cmdDatepicker" tabindex="-1" value="?"/>
            <div class="col wd-S">&nbsp;</div>
            <input name="chk_grpkbn"  type="checkbox" class="form-control item input-sm wd-kbn chk_grpkbn" {if $header.chk_grpkbn eq "1"}checked{/if} value="1" tabindex="-1"/>
            <label class="control-label wd-070 ">伝票毎表示</label>
            <input type="text" class="dummy" />

            <input name="pkbn1"    type="hidden" class="pkbn1" /> {*伝票印字区分(社名) チェック:0, 未チェック:1*}
            <input name="pkbn2"    type="hidden" class="pkbn2" /> {*伝票印字区分(納入単価) チェック:0, 未チェック:1*}
            <input name="print_mode"    type="hidden" class="print_mode" value="{$header.print_mode}">  {*0:afw53, 1:pdf*}
            <input name="print_nm"    type="hidden" class="print_nm" value="{$header.print_nm}">  {*IREPのID*}
          </div>
        </div>
      </div>
      <div class="col wp-100">
        <div class="col wd-180 right" >
          <label class="control-label wd-060">ページ</label>
          <input id="pagecnt" name="pagecnt" type="text" class="form-control input-sm item wd-SS pagecnt clear number" readonly value="{$header.pagecnt}"><div class="item wd-010">/</div><input id="lastpage" name="lastpage" type="text" class="form-control input-sm item wd-SS lastpage clear number" readonly value="{$header.lastpage}">
        </div>
        <hr>
      </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 detailHeader">
            <div class="col wp-100">
              <label class="control-label wd-020 ">&nbsp;</label>
              <label class="control-label wd-S ">得意先</label>
              <label class="control-label wd-MM ">&nbsp;</label>
              <label class="control-label wd-S ">店舗</label>
              <label class="control-label wd-MM ">&nbsp;</label>
              <label class="control-label wd-SS ">区分</label>
              <label class="control-label wd-SS ">&nbsp;</label>
              <label class="control-label wd-date ">伝票日付</label>
              {if $header.print_mode == "0"}
              <label class="control-label wd-S ">伝票種類</label>
              {/if}
              <label class="control-label wd-M ">伝票番号</label>
              <label class="control-label wd-S text-right">枚数</label>
              {if $header.print_mode == "0"}
              <label class="control-label wd-110 in-required">出力先</label>
              {/if}
            </div>
          </div>
        </div>


        <div id="detail" class="col wp-100 x_scroll detailArea">
          <hr>
          <!-- ↑↑↑*** rows ***↑↑↑ -->
        </div>
        <hr>
        <div class="col wp-100 detailFooter">
          <div class="col wd-610 " >
            <input id="putChk" type="button" class="wd-func btn-main btn1 wd-050 center" style="margin-top:1px;border-radius: 7px;" value="全選択" />
            <input id="removeChk" type="button" class="wd-func btn-main btn1 wd-050 center" style="margin-top:1px;border-radius: 7px;" value="全解除" />
          </div>
        </div>

      </div>
    </form>
  </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>
  {*↑↑↑↑↑↑伝票印字区分設定*}

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

</div>
