SourceCode/jiouosdp/Areas/Systems/Views/PayWays/Index.cshtml

(开头部分) 11KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

@{
    ViewBag.Title = "支付方式";
    Layout = "~/Areas/Theme/Views/Shared/wechatmaster.cshtml";
}
<script src="../../../../bstrap/b2/js/bootstrap.min.js"></script>
<link href="../../Scripts/jqrmgrid/css/ui.jqrmgrid.css" rel="stylesheet" />
<script src="../../Scripts/jqrmgrid/js/jquery.jqRmGrid.js?v=1.1"></script>
<link href="../../../../Scripts/jqrmgrid/js/ui.jqrmgrid_ex.css" rel="stylesheet" />
<link href="/bstrap/b3/css/bootstrap.css" rel="stylesheet" />

<script src="../../../../Scripts/zclip/jquery.zclip.min.js"></script>
<script src="/Scripts/jquery.form.js"></script>
<div class="panel-body">
    <table class="blueglasshead" id="user_table"></table>
</div>
<script type="text/javascript">

    //var aaa = eval('[{"AppID":{"text":"AppID","value":"Value","type":"text"},"AppSecret":{"text":"AppSecret","value":"Value","type":"text"},"MChid":{"text":"MChid","value":"Value","type":"text"},"Key":{"text":"Key","value":"Value","type":"text"},"Cer":{"text":"Cer","value":"Value","type":"text"}}]')[0];

    //var bbb = eval('[{"AppID":{"text":"AppID","value":"Value","type":"text"},"AppSecret":{"text":"AppSecret","value":"Value","type":"text"},"MChid":{"text":"MChid","value":"Value","type":"text"},"Key":{"text":"Key","value":"Value","type":"text"},"Cer":{"text":"Cer","value":"Value","type":"text"}}]');
    var cer = "";
    var projectgrid = "#user_table";
    var currenopera = "add";
    var currentid;
    $(function () {
        $(projectgrid).rmGrid({
            url: '/PayWays/LoadPayWayListdata',
            colNames: ['支付方式名称', '支付方式描述', "启用", "PayWayProp", "MerchantPayWayProp", "管理"],
            colModel: [
                    { name: 'Name', width: 30, align: "center" },
                    { name: 'Description', width: 30, align: "center" },
                    { name: 'IsEnable', width: 30, align: "center" },
                    { name: 'PayWayProp', width: 30, align: "center", hidden: true },
                    { name: 'MerchantPayWayProp', width: 30, align: "center", hidden: true },
                    { name: 'Operate', width: 30, align: "center" }
            ],
            zebraCrossing: false,
            width: "auto",
            gridComplete: function () {
                var ids = $(projectgrid).rmGrid('getDataIDs');
                for (var i = 0; i < ids.length; i++) {
                    var id = ids[i];
                    var model = $(projectgrid).rmGrid('getRowData', id);
                    var operateHtml = "";

                    if (model.IsEnable == 1) {
                        operateHtml = '<div style="text-align:center"><button type="button" onclick="SetPayWay(\'' + id + '\',\'' + model.MerchantPayWayProp + '\',\'' + model.Name + '\',true)" class="btn btn-sm">配置</button></div>';
                    }
                    else if (model.IsEnable == 0) {
                        operateHtml = '<div style="text-align:center"><button type="button" onclick="SetPayWay(\'' + id + '\',\'' + model.MerchantPayWayProp + '\',\'' + model.Name + '\',false)" class="btn btn-sm">配置</button></div>';
                    }
                    else {
                        operateHtml = '<div style="text-align:center"><button type="button" onclick="SetPayWay(\'' + id + '\',\'' + model.PayWayProp + '\',\'' + model.Name + '\',false)" class="btn btn-sm">配置</button></div>';
                    }

                    $(projectgrid).rmGrid('setRowData', id, {
                        IsEnable: model.IsEnable == 1 ? "是" : "否",
                        Operate: operateHtml
                    });
                }
后面还有 192 行代码,解锁后查看完整代码

24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明

AI 解读 AI

登录后可用,每次 10 算力,解读结果公开显示在下面。

还没有人解读过这个文件。