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

3 years ago
<%@ 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><3E>˻<EFBFBD><CBBB><EFBFBD>Ϣ</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>
<!--<2D><>ť<EFBFBD><C5A5>-->
<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;//<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>󲢳<EFBFBD>ʼ<EFBFBD><CABC>
var str=location.href;//<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ַ<EFBFBD><D6B7>URL<52><4C>
var num=str.indexOf("?")
str=str.substr(num+1);//<2F><>ȡ<EFBFBD><C8A1>?<3F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>IJ<EFBFBD><C4B2><EFBFBD><EFBFBD><EFBFBD>
var arrtmp=str.split("&");//<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>γɲ<CEB3><C9B2><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
for(i=0;i < arrtmp.length;i++)
{
num=arrtmp[i].indexOf("=");
if(num>0)
{
name=arrtmp[i].substring(0,num);//ȡ<>ò<EFBFBD><C3B2><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
value=arrtmp[i].substr(num+1);//ȡ<>ò<EFBFBD><C3B2><EFBFBD>ֵ
this[name]=value;//<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Բ<EFBFBD><D4B2><EFBFBD>ʼ<EFBFBD><CABC>
}
}
}
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("<22><><EFBFBD><EFBFBD>ѡ<EFBFBD><D1A1>Ҫ<EFBFBD><D2AA><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ݣ<EFBFBD>");
}
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('ȷ<><C8B7>ɾ<EFBFBD><C9BE><EFBFBD><EFBFBD><EFBFBD><EFBFBD>'))
{
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("<22><><EFBFBD><EFBFBD>ϵϵͳ<CFB5><CDB3><EFBFBD><EFBFBD>Ա<EFBFBD><D4B1><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Աɾ<D4B1><C9BE>Ȩ<EFBFBD>ޣ<EFBFBD>");
}
}
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="<22><><EFBFBD><EFBFBD>BͼƬ";
}
else if(str=="order_cancel.gif")
{
pic1.src="../images/order_modify.gif";
//pic1.alt="<22><><EFBFBD><EFBFBD>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="<22><><EFBFBD><EFBFBD>BͼƬ";
}
else if(str=="progress.gif")
{
pic1.src="../images/icons/btnFresh.gif";
//pic1.alt="<22><><EFBFBD><EFBFBD>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="<22><><EFBFBD><EFBFBD>BͼƬ";
}
else if(str=="order_delete.gif")
{
pic1.src="../images/audit.gif";
//pic1.alt="<22><><EFBFBD><EFBFBD>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="<22><><EFBFBD><EFBFBD>BͼƬ";
}
else if(str=="delete.gif")
{
pic1.src="../images/icons/remove.gif";
//pic1.alt="<22><><EFBFBD><EFBFBD>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="<22><><EFBFBD><EFBFBD>" onmouseover="imgAddChangePic();" onMouseOut="imgAddChangePic();"/>
</div>
<div class="xbtn-img">
<img id="imgEdit" src="../images/audit.gif" onclick="ShowDetailUpdate();" class="btnimg" alt="<22>޸<EFBFBD>" onmouseover="imgEditChangePic();" onMouseOut="imgEditChangePic();"/>
</div>
<div class="xbtn-img">
<img id="imgDel" src="../images/icons/remove.gif" onclick="ShowDetailDel();" class="btnimg" alt="ɾ<><C9BE>" onmouseover="imgDelChangePic();" onMouseOut="imgDelChangePic();"/>
</div>
<div class="xbtn-img">
<img id="imgFresh" src="../images/icons/btnFresh.gif" onclick="ShowDetailFresh();" class="btnimg" alt="ˢ<><CBA2>" 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>