<%@ Page Language="C#"  AutoEventWireup="true" CodeFile="dept_edit.aspx.cs" Inherits="general_dept_dept_edit" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">





<html>
<head>
<title>部门/成员单位管理</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link rel="stylesheet" type="text/css" href="../../styles/1/style.css">
<script Language="JavaScript">
function CheckForm()
{
   if(document.form1.DEPT_NO.value=="")
   { alert("部门排序号不能为空！");
     return (false);
   }

   if(document.form1.DEPT_NAME.value=="")
   { alert("部门名称不能为空！");
     return (false);
   }
}

function delete_dept()
{
    msg='确认要删除该部门/成员单位么？这将同时删除所有下级部门和部门中的用户！';
   if(window.confirm(msg))
        return true;
   else return false; 
    
}

</script>
</head>

<body class="bodycolor" topmargin="5" onload="document.form1.DEPT_NO.focus();">
<form id="form1" runat="server">

<table border="0" width="100%" cellspacing="0" cellpadding="3" class="small">
  <tr>
    <td class="Big"><img src="~/images/edit.gif" width="20" HEIGHT="22" id="IMG1" runat="server"><span class="big3"> 编辑部门/成员单位 - [<%=dinfo.dept_name %>]</span>
    </td>
  </tr>
</table>

<table border="0" cellspacing="1" width="450" class="small" bgcolor="#000000" cellpadding="3" align="center" >
  
   <tr>
    <td nowrap class="TableData">部门排序号：</td>
    <td nowrap class="TableData">
        <input type="text" name="DEPT_NO" class="BigInput" size="10" value="<%=dinfo.dept_no %>" maxlength="200">&nbsp;用于处于同一层次部门的排序，以及用户列表的排序
    </td>
   </tr>
   <tr>
    <td nowrap class="TableData">部门名称：</td>
    <td nowrap class="TableData">
        <input type="text" name="DEPT_NAME" class="BigInput" size="25" value="<%=dinfo.dept_name %>" maxlength="25">&nbsp;
    </td>
   </tr>
   <tr>
    <td nowrap class="TableData">电话：</td>
    <td nowrap class="TableData">
        <input type="text" name="TEL_NO" value="<%=dinfo.tel_no %>" class="BigInput" size="25" maxlength="25">&nbsp;
    </td>
   </tr>
   <tr>
    <td nowrap class="TableData">传真：</td>
    <td nowrap class="TableData">
        <input type="text" name="FAX_NO" class="BigInput" size="25" value="<%=dinfo.fax_no %>" maxlength="25">&nbsp;
    </td>
   </tr>
   <tr>
    <td nowrap class="TableData">上级部门：</td>
      <td class="TableData">
        <select name="DEPT_PARENT" class="BigSelect" id="Select1" runat="server">
           <option value="0">无</option>
        </select>
      </td>
   </tr>
   <tr>
    <td nowrap class="TableData">部门职能：</td>
    <td nowrap class="TableData">
        <textarea name="DEPT_FUNC" class="BigInput" cols="40" rows="3" value="<%=dinfo.DEPT_FUNC %>"></textarea>
    </td>
   </tr>
   <tr>
    <td nowrap  class="TableControl" colspan="2" align="center">
        <input type="hidden" name="DEPT_ID" value="<%=dinfo.dept_id %>">
        <input type="submit" value="保存修改" class="BigButton" title="保存修改" name="button" id="Submit1" runat="server" onserverclick="Submit1_ServerClick">
    </td>

</table>
<br>

<table width="95%" border="0" cellspacing="0" cellpadding="0" height="3">
 <tr>
   <td background="/images/dian1.gif" width="100%"></td>
 </tr>
</table>

<table border="0" width="100%" cellspacing="0" cellpadding="3" class="small">
  <tr>
    <td class="Big"><img src="~/images/menu/system.gif" WIDTH="22" HEIGHT="20" align="absmiddle" id="IMG2" runat="server"><span class="big3"> 当前部门/成员单位 - 相关操作</span>
    </td>
  </tr>
</table>
<br>
<div align="center">
    <asp:Button ID="Button1" runat="server" CssClass="BigButton" onclick="Button1_ServerClick" Text="删除当前部门/成员单位" />&nbsp;</div>
   </form> 
</body>
</html>
