<div ms-controller="RecordList">
    <table width="100%" border="0" cellspacing="1" cellpadding="0" class="tableList bottom10" id="tableList">
        <thead>
            <tr class="dobtn" style="background-color: rgba(0, 0, 0, 0);">
                <td colspan="9">
                    <a href="javascript:void(0)" class="doadd" ms-click="doadd" ms-value="0">新增</a>
                    <a href="javascript:void(0)" class="doalldel" ms-click="doalldel">批量删除</a>
                </td>
            </tr>
            <tr class="head" style="background-color: rgba(0, 0, 0, 0);">
                <td width="2%" rowspan='2' align="center">
                    <input type="checkbox" class="checkAll">
                </td>
                <td width="20%" align="center">标题</td>
                <td width="8%" align="center">操作人
                </td>
                <td width="5%" align="center">操作时间
                </td>
                <td width="5%" align="center">操作
                </td>
            </tr>
        </thead>
        <tbody>
            <tr align="center" ms-hover='hover' ms-repeat-item="CustomerRecordList">
                <td>
                    <input type="checkbox" name="checkbox" ms-value="item.Id">
                </td>
                <td>{{item.RecordTag}}
                </td>
                <td>{{item.UpdateName}}
                </td>
                <td>{{item.UpdateDate}}
                </td>
                <td>
                    <a href="javascript:void(0)" class="doview" ms-click="doview" ms-value="item.Id" ms-title="查看"></a>
                    <a href="javascript:void(0)" class="doedit" ms-click="doedit" ms-value="item.Id" ms-title="编辑"></a>
                    <a href="javascript:void(0)" class="dodel" ms-click="dodel" ms-attr-index="$index" ms-value="item.Id" ms-title="删除"></a>

                </td>
            </tr>
        </tbody>
        <tfoot>
            <tr ms-if="grid1.gridmsg">
                <td colspan="9" class="gridmsg">{{grid1.gridmsg|html}}</td>
            </tr>
            <tr style="background-color:#ffffff;">
                <td colspan="9" ms-widget='paging,upaing,RecordListpaing'></td>
            </tr>
        </tfoot>
    </table>

    <!---新增 and 编辑--->
    <noscript type="text/avalon" id="formTemplate">
        <table width="700px" border="0" cellspacing="1" cellpadding="0" id="Table1">
            <tbody>
                <tr>
                    <td style="width: 100px;" align="right">标题 ：
                    </td>
                    <td height="25" align="left">
                        <input type="text" style="width: 200px;" ms-duplex="Detailsmodel.RecordTag" />&nbsp;&nbsp;<span class="tipico">&nbsp;&nbsp;</span><a style="color: gray;">记事标题建议控制在4个字以内</a>
                    </td>

                </tr>
                <tr>
                    <td width="100px;" align="right">内容 ：
                    </td>
                    <td>
                        <textarea id="RecordContent" rows="2" cols="16" style="height: 200px; width: 98%;"></textarea>
                    </td>
                </tr>
                <tr>
                    <td align="right"></td>
                    <td align="right">
                        <input type="hidden" ms-duplex="Detailsmodel.Id" />
                        <input type="hidden" ms-duplex="Detailsmodel.CoustomId" />
                        <input type="hidden" ms-duplex="Detailsmodel.CreateId" />
                        <input type="hidden" ms-duplex="Detailsmodel.CreateName" />
                        <input type="hidden" ms-duplex="Detailsmodel.CreateDate" />
                        <input type="hidden" ms-duplex="Detailsmodel.UpdateId" />
                        <input type="hidden" ms-duplex="Detailsmodel.UpdateDate" />
                        <input type="hidden" ms-duplex="Detailsmodel.UpdateName" />
                        <input type="hidden" ms-duplex="Detailsmodel.RecordName" />
                    </td>
                </tr>
            </tbody>
        </table>
    </noscript>
    <!--查看-->
    <noscript type="text/avalon" id="viewTemplate">
        <table width="700px" border="0" cellspacing="1" cellpadding="0" class="tablecInfo bottom10" id="info">
            <tbody>

                <tr>
                    <td height="25" align="right">标题 ：
                    </td>
                    <td height="25" colspan="3" width="*" align="left">{{Detailsmodel.RecordTag}}
                    </td>
                </tr>
                <tr>
                    <td height="25" align="right">内容 ：
                    </td>
                    <td height="25" colspan="3" width="*" align="left">{{Detailsmodel.RecordContent|html}}
                    </td>
                </tr>
                <tr>
                    <td height="25" align="right">创建人 ：
                    </td>
                    <td height="25" width="*" align="left">{{Detailsmodel.CreateName}}
                    </td>
                    <td height="25" align="right">创建时间 ：
                    </td>
                    <td height="25" width="*" align="left">{{Detailsmodel.CreateDate}}
                    </td>
                </tr>
                <tr>
                    <td height="25" align="right">操作人 ：
                    </td>
                    <td height="25" width="*" align="left">{{Detailsmodel.UpdateName}}
                    </td>
                    <td height="25" align="right">操作时间 ：
                    </td>
                    <td height="25" width="*" align="left">{{Detailsmodel.UpdateDate}}
                    </td>
                </tr>
            </tbody>
        </table>
    </noscript>
</div>
