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: '航 班 号:' + 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);
});