<div  ms-controller="{{pluginVmid}}" style="padding:5px 10px;">
    <table border="0" align="center" cellpadding="0" cellspacing="0" id="mian" style="border-bottom: none;">
        <tbody>
            <tr>
                <td style="width: 10px;"></td>
                <td style="padding: 0px;vertical-align: top;">
                    <div class="boxTitlenoneb bordergrag" style="border-bottom:none;">
                        <h2>
                            合同订单
                            <span class="rseachbox">
                                <input class="input" type="text" ms-duplex="queryData.key.val" ms-enter="gridm.doSearch" placeholder="输入合同名称快速检索">
                                <button type="button" class="inputbt" ms-click="gridm.doSearch" ></button>
                            </span>
                        </h2>
                    </div>
                    <div class="bordergrag" style="height: 250px; overflow-y:scroll;border-top:none;">
                        <table width="100%" border="0" cellspacing="1" cellpadding="0" class="tableList">
                            <thead>
                                <tr class="head" style="background-color: rgb(250, 250, 250);">
                                   <td width="3%">选择</td>
                                   <td width="10%" align="center">合同编号</td>
                                   <td width="15%" align="center">合同名称</td>
                                   <td width="8%" align="center">合同金额</td>
                                   <td width="8%" align="center">已回款</td>
                                   <td width="8%" align="center">签约日期</td>
                                   <td width="15%" align="center">合同期限范围</td>
                                </tr>
                            </thead>
                            <tbody>
                                <tr ms-repeat-item="gridm.list" ms-dblclick="onDblClick(item)" ms-class-1="selected:item.checked">
                                    <td align="center">
                                       <input ms-if="gridm.multiple" type="checkbox" ms-duplex-radio="item.checked" ms-disabled="item.chkDisabled" />
                                        <input ms-if="!gridm.multiple" type="radio" ms-duplex="item.checked" ms-disabled="item.chkDisabled" /> 
                                    </td>
                                    <td align="center">{{item.ContractNum}}</td>
                                    <td align="center">{{item.ContractName|truncate(18,'...')}}</td>
                                    <td align="center">{{item.Amount?item.Amount:0}}</td>
                                    <td align="center">{{item.ReturnedMoney}}</td>
                                    <td align="center">{{item.SignAContractDate|truncate(10,'')}}</td>
                                    <td align="center">{{item.StartDate|truncate(10,'')}} 至 {{item.EndDate|truncate(10,'')}}</td>
                                </tr>
                            </tbody>
                            <tfoot>
                                <tr ms-if="gridm.gridmsg">
                                    <td colspan="7" class="gridmsg">{{gridm.gridmsg|html}}</td>
                                </tr>
                                <!--<tr style="background-color: #fff;">
                                    <td colspan="5" ms-widget='paging' data-gridid="gridm"></td>
                                </tr>-->
                            </tfoot>
                        </table>
                    </div>
                    <div ms-widget='paging' data-gridid="gridm" style="height:30px;line-height:30px;border-top:none;" class="bordergrag"></div>
                    <div class="boxTitlenoneb bordergrag" style="margin-top:2px;border-bottom:none;">
                        <h2>已选款项期次</h2>
                    </div>
                    <div class="bordergrag" style="height: 250px; overflow-y:scroll;border-top:none;">
                        <table width="100%" border="0" cellspacing="1" cellpadding="0" class="tableList">
                            <thead>
                                <tr class="head" style="background-color: rgb(250, 250, 250);">
                                    <td width="5%">选择</td>
                                    <td width="10%" align="center">计划付款期次</td>
                                   <td width="25%" align="center">款项项目名称</td>
                                   <td width="20%" align="center">金额</td>
                                   <td width="10%" align="center">比例</td>
                                   <td width="20%" align="center">说明</td>
                                </tr>
                            </thead>
                            <tbody>
                                <tr ms-repeat-item="grid1.list">
                                    <td align="center">
                                       <input ms-if="grid1.multiple" type="checkbox" ms-duplex-radio="item.checked" ms-disabled="item.chkDisabled" />
                                       <input ms-if="!grid1.multiple" type="radio" ms-duplex="item.checked" ms-disabled="item.chkDisabled" /> 
                                    </td>
                                    <td align="center">{{item.Num}}</td>
                                    <td align="center">{{item.Item|truncate(18,'...')}}</td>
                                    <td align="center">{{item.Money?item.Money:0|currency}}</td>
                                    <td align="center">{{item.Percents}}%</td>
                                    <td align="center">{{item.Remark}}</td>
                                </tr>
                            </tbody>
                            <tfoot>
                                <tr ms-if="grid1.gridmsg">
                                    <td colspan="6" class="gridmsg">{{grid1.gridmsg|html}}</td>
                                </tr>
                            </tfoot>
                        </table>
                    </div>

                </td>
            </tr>
        </tbody>
    </table>
</div>
