addnew.asp

来自「功能齐全的oa系统」· ASP 代码 · 共 68 行

ASP
68
字号
<% option explicit%>
<!-- #include virtual="include/DataEnvi.asp" -->
<!-- #include virtual="include/Page.asp" -->
<!-- #include virtual="include/SelectValue.asp" -->
<%
	Dim ObjDB,ObjRS
	Dim C
	Dim StrSelectTrueName,IntParentID

	Set ObjDB = Server.CreateObject("ADODB.Connection")
	OpenDB ObjDB
	
	IntParentID = Request.QueryString("ParentID")
	

	If Request.Form.Count > 0 Then
		
		Set C = Server.CreateObject("CMS2003.DBHandle")
		C.Init(ObjDB)
		ObjRS = C.AddNew("_","t_OA_SYS_Department")
		ObjDB.Close
		Set ObjDB = Nothing
		
		Response.Redirect  ("List.asp?ParentID=" & IntParentID)

	End If

%>


<%'==================================================================%>
<%Sub Main%>
<%'------------------------------------------------------------------%>

	
	<form action="" method="post" onsubmit="return(CheckForm(this))" id=form1 name=form1>
	<table class=Ltable cellspacing=1 cellpadding=3>
	<tr class=LHtr>
		<td width="15%">新增部门</td>
		<td width="85%"> </td>
	</tr>
	<input Type=hidden name="_ParentID" value=<%=IntParentID%>>
	<tr class=Ltr>
		<td>部门名称</td>
		<td><input type="text" class=Input Check=1 Show="部门名称" name="_DepName"></td>
	</tr>
	</table>
	<table cellspacing=1 cellpadding=3>
	<tr>
		<td>
		<input type="submit"  name="Submit" class=Button value="提 交">
		<input type="button" class=Button value="取 消" onclick="doList()" id=button1 name=button1>
		</td>
		<td>
		</td>
	</tr>
	</table>

	</form>
	


<%'------------------------------------------------------------------%>
<%End Sub%>
<%'==================================================================%>

<!-- #include file="Templet.asp" -->

⌨️ 快捷键说明

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