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

📄 organiseadd.jsp

📁 电信的网厅的整站代码
💻 JSP
字号:
<%@ page import="com.doone.uurm.Sys_Organise,
                 com.doone.data.DacClient,
                 java.util.Date,
                 com.doone.uurm.Purview,
                 com.doone.uurm.WebAuth,
                 java.text.SimpleDateFormat" %>

<%@ page contentType="text/html; charset=GBK" %>

<%request.setCharacterEncoding("GBK");%>
<%String sPurvICode="NGB003001001";%>
<%
	WebAuth auth = WebAuth.getInstance(request);

    if ( ! auth.IsAuthed() ) {
	    out.write("<script language=\"javascript\">self.parent.location.replace(\"" + request.getContextPath() + "/view/login/login.jsp" + "\");</script>");
	    return;
    }
	else if ( ! auth.CheckPurv(sPurvICode) ) {
	    out.write("<script language=javascript src=\"../../common/script/RightForbidden.js\"></script>");
	    return;
	}

    long id=Long.parseLong(request.getParameter("pid"));
    Sys_Organise org = Sys_Organise.getInstance(new DacClient(), id);
	String indexcode= org.getChildNextCode();
	String sOrganiseName = org.getName();

    String prefix_indexcode="";
   	String postfix_indexcode="";
	if(indexcode.length()>3) {                 
    	prefix_indexcode=indexcode.substring(0,indexcode.length()-3);
    	postfix_indexcode=indexcode.substring(indexcode.length()-3);
  	}
  	else {
		postfix_indexcode=indexcode;
  	}
  	
  	// 普通组织编号使用50开始的编号。
  	if ( Integer.parseInt(postfix_indexcode) < 50 ) postfix_indexcode = "050";
  
	SimpleDateFormat f1 = new SimpleDateFormat("yyyy-MM-dd");
	String createtime= f1.format(new Date());
%>
<html>
<head>
	<title>组织管理</title>
	<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
	<link href="../../common/style/main.css" rel="stylesheet" type="text/css" />
	<script language="JavaScript" src="../../common/script/Calendar.js"></script>
	<script language="JavaScript" src="../../common/script/CalendarLib30.js"></script>
	<script language="JavaScript" src="../../common/script/CheckInfo.js"></script>
	<script language="JavaScript">
function check(theForm)
{

    if(theForm.name.value=="")
	{
		alert("请填写组织名称!");
		theForm.name.focus();
		return false;
	}
    if(theForm.postfix_indexcode.value.length!=3)
	{
		alert("请填写有效的索引号,且长度必须为3位");
		theForm.postfix_indexcode.focus();
		return false;
	}

    if(!fucCheckNUM(theForm.postfix_indexcode.value))
    {
        alert("请填写有效的索引号,数据为数字型!");
		theForm.postfix_indexcode.focus();
        return false;
    }

    if(theForm.starttime.value != "" && !CheckDate(theForm.starttime.value))
    {
        alert("请正确填写有效起始时间,例如“2005-01-01”!");
		theForm.starttime.focus();
        return false;
    }
    if(theForm.endtime.value != "" && !CheckDate(theForm.endtime.value))
    {
        alert("请正确填写截止有效时间,例如“2008-01-01”!");
		theForm.endtime.focus();
        return false;
    }
    return true;
}
</script>

