📄 useradd.aspx
字号:
<%@ page language="C#" autoeventwireup="true" inherits="SystemManage_UserAdd" CodeFile="UserAdd.aspx.cs" %>
<!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 href="../SystemManage/css/style.css" rel="stylesheet" type="text/css" />
<script language="javascript" type="text/javascript" >
// function getDictionaryValueAgain(path,tname,tid)
// {
// var rs = dictionaryDialog(path,tname,tid);
//
// if(rs!=null)
// {
// document.form1.txtDepartment.value=rs.dictName;
// document.form1.txtDepartmentCode.value=rs.dictId;
// }
// }
function getDictionaryValueAgain(path,currentId,currentName)
{
var rs =dictionaryDialog(path,"dept",1,currentId,currentName)
if(rs!=null)
{
document.form1.txtDepartment.value=rs.dictName;
document.form1.txtDepartmentCode.value=rs.dictId;
}
}
/**
* 公用方法: 调用入口
* 参数:
* path ----------- 上下文路径[ request.getContextPath() ]
* dictName ------- 父字典名称(必选项)
* currenDictId --- 当前已选择的字典ID(可选项)
* dWidth --------- 窗口宽度(可选项)
* dHeight -------- 窗口高度(可选项)
*/
function dictionaryDialog(path, dictName, currenDictId, dWidth, dHeight){
if(path==null){
path = "";
}
if(dWidth==null){
dWidth = 400;
}
if(dHeight==null){
dHeight = 400;
}
if(dictName==null){
dictName = "";
}
alert(path+"choosedict.aspx?method=commonChooseDictionary&parentName="+dictName+"¤DictId="+currenDictId);
var styles = "";//"dialogHeight:"+dHeight+"px;dialogWidth:"+dWidth+"px;center:yes; help:no; resizable:no; status:no";
var objReturn = window.showModalDialog(path+"choosedict.aspx?method=commonChooseDictionary&parentName="+dictName+"¤DictId="+currenDictId,
"字典选择",
styles);
return objReturn;
}
/**
* 公用方法: 调用入口
* 参数:
* path ----------- 上下文路径[ request.getContextPath() ]
* method-----------[dict/选择字典] [dept/选择单位] (必选项)
* allowparent------[0/不能选择父项] [1/能选择父项] (必选项)
* currentId ------- 当前选择字典编号(必选项)
* currentName --- 当前已选择字典名称(可选项)
* parentId--------- 当前的字典项编号(必选项)
* parentName----- 当前字典项名称(可选项)
* dWidth --------- 窗口宽度(可选项)
* dHeight -------- 窗口高度(可选项)
*/
function dictionaryDialog(path,method,allowparent,currentId,currentName,parentId,parentName,dWidth, dHeight){
if(path==null){
path = "";
}
if(dWidth==null){
dWidth = 400;
}
if(dHeight==null){
dHeight = 400;
}
if(currentName==null){
currentName = "";
}
if(parentName==null)
{
parentName="";
}
var dialogname;
if(method=="dict")
{
dialogname="字典选择";
}
else
{
dialogname="单位选择";
}
var styles = "";//"dialogHeight:"+dHeight+"px;dialogWidth:"+dWidth+"px;center:yes; help:no; resizable:no; status:no";
var objReturn = window.showModalDialog(path+"choosedict.aspx?method="+method+"&allowparent="+allowparent+"¤tid="+currentId+"¤tname="+currentName+"&parentid="+parentId+"&parentname="+parentName,
dialogname,
styles);
return objReturn;
}
</script>
</head>
<body>
<form id="form1" runat="server">
<div>
<table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td colspan="3" class="p1">
<strong>系统管理-增加用户</strong></td>
</tr>
<tr>
<td style="height: 25px;" colspan="3">
</td>
</tr>
<tr>
<td style="height: 25px; text-align: center;" colspan="3">
<table cellpadding="0" cellspacing ="0" border="1" style="background-color: #E7E7FF">
<tr>
<td style="width: 100px; height: 20px">
帐号</td>
<td style="width: 159px; height: 20px">
<asp:TextBox ID="txtAccount" runat="server" MaxLength="50"></asp:TextBox></td>
<td style="width: 100px; height: 20px; text-align: left;">
<span style="color: #ff0000">*</span></td>
</tr>
<tr>
<td style="width: 100px;height: 20px">
姓名</td>
<td style="width: 159px;height: 20px">
<asp:TextBox ID="txtName" runat="server" MaxLength="50"></asp:TextBox></td>
<td style="width: 100px;height: 20px; text-align: left;">
<span style="color: #ff0000">*</span></td>
</tr>
<tr>
<td style="width: 100px;height: 20px">
密码</td>
<td style="width: 159px;height: 20px">
<asp:TextBox ID="txtPassword" runat="server" MaxLength="50" TextMode="Password"></asp:TextBox></td>
<td style="width: 100px;height: 20px; text-align: left;">
<span style="color: #ff0000">*</span></td>
</tr>
<tr>
<td style="width: 100px;height: 20px">
所属单位</td>
<td style="width: 159px;height: 20px">
<input id="txtDepartment" runat="server" maxlength="100" name="txtDepartment" readonly="readonly"
type="text" /></td>
<td style="width: 100px;height: 20px; text-align: left;">
<input id="btnBrowser" onclick="getDictionaryValueAgain('../',form1.txtDepartmentCode.value,escape(form1.txtDepartment.value))"
type="button" value="选择" /></td>
</tr>
<tr>
<td style="width: 100px;height: 20px">
有效</td>
<td style="width: 159px;height: 20px; text-align: left;">
<asp:CheckBox ID="ckbInuse" runat="server" Text=" " Checked="True" /></td>
<td style="width: 100px;height: 20px">
<input id="txtDepartmentCode" runat="server" maxlength="50" name="txtDepartmentCode"
size="10" type="hidden" /></td>
</tr>
</table>
</td>
</tr>
<tr>
<td colspan="3" style="height: 12px">
</td>
</tr>
<tr>
<td style="height: 12px;" colspan="3" align="center">
<asp:Button ID="btnAdd" runat="server" Text="保存" OnClick="btnAdd_Click" />
<input id="Reset1" type="reset" value="重置" />
<asp:Button ID="btnDelete" runat="server" Text="返回" OnClick="btnDelete_Click" /></td>
</tr>
</table>
</div>
</form>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -