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/Users/UserList.aspx

199 lines
8.1 KiB
Plaintext

<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="UserList.aspx.cs" Inherits="DSWeb.Users.UserList" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
<title>账户信息</title>
<link rel="STYLESHEET" type="text/css" href="../theme/dhtmlxgrid.css"/>
<link rel="STYLESHEET" type="text/css" href="../theme/page.css"/>
<link rel="STYLESHEET" type="text/css" href="../theme/button/default/Fee.css"/>
<script src="../js/dhtmlxcommon.js" type="text/javascript"></script>
<script src="../js/dhtmlxgrid.js" type="text/javascript"></script>
<script src="../js/dhtmlxgridcell.js" type="text/javascript"></script>
<script src="../js/dhtmlxcombo.js" type="text/javascript"></script>
<script src="../js/dhtmlxgrid_keymap_excel.js" type="text/javascript"></script>
<script src="../js/dhtmlxgrid_drag.js" type="text/javascript"></script>
<script src="../js/dhtmlxgrid_group.js" type="text/javascript"></script>
<script src="../js/dhtmlxgrid_mcol.js" type="text/javascript"></script>
<script src="../js/TGridCommon.js" type="text/javascript"></script>
<script src="../js/json2.js" type="text/javascript"></script>
<script src="../js/user.js" type="text/javascript"></script>
<!--按钮条-->
<style type="text/css">
.btn-content0{
width:100%;
height:30px;
background:url("../images/content-header.gif");
cursor:default;
}
</style>
<script language="javascript" type="text/javascript">
function $(id)
{
return document.getElementById(id);
}
function QueryString()
{
var name,value,i;//构造参数对象并初始化
var str=location.href;//获得浏览器地址栏URL串
var num=str.indexOf("?")
str=str.substr(num+1);//截取“?”后面的参数串
var arrtmp=str.split("&");//将各参数分离形成参数数组
for(i=0;i < arrtmp.length;i++)
{
num=arrtmp[i].indexOf("=");
if(num>0)
{
name=arrtmp[i].substring(0,num);//取得参数名称
value=arrtmp[i].substr(num+1);//取得参数值
this[name]=value;//定义对象属性并初始化
}
}
}
function ShowDetailAdd()
{
var openSet = "height=768, width=1024, toolbar=no, menubar=no,scrollbars=no, resizable=1,location=no, status=no,Top= " +(screen.height-710)/2 + ",Left= "+(screen.width-800)/2
var openType = "_blank";
var openUrl = "../Users/Edit.aspx?handle=add";
window.open (openUrl,openType,openSet);
}
function ShowDetailUpdate()
{
var asid = commonGridObj_user.getGridObj().getSelectedRowId();
if(asid==null || asid=="")
{
alert("请先选择要操作的数据!");
}
else
{
var rId = commonGridObj_user.getGridObj().getSelectedRowId();
var openSet = "height=768, width=1024, toolbar=no, menubar=no,scrollbars=no, resizable=1,location=no, status=no,Top= " +(screen.height-710)/2 + ",Left= "+(screen.width-800)/2
var openType = "_blank";
var openUrl = "../Users/Edit.aspx?id="+rId+"&handle=edit";
window.open (openUrl,openType,openSet);
}
}
function ShowDetailDel()
{
var asid = $("hdUserID").value;
if(asid == "1BEC90E1-9780-472F-90C2-0C6390C044A4")
{
if(confirm('确定删除吗?'))
{
var loaderX = dhtmlxAjax.getSync("../FeeCodes/UserAdapter.aspx?val="+newGuid()+"&isbeing="+$("hid_id").value);
var altX = loaderX.xmlDoc.responseText;
if(altX=="")
{
document.getElementById("btDel").click();
}
else
{
alert(altX);
return;
}
}
}
else
{
alert("请联系系统管理员,其他人无人员删除权限!");
}
}
function ShowDetailFresh()
{
createGrid();
}
function imgAddChangePic()
{
var pic1=document.getElementById("imgAdd");
var start=pic1.src.lastIndexOf("/");
var str=pic1.src.substring(start+1);
if(str=="order_modify.gif")
{
pic1.src="../images/order_cancel.gif";
//pic1.alt="我是B图片";
}
else if(str=="order_cancel.gif")
{
pic1.src="../images/order_modify.gif";
//pic1.alt="我是A图片";
}
}
function imgFreshChangePic()
{
var pic1=document.getElementById("imgFresh");
var start=pic1.src.lastIndexOf("/");
var str=pic1.src.substring(start+1);
if(str=="btnFresh.gif")
{
pic1.src="../images/icons/progress.gif";
//pic1.alt="我是B图片";
}
else if(str=="progress.gif")
{
pic1.src="../images/icons/btnFresh.gif";
//pic1.alt="我是A图片";
}
}
function imgEditChangePic()
{
var pic1=document.getElementById("imgEdit");
var start=pic1.src.lastIndexOf("/");
var str=pic1.src.substring(start+1);
if(str=="audit.gif")
{
pic1.src="../images/order_delete.gif";
//pic1.alt="我是B图片";
}
else if(str=="order_delete.gif")
{
pic1.src="../images/audit.gif";
//pic1.alt="我是A图片";
}
}
function imgDelChangePic()
{
var pic1=document.getElementById("imgDel");
var start=pic1.src.lastIndexOf("/");
var str=pic1.src.substring(start+1);
if(str=="remove.gif")
{
pic1.src="../images/delete.gif";
//pic1.alt="我是B图片";
}
else if(str=="delete.gif")
{
pic1.src="../images/icons/remove.gif";
//pic1.alt="我是A图片";
}
}
</script>
</head>
<body onload="initWinScreen();createGrid();">
<form id="form1" runat="server">
<div style="width:100%;vertical-align:text-bottom;" class="btn-content0">
<div class="btn-blank"></div>
<div class="xbtn-img">
<img id="imgAdd" src="../images/icons/btnAdd.gif" onclick="ShowDetailAdd();" class="btnimg" alt="添加" onmouseover="imgAddChangePic();" onMouseOut="imgAddChangePic();"/>
</div>
<div class="xbtn-img">
<img id="imgEdit" src="../images/audit.gif" onclick="ShowDetailUpdate();" class="btnimg" alt="修改" onmouseover="imgEditChangePic();" onMouseOut="imgEditChangePic();"/>
</div>
<div class="xbtn-img">
<img id="imgDel" src="../images/icons/remove.gif" onclick="ShowDetailDel();" class="btnimg" alt="删除" onmouseover="imgDelChangePic();" onMouseOut="imgDelChangePic();"/>
</div>
<div class="xbtn-img">
<img id="imgFresh" src="../images/icons/btnFresh.gif" onclick="ShowDetailFresh();" class="btnimg" alt="刷新" onmouseover="imgFreshChangePic();" onMouseOut="imgFreshChangePic();"/>
</div>
</div>
<div style="width:98%; overflow-x:scroll; position:relative;"><div id="mygrid_container_user" style="width:1200px; height:450px;" runat="server" class="cssfont"></div></div>
<div>
<input type="hidden" id="hid_id" name="hid_id" runat="server"/>
<input type="hidden" id="hdUserID" name="hdUserID" runat="server"/>
<asp:Button ID="btDel" runat="server" Text="Button" OnClick="btDel_Click" style="display:none"/>
</div>
</form>
</body>
</html>