<div ms-controller="ARAP">
    <table width="100%" border="0" cellspacing="1" cellpadding="0" class="tableList" id="tableList">
        <thead>
            <tr class="head" style="background-color: rgba(0, 0, 0, 0);">
                <td width="3%" align="center">
                    <input type="checkbox" ms-duplex-radio="grid1.checkall" />
                </td>
                <td ms-html="'单据编号'" width="6%" align="center"></td>
                <td ms-html="'计划日期'" width="6%" align="center"></td>
                <td ms-html="'客户名称'" width="20%" align="center"></td>
                <td ms-html="'合同订单'" width="6%" align="center"></td>
                <td ms-html="'款项期次'" width="6%" align="center"></td>
                <td ms-html="'收付'" width="6%" align="center"></td>
                <td ms-html="'金额'" width="6%" align="center"></td>
                <td ms-html="'已结'" width="6%" align="center"></td>
                <td ms-html="'未结'" width="6%" align="center"></td>
                <td ms-html="'业务员'" width="6%" align="center"></td>
                <td ms-html="'负责人'" width="6%" align="center"></td>
                <td ms-html="'状态'" width="6%" align="center"></td>
            </tr>
        </thead>
        <tbody ms-each-item="grid1.list">
            <tr style="background: #FFF;">
                <td align="center">
                    <input type="checkbox" ms-duplex-radio="item.checked" />
                </td>
                <td align="center">{{item.SN}}</td>
                <td align="center">{{item.PlanDate|truncate(10,'')}}</td>
                <td align="center"><a href="javascript:void(0)" ms-click="gotoview(item.CustomerId)">{{item.CustomerName}}</a></td>
                <td align="center"><a href="javascript:void(0)" ms-click="gotoview(item.Contract.Id,'Contract')">{{item.Contract.ContractNum}}</a></td>
                <td align="center">{{item.Batch}}</td>
                <td align="center">{{item.Type==1?"付":"收"}}</td>
                <td align="right">{{item.Money|currency}}</td>
                <td align="center">{{item.SettleMoney|currency}}</td>
                <td align="right">{{item.NotSettleMoney|currency}}</td>
                <td align="center">{{item.SalesmanName}}</td>
                <td align="center">{{item.DutyPersonName}}</td>
                <td align="center">{{item.NotSettleMoney==0?'已完成':'未完成'}}</td>
            </tr>
        </tbody>
        <tfoot>
            <tr ms-if="grid1.gridmsg">
                <td colspan="13" class="gridmsg">{{grid1.gridmsg|html}}</td>
            </tr>
            <tr>
                <td colspan="13" ms-widget='paging' data-gridid="grid1"></td>
            </tr>
        </tfoot>
    </table>
</div>
