zoukankan      html  css  js  c++  java
  • easyui textbox 获取焦点

        function Admin_ListAdd()
        {
            $('#ListInfo').css({ display: "inherit" });
            $("#Department_Name").textbox("setValue", '');
            $("#Department_Remark").textbox("setValue", '');
            $('#ListInfo input').val('');
            $('#ListInfo').dialog({
                title: '添加单位',
                buttons: [{
                    text: '确定',
                    iconCls: 'icon-ok',
                    handler: function () {
    
                        if ($("#Department_Name").val() == "") {
                            $.messager.alert('提示', '单位名称不能为空!', 'info',function () {
                                $("#Department_Name").next('span').find('input').focus();
                            });
                         
                            return;
                        }
                        if ($("#Department_Leval").combobox('getValue') == "") {
                            $.messager.alert('提示', '单位级别不能为空!', 'info', function () {
                                $("#Department_Leval").combobox('showPanel');
                            });
                            
                            return;
                        }
    
                        $.ajax({
                            type: "POST",
                            url: "/Provider/HandlerDepartment.ashx",
                            async: false,
                            data: "method=add&Department_Name=" + $("#Department_Name").val() + "&Department_Leval=" + $("#Department_Leval").combobox('getValue') + "&Department_Remark=" + $("#Department_Remark").val(),
                            success: function (msg) {
                                if (msg == '1')
                                {  $('#Admin_List').datagrid("reload"); 
                                    $('#ListInfo').dialog('close');
                                  
                                }
                                else
                                {
                                    $.messager.alert('提示', '该单位已存在!', 'info');
                                }
    
                            }
                        });
                    }
    
                }, {
                    text: '取消',
                    iconCls: 'icon-cancel',
                    handler: function () {
                        $('#ListInfo').dialog('close');
                    }
                }]
            });
    
        }
    
  • 相关阅读:
    oracle锁表查询,资源占用,连接会话,低效SQL等性能检查
    oracle临时表
    oracle列转行
    oracle数据库查询重复记录
    查找mysql的cnf文件位置
    Nginx反向代理,负载均衡,redis session共享,keepalived高可用
    Linux 软件安装
    Linux上网设置
    c#学习内容
    PHP八大设计模式
  • 原文地址:https://www.cnblogs.com/gwazy/p/9852631.html
Copyright © 2011-2022 走看看