MvcBug/Views/Softtype/Index.cshtml

(开头部分) 6KB

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

<script type="text/javascript">


    $(function () {
        GetSofttypeDataGrid();
    })

    function GetSofttypeDataGrid() {
        $("#dgSofttype").datagrid({       //初始化datagrid
            url: "/Softtype/GetDataGridJson",
            striped: true, rownumbers: true, pagination: true, singleSelect: true,
            columns: [[
                           { field: 'Id', title: '序号', sortable: true, width: 80 },
                           {
                               field: 'Code', title: '版本', sortable: true, width: 100,
                               formatter: function (value, row, index) {
                                   var val = '';
                                   switch (value)
                                   {
                                       case "crmjxc":
                                           val = "进销存";
                                           break;
                                       case "crmgrb":
                                           val = "普及版";
                                           break;
                                       case "crmglxt":
                                           val = "推广版";
                                           break;
                                       case "crmqyb":
                                           val = "企业版";
                                           break;
                                   }
                                   return val;
                               }
                           },
                           { field: 'Name', title: '名称', sortable: true, width: 100 },
                           { field: 'Verno', title: '版本号', sortable: true, width: 100 }
                ]],
            toolbar: [{
                text: '添加',
                iconCls: 'icon-add',
                handler: function () { addSofttype(); }
            }, {
                text: '编辑',
                iconCls: 'icon-edit',
                handler: function () { editSofttype(); }
            }, '-', {
                text: '删除',
                iconCls: 'icon-remove',
                handler: function () { removeSofttype(); }
            }]
        });
    }

    //操作
    function addSofttype() {
        $('#ddSofttype').dialog('open').dialog('setTitle', '添加软件版本');
        $('#formSofttype').form('clear');
    }
    function saveSofttype() {
后面还有 86 行代码,购买后查看完整代码

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

AI 解读 AI

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

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