• my97整合fineui例子,开始和结束时间


     
    <f: Toolbar runat ="server">
                                <Items>
                                    <f: TriggerBox ID ="tb_btime"  Label ="开始日期" EmptyText="请选择开始日期" TriggerIcon="Date"
                                        runat="server">
                                    </f: TriggerBox>
     
                                    <f: TriggerBox ID ="tb_etime"  Label ="结束日期" EmptyText="请选择结束日期" TriggerIcon="Date"
                                        runat="server">
                                    </f: TriggerBox>
                                </Items>
                            </f: Toolbar>
     
     
    <script src="../../res/My97DatePicker/WdatePicker.js"></script>
    <script type="text/javascript">
        var btimeClientID = '<%= tb_btime.ClientID %> ';
        var etimeClientID = '<%= tb_etime.ClientID %> ';
        F.ready(function () {
     
            var btime1 = F(btimeClientID);
            var etime2 = F(etimeClientID);
     
            btime1.onTriggerClick = function () {
                WdatePicker({
                   skin: 'ext', //ext皮肤
                    el: btimeClientID + '-inputEl',
                    dateFmt: 'yyyy-MM-dd',
                    maxDate: '%y-%M-%d'
                    //,onpicked: function () {
                    //    // 确认选择后,执行触发器输入框的客户端验证(必填验证)
                    //    //etime2.validate();
                    //}
                });
            };
     
            etime2.onTriggerClick = function (){
                var btimeData = btime1.getValue();
                if (btimeData.length == 0) {
                    etime2.setValue( "");
                    alert( "请先选择开始日期!" );
                    return;
                }
                //alert(btimeData);
                    //return;
               
                WdatePicker({
                    el: etimeClientID + '-inputEl',
                    dateFmt: 'yyyy-MM-dd',
                    minDate: btimeData,
                    maxDate: '%y-%M-%d'//今天
                });
            };
     
        });
    </script>
  • 相关阅读:
    FastAPI WebSockets
    FastAPI 进阶知识(五) 子应用
    FastAPI 基础学习(十五) 直接使用Request
    FastAPI 安全机制(四) OAuth2 scopes
    FastAPI 依赖注入系统(六) 可参数化的依赖项
    FastAPI Response(四) 高级定制的Response
    FastAPI Response(三) 定制化的Response
    FastAPI Response(二) 直接返回Response对象
    FastAPI 进阶知识(四) 后台任务
    python全栈开发目录
  • 原文地址:https://www.cnblogs.com/sundayisblue/p/7109761.html
Copyright © 2020-2023  润新知