月度归档: 2019 年 7 月

  • windows 安装自己开发的.NET Windows服务

    安装

    %SystemRoot%\Microsoft.NET\Framework\v4.0.30319\installutil.exe  C:\Windows\service\tiegepushservice.exe

    卸载

    %SystemRoot%\Microsoft.NET\Framework\v4.0.30319\installutil.exe    C:\Windows\service\tiegepushservice.exe   /u

  • IIS MIME MP4

    .mp4

    application/octet-stream

  • jquery easyui datagrid 全选、反选、清除

    //全选
    function allselectRow(tableName) {
        $('#' + tableName).datagrid('selectAll');
    }
    //反选
    function unselectRow(tableName) {
        var s_rows = $.map($('#' + tableName).datagrid('getSelections'),
                function(n) {
                    return $('#' + tableName).datagrid('getRowIndex', n);
                });
        $('#' + tableName).datagrid('selectAll');
        $.each(s_rows, function(i, n) {
            $('#' + tableName).datagrid('unselectRow', n);
        });
    }
    //全清
    function clearSelections(tableName) {
        $('#' + tableName).datagrid('clearSelections');
    }
    var grid = $('#tt1');
            var options = grid.datagrid('getPager').data("pagination").options;
            //当前页数
            var currentPage = options.pageNumber;
            //总条数
            var total = options.total;
            //当前页记录数
            var rows = options.pageSize;
            //总页数
            var max = Math.ceil(total / options.pageSize);
    
    
    //全选选择
    function checkAll() {
        $("input[name='menuid']").each(function() {
            $(this).attr("checked", true);
        });
    };
    //反向选择
    function reversal() {
        $("input[name='menuid']").each(function() {
            $(this).attr("checked", !this.checked);
        });
    }
    //取消选择
    function clearCheck() {
        $("input[name='menuid']").each(function() {
            $(this).attr("checked", false);
        });