zoukankan      html  css  js  c++  java
  • FineUI分组显示弹框最新的在最上边

    function TOBTCorrFun(obj){
            var msgContent = JSON.parse(obj.dataJson);
            var tJson = JSON.stringify(obj).replace(/"/g, "'").replace(/ /g, '#');
           showNotifyGroup({
                title: '来自' + obj.FromName + '的TOBT请求!!!',
                message: '航&nbsp;&nbsp;班&nbsp;&nbsp;&nbsp;号:' + msgContent.calsign + "<br /> 预 计 起 飞:" + msgContent.etd + " <br /> 目标撤轮挡:" + '<input id = "ip' + msgContent.calsign + '" class="targetGear" data-Finfo=' + tJson + ' type="text"><br/><input class="btn" data-cgn=' + msgContent.calsign + ' type="button"  value="同意" onclick="tobtsubmit(this);"><input data-cgn=' + msgContent.calsign + ' type="button" class="btn" onclick="tocancle(this)" value="记录">',
                messageIcon: 'question',
                displayMilliseconds: 0,   //弹框消失时间,0代表不消失
                id: 'snf-' + msgContent.calsign
           }, true);
           $('#ip' + msgContent.calsign).click(function (e) {
               WdatePicker({
                   el:this,
                   dateFmt: 'yyyy-MM-dd HH:mm',
                   isShowWeek: false
               });           
           });
           $('#ip' + msgContent.calsign).val(msgContent.tobt);
        }
        function tobtsubmit(obj)
        {
            var Type = "TOBTResult";
            var ToRoleId = 2;
            var ToRoleCode = "R0003";
            var tJsonStr = $('#ip' + $(obj).attr('data-cgn')).attr('data-Finfo');//获取标签属性里的内容
            var tJson = JSON.parse(tJsonStr.replace(/'/g, '"').replace(/#/g, ' '));
            var sJson = JSON.parse(tJson.dataJson);
            var dataJson = '{\"Type\":\"' + Type + '\",\"result\":\"True\",\"calsign\":\"' + sJson.calsign + '\",\"etd\":\"' + sJson.etd + '\",\"tobt\":\"' + sJson.tobt + '\",\"flightid\":' + sJson.flightid + '}';
            var datas = '{"FromId":' + tJson.ToId + ',"FromName":"' + tJson.ToName + '","ToRoleId":' + ToRoleId + ',"ToRoleCode":"' + ToRoleCode + '","ToId":' + tJson.FromId + ',"ToName":"' + tJson.FromName + '","dataJson":"' + dataJson + '"}';
            ////发送航班信息数据
            ws.send(datas);
            $('#snf-' + sJson.calsign + ' .f-panel-tools .f-icon-close').click();
        }
        function tocancle(obj) {
            var Type = "TOBTResult";
            var ToRoleId = 2;
            var ToRoleCode = "R0003";
            var tJsonStr = $('#ip' + $(obj).attr('data-cgn')).attr('data-Finfo');
            var tobt = $('#ip' + $(obj).attr('data-cgn')).val();
            var tJson = JSON.parse(tJsonStr.replace(/'/g, '"').replace(/#/g, ' '));
            var sJson = JSON.parse(tJson.dataJson);
            var dataJson = '{\"Type\":\"' + Type + '\",\"result\":\"True\",\"calsign\":\"' + sJson.calsign + '\",\"etd\":\"' + sJson.etd + '\",\"tobt\":\"' + tobt + '\",\"flightid\":' + sJson.flightid + '}';
            var datas = '{"FromId":' + tJson.ToId + ',"FromName":"' + tJson.ToName + '","ToRoleId":' + ToRoleId + ',"ToRoleCode":"' + ToRoleCode + '","ToId":' + tJson.FromId + ',"ToName":"' + tJson.FromName + '","dataJson":"' + dataJson + '"}';
            ////发送航班信息数据
            ws.send(datas);
            $('#snf-' + sJson.calsign + ' .f-panel-tools .f-icon-close').click();
        }

    //单元格双击绑定事件
    $("#ZHNYFlightGrid .f-grid-table .f-grid-row .f-grid-cell-State").bind('dblclick', function () {
            var flightId = F.ui.ZHNYFlightGrid.getSelectedRow();
            var iframUrl = 'NearFlightSort/FlightStateTime';
            F.ui.ConfirmStateWindow.show(iframUrl + '?flightId=' + flightId);
    });

  • 相关阅读:
    编译原理基础知识---文法和语言(一)
    编译原理简单知识总结(一)---编译程序和解释程序
    python网络编程
    博客声明
    v4l2编程
    Linux中的虚拟文件系统
    linux 内核文件中Makefile、kconfig、.config的关系(SDK结构)
    shell编程---find命令
    springcloud、springboot 版本号解析
    List<Map<String, Object>> 与 json 互转
  • 原文地址:https://www.cnblogs.com/lcidy/p/9133716.html
Copyright © 2011-2022 走看看