</head>
<body>
	<script language="JavaScript" src="../../common/script/ChangeStyle.js"></script>
	<div id="overDiv" style="z-index: 1000; visibility: hidden; position: absolute">
	</div>
	<form action="/manager/insertoranise" method="get" name="insertfrm" onsubmit="return check(this);">
		<table width="100%" border="0" cellpadding="2" cellspacing="1" class="InnerTable">
			<tr>
				<td class="OuterHead" colspan="2">
					<table width="100%" border="0" cellspacing="0" cellpadding="1">
						<tr>
							<td nowrap="nowrap" style="text-align: left">
								<span id="ItemTitle"><font face="webdings">8</font>添加组织</span>
							</td>
							<td align="right" nowrap>
								<span id="ItemTitle">当前组织:<%=sOrganiseName%></span>
							</td>
						</tr>
					</table>
				</td>
			</tr>
			<tr>
				<td class="InnerHead" style="text-align: right" width="25%">
					<font color="red">*</font>组织编号</td>
				<td class="InnerMain" width="75%">
					<input name="prefix_indexcode" type="hidden" value="<%=prefix_indexcode%>" /><%=prefix_indexcode%><input
						name="postfix_indexcode" type="text" size="3" value="<%=postfix_indexcode%>"
						maxlength="3"></input></td>
			</tr>
			<tr>
				<td class="InnerHead" style="text-align: right">
					<font color="red">*</font>组织名称<input name="id" type="hidden" value="<%=id%>"></input></td>
				<td class="InnerMain">
					<input name="name" type="text" maxlength="20" style="width: 100%;"></input></td>
			</tr>
			<tr>
				<td class="InnerHead" style="text-align: right">
					<font color="red">*</font>组织类别<input name="id" type="hidden" value="<%=id%>"></input></td>
				<td class="InnerMain">
					<input type="radio" checked name="organisemode" value="001">部门类型&nbsp;
					<span  style="display:none;"><input type="radio" name="organisemode" value="002">项目团队&nbsp;</span>
					<input type="radio" name="organisemode" value="101">岗位类型&nbsp;
					<span  style="display:none;"><input type="radio" name="organisemode" value="102">角色类型&nbsp;</span></td>
			</tr>
			<tr>
				<td class="InnerHead" style="text-align: right">
					组织简介</td>
				<td class="InnerMain">
					<input name="descript" type="text" style="width: 100%;" maxlength="20"></input></td>
			</tr>
			<tr>
				<td class="InnerHead" style="text-align: right">
					备注</td>
				<td class="InnerMain">
					<input name="describe" type="text" style="width: 100%;" maxlength="20"></input></td>
			</tr>
			<tr>
				<td class="InnerHead" style="text-align: right">
					创建时间</td>
				<td class="InnerMain">
					<%=createtime%>
				</td>
			</tr>
			<tr>
				<td class="InnerHead" style="text-align: right">
					有效起始时间</td>
				<td class="InnerMain">
					<input name="starttime" type="text" style="width: 80%;" maxlength="20"></input>
					<a onmouseover="window.status='日期选择器'; overlib('点击选择当前日期-只显示当月的日历'); return true;"
						onmouseout="window.status=''; nd(); return true;" href="javascript:show_calendar('insertfrm.starttime');">
						<img height="16" src="../../common/images/selectdate.gif" width="16" border="0">
					</a>
				</td>
			</tr>
			<tr>
				<td class="InnerHead" style="text-align: right">
					截止有效时间</td>
				<td class="InnerMain">
					<input name="endtime" type="text" style="width: 80%;" maxlength="20"></input>
					<a onmouseover="window.status='日期选择器'; overlib('点击选择当前日期-只显示当月的日历'); return true;"
						onmouseout="window.status=''; nd(); return true;" href="javascript:show_calendar('insertfrm.endtime');">
						<img height="16" src="../../common/images/selectdate.gif" width="16" border="0">
					</a>
				</td>
			</tr>
			<tr>
				<td class="InnerHead" style="text-align: right">
					<p>
						组织状态</p>
				</td>
				<td class="InnerMain">
					<input name="state" type="radio" value="E" checked> 在用</input><input name="state"
						type="radio" value="D"> 禁止</input></td>
			</tr>
			<tr>
				<td class="InnerMain" colspan="2" align="right">
					<input type="submit" class="button" value="确认">
					<input type="reset" class="button" value="重写">
				</td>
			</tr>
		</table>
	</form>
</body>
</html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -