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

推荐订阅源

量子位
I
InfoQ
人人都是产品经理
人人都是产品经理
博客园 - 三生石上(FineUI控件)
爱范儿
爱范儿
Hugging Face - Blog
Hugging Face - Blog
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
S
SegmentFault 最新的问题
美团技术团队
小众软件
小众软件
Blog — PlanetScale
Blog — PlanetScale
Jina AI
Jina AI
aimingoo的专栏
aimingoo的专栏
H
Help Net Security
Last Week in AI
Last Week in AI
博客园_首页
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
L
LangChain Blog
云风的 BLOG
云风的 BLOG
Martin Fowler
Martin Fowler
宝玉的分享
宝玉的分享
G
Google Developers Blog
博客园 - 叶小钗
博客园 - Franky

博客园 - 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');
                }
            }]
        });

    }