zoukankan      html  css  js  c++  java
  • 弹出窗体中加载页面

    1、窗体代码定义

       <div id="WinLoad" class="easyui-dialog" style="1050px;height:530px;padding:15px" closed="true" iconCls="icon-app" title="5分钟电压曲线" 
            minimizable="true" maximizable="true" resizable="true"  buttons="#WinLoad-buttons">  
               <div id="pnl" class="easyui-panel" data-options="fit:true" border="false"/>
            </div>  
            <div id="WinLoad-buttons">  
                <a href="javascript:void(0)" class="easyui-linkbutton" iconCls="icon-ok" onclick="javascript:$('#WinLoad').dialog('close')">确 定</a>  
                <a href="javascript:void(0)" class="easyui-linkbutton" iconCls="icon-cancel" onclick="javascript:$('#WinLoad').dialog('close')">关 闭</a>  
            </div>  
    

    2、js代码

     function Chart() {
                var row = $(dg).datagrid('getSelected');
                if (row) {
                    var jcdid, jcdmch, rq,title, url;
                    jcdid = row.jcdid;
                    jcdmch = row.jcdmch;
                    title = '【' + jcdmch + "】5分钟电压曲线";
                    $('#WinLoad').dialog({
                        title: title
                    });
    
                    rq = $('#rq').val();
                    url = "../Chart/MinuteDataCht.htm?tbName=" + tbName + "&&jcdid=" + jcdid + "&&rq=" + rq;
                    $("#pnl").html('<iframe src="' + url + '" frameborder="0" height="100%" width="100%" id="dialogFrame" scrolling="no"></iframe>');
                    WinShow('WinLoad');
                }
                else
                    AlterInfo("您没有选择记录,不能查看电压曲线!");
            }
    

      

  • 相关阅读:
    Mysql 修改默认端口
    通过.pro文件生成C++工程
    内联函数知识点
    DICOM文件添加私有Tag(DCMTK Private Tag)
    poj 1185 炮兵阵地 状压dp
    cf #216 C
    cdoj1365 木杆上的蚂蚁
    cf #214 Dima and Salad
    cf #213 Matrix
    hdu 2222 Keywords Search(AC自动机入门题)
  • 原文地址:https://www.cnblogs.com/easypass/p/3147810.html
Copyright © 2011-2022 走看看