You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
DS7/DSWeb/Grids/wucGridView2.ascx

72 lines
3.4 KiB
Plaintext

3 years ago
<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="wucGridView2.ascx.cs" Inherits="DSWeb.wucGridView2" %>
<!--双击弹出页面-->
<script language="javascript" type="text/javascript">
function ShowDetail(type,ID)
{
var feature = "";
var URLs = "";
var ret = "";
if(type == 1)
{
feature = "dialogWidth:800px;dialogHeight:600px;center:yes;help:no;resizable:yes;scroll:auto;status:no;";
URLs = "PersonnelInfoLook.aspx";
ret = window.showModelessDialog(URLs,null, feature);
return ret;
}
else
{
feature = "dialogWidth:400px;dialogHeight:310px;center:yes;help:no;resizable:yes;scroll:auto;status:no;";
URLs = "PersonnelReport_Setting.aspx?PersonnelId=" + ID + "&tmp=" + Math.random();
ret = window.showModelessDialog(URLs,null, feature);
return ret;
}
}
function openLink(id)
{
alert("id=" + id);
//window.open("PersonnelInfoLook.aspx?id=", "1", "resizable=yes,toolbar=no,statusbar=no,menubar=no,location=no,scrollbars=yes,titlebar=no,width:900,height:700");
}
</script>
<!--排序-->
<style type="text/css">
.headStyle a{text-decoration:none;}
</style>
<!--右键菜单-->
<style type="text/css">
#divh { position:absolute; z-index:1001; left:40%; top:30%; width:300px; margin-left:-200px; border:solid 6px #ddd; }
.box { border:solid 1px #999; font-size:12px; }
#tit { border-bottom:solid 1px #999;background-color:#cccccc; padding:6px; font-weight:bold;}
#bod { background-color:#ffffff; padding:20px; }
#bot { border-top:solid 1px #999;background-color:#cccccc; text-align:right;}
.menu { position:absolute; z-index:101; width:100px; border:solid 1px #999; padding:2px; background-color:#ffffff;}
.menu a { display:block; padding:3px 6px; font-size:12px; color:#000000; cursor:default; text-decoration:none; }
.menu a:hover { background-color:#507cd1; color:#ffffff;}
</style>
<script type="text/javascript" src="../../../js/Grid/jsGrid2.js"></script>
<div id="div1">
<asp:GridView ID="GridView1" runat="server" Width="100%"
Font-Size="10pt" ForeColor="Black" AllowPaging="True"
onrowdatabound="GridView1_RowDataBound" AllowSorting="True"
onsorting="GridView1_Sorting" GridLines="Horizontal"
onpageindexchanging="GridView1_PageIndexChanging">
<FooterStyle BackColor="#E0E3E8" Font-Size="11px" ForeColor="Black"
Height="21px" />
<RowStyle HorizontalAlign="center" Font-Size="11px" Height="20px" />
<PagerStyle Font-Size="11px" Height="21px" VerticalAlign="Middle" HorizontalAlign="Center" BackColor="#E0E3E8" />
<SelectedRowStyle BackColor="#5A7EBF" ForeColor="White" />
<HeaderStyle BackColor="#E0E3E8" CssClass="headStyle" BorderColor="#CDD4E3"
Font-Size="11px" Height="22px" />
</asp:GridView>
</div>
<div id="divh" style="display: none;">
<div class="box">
<div id="tit"></div>
<div id="bod"></div>
<div id="bot"></div>
</div>
</div>