zoukankan      html  css  js  c++  java
  • 【easyui】combobox datebox

    <input id="msg_type" name="area_msg_type" data-options="100,prompt: '预警类型'"/>
    <input id="warning_date_start" name="warning_date_start" type="text" class="easyui-datebox"
    data-options="100,prompt: '起始时间'">
    ~
    <input id="warning_date_end" name="warning_date_end" type="text" class="easyui-datebox"
    data-options="100,prompt: '结束时间'">
    var warningType = [
    {'id': 1, 'value': '大角度转向预警'},
    {'id': 2, 'value': '速度异常预警'},
    {'id': 3, 'value': '信号丢失预警'},
    {'id': 4, 'value': '抵港多级预警'},
    {'id': 5, 'value': '船舶防撞预警'},
    {'id': 6, 'value': '重点水域预警'}
    ];

    $('#msg_type').combobox({
    data: warningType,
    valueField: 'id',
    textField: 'value',
    onSelect: function (e) {
    searchByInput();
    }
    });

    function reset() {
    $("#area_name").val('');
    $('#msg_type').combobox('setValue', '');
    $("#warning_date_start").datebox('setValue', '');
    $("#warning_date_end").datebox('setValue', '');
    searchByInput();
    }

    <if test="warning_date_start!=null and warning_date_start!=''">
    and msg_date &gt;#{warning_date_start}
    </if>
    <if test="warning_date_end!=null and warning_date_end!=''">
    and msg_date &lt;#{warning_date_end}
    </if>
  • 相关阅读:
    数据验证及文件操作
    Leecode336
    Leecode335
    正式回归
    自定义按钮的实现 windows phone
    asp.net中保存更改数据
    asp.net中可以这样序列化
    Asp.net mvc 3 实现进度条上传思路[转]
    server.MapPath
    Path.Combine (合并两个路径字符串)方法的一些使用细节
  • 原文地址:https://www.cnblogs.com/CESC4/p/7777028.html
Copyright © 2011-2022 走看看