<div ms-controller="PurchaseOrderSelect">
    <table border="0" align="center" cellpadding="0" cellspacing="0" id="mian" style="border-bottom: none; width: 1080px;">
        <tbody>
            <tr>
                <td valign="top" id="right" style="padding: 0px;">
                    <table width="100%" border="0" cellspacing="0" cellpadding="0" class="seacrhTable" id="seacrhTable" style="margin-bottom: 5px;">
                        <tbody>
                            <tr>
                                <td class="searchico">
                                    <div class="input-append" style="margin-bottom: 0px;">
                                        <input type="text" class="span4" ms-duplex='key' placeholder="输入订单编号、标题等关键字" ms-keypress='toEnter'>
                                        <button class="add-on ibtsearch" style="height: 28px; font-size: 12px; padding: 3px 12px;" ms-click='toSearch' ms-html='lang.SearchBtn'></button>
                                        <button class="add-on ibtsearch" style="height: 28px; font-size: 12px; padding: 3px 12px;" ms-click="clearQuery" ms-html='lang.ShowAllBtn'></button>
                                    </div>
                                </td>
                            </tr>
                        </tbody>
                    </table>
                    <table width="100%" border="0" cellspacing="1" cellpadding="0" class="tableList bottom10" id="tableList">
                        <thead>
                            <tr class="head" style="background-color: rgb(250, 250, 250);">
                                <td width="3%" align="center">
                                   <!-- <input type="checkbox" ms-duplex-radio="grid1.checkall">-->
                                </td>
                                <td width="15%" align="center">采购单号
                                </td>
                                <td width="25%" align="center">标题
                                </td>
                                <td width="15%" align="center">日期
                                </td>
                                <td width="15%" align="center">金额
                                </td>
                                <td width="10%" align="center">状态
                                </td>
                            </tr>
                        </thead>
                        <tbody>
                            <tr ms-repeat-item="grid1.list">
                                <td align="center">
                                    <input type="checkbox" ms-duplex-radio="item.checked"  />
                                </td>
                                <td align="left">{{item.BillNo}}
                                </td>
                                <td align="left">{{item.PurchaseOrderTag|truncate(30)}}
                                </td>
                                <td align="left">{{item.ActionTime}}
                                </td>
                                <td align="center">{{item.PayMoney}}
                                </td>
                                <td align="center"><span ms-if="item.State==0">未付款</span>
                                    <span ms-if="item.State==1">未付完</span>
                                    <span ms-if="item.State==2">已付款</span>
                                    <span ms-if="item.State==3">已入库</span>
                                </td>

                            </tr>
                        </tbody>
                        <tfoot>
                            <tr>
                                <td colspan="8" ms-widget='paging,PurchaseOrderSelectPage,listOpts'></td>
                            </tr>
                        </tfoot>
                    </table>
                </td>
            </tr>
        </tbody>
    </table>
</div>
