@model Com._9pm2.ClientWeb.Models.ListModel
@{
    ViewBag.Title = "支付方式配置";
}
<script src="../../Scripts/paymenttypelist.js?vn=20180813"></script>

<div class="system-list-page">

    <div class="list">
        <div>
            <button id="btnPaymentTypeNew" type="button" class="btn btn-default">新增</button>
        </div>

        <table id="tPayment" style="max-width:600px">
            <thead>
                <tr>
                    <th class="">支付方式</th>
                    <th style="width:100px">操作</th>
                </tr>
            </thead>
            <tbody>
                @foreach (var item in Model.PaymentTypes)
            {
                    <tr>
                        <td>
                            @item.TypeName
                        <td>


                            @if (item.IsSystemReversed == 0)
                        {
                                <div class="operation-btns">
                                    <div>
                                        <button id="select">&nbsp;</button>
                                    </div>
                                    <ul>
                                        <li><a onclick="EditPaymentType('@item.PaymentTypeNo')">编辑</a>     </li>
                                        <li><a onclick="DeletePaymentType('@item.PaymentTypeNo')">删除</a></li>

                                    </ul>
                                </div>
                        }
                        else
                        {
                                <span style="color:gray">系统保留</span>
                        }

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

    <div id="divPaymentType" title="支付方式" style="display:none">
        <div id="divPaymentTypeContent">
            <form id="formPaymentType">
                <table class="font85 tableEdit">
                    <tr>
                        <td class="label">支付方式</td>
                        <td>
                            @Html.TextBox("TypeName", null, new { maxlength = "50" })&nbsp;<span class="redStar">*</span>
                        </td>
                    </tr>
                </table>
                @Html.Hidden("PaymentTypeNo")
            </form>
        </div>
        <div style="text-align:right;">

            <div class="error-msg"></div>
            <button type="button" class="btn btn-default" id="btnPaymentTypeCancel">取消</button>
            <button type="button" class="btn btn-primary" id="btnPaymentTypeSave">保存</button>

        </div>
    </div> 

</div>
 