📄 cg_cgxxjb.asp
字号:
<!--#include file="../conn.asp"-->
<!--#include file="../hxxm/../function.asp"-->
<%
aspname=request("aspname")
xin=request("xin")
bh=request("bid")
%>
<script>
var x
x="<%=request.form("submitx")%>"
if (x=="查 询"){
window.location="select.asp?aspname=<%=aspname%>&bh=<%=bh%>"
}
</script>
<script>
var y
y="<%=request.form("submity")%>"
if (y=="新 增"){
window.location="<%=aspname%>.asp?aspname=<%=aspname%>&bh=<%=bh%>&name=<%=name%>&xin=1"
}
</script>
<%
dim m
action="add"
if xin = 1 then
countsql="select top 1 * from cgxx order by cgxx_ID desc"
set countrs=server.createobject("adodb.recordset")
countrs.open countsql,conn,1,1
if not countrs.eof then
m=1000000000+countrs("cgxx_ID") + 1
else
m=1000000000+1
end if
end if
%>
<%
if xin = 1 then
CGBM=request.form("CGBM")
DWDM=request.Form("DWDM2")
RWLY=request.form("RWLY")
pwh=request.form("pwh")
CGMC=request.form("CGMC")
JLMC=request.form("JLMC")
JLJB=request.form("JLJB2")
JLDJ=request.form("JLDJ2")
HJSJ=request.form("HJSJ")
CGXS=request.form("CGXS2")
XKML=request.form("XKML2")
BJDW=request.form("BJDW2")
jbnr=request.form("jbnr")
shbz=request.form("shbz2")
sql="select * from cgxx where cgxx_cgbm='"& cgbm &"'"
set rs=server.Createobject("ADODB.Recordset")
rs.open sql,conn,1,3
if rs.eof then
if request.form("submitn")=" 提 交 " then
rs.addnew
rs(1)=CGBM
rs(2)=dwdm
rs(3)=rwly
rs(4)=pwh
rs(5)=cgmc
rs(6)=JLMC
rs(7)=JLJB
rs(8)=JLdj
rs(9)=HJSJ
rs(10)=CGXS
rs(11)=JBNR
rs(12)=XKML
rs(13)=bjdw
rs(14)=shbz
rs.update
action="suc"
errn="基本信息录入成功!!"
end if
end if
elseif xin =0 then
sql="select * from cgxx where cgxx_cgbm='"& bh &"'"
set rs=server.Createobject("ADODB.Recordset")
rs.open sql,conn,1,3
if not rs.eof then
CGBM=rs(1)
dwdm=rs(2)
dwdm2=dwdm
rwly=rs(3)
pwh=rs(4)
cgmc=rs(5)
JLMC=rs(6)
JLJB=rs(7)
jljb2=jljb
JLdj=rs(8)
jldj2=jldj
HJSJ=rs(9)
CGXS=rs(10)
cgxs2=cgxs
JBNR=rs(11)
XKML=rs(12)
xkml2=xkml
bjdw=rs(13)
shbz=rs(14)
shbz2=shbz
if request.form("submitn")=" 提 交 " then
CGBM=request.form("CGBM")
DWDM=request.Form("DWDM2")
RWLY=request.form("RWLY")
pwh=request.form("pwh")
CGMC=request.form("CGMC")
JLMC=request.form("JLMC")
JLJB=request.form("JLJB2")
JLDJ=request.form("JLDJ2")
HJSJ=request.form("HJSJ")
CGXS=request.form("CGXS2")
XKML=request.form("XKML2")
BJDW=request.form("BJDW2")
jbnr=request.form("jbnr")
shbz=request.form("shbz2")
rs(1)=CGBM
rs(2)=dwdm
rs(3)=rwly
rs(4)=pwh
rs(5)=cgmc
rs(6)=JLMC
rs(7)=JLJB
rs(8)=JLdj
rs(9)=HJSJ
rs(10)=CGXS
rs(11)=JBNR
rs(12)=XKML
rs(13)=bjdw
rs(14)=shbz
rs.update
action="suc"
errn="基本信息修改成功!!"
end if
end if
end if
%>
<head>
<link rel="stylesheet" type="text/css" href="../style.css">
</head>
<body topmargin="0" leftmargin="0" bgcolor="#dddddd">
<%if action="add" then%>
<table width="100%" height="164" border="0" cellpadding="0" cellspacing="0" bordercolor="#D6CFCE" background=>
<form name="form1" id="form1" action="" method="post">
<tr>
<td height="28"> <table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td><div align="center"><strong>成果基本信息表</strong></div></td>
</tr>
</table></td>
</tr>
<tr>
<td height="134"> <div align="right">
<table width="95%" border="0" align="center" cellpadding="0" cellspacing="0">
<td width="15%"><div align="left">成果编码:</div></td>
<td colspan="3">
<%if xin=1 then%>
<input name="cgbm" type=text readonly="" id="ktbh2" style="BORDER-RIGHT: #ffffff 1px groove; BORDER-TOP: #ffffff 1px groove; FONT: 12px Verdana,Geneva,sans-serif; BORDER-LEFT: #ffffff 1px groove; WIDTH: 160px; COLOR: #000000; BORDER-BOTTOM: #ffffff 1px groove; HEIGHT: 18px; BACKGROUND-COLOR: #C0C0C0" value="Cg<%=m%>" size=20 maxlength=20>
<%elseif xin =0 then%>
<input name="cgbm" type=text readonly="" id="ktbh2" style="BORDER-RIGHT: #ffffff 1px groove; BORDER-TOP: #ffffff 1px groove; FONT: 12px Verdana,Geneva,sans-serif; BORDER-LEFT: #ffffff 1px groove; WIDTH: 160px; COLOR: #000000; BORDER-BOTTOM: #ffffff 1px groove; HEIGHT: 18px; BACKGROUND-COLOR: #C0C0C0" value="<%=bh%>" size=20 maxlength=20>
<%end if%>
</td>
</tr>
<tr>
<td> </td>
<td colspan="3"> </td>
</tr>
<tr>
<td>单位代码:</td>
<td colspan="3"><input name="dwdm" type=text id="dwdm" style="BORDER-RIGHT: #ffffff 1px groove; BORDER-TOP: #ffffff 1px groove; FONT: 12px Verdana,Geneva,sans-serif; BORDER-LEFT: #ffffff 1px groove; WIDTH: 300px; COLOR: #000000; BORDER-BOTTOM: #ffffff 1px groove; HEIGHT: 18px; BACKGROUND-COLOR: #dff1f9" value="<%=dwdm%>" size=12 maxlength=15>
<a href="#" onClick=window.open('windowopen.asp?owid=dd_kyjg&forms=form1&formt=dwdm&formt2=dwdm2','','width=250,scrollbars=1,height=300')><img src="../images/open.gif" width="18" height="12" border="0"></a>
<input name="dwdm2" type=hidden id="dwdm2" value="<%=dwdm2%>"></td>
</tr>
<tr>
<td> </td>
<td colspan="3"> </td>
</tr>
<tr>
<td>任务来源:</td>
<td colspan="3"><input name="rwly" type=text id="rwly" style="BORDER-RIGHT: #ffffff 1px groove; BORDER-TOP: #ffffff 1px groove; FONT: 12px Verdana,Geneva,sans-serif; BORDER-LEFT: #ffffff 1px groove; WIDTH: 300px; COLOR: #000000; BORDER-BOTTOM: #ffffff 1px groove; HEIGHT: 18px; BACKGROUND-COLOR: #dff1f9" value="<%=rwly%>" size=12 maxlength=15>
</td>
</tr>
<tr>
<td> </td>
<td colspan="3"> </td>
</tr>
<tr>
<td>成果名称:</td>
<td colspan="3"><input name="cgmc" type=text id="cgmc" style="BORDER-RIGHT: #ffffff 1px groove; BORDER-TOP: #ffffff 1px groove; FONT: 12px Verdana,Geneva,sans-serif; BORDER-LEFT: #ffffff 1px groove; WIDTH: 300px; COLOR: #000000; BORDER-BOTTOM: #ffffff 1px groove; HEIGHT: 18px; BACKGROUND-COLOR: #dff1f9" value="<%=cgmc%>" size=12 maxlength=15></td>
</tr>
<tr>
<td> </td>
<td colspan="3"> </td>
</tr>
<tr>
<td><div align="left">批文号:</div></td>
<td colspan="3"> <input name="pwh" type=text id="pwh" style="BORDER-RIGHT: #ffffff 1px groove; BORDER-TOP: #ffffff 1px groove; FONT: 12px Verdana,Geneva,sans-serif; BORDER-LEFT: #ffffff 1px groove; WIDTH: 240px; COLOR: #000000; BORDER-BOTTOM: #ffffff 1px groove; HEIGHT: 18px; BACKGROUND-COLOR: #dff1f9" value="<%=pwh%>" size=12 maxlength=80></td>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -