惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

H
Help Net Security
博客园 - Franky
GbyAI
GbyAI
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
爱范儿
爱范儿
IT之家
IT之家
酷 壳 – CoolShell
酷 壳 – CoolShell
aimingoo的专栏
aimingoo的专栏
博客园_首页
MongoDB | Blog
MongoDB | Blog
CTFtime.org: upcoming CTF events
CTFtime.org: upcoming CTF events
Recent Announcements
Recent Announcements
Scott Helme
Scott Helme
有赞技术团队
有赞技术团队
M
MIT News - Artificial intelligence
C
CERT Recently Published Vulnerability Notes
K
KPMG report finds enterprise disconnect between AI and its ROI | CIO
Jina AI
Jina AI
F
Fortinet All Blogs
N
Netflix TechBlog - Medium
L
LangChain Blog
L
LINUX DO - 最新话题
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
cs.AI updates on arXiv.org
cs.AI updates on arXiv.org
H
Hacker News: Front Page
MyScale Blog
MyScale Blog
P
Palo Alto Networks Blog
G
Google Developers Blog
Google DeepMind News
Google DeepMind News
AI
AI
T
Troy Hunt's Blog
Microsoft Azure Blog
Microsoft Azure Blog
阮一峰的网络日志
阮一峰的网络日志
cs.CL updates on arXiv.org
cs.CL updates on arXiv.org
Vercel News
Vercel News
Microsoft Security Blog
Microsoft Security Blog
罗磊的独立博客
S
Secure Thoughts
大猫的无限游戏
大猫的无限游戏
博客园 - 叶小钗
人人都是产品经理
人人都是产品经理
Blog — PlanetScale
Blog — PlanetScale
博客园 - 司徒正美
Apple Machine Learning Research
Apple Machine Learning Research
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
博客园 - 三生石上(FineUI控件)
S
Security @ Cisco Blogs
Cloudbric
Cloudbric
E
Exploit-DB.com RSS Feed
Attack and Defense Labs
Attack and Defense Labs

博客园 - gwazy

wifi zigbee 蓝牙区别 easyUI 异步加载树 sql 有条件计数 easyui combox 手动添加项 只有设置了 name 属性的表单元素才能在提交表单时传递它们的值 除湿方法 android 页面跳转,数据回传 android studio 乱码 android studio 工具 gridlaylout 简单布局 android 开发 简单的页面布局 android sdk 重装windows7企业版时提示“安装程序无法创建新的系统分区,也无法定位现有系统 csdn 泄露用户密码害人不浅啊。 PoolMon 使用 固态硬盘相关知识 android 平台搭建 win8 中使用第三方无线网卡出现无线连接受限解决办法 iis 故障导致网站无法访问
easyui textbox 获取焦点
gwazy · 2018-10-25 · via 博客园 - gwazy
    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');
                }
            }]
        });

    }