<?xml version="1.0" encoding="utf-8" ?>
<Root Encode="big5" Extension="txt">
  <Rule Id="Detail" MinLength="10">   
    <Column Id="DataType"  Length="1" Index="0" Desc="資料別" LimitData="1" IsRequired="true" />    
    <Column Id="Deposit" Length="1" Index="1" Desc="存款別" LimitData="P,G" IsRequired="true"  />
    <Column Id="SchID" Length="3" Index="2" Desc="事業單位代號"   />
    <Column Id="Stopid" Length="4" Index="5" Desc="區處站所代號" />
    <Column Id="TranDay" DataType="Date" Length="7" Index="9" Format="ChineseDateOfDateTime" Desc="收款日期" IsRequired="true"/>   
    <Column Id="TranAcnt" Length="14" Index="19" Desc="劃撥帳號或(立帳局號+存簿帳號)"  />
    <Column Id="AcctID" Length="10" Index="33" Desc="轉帳戶身份證字號" />
    <Column Id="PayAmt" DataType="Decimal" Length="11" Index="43" Desc="繳費金額+手續費" IsRequired="true" Format="Decimal2"  />
    <Column Id="Grade" DataType="Int" Length="1" Index="54" Desc="年級" Format="HexString2Int" />
    <Column Id="ClsID" DataType="Int" Length="2" Index="55" Desc="班級代號"  />
    <Column Id="SeatNo" DataType="Int" Length="3" Index="57" Desc="座號" />
    <Column Id="Merger" Length="1" Index="60" Desc="是否合併轉帳"  />   
    <Column Id="StdID" Length="5" Index="64" Desc="學生識別碼" IsRequired="true"  />
    <Column Id="GrpID" DataType="Int" Length="2" Index="69" Desc="繳款群組代號" IsRequired="true" /> 
    <Column Id="Result" Length="2" Index="78" Desc="代繳結果"/>
   
   
  </Rule>
  <Rule Id="Total" Limit="" MinLength="10">
    <Column Id="DataType"  Length="1" Index="0" DefaultValue="2" />    
    <Column Id="SchID" Length="3" Index="2"   />
    <Column Id="Stopid" Length="4" Index="5"  />
    <Column Id="TranDay" DataType="Date" Length="7" Index="9" Format="ChineseDateOfDateTime"/>   
    <Column Id="TotalRow" DataType="Int" Length="7" Index="19"  />
    <Column Id="TotalAmt" DataType="Decimal" Length="13" Index="26" Format="Decimal2"  />
    <Column Id="GiroNo"  Length="8" Index="39"  />
    <Column Id="FeeGiroNo"  Length="8" Index="47"  />
    <Column Id="AccountRow" DataType="Int" Length="7" Index="55"  />
    <Column Id="AccountAmt" DataType="Decimal" Length="13" Index="62" Format="Decimal2" />
   
  </Rule>
</Root>
