⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 useredit.aspx

📁 CRM管理系统 CRM管理系统
💻 ASPX
字号:
<%@ page language="C#" autoeventwireup="true" inherits="SystemManage_UserEdit" CodeFile="useredit.aspx.cs" contenttype="text/html" %>

<!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,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+"&currenDictId="+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+"&currenDictId="+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(parentId == null){
            parentId = "";
            }
        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+"&currentid="+currentId+"&currentname="+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">
                    &nbsp;</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" ReadOnly="True"></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"><input id="txtDepartment"  name="txtDepartment" type="text" runat="server" maxlength="100" readonly="readOnly"  /></td>
                            <td style="width: 100px;height: 20px; text-align: left;">
                                <input id="btnBrowser" type="button" value="选择"  onclick="getDictionaryValueAgain('../',form1.txtDepartmentCode.value,escape(form1.txtDepartment.value))" <%-- onclick="getDictionaryValueAgain('../','<%=GetCurrentId()%>','<%=GetCurrentName()%>')" --%>/>
                                <asp:Label ID="lblUserID" runat="server" Text="Label" Visible="False"></asp:Label></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"  name="txtDepartmentCode" type="hidden" runat="server" maxlength="50" size="10"   /></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" />&nbsp;
                    <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 + -