📄 projectexpert_edit1.asp
字号:
<!--#include file="../Include/TimeOut.asp"-->
<!--#include file="../Include/AdoConn.asp"-->
<!--#include file="../Include/online.asp"-->
<%modulecode="0405"%>
<%
Code=Request.QueryString ("Code")
strsqlzh=Request.QueryString("strsql")
page=Cstr(Request.Querystring("page"))
edit=Request.Querystring("edit")
strsql="select * from XT_VC_ProjectExpert where 项目编码='"&Code&"'"
set objres=server.CreateObject ("adodb.recordset")
objres.CursorType =3
objres.CursorLocation =3
objres.LockType =2
objres.Open strsql,strconn
%>
<%
rstSQL="select * from xt_vd_ProjectName where 项目编码='"&code&"'"
set rst=server.CreateObject ("adodb.recordset")
rst.Open rstSQL,strconn
%>
<%
JieGuo=""
YiJian=""
edit=""
JieGuo=request("JieGuo")
YiJian=request("YiJian")
set rstHzdf=server.createobject("ADODB.recordset")
StrsqlHzdf="select 汇总评分,汇总意见 from XT_TD_Project where 项目编码='"&code&"'"
rstHzdf.open StrsqlHzdf,strconn
if not rstHzdf.eof then
JieGuo=rst("汇总评分")
YiJian=rst("汇总意见")
end if
if request("submittype")="submit" then
JieGuo=request("JieGuo")
YiJian=request("YiJian")
strsql1="update XT_TD_Project set 汇总评分='"&JieGuo&"',汇总意见='"&YiJian&"' where 项目编码="+"'"+Code+"'"
conn.Execute strsql1,1
Response.Redirect "ProjectPSHZ_EditList.asp?strsql="+server.URLEncode ( Request.QueryString("strsql"))+"&page="+Cstr(page)
end if
%>
<%
dim pagesum '页数
dim thispagerecords '当前页记录条数
dim recordcode '记录序号
dim curpage '当前页码
dim pagesize
pagesize=10
pagesum=objres.PageCount
if Request.QueryString("page")=""then curpage=1 else curpage=Request.QueryString("page")
if cint(curpage)> cint(pagesum) then curpage=pagesum '转换成整数格式时必须的,大量实验已经证明
%>
<html>
<head>
<title>专家评审意见</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<STYLE type=text/css>
TD {FONT-SIZE: 9pt}
A:link
{
COLOR: #000000;
FONT-FAMILY: 宋体;
FONT-SIZE: 9pt
}
A:visited
{
COLOR: #000000;
FONT-FAMILY: 宋体;
FONT-SIZE: 9pt
}
A:active
{
COLOR: #000000;
FONT-FAMILY: 宋体;
FONT-SIZE: 9pt
}
A:hover
{
COLOR: blue;
FONT-FAMILY: 宋体;
FONT-SIZE: 9pt
}
</style>
</head>
<Script Language=JavaScript>
<!--
function SelAll_onclick(){
if(ConList.SelAll.checked){
SetAll();
}
else{
UnSetAll();
}
}
function SetAll(){
var intCount;
if(ConList.all("checkCon").length > 1){
for(intCount = 0; intCount < ConList.all("checkCon").length; intCount++){
ConList.checkCon(intCount).checked = true;
}
}
else{
ConList.checkCon.checked = true;
}
}
function UnSetAll(){
var intCount;
if(ConList.all("checkCon").length > 1){
for(intCount = 0; intCount < ConList.all("checkCon").length; intCount++){
ConList.checkCon(intCount).checked = false;
}
}
else{
ConList.checkCon.checked = false;
}
}
function checkCon_onclick(){
var intCount;
ConList.SelAll.checked = true;
if(ConList.all("checkCon").length > 1){
for(intCount = 0; intCount < ConList.all("checkCon").length; intCount++){
if(ConList.checkCon(intCount).checked == false){
ConList.SelAll.checked = false;
}
}
}
else{
if(ConList.checkCon.checked == false){
ConList.SelAll.checked = false;
}
}
}
//-->
</Script>
<body bgcolor="#FFFFFF" text="#000000">
<table width="100%" border="0" cellspacing="1" cellpadding="3" align="center" bgcolor="#000000">
<tr bgcolor="#FF9900">
<td width="10%" valign="top"> 项目编码</td>
<td width="10%" valign="top">
<% = rst.Fields("项目编码").Value %>
</td>
<td width="10%" valign="top">项目名称</td>
<td width="50%" valign="top"> <a href="../Project/Project_edit1.asp?view=view&edit=edit&code=<% = rst.Fields("项目编码").Value %>&name=<% = rst.Fields("项目名称").Value %>&type=<%=rst.Fields ("项目类别").Value %>&strsql=<%=server.URLEncode(backstrsql)%>&page=<%=curpage%>" target="_blank" class=blank>
<% = rst.Fields("项目名称").Value %>
</a></td>
<td width="10%" valign="top">体系分类</td>
<%txfl=objres("体系分类")%>
<%if txfl="1" then%>
<td width="10%" valign="top">应用开发</td>
<%end if%>
<%if txfl="2" then%>
<td width="10%" valign="top">科技攻关</td>
<%end if%>
<%if txfl="3" then%>
<td width="10%" valign="top">科技产业</td>
<%end if%>
</tr>
</table>
<table width="100%" border="0" cellspacing="0" cellpadding="0" align="center" bgcolor="#DDEEFF">
<tr>
<td valign="top" height="158" colspan="2">
<form name="conlist" method="post" action="ProjectPSHZ_edit.asp?Code=<%=Code%>&strsql=<%=server.URLEncode(strsqlzh)%>&edit=<%=request.querystring("edit")%>&page=<%=Cstr(request.querystring("page"))%>" onsubmit="return checkfun()">
<table width="100%" border="0" cellpadding="0" cellspacing="0" bgcolor="#DDEEFF">
<INPUT type="hidden" name ="submittype" value="submit">
<tr>
<td width="2" height="12"></td>
<td valign="top" colspan="5"> </td>
</tr>
<tr>
<td height="29"></td>
<td valign="middle" width="123"> 汇总打分:</td>
<td width="1"></td>
<td valign="middle" width="562">
<input type="radio" name="JieGuo" value="A" <%if JieGuo="A" then response.write "checked" end if%><%if JieGuo="" or isnull(JieGuo) then response.write "checked" end if%>>
A
<input type="radio" name="JieGuo" value="B" <%if JieGuo="B" then response.write "checked" end if%>>
B
<input type="radio" name="JieGuo" value="C" <%if JieGuo="C" then response.write "checked" end if%>>
C </td>
<td valign="top" width="89"> </td>
<td width="2"></td>
</tr>
<tr>
<td height="97"></td>
<td valign="middle">汇总意见:</td>
<td></td>
<td colspan="2" valign="middle">
<textarea name="Yijian" cols="70" rows="5"><%=YiJian%></textarea>
</td>
<td></td>
</tr>
</table>
</form>
</td>
</tr>
<tr>
<td height="29" width="689" valign="top" bgcolor="#4089BF"> </td>
<td width="90" valign="top" bgcolor="#4089BF">
<input style=" BACKGROUND-COLOR: #e6f4ff;
BORDER-BOTTOM: #0099ff 1px solid;
BORDER-LEFT: #0099ff 1px solid;
BORDER-RIGHT: #0099ff 1px solid;
BORDER-TOP: #0099ff 1px solid;
COLOR: #336699;
HEIGHT: 18px;
width:30px:
TEXT-ALIGN: center"type="button" name="Submit2" value="取消" onClick="history.back()">
</td>
</tr>
</table>
<%
rst.Close
set rst=nothing
%>
<br>
</body>
</html>
<script language="vbscript">
function checkfun() '校验表单
checkfun=true
if ConList.YiJian.value ="" then
checkfun=false
window.alert "意见不能为空,请重新输入!"
exit function
end if
end function
</script>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -