锘?*! @Name锛歭ayer v1.9.1 寮瑰眰缁勪欢 @Author锛氳搐蹇 @Site锛歨ttp://sentsin.com/jquery/layer @License锛歀GPL */ ;!function (window, undefined) { "use strict"; var $, win, ready = { getPath: function () { var js = document.scripts, script = js[js.length - 1], jsPath = script.src; if (script.getAttribute('merge')) return; return jsPath.substring(0, jsPath.lastIndexOf("/") + 1); } (), config: {}, end: {}, btn: ['确定', '取消'], //浜旂鍘熷灞傛ā寮 type: ['dialog', 'page', 'iframe', 'loading', 'tips'] }; //榛樿鍐呯疆鏂规硶銆 window.layer = { v: '1.9.1', ie6: !!window.ActiveXObject && !window.XMLHttpRequest, index: 0, path: ready.getPath, config: function (options, fn) { var item = 0; options = options || {}; ready.config = $.extend(ready.config, options); layer.path = ready.config.path || layer.path; typeof options.extend === 'string' && (options.extend = [options.extend]); layer.use('skin/layer.css', (options.extend && options.extend.length > 0) ? (function loop() { var ext = options.extend; layer.use(ext[ext[item] ? item : item - 1], item < ext.length ? function () { ++item; return loop; } () : fn); } ()) : fn); return this; }, //杞藉叆閰嶄欢 use: function (module, fn, readyMethod) { var i = 0, head = $('head')[0]; var module = module.replace(/\s/g, ''); var iscss = /\.css$/.test(module); var node = document.createElement(iscss ? 'link' : 'script'); var id = 'layui_layer_' + module.replace(/\.|\//g, ''); if (!layer.path) return; if (iscss) { node.rel = 'stylesheet'; } node[iscss ? 'href' : 'src'] = /^http:\/\//.test(module) ? module : layer.path + module; node.id = id; if (!$('#' + id)[0]) { head.appendChild(node); } //杞鍔犺浇灏辩华 ; (function poll() { ; (iscss ? parseInt($('#' + id).css('width')) === 1989 : layer[readyMethod || id]) ? function () { fn && fn(); try { iscss || head.removeChild(node); } catch (e) { }; } () : setTimeout(poll, 100); } ()); return this; }, ready: function (path, fn) { var type = typeof path === 'function'; if (type) fn = path; layer.config($.extend(ready.config, function () { return type ? {} : { path: path }; } ()), fn); return this; }, //鍚勭蹇嵎寮曠敤 alert: function (content, options, yes) { var type = typeof options === 'function'; if (type) yes = options; return layer.open($.extend({ content: content, yes: yes }, type ? {} : options)); }, confirm: function (content, options, yes, cancel) { var type = typeof options === 'function'; if (type) { cancel = yes; yes = options; } return layer.open($.extend({ content: content, btn: ready.btn, yes: yes, cancel: cancel }, type ? {} : options)); }, msg: function (content, options, end) { //鏈€甯哥敤鎻愮ず灞 var type = typeof options === 'function', skin = 'layui-layer-msg'; var shift = doms.anim.length - 1; if (type) end = options; return layer.open($.extend({ content: content, time: 3000, shade: false, skin: skin, title: false, closeBtn: false, btn: false, end: end }, type ? { skin: skin + ' layui-layer-hui', shift: shift } : function () { options = options || {}; if (options.icon === -1 || options.icon === undefined) { options.skin = skin + ' ' + (options.skin || 'layui-layer-hui'); } return options; } ())); }, load: function (icon, options) { return layer.open($.extend({ type: 3, icon: icon || 0, shade: 0 }, options)); }, tips: function (content, follow, options) { return layer.open($.extend({ type: 4, content: [content, follow], closeBtn: false, time: 3000, maxWidth: 210 }, options)); } }; var Class = function (setings) { var that = this; that.index = ++layer.index; that.config = $.extend({}, that.config, ready.config, setings); that.creat(); }; Class.pt = Class.prototype; //缂撳瓨甯哥敤瀛楃 var doms = ['layui-layer', '.layui-layer-title', '.layui-layer-main', '.layui-layer-dialog', 'layui-layer-iframe', 'layui-layer-content', 'layui-layer-btn', 'layui-layer-close']; doms.anim = ['layui-anim-01', 'layui-anim-02', 'layui-anim-03', 'layui-anim-04', 'layui-anim-05', 'layui-anim-06', 'layui-anim-07']; //榛樿閰嶇疆 Class.pt.config = { type: 0, shade: 0.3, fix: true, move: doms[1], title: '信息', offset: 'auto', area: 'auto', closeBtn: 1, time: 0, //0琛ㄧず涓嶈嚜鍔ㄥ叧闂 zIndex: 19891014, maxWidth: 360, shift: 0, icon: -1, scrollbar: true, //鏄惁鍏佽娴忚鍣ㄦ粴鍔ㄦ潯 tips: 2 }; //瀹瑰櫒 Class.pt.vessel = function (conType, callback) { var that = this, times = that.index, config = that.config; var zIndex = config.zIndex + times, titype = typeof config.title === 'object'; var ismax = config.maxmin && (config.type === 1 || config.type === 2); var titleHTML = (config.title ? '
' + (titype ? config.title[0] : config.title) + '
' : ''); config.zIndex = zIndex; callback([ //閬僵 config.shade ? ('
') : '', //涓讳綋 '
' + (conType && config.type != 2 ? '' : titleHTML) + '
' + (config.type == 0 && config.icon !== -1 ? '' : '') + (config.type == 1 && conType ? '' : (config.content || '')) + '
' + '' + function () { var closebtn = ismax ? '' : ''; config.closeBtn && (closebtn += ''); return closebtn; } () + '' + (config.btn ? function () { var button = ''; typeof config.btn === 'string' && (config.btn = [config.btn]); for (var i = 0, len = config.btn.length; i < len; i++) { button += '' + config.btn[i] + '' } return '
' + button + '
' } () : '') + '
' ], titleHTML); return that; }; //鍒涘缓楠ㄦ灦 Class.pt.creat = function () { var that = this, config = that.config, times = that.index, nodeIndex; var content = config.content, conType = typeof content === 'object'; if (typeof config.area === 'string') { config.area = config.area === 'auto' ? ['', ''] : [config.area, '']; } switch (config.type) { case 0: config.btn = ('btn' in config) ? config.btn : ready.btn[0]; layer.close($('div.' + doms[0] + '[type=dialog]').attr('times')); break; case 2: var content = config.content = conType ? config.content : [config.content || 'http://sentsin.com?from=layer', 'auto']; config.content = ''; break; case 3: config.title = false; config.closeBtn = false; config.icon === -1 && (config.icon === 0); layer.closeAll('loading'); break; case 4: conType || (config.content = [config.content, 'body']); config.follow = config.content[1]; config.content = config.content[0] + ''; config.title = false; config.shade = false; config.fix = false; config.tips = typeof config.tips === 'object' ? config.tips : [config.tips, true]; config.tipsMore || layer.closeAll('tips'); break; } //寤虹珛瀹瑰櫒 that.vessel(conType, function (html, titleHTML) { $('body').append(html[0]); conType ? function () { (config.type == 2 || config.type == 4) ? function () { $('body').append(html[1]); } () : function () { if (!content.parents('.' + doms[0])[0]) { content.show().addClass('layui-layer-wrap').wrap(html[1]); $('#' + doms[0] + times).find('.' + doms[5]).before(titleHTML); } } (); } () : $('body').append(html[1]); that.layero = $('#' + doms[0] + times); config.scrollbar || doms.html.css('overflow', 'hidden').attr('layer-full', times); }).auto(times); config.type == 2 && layer.ie6 && that.layero.find('iframe').attr('src', content[0]); //鍧愭爣鑷€傚簲娴忚鍣ㄧ獥鍙e昂瀵 config.type == 4 ? that.tips() : that.offset(); if (config.fix) { win.live('resize', function () { that.offset(); (/^\d+%$/.test(config.area[0]) || /^\d+%$/.test(config.area[1])) && that.auto(times); config.type == 4 && that.tips(); }); } config.time <= 0 || setTimeout(function () { layer.close(that.index) }, config.time); that.move().callback(); }; //鑷€傚簲 Class.pt.auto = function (index) { var that = this, config = that.config, layero = $('#' + doms[0] + index); if (config.area[0] === '' && config.maxWidth > 0) { //涓轰簡淇IE7涓嬩竴涓浜洪毦浠ョ悊瑙g殑bug if (/MSIE 7/.test(navigator.userAgent) && config.btn) { layero.width(layero.innerWidth()); } layero.outerWidth() > config.maxWidth && layero.width(config.maxWidth); } var area = [layero.innerWidth(), layero.innerHeight()]; var titHeight = layero.find(doms[1]).outerHeight() || 0; var btnHeight = layero.find('.' + doms[6]).outerHeight() || 0; function setHeight(elem) { elem = layero.find(elem); elem.height(area[1] - titHeight - btnHeight - 2 * (parseFloat(elem.css('padding')) | 0)); } switch (config.type) { case 2: setHeight('iframe'); break; default: if (config.area[1] === '') { if (config.fix && area[1] > win.height()) { area[1] = win.height(); setHeight('.' + doms[5]); } } else { setHeight('.' + doms[5]); } break; } return that; }; //璁$畻鍧愭爣 Class.pt.offset = function () { var that = this, config = that.config, layero = that.layero; var area = [layero.outerWidth(), layero.outerHeight()]; var type = typeof config.offset === 'object'; that.offsetTop = (win.height() - area[1]) / 2; that.offsetLeft = (win.width() - area[0]) / 2; if (type) { that.offsetTop = config.offset[0]; that.offsetLeft = config.offset[1] || that.offsetLeft; } else if (config.offset !== 'auto') { that.offsetTop = config.offset; if (config.offset === 'rb') { //鍙充笅瑙 that.offsetTop = win.height() - area[1]; that.offsetLeft = win.width() - area[0]; } } if (!config.fix) { that.offsetTop = /%$/.test(that.offsetTop) ? win.height() * parseFloat(that.offsetTop) / 100 : parseFloat(that.offsetTop); that.offsetLeft = /%$/.test(that.offsetLeft) ? win.width() * parseFloat(that.offsetLeft) / 100 : parseFloat(that.offsetLeft); that.offsetTop += win.scrollTop(); that.offsetLeft += win.scrollLeft(); } layero.css({ top: that.offsetTop, left: that.offsetLeft }); }; //Tips Class.pt.tips = function () { var that = this, config = that.config, layero = that.layero; var layArea = [layero.outerWidth(), layero.outerHeight()], follow = $(config.follow); if (!follow[0]) follow = $('body'); var goal = { width: follow.outerWidth(), height: follow.outerHeight(), top: follow.offset().top, left: follow.offset().left }, tipsG = layero.find('.layui-layer-TipsG'); var guide = config.tips[0]; config.tips[1] || tipsG.remove(); goal.autoLeft = function () { if (goal.left + layArea[0] - win.width() > 0) { goal.tipLeft = goal.left + goal.width - layArea[0]; tipsG.css({ right: 12, left: 'auto' }); } else { goal.tipLeft = goal.left; }; }; //杈ㄥ埆tips鐨勬柟浣 goal.where = [function () { //涓 goal.autoLeft(); goal.tipTop = goal.top - layArea[1] - 10; tipsG.removeClass('layui-layer-TipsB').addClass('layui-layer-TipsT').css('border-right-color', config.tips[1]); }, function () { //鍙 goal.tipLeft = goal.left + goal.width + 10; goal.tipTop = goal.top; tipsG.removeClass('layui-layer-TipsL').addClass('layui-layer-TipsR').css('border-bottom-color', config.tips[1]); }, function () { //涓 goal.autoLeft(); goal.tipTop = goal.top + goal.height + 10; tipsG.removeClass('layui-layer-TipsT').addClass('layui-layer-TipsB').css('border-right-color', config.tips[1]); }, function () { //宸 goal.tipLeft = goal.left - layArea[0] - 10; goal.tipTop = goal.top; tipsG.removeClass('layui-layer-TipsR').addClass('layui-layer-TipsL').css('border-bottom-color', config.tips[1]); } ]; goal.where[guide - 1](); /* 8*2涓哄皬涓夎褰㈠崰鎹殑绌洪棿 */ if (guide === 1) { goal.top - (win.scrollTop() + layArea[1] + 8 * 2) < 0 && goal.where[2](); } else if (guide === 2) { win.width() - (goal.left + goal.width + layArea[0] + 8 * 2) > 0 || goal.where[3]() } else if (guide === 3) { (goal.top - win.scrollTop() + goal.height + layArea[1] + 8 * 2) - win.height() > 0 && goal.where[0](); } else if (guide === 4) { layArea[0] + 8 * 2 - goal.left > 0 && goal.where[1]() } layero.find('.' + doms[5]).css({ 'background-color': config.tips[1], 'padding-right': (config.closeBtn ? '30px' : '') }); layero.css({ left: goal.tipLeft, top: goal.tipTop }); } //鎷栨嫿灞 Class.pt.move = function () { var that = this, config = that.config, conf = { setY: 0, moveLayer: function () { var layero = conf.layero, mgleft = parseInt(layero.css('margin-left')); var lefts = parseInt(conf.move.css('left')); mgleft === 0 || (lefts = lefts - mgleft); if (layero.css('position') !== 'fixed') { lefts = lefts - layero.parent().offset().left; conf.setY = 0; } layero.css({ left: lefts, top: parseInt(conf.move.css('top')) - conf.setY }); } }; var movedom = that.layero.find(config.move); config.move && movedom.attr('move', 'ok'); movedom.css({ cursor: config.move ? 'move' : 'auto' }); $(config.move).live('mousedown', function (M) { M.preventDefault(); if ($(this).attr('move') === 'ok') { conf.ismove = true; conf.layero = $(this).parents('.' + doms[0]); var xx = conf.layero.offset().left, yy = conf.layero.offset().top, ww = conf.layero.width() - 6, hh = conf.layero.height() - 6; if (!$('#layui-layer-moves')[0]) { $('body').append('
'); } conf.move = $('#layui-layer-moves'); config.moveType && conf.move.css({ visibility: 'hidden' }); conf.moveX = M.pageX - conf.move.position().left; conf.moveY = M.pageY - conf.move.position().top; conf.layero.css('position') !== 'fixed' || (conf.setY = win.scrollTop()); } }); $(document).mousemove(function (M) { if (conf.ismove) { var offsetX = M.pageX - conf.moveX, offsetY = M.pageY - conf.moveY; M.preventDefault(); //鎺у埗鍏冪礌涓嶈鎷栧嚭绐楀彛澶 if (!config.moveOut) { conf.setY = win.scrollTop(); var setRig = win.width() - conf.move.outerWidth(), setTop = conf.setY; offsetX < 0 && (offsetX = 0); offsetX > setRig && (offsetX = setRig); offsetY < setTop && (offsetY = setTop); offsetY > win.height() - conf.move.outerHeight() + conf.setY && (offsetY = win.height() - conf.move.outerHeight() + conf.setY); } conf.move.css({ left: offsetX, top: offsetY }); config.moveType && conf.moveLayer(); offsetX = offsetY = setRig = setTop = null; } }).mouseup(function () { try { if (conf.ismove) { conf.moveLayer(); conf.move.remove(); } conf.ismove = false; } catch (e) { conf.ismove = false; } config.moveEnd && config.moveEnd(); }); return that; }; Class.pt.callback = function () { var that = this, layero = that.layero, config = that.config; that.openLayer(); if (config.success) { if (config.type == 2) { layero.find('iframe')[0].onload = function () { this.className = ''; config.success(layero, that.index); }; } else { config.success(layero, that.index); } } layer.ie6 && that.IE6(layero); //鎸夐挳 layero.find('.' + doms[6]).children('a').live('click', function () { var index = $(this).index(); if (index === 0) { config.yes ? config.yes(that.index, layero) : layer.close(that.index); } else if (index === 1) { cancel(); } else { config['btn' + (index + 1)] ? config['btn' + (index + 1)](that.index, layero) : layer.close(that.index); } }); //鍙栨秷 function cancel() { var close = config.cancel && config.cancel(that.index); close === false || layer.close(that.index); } //鍙充笂瑙掑叧闂洖璋 layero.find('.' + doms[7]).live('click', cancel); //鐐归伄缃╁叧闂 if (config.shadeClose) { $('#layui-layer-shade' + that.index).live('click', function () { layer.close(that.index); }); } //鏈€灏忓寲 layero.find('.layui-layer-min').live('click', function () { layer.min(that.index, config); config.min && config.min(layero); }); //鍏ㄥ睆/杩樺師 layero.find('.layui-layer-max').live('click', function () { if ($(this).hasClass('layui-layer-maxmin')) { layer.restore(that.index); config.restore && config.restore(layero); } else { layer.full(that.index, config); config.full && config.full(layero); } }); config.end && (ready.end[that.index] = config.end); }; //for ie6 鎭㈠select ready.reselect = function () { $.each($('select'), function (index, value) { var sthis = $(this); if (!sthis.parents('.' + doms[0])[0]) { (sthis.attr('layer') == 1 && $('.' + doms[0]).length < 1) && sthis.removeAttr('layer').show(); } sthis = null; }); }; Class.pt.IE6 = function (layero) { var that = this, _ieTop = layero.offset().top; //ie6鐨勫浐瀹氫笌鐩稿瀹氫綅 function ie6Fix() { layero.css({ top: _ieTop + (that.config.fix ? win.scrollTop() : 0) }); }; ie6Fix(); win.scroll(ie6Fix); //闅愯棌select $('select').each(function (index, value) { var sthis = $(this); if (!sthis.parents('.' + doms[0])[0]) { sthis.css('display') === 'none' || sthis.attr({ 'layer': '1' }).hide(); } sthis = null; }); }; //闇€渚濊禆鍘熷瀷鐨勫澶栨柟娉 Class.pt.openLayer = function () { var that = this; //缃《褰撳墠绐楀彛 layer.zIndex = that.config.zIndex; layer.setTop = function (layero) { var setZindex = function () { layer.zIndex++; layero.css('z-index', layer.zIndex + 1); }; layer.zIndex = parseInt(layero[0].style.zIndex); layero.live('mousedown', setZindex); return layer.zIndex; }; }; ready.record = function (layero) { var area = [ layero.outerWidth(), layero.outerHeight(), layero.position().top, layero.position().left + parseFloat(layero.css('margin-left')) ]; layero.find('.layui-layer-max').addClass('layui-layer-maxmin'); layero.attr({ area: area }); }; ready.rescollbar = function (index) { if (doms.html.attr('layer-full') == index) { if (doms.html[0].style.removeProperty) { doms.html[0].style.removeProperty('overflow'); } else { doms.html[0].style.removeAttribute('overflow'); } doms.html.removeAttr('layer-full'); } }; /*! 鍐呯疆鎴愬憳 */ //鑾峰彇瀛恑frame鐨凞OM layer.getChildFrame = function (selector, index) { index = index || $('.' + doms[4]).attr('times'); return $('#' + doms[0] + index).find('iframe').contents().find(selector); }; //寰楀埌褰撳墠iframe灞傜殑绱㈠紩锛屽瓙iframe鏃朵娇鐢 layer.getFrameIndex = function (name) { return $('#' + name).parents('.' + doms[4]).attr('times'); }; //iframe灞傝嚜閫傚簲瀹介珮 layer.iframeAuto = function (index) { if (!index) return; var heg = layer.getChildFrame('body', index).outerHeight(); var layero = $('#' + doms[0] + index); var titHeight = layero.find(doms[1]).outerHeight() || 0; var btnHeight = layero.find('.' + doms[6]).outerHeight() || 0; layero.css({ height: heg + titHeight + btnHeight }); layero.find('iframe').css({ height: heg }); }; //閲嶇疆iframe url layer.iframeSrc = function (index, url) { $('#' + doms[0] + index).find('iframe').attr('src', url); }; //璁惧畾灞傜殑鏍峰紡 layer.style = function (index, options) { var layero = $('#' + doms[0] + index), type = layero.attr('type'); var titHeight = layero.find(doms[1]).outerHeight() || 0; var btnHeight = layero.find('.' + doms[6]).outerHeight() || 0; if (type === ready.type[1] || type === ready.type[2]) { layero.css(options); if (type === ready.type[2]) { layero.find('iframe').css({ height: parseFloat(options.height) - titHeight - btnHeight }); } } }; //鏈€灏忓寲 layer.min = function (index, options) { var layero = $('#' + doms[0] + index); var titHeight = layero.find(doms[1]).outerHeight() || 0; ready.record(layero); layer.style(index, { width: 180, height: titHeight, overflow: 'hidden' }); layero.find('.layui-layer-min').hide(); layero.attr('type') === 'page' && layero.find(doms[4]).hide(); ready.rescollbar(index); }; //杩樺師 layer.restore = function (index) { var layero = $('#' + doms[0] + index), area = layero.attr('area').split(','); var type = layero.attr('type'); layer.style(index, { width: parseFloat(area[0]), height: parseFloat(area[1]), top: parseFloat(area[2]), left: parseFloat(area[3]), overflow: 'visible' }); layero.find('.layui-layer-max').removeClass('layui-layer-maxmin'); layero.find('.layui-layer-min').show(); layero.attr('type') === 'page' && layero.find(doms[4]).show(); ready.rescollbar(index); }; //鍏ㄥ睆 layer.full = function (index) { var layero = $('#' + doms[0] + index), timer; ready.record(layero); if (!doms.html.attr('layer-full')) { doms.html.css('overflow', 'hidden').attr('layer-full', index); } clearTimeout(timer); timer = setTimeout(function () { var isfix = layero.css('position') === 'fixed'; layer.style(index, { top: isfix ? 0 : win.scrollTop(), left: isfix ? 0 : win.scrollLeft(), width: win.width(), height: win.height() }); layero.find('.layui-layer-min').hide(); }, 100); }; //鏀瑰彉title layer.title = function (name, index) { var title = $('#' + doms[0] + (index || layer.index)).find(doms[1]); title.html(name); }; //鍏抽棴layer鎬绘柟娉 layer.close = function (index) { var layero = $('#' + doms[0] + index), type = layero.attr('type'); if (!layero[0]) return; if (type === ready.type[1] && layero.attr('conType') === 'object') { layero.children(':not(.' + doms[5] + ')').remove(); for (var i = 0; i < 2; i++) { layero.find('.layui-layer-wrap').unwrap().hide(); } } else { //浣庣増鏈琁E 鍥炴敹 iframe if (type === ready.type[2]) { try { var iframe = $('#' + doms[4] + index)[0]; iframe.contentWindow.document.write(''); iframe.contentWindow.close(); layero.find('.' + doms[5])[0].removeChild(iframe); } catch (e) { } } layero[0].innerHTML = ''; layero.remove(); } $('#layui-layer-moves, #layui-layer-shade' + index).remove(); layer.ie6 && ready.reselect(); ready.rescollbar(index); typeof ready.end[index] === 'function' && ready.end[index](); delete ready.end[index]; try { if(typeof(eval(getRiskAuditingRecordCounts)) == "function") { var tempcount = getRiskAuditingRecordCounts(); if(tempcount!=null){ $("#recordcounts").text(" "+tempcount.count+" "); } } } catch(e) { } }; //鍏抽棴鎵€鏈夊眰 layer.closeAll = function (type) { $.each($('.' + doms[0]), function () { var othis = $(this); var is = type ? (othis.attr('type') === type) : 1; is && layer.close(othis.attr('times')); is = null; }); }; //涓诲叆鍙 ready.run = function () { $ = jQuery; win = $(window); doms.html = $('html'); layer.open = function (deliver) { var o = new Class(deliver); return o.index; }; }; 'function' === typeof define ? define(function () { ready.run(); return layer; }) : function () { ready.run(); layer.use('skin/layer.css'); } (); } (window); //椋庢帶鏂规鍚嶇О $(function () { $(".layer").each(function () { var riskPlanId = $(this).attr("myvalue"); var page = $(this).attr("page"); var ProductRiskPlanid = $(this).attr("ProductRiskPlanid"); $(this).click(function () { layer.open({ type: 2, title: '缂栬緫椋庢帶鏂规', fix: false, maxmin: true, shadeClose: true, area: ['90%', '70%'], content: "RiskPlanListEdit.aspx?docid=" + riskPlanId + "&page=" + page + "&ProductRiskPlanid=" + ProductRiskPlanid + "" }); }); }); }); //鍗曚竴閫氱敤閰嶇疆(甯傚満鏁伴噺姣斾緥闄愬埗) function instrment(docid,page,type){ layer.open({ type: 2, title: '鏂板鍗曚竴甯傚満鏁伴噺姣斾緥闄愬埗', fix: false, maxmin: true, shadeClose: true, area: ['90%', '70%'], content: "RiskPlanCollectPositionHoldingsAdd.aspx?docid=" + docid + "&type="+type+"&page=" + page + "" }); } //鎸佷粨鏁伴噺 function position(docid, page,type) { layer.open({ type: 2, title: '鏂板鍗曚竴鎸佷粨鏁伴噺', fix: false, maxmin: true, shadeClose: true, area: ['90%', '70%'], content: "RiskPlanPositionAmountAdd.aspx?docid=" + docid + "&type="+type+"&page=" + page + "" }); }; //鏁炲彛鏁伴噺璁剧疆 function openthecount(docid, page,type) { layer.open({ type: 2, title: '鏂板鍗曚竴鏁炲彛鏁伴噺', fix: false, maxmin: true, shadeClose: true, area: ['90%', '70%'], content: "RiskPlanExposurePositionAmountAdd.aspx?docid=" + docid + "&type="+type+"&page=" + page + "" }); }; //淇濊瘉閲 function bail(docid,page,type) { layer.open({ type: 2, title: '鏂板鍗曚竴淇濊瘉閲?, fix: false, maxmin: true, shadeClose: true, area: ['90%', '70%'], content: "RiskPlanProportionPositionHoldingsAdd.aspx?docid=" + docid + "&type="+type+"&page=" + page + "" }); }; //鏁炲彛淇濊瘉閲 function openmargin(docid, page,type) { layer.open({ type: 2, title: '鏂板鍗曚竴鏁炲彛淇濊瘉閲?, fix: false, maxmin: true, shadeClose: true, area: ['90%', '70%'], content: "RiskPlanExposurePositionMarginAdd.aspx?docid=" + docid + "&type="+type+"&page=" + page + "" }); }; //鎸佷粨甯傚€ function capitalize(docid, page,type) { layer.open({ type: 2, title: '鏂板鍗曚竴鎸佷粨甯傚€?, fix: false, maxmin: true, shadeClose: true, area: ['90%', '70%'], content: "RiskPlanPositionMarketValueAdd.aspx?docid=" + docid + "&type="+type+"&page=" + page + "" }); }; //浜ゆ槗甯傚€ function trade(docid, page,type) { layer.open({ type: 2, title: '鏂板鍗曚竴浜ゆ槗甯傚€?, fix: false, maxmin: true, shadeClose: true, area: ['90%', '70%'], content: "RiskPlanPositionQuotaAdd.aspx?docid=" + docid + "&type="+type+"&page=" + page + "" }); }; //鏁炲彛甯傚€ function openmarket(docid, page,type) { layer.open({ type: 2, title: '鏂板鍗曚竴鏁炲彛甯傚€?, fix: false, maxmin: true, shadeClose: true, area: ['90%', '70%'], content: "RiskPlanExposurePositionMarketValueAdd.aspx?docid=" + docid + "&type="+type+"&page=" + page + "" }); }; //姹囨€婚厤缃 甯傚満鏁伴噺姣斾緥闄愬埗(鎸佹湁閲?甯傚満鎬婚噺) function instrments(docid, page,type) { layer.open({ type: 2, title: '鏂板姹囨€诲競鍦烘暟閲忔瘮渚嬮檺鍒?, fix: false, maxmin: true, shadeClose: true, area: ['90%', '70%'], content: "RiskPlanSummaryCollectPositionHoldingsAdd.aspx?docid=" + docid + "&type="+type+"&page=" + page + "" }); }; //鎸佷粨鏁伴噺 function positions(docid, page,type) { layer.open({ type: 2, title: '鏂板姹囨€绘寔浠撴暟閲?, fix: false, maxmin: true, shadeClose: true, area: ['90%', '70%'], content: "RiskPlanSummaryPositionAmountAdd.aspx?docid=" + docid + "&type="+type+"&page=" + page + "" }); }; //鏁炲彛鏁伴噺璁剧疆 function openset(docid, page,type) { layer.open({ type: 2, title: '鏂板姹囨€绘暈鍙f暟閲?, fix: false, maxmin: true, shadeClose: true, area: ['90%', '70%'], content: "RiskPlanSummaryExposurePositionAmountAdd.aspx?docid=" + docid + "&type="+type+"&page=" + page + "" }); }; //褰撴棩鏈€澶т簭鎹 function lossday(docid, page,type) { layer.open({ type: 2, title: '鏂板姹囨€诲綋鏃ユ渶澶т簭鎹?, fix: false, maxmin: true, shadeClose: true, area: ['90%', '70%'], content: "RiskPlanSumMaryDayMaxLossAdd.aspx?docid=" + docid + "&type="+type+"&page=" + page + "" }); }; //绱Н鏈€澶т簭鎹 function losstotal(docid, page,type) { layer.open({ type: 2, title: '鏂板姹囨€荤疮璁℃渶澶т簭鎹?, fix: false, maxmin: true, shadeClose: true, area: ['90%', '70%'], content: "RiskPlanSummaryCumulateMaxLossAdd.aspx?docid=" + docid + "&type="+type+"&page=" + page + "" }); }; //鎸佷粨甯傚€ function capitalization(docid, page,type) { layer.open({ type: 2, title: '鏂板姹囨€绘寔浠撳競鍊?, fix: false, maxmin: true, shadeClose: true, area: ['90%', '70%'], content: "RiskPlanSummaryPositionMarketValueAdd.aspx?docid=" + docid + "&type="+type+"&page=" + page + "" }); }; //浜ゆ槗甯傚€ function trading(docid, page,type) { layer.open({ type: 2, title: '鏂板姹囨€讳氦鏄撳競鍊?, fix: false, maxmin: true, shadeClose: true, area: ['90%', '70%'], content: "RiskPlanSummaryPositionQuotaAdd.aspx?docid=" + docid + "&type="+type+"&page=" + page + "" }); }; //鏁炲彛甯傚€ function openmar(docid, page,type) { layer.open({ type: 2, title: '鏂板姹囨€绘暈鍙e競鍊?, fix: false, maxmin: true, shadeClose: true, area: ['90%', '70%'], content: "RiskPlanSummaryExposurePositionMarketValueAdd.aspx?docid=" + docid + "&type="+type+"&page=" + page + "" }); }; //缁濆鏁炲彛甯傚€ function exposure(docid, page,type) { layer.open({ type: 2, title: '鏂板姹囨€荤粷瀵规暈鍙e競鍊?, fix: false, maxmin: true, shadeClose: true, area: ['90%', '70%'], content: "RiskPlanAbsoluteExpoAdd.aspx?docid=" + docid + "&type="+type+"&page=" + page + "" }); }; //闅斿缁濆鏁炲彛甯傚€ function overexposure(docid, page, type) { layer.open({ type: 2, title: '鏂板姹囨€婚殧澶滅粷瀵规暈鍙e競鍊?, fix: false, maxmin: true, shadeClose: true, area: ['90%', '70%'], content: "RiskPlanOverAbsoluteExpoAdd.aspx?docid=" + docid + "&type=" + type + "&page=" + page + "" }); }; //闅斿鏁炲彛甯傚€ function overnight(docid, page,type) { layer.open({ type: 2, title: '鏂板姹囨€婚殧澶滄暈鍙e競鍊?, fix: false, maxmin: true, shadeClose: true, area: ['90%', '70%'], content: "RiskPlanSummaryOvernightExpoMkvalAdd.aspx?docid=" + docid + "&type="+type+"&page=" + page + "" }); }; //闅斿甯傚€ function overnightmarket(docid, page,type) { layer.open({ type: 2, title: '鏂板姹囨€婚殧澶滃競鍊?, fix: false, maxmin: true, shadeClose: true, area: ['90%', '70%'], content: "RiskPlanSummaryOvernightMarketValueAdd.aspx?docid=" + docid + "&type="+type+"&page=" + page + "" }); }; //淇濊瘉閲 function bond(docid, page,type) { layer.open({ type: 2, title: '鏂板姹囨€讳繚璇侀噾', fix: false, maxmin: true, shadeClose: true, area: ['90%', '70%'], content: "RiskPlanSummaryProportionPositionHoldingsAdd.aspx?docid=" + docid + "&type="+type+"&page=" + page + "" }); }; //鏁炲彛淇濊瘉閲 function openmargins(docid, page,type) { layer.open({ type: 2, title: '鏂板姹囨€绘暈鍙d繚璇侀噾', fix: false, maxmin: true, shadeClose: true, area: ['90%', '70%'], content: "RiskPlanSummaryExposurePositionMarginAdd.aspx?docid=" + docid + "&type="+type+"&page=" + page + "" }); }; //闅斿淇濊瘉閲 function overnightdeposit(docid, page,type) { layer.open({ type: 2, title: '鏂板姹囨€婚殧澶滀繚璇侀噾', fix: false, maxmin: true, shadeClose: true, area: ['90%', '70%'], content: "RiskPlanSumMaryovernightMarginAdd.aspx?docid=" + docid + "&type="+type+"&page=" + page + "" }); }; //闅斿淇濊瘉閲?澶滄敹鐩? function closenight(docid, page,type) { layer.open({ type: 2, title: '鏂板姹囨€婚殧澶滀繚璇侀噾(澶滄敹鐩?', fix: false, maxmin: true, shadeClose: true, area: ['90%', '70%'], content: "RiskPlanSummaryOverDayMarginAdd.aspx?docid=" + docid + "&type="+type+"&page=" + page + "" }); }; //闅斿鏁炲彛淇濊瘉閲 function overnightmargin(docid, page,type) { layer.open({ type: 2, title: '鏂板姹囨€婚殧澶滄暈鍙d繚璇侀噾', fix: false, maxmin: true, shadeClose: true, area: ['90%', '70%'], content: "RiskPlanSummaryOvernightExpoMarginAdd.aspx?docid=" + docid + "&type="+type+"&page=" + page + "" }); }; //缁濆鏁炲彛淇濊瘉閲 function SummaryAbs(docid, page, type) { layer.open({ type: 2, title: '鏂板姹囨€荤粷瀵规暈鍙d繚璇侀噾', fix: false, maxmin: true, shadeClose: true, area: ['90%', '70%'], content: "RiskPlanSummaryAbsExposmarginAdd.aspx?docid=" + docid + "&type=" + type + "&page=" + page + "" }); }; //闅斿缁濆鏁炲彛淇濊瘉閲 function OvernightSummaryAbs(docid, page, type) { layer.open({ type: 2, title: '鏂板姹囨€婚殧澶滅粷瀵规暈鍙d繚璇侀噾', fix: false, maxmin: true, shadeClose: true, area: ['90%', '70%'], content: "RiskPlanOvernightSummaryAbsExposmarginAdd.aspx?docid=" + docid + "&type=" + type + "&page=" + page + "" }); }; //A鍊 function SummaryA(docid, page, type) { layer.open({ type: 2, title: '鏂板姹囨€籄鍊?, fix: false, maxmin: true, shadeClose: true, area: ['90%', '70%'], content: "AValuePositionAdd.aspx?docid=" + docid + "&type=" + type + "&page=" + page + "" }); }; //B鍊 function SummaryB(docid, page, type) { layer.open({ type: 2, title: '鏂板姹囨€籅鍊?, fix: false, maxmin: true, shadeClose: true, area: ['90%', '70%'], content: "BValuePositionAdd.aspx?docid=" + docid + "&type=" + type + "&page=" + page + "" }); }; function markets(riskid, docid, type, ProductRiskPlanid, page) { layer.open({ type: 2, title: '缂栬緫鍗曚竴甯傚満鏁伴噺姣斾緥闄愬埗', fix: false, maxmin: true, shadeClose: true, area: ['90%', '70%'], content: "RiskPlanCollectPositionHoldingsEdit.aspx?riskid=" + riskid + "&docid=" + docid + "&type=" + type + "&ProductRiskPlanid=" + ProductRiskPlanid + "&DetailedId=1&page=" + page + "" }); }; function positionamount(riskid, docid, type, ProductRiskPlanid, page) { layer.open({ type: 2, title: '缂栬緫鍗曚竴鎸佷粨鏁伴噺', fix: false, maxmin: true, shadeClose: true, area: ['90%', '70%'], content: "RiskPlanPositionAmountEdit.aspx?riskid=" + riskid + "&docid=" + docid + "&type=" + type + "&ProductRiskPlanid=" + ProductRiskPlanid + "&DetailedId=1&page=" + page + "" }); }; function exposurepositionamount(riskid, docid, type, ProductRiskPlanid, page) { layer.open({ type: 2, title: '缂栬緫鍗曚竴鏁炲彛鏁伴噺', fix: false, maxmin: true, shadeClose: true, area: ['90%', '70%'], content: "RiskPlanExposurePositionAmountEdit.aspx?riskid=" + riskid + "&docid=" + docid + "&type=" + type + "&ProductRiskPlanid=" + ProductRiskPlanid + "&DetailedId=1&page=" + page + "" }); } function proportionpositionholdings(riskid, docid, type, ProductRiskPlanid, page) { layer.open({ type: 2, title: '缂栬緫鍗曚竴淇濊瘉閲?, fix: false, maxmin: true, shadeClose: true, area: ['90%', '70%'], content: "RiskPlanProportionPositionHoldingsEdit.aspx?riskid=" + riskid + "&docid=" + docid + "&type=" + type + "&ProductRiskPlanid=" + ProductRiskPlanid + "&DetailedId=1&page=" + page + "" }); } function exposurepositionmargin(riskid, docid, type, ProductRiskPlanid, page) { layer.open({ type: 2, title: '缂栬緫鍗曚竴鏁炲彛淇濊瘉閲?, fix: false, maxmin: true, shadeClose: true, area: ['90%', '70%'], content: "RiskPlanExposurePositionMarginEdit.aspx?riskid=" + riskid + "&docid=" + docid + "&type=" + type + "&ProductRiskPlanid=" + ProductRiskPlanid + "&DetailedId=1&page=" + page + "" }); } function positionmarketvalue(riskid, docid, type, ProductRiskPlanid, page){ layer.open({ type: 2, title: '缂栬緫鍗曚竴鎸佷粨甯傚€?, fix: false, maxmin: true, shadeClose: true, area: ['90%', '70%'], content: "RiskPlanPositionMarketValueEdit.aspx?riskid=" + riskid + "&docid=" + docid + "&type=" + type + "&ProductRiskPlanid=" + ProductRiskPlanid + "&DetailedId=1&page=" + page + "" }); } function positionquota(riskid, docid, type, ProductRiskPlanid, page) { layer.open({ type: 2, title: '缂栬緫鍗曚竴浜ゆ槗甯傚€?, fix: false, maxmin: true, shadeClose: true, area: ['90%', '70%'], content: "RiskPlanPositionQuotaEdit.aspx?riskid=" + riskid + "&docid=" + docid + "&type=" + type + "&ProductRiskPlanid=" + ProductRiskPlanid + "&DetailedId=1&page=" + page + "" }); } function exposurepositionmarketvalue(riskid, docid, type, ProductRiskPlanid, page) { layer.open({ type: 2, title: '缂栬緫鍗曚竴鏁炲彛甯傚€?, fix: false, maxmin: true, shadeClose: true, area: ['90%', '70%'], content: "RiskPlanExposurePositionMarketValueEdit.aspx?riskid=" + riskid + "&docid=" + docid + "&type=" + type + "&ProductRiskPlanid=" + ProductRiskPlanid + "&DetailedId=1&page=" + page + "" }); } function summarycolposholdings(riskid, docid, type, ProductRiskPlanid, page) { layer.open({ type: 2, title: '缂栬緫姹囨€诲競鍦烘暟閲忔瘮渚嬮檺鍒?, fix: false, maxmin: true, shadeClose: true, area: ['90%', '70%'], content: "RiskPlanSummaryCollectPositionHoldingsEdit.aspx?riskid=" + riskid + "&docid=" + docid + "&type=" + type + "&ProductRiskPlanid=" + ProductRiskPlanid + "&DetailedId=1&page=" + page + "" }); } function summarypositionamount(riskid, docid, type, ProductRiskPlanid, page) { layer.open({ type: 2, title: '缂栬緫姹囨€绘寔浠撴暟閲?, fix: false, maxmin: true, shadeClose: true, area: ['90%', '70%'], content: "RiskPlanSummaryPositionAmountEdit.aspx?riskid=" + riskid + "&docid=" + docid + "&type=" + type + "&ProductRiskPlanid=" + ProductRiskPlanid + "&DetailedId=1&page=" + page + "" }); } function sexpoposamount(riskid, docid, type, ProductRiskPlanid, page) { layer.open({ type: 2, title: '缂栬緫姹囨€绘暈鍙f暟閲?, fix: false, maxmin: true, shadeClose: true, area: ['90%', '70%'], content: "RiskPlanSummaryExposurePositionAmountEdit.aspx?riskid=" + riskid + "&docid=" + docid + "&type=" + type + "&ProductRiskPlanid=" + ProductRiskPlanid + "&DetailedId=1&page=" + page + "" }); } function summarydaymaxloss(riskid, docid, type, ProductRiskPlanid, page) { layer.open({ type: 2, title: '缂栬緫姹囨€诲綋鏃ユ渶澶т簭鎹?, fix: false, maxmin: true, shadeClose: true, area: ['90%', '70%'], content: "RiskPlanSumMaryDayMaxLossEdit.aspx?riskid=" + riskid + "&docid=" + docid + "&type=" + type + "&ProductRiskPlanid=" + ProductRiskPlanid + "&DetailedId=1&page=" + page + "" }); } function summarycumulatemaxloss(riskid, docid, type, ProductRiskPlanid, page) { layer.open({ type: 2, title: '缂栬緫姹囨€荤疮绉渶澶т簭鎹?, fix: false, maxmin: true, shadeClose: true, area: ['90%', '70%'], content: "RiskPlanSummaryCumulateMaxLossEdit.aspx?riskid=" + riskid + "&docid=" + docid + "&type=" + type + "&ProductRiskPlanid=" + ProductRiskPlanid + "&DetailedId=1&page=" + page + "" }); } function summarypositionmarketvalue(riskid, docid, type, ProductRiskPlanid, page) { layer.open({ type: 2, title: '缂栬緫姹囨€绘寔浠撳競鍊?, fix: false, maxmin: true, shadeClose: true, area: ['90%', '70%'], content: "RiskPlanSummaryPositionMarketValueEdit.aspx?riskid=" + riskid + "&docid=" + docid + "&type=" + type + "&ProductRiskPlanid=" + ProductRiskPlanid + "&DetailedId=1&page=" + page + "" }); } function summarypositionquota(riskid, docid, type, ProductRiskPlanid, page) { layer.open({ type: 2, title: '缂栬緫姹囨€讳氦鏄撳競鍊?, fix: false, maxmin: true, shadeClose: true, area: ['90%', '70%'], content: "RiskPlanSummaryPositionQuotaEdit.aspx?riskid=" + riskid + "&docid=" + docid + "&type=" + type + "&ProductRiskPlanid=" + ProductRiskPlanid + "&DetailedId=1&page=" + page + "" }); } function sexpoposmkvalue(riskid, docid, type, ProductRiskPlanid, page) { layer.open({ type: 2, title: '缂栬緫姹囨€绘暈鍙e競鍊?, fix: false, maxmin: true, shadeClose: true, area: ['90%', '70%'], content: "RiskPlanSummaryExposurePositionMarketValueEdit.aspx?riskid=" + riskid + "&docid=" + docid + "&type=" + type + "&ProductRiskPlanid=" + ProductRiskPlanid + "&DetailedId=1&page=" + page + "" }); } function absoluteexpo(riskid, docid, type, ProductRiskPlanid, page) { layer.open({ type: 2, title: '缂栬緫姹囨€荤粷瀵规暈鍙e競鍊?, fix: false, maxmin: true, shadeClose: true, area: ['90%', '70%'], content: "RiskPlanAbsoluteExpoEdit.aspx?riskid=" + riskid + "&docid=" + docid + "&type=" + type + "&ProductRiskPlanid=" + ProductRiskPlanid + "&DetailedId=1&page=" + page + "" }); } function overabsoluteexpo(riskid, docid, type, ProductRiskPlanid, page) { layer.open({ type: 2, title: '缂栬緫姹囨€婚殧澶滅粷瀵规暈鍙e競鍊?, fix: false, maxmin: true, shadeClose: true, area: ['90%', '70%'], content: "RiskPlanOverAbsoluteExpoEdit.aspx?riskid=" + riskid + "&docid=" + docid + "&type=" + type + "&ProductRiskPlanid=" + ProductRiskPlanid + "&DetailedId=1&page=" + page + "" }); } function summaryovernightexpomkval(riskid, docid, type, ProductRiskPlanid, page) { layer.open({ type: 2, title: '缂栬緫姹囨€婚殧澶滄暈鍙e競鍊?, fix: false, maxmin: true, shadeClose: true, area: ['90%', '70%'], content: "RiskPlanSummaryOvernightExpoMkvalEdit.aspx?riskid=" + riskid + "&docid=" + docid + "&type=" + type + "&ProductRiskPlanid=" + ProductRiskPlanid + "&DetailedId=1&page=" + page + "" }); } function summaryovernightmarketvalue(riskid, docid, type, ProductRiskPlanid, page) { layer.open({ type: 2, title: '缂栬緫姹囨€婚殧澶滃競鍊?, fix: false, maxmin: true, shadeClose: true, area: ['90%', '70%'], content: "RiskPlanSummaryOvernightMarketValueEdit.aspx?riskid=" + riskid + "&docid=" + docid + "&type=" + type + "&ProductRiskPlanid=" + ProductRiskPlanid + "&DetailedId=1&page=" + page + "" }); } function summarypropposholdings(riskid, docid, type, ProductRiskPlanid, page) { layer.open({ type: 2, title: '缂栬緫姹囨€讳繚璇侀噾', fix: false, maxmin: true, shadeClose: true, area: ['90%', '70%'], content: "RiskPlanSummaryProportionPositionHoldingsEdit.aspx?riskid=" + riskid + "&docid=" + docid + "&type=" + type + "&ProductRiskPlanid=" + ProductRiskPlanid + "&DetailedId=1&page=" + page + "" }); } function sexpoposmargin(riskid, docid, type, ProductRiskPlanid, page) { layer.open({ type: 2, title: '缂栬緫姹囨€绘暈鍙d繚璇侀噾', fix: false, maxmin: true, shadeClose: true, area: ['90%', '70%'], content: "RiskPlanSummaryExposurePositionMarginEdit.aspx?riskid=" + riskid + "&docid=" + docid + "&type=" + type + "&ProductRiskPlanid=" + ProductRiskPlanid + "&DetailedId=1&page=" + page + "" }); } function summaryovernightmargin(riskid, docid, type, ProductRiskPlanid, page) { layer.open({ type: 2, title: '缂栬緫姹囨€婚殧澶滀繚璇侀噾', fix: false, maxmin: true, shadeClose: true, area: ['90%', '70%'], content: "RiskPlanSumMaryovernightMarginEdit.aspx?riskid=" + riskid + "&docid=" + docid + "&type=" + type + "&ProductRiskPlanid=" + ProductRiskPlanid + "&DetailedId=1&page=" + page + "" }); } function summaryoverdaymargin(riskid, docid, type, ProductRiskPlanid, page) { layer.open({ type: 2, title: '缂栬緫姹囨€婚殧澶滀繚璇侀噾(澶滄敹鐩?', fix: false, maxmin: true, shadeClose: true, area: ['90%', '70%'], content: "RiskPlanSummaryOverDayMarginEdit.aspx?riskid=" + riskid + "&docid=" + docid + "&type=" + type + "&ProductRiskPlanid=" + ProductRiskPlanid + "&DetailedId=1&page=" + page + "" }); } function summaryovernightexpomargin(riskid, docid, type, ProductRiskPlanid, page) { layer.open({ type: 2, title: '缂栬緫姹囨€婚殧澶滄暈鍙d繚璇侀噾', fix: false, maxmin: true, shadeClose: true, area: ['90%', '70%'], content: "RiskPlanSummaryOvernightExpoMarginEdit.aspx?riskid=" + riskid + "&docid=" + docid + "&type=" + type + "&ProductRiskPlanid=" + ProductRiskPlanid + "&DetailedId=1&page=" + page + "" }); } function summaryAbsExposmargin(riskid, docid, type, ProductRiskPlanid, page) { layer.open({ type: 2, title: '缂栬緫姹囨€婚殧澶滄暈鍙d繚璇侀噾', fix: false, maxmin: true, shadeClose: true, area: ['90%', '70%'], content: "RiskPlanSummaryAbsExposmarginEdit.aspx?riskid=" + riskid + "&docid=" + docid + "&type=" + type + "&ProductRiskPlanid=" + ProductRiskPlanid + "&DetailedId=1&page=" + page + "" }); } function summaryOvernightAbsExposmargin(riskid, docid, type, ProductRiskPlanid, page) { layer.open({ type: 2, title: '缂栬緫姹囨€婚殧澶滅粷瀵规暈鍙d繚璇侀噾', fix: false, maxmin: true, shadeClose: true, area: ['90%', '70%'], content: "RiskPlanSummaryOvernightAbsExposmarginEdit.aspx?riskid=" + riskid + "&docid=" + docid + "&type=" + type + "&ProductRiskPlanid=" + ProductRiskPlanid + "&DetailedId=1&page=" + page + "" }); } function summaryAValue(riskid, docid, page) { layer.open({ type: 2, title: '缂栬緫姹囨€籄鍊?, fix: false, maxmin: true, shadeClose: true, area: ['90%', '70%'], content: "AValuePositionEdit.aspx?riskid=" + riskid + "&docid=" + docid + "&page=" + page + "" }); } function summaryBValue(riskid, docid, page) { //alert(docid); layer.open({ type: 2, title: '缂栬緫姹囨€籅鍊?, fix: false, maxmin: true, shadeClose: true, area: ['90%', '70%'], content: "BValuePositionEdit.aspx?riskid=" + riskid + "&docid=" + docid + "&page=" + page + "" }); } //娓呬粨鍝佺閰嶇疆 function clearanceProduct(eleId) { var allow = $("#allow").val()+""; if (allow != "5") { layer.open({ type: 2, title: '璐︽埛娓呬粨鍝佺閰嶇疆', fix: false, maxmin: true, shadeClose: true, area: ['90%', '90%'], content: "AccountClear_AccountClearProduct.action?eleId="+eleId+"" }); } } //椋庢帶鏂规澧炲姞 function RiskPlanAdd(eleId) { var allow = $("#allow").val()+""; if (allow != "5") { layer.open({ type: 2, title: '椋庢帶鏂规澧炲姞', fix: false, maxmin: true, shadeClose: true, area: ['90%', '90%'], content: "riskplan_insertRiskPlanRedirect.action?tproductriskpandriskptemp.productriskplanid="+eleId+"" }); } } //椋庢帶鏂规鏉$洰淇敼 function editRiskPlanDetail(tablename,riskCtrlId,productriskplanid) { tablename=escape(tablename); var allow = $("#allow").val()+""; if (allow != "5") { layer.open({ type: 2, title: '椋庢帶鏉$洰淇敼', fix: false, maxmin: true, shadeClose: true, area: ['100%', '100%'], content: "riskctrlauditing_redirectRealRiskCtrlEdit.action?tablename="+tablename+"&riskCtrlId="+riskCtrlId+"&productriskplanid="+productriskplanid+"" }); } } //鏈€缁堣〃椋庢帶鏂规淇敼 function editFinalRiskPlan(eleId,productriskplanid) { var allow = $("#allow").val()+""; if (allow != "5") { layer.open({ type: 2, title: '椋庢帶鏂规淇敼', fix: false, maxmin: true, shadeClose: true, area: ['90%', '90%'], content: "riskplan_editFinalRiskPlanRedirect.action?riskplanid="+eleId+"&productriskplanid="+productriskplanid+"" }); } } /** * 鏂板鍝佺鍚堢害鏈€澶т繚璇侀噾/鎶ュ崟闄愬埗 * @returns */ function insertAccountOrderRestrict(docid,ctype){ layer.open({ type: 2, title: '鎿嶄綔璐︽埛閰嶇疆鏈€澶т繚璇侀噾/鎶ュ崟', fix: false, maxmin: true, shadeClose: true, area: ['70%', '70%'], content: "AccountOrderRestrict_IntoAccountOrderRestrictAdd.action?docid="+docid+"&ctype="+ctype+"" }); } /** * 鏂板璧勯噾璐︽埛鍝佺鍚堢害鏈€澶т繚璇侀噾/鎶ュ崟闄愬埗 * @returns */ function insertRealAccountOrderRestrict(docid,ctype){ layer.open({ type: 2, title: '璧勯噾璐︽埛閰嶇疆鏈€澶т繚璇侀噾/鎶ュ崟', fix: false, maxmin: true, shadeClose: true, area: ['70%', '70%'], content: "RealAccountOrderRestrict_IntoRealAccountOrderRestrictAdd.action?trealaccountinfo.id="+docid+"&ctype="+ctype+"" }); } /** * 缂栬緫鍝佺鍚堢害鏈€澶т繚璇侀噾/鎶ュ崟闄愬埗 * @returns */ function editAccountOrderRestrict(docid){ layer.open({ type: 2, title: '淇敼鎿嶄綔璐︽埛閰嶇疆鏈€澶т繚璇侀噾/鎶ュ崟', fix: false, maxmin: true, shadeClose: true, area: ['70%', '70%'], content: "AccountOrderRestrict_EditAccountOrderRestrictRedirect.action?orderrestrict.id="+docid+"" }); } /** * 缂栬緫璧勯噾璐︽埛鍝佺鍚堢害鏈€澶т繚璇侀噾/鎶ュ崟闄愬埗 * @returns */ function editRealAccountOrderRestrict(docid){ layer.open({ type: 2, title: '淇敼璧勯噾璐︽埛閰嶇疆鏈€澶т繚璇侀噾/鎶ュ崟', fix: false, maxmin: true, shadeClose: true, area: ['70%', '70%'], content: "RealAccountOrderRestrict_EditRealAccountOrderRestrictRedirect.action?realorderrestrict.id="+docid+"" }); } //鍚堢害閫夋嫨绐楀彛 function instrumentframe() { layer.open({ type: 2, title: '閫夋嫨鏍囩殑鍚堢害', fix: false, maxmin: true, shadeClose: true, area: ['30%', '70%'], content: "../InstrumentTree.aspx" }); }; function optionriskctrlframe(groupid) { layer.open({ type: 2, title: '鏈熸潈涓撳睘椋庢帶鏂规', fix: false, maxmin: true, shadeClose: true, area: ['90%', '70%'], content: "OptionRiskCtrl.aspx?docid="+groupid }); }; function FunctionInstrumentSplit(groupid) { layer.open({ type: 2, title: '鏂板缓鍚堢害鎷嗗垎瑙勫垯', fix: false, maxmin: true, shadeClose: true, area: ['90%', '70%'], content: "FunctionInstrumentSplitAdd.aspx?" }); }; function FunctionInstrumentSplitEdit(groupid) { layer.open({ type: 2, title: '缂栬緫鍚堢害鎷嗗垎瑙勫垯', fix: false, maxmin: true, shadeClose: true, area: ['90%', '70%'], content: "FunctionInstrumentSplitEdit.aspx?docid="+ groupid }); }; function accountcodeInit(realaccountid) { layer.open({ type: 2, title: '璧勯噾璐︽埛浜ゆ槗浠g爜閰嶇疆', fix: false, maxmin: true, shadeClose: true, area: ['90%', '70%'], content: "doc/RealAccountCode.jsp" }); }; function riskplanDetailAdd(listid,productriskplanid,type) { layer.open({ type: 2, title: '椋庢帶鏉$洰閰嶇疆鏂板', fix: false, maxmin: true, shadeClose: true, area: ['100%', '100%'], content: "riskplan_RiskplanAdd.action?riskplanid="+listid+"&productriskplanid="+productriskplanid+"&type="+type+"" }); };