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

📄 project_editlist.asp

📁 ASP程序实现的科技期刊系统
💻 ASP
📖 第 1 页 / 共 2 页
字号:
<!--#include file="../Include/TimeOut.asp"-->
<!--#include file="../Include/online.asp"-->
<html>
<head>
<title>项目列表</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link rel="stylesheet" href="/CssLib/CssLink.css">

</head>
<Script Language=JavaScript>
<!--
			function open1(Code)
			{
			window.open("BackYiJian_ContentDisplay.asp?code="+Code,"推荐意见","height=410,width=500,toolbar=no,menubar=no,scrollbars=yes,resizable=no,status=no,location=no")
			}

function myalert()
			{
			window.alert("您只能修改'修改标志'为'可修改'的记录!")
			}
function DelAlert()
			{
			window.alert("您只能删除'修改标志'为'可修改'的记录!")
			}

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>

<script language="vbscript"runat="server">
function msgzh()
	msgzh= MsgBox ("确定要删除这些记录吗?", vbYesNo, "提示信息")
	if msgzh=vbyes then 
	document.ConList.submitType.value="del"
	document.ConList.submit()
	end if
end function
function check_onclick(i,tpr)
	msgsindel= MsgBox ("确定要删除这条记录吗?", vbYesNo, "提示信息")
	if msgsindel=vbyes then
		if  tpr > 1 then
			for intcount = 0 to  ConList.all("checkCon").length - 1
				if intcount=i-1 then ConList.checkCon(intCount).checked=true else  ConList.checkCon(intCount).checked=false
			next
			else 
			ConList.checkCon.checked = true
		end if
		document.ConList.submitType.value="del"
		document.ConList.submit()
	end if 
end function
</script>



<body bgcolor="#FFFFFF" text="#000000" onload="window.top.ProjectMax()">
<!--#include file="../Include/AdoConn.asp"-->
<%
	dim objrec         'recordset对象
	dim strsql         'sql语句

'处理删除项目
	if Request("submitType")="del"then
			for each item in  Request.Form("checkCon")
				code=left(Item,instr(Item,",")-1)
				YN=right(Item,1)
				if YN="Y" then '只能删除修改标志为“Y”的项目
	            set adocom=server.CreateObject("ADODB.Command")'用于删除协作单位的存储过程对象
	  	        adocom.ActiveConnection=conn
				adocom.CommandType=4
				adocom.CommandText="PR_XT_ProjectDelete"
				set paramenter1=adocom.CreateParameter("chrProjectCode",200,1,40,code)
				adocom.Parameters.Append paramenter1
				adocom.Execute
				set adocom=nothing
				end if
			next
		set adocom=nothing
	end if 	

if not  Request.QueryString("strsql")="" then
	if session("orderType")=" asc" then
		orderType=" desc"
		session("orderType")=" desc"
	else
		orderType=" asc"
		session("orderType")=" asc"
	end if

	select case Request.QueryString("strsql")
	case "query"	'由查询转来
			dim NDPC
			dim code
			dim name
			dim role
			dim strQueryType
			dim strSQLWhere
			code=trim(Request.Form("ProjectCode"))
			name=trim(Request.Form("ProjectName"))
			ProjectType=trim(Request.Form("ProjectType"))
			ConProjectCode=trim(Request.Form("ConProjectCode"))
			PlanCode=trim(Request.Form("PlanCode"))
			Username=trim(Request.Form("Username"))
			TechType=trim(Request.Form("TechType"))
			ProjectJD=trim(Request.Form("ProjectJD"))
			JDZK=trim(Request.Form("JDZK"))
			NDPC=trim(Request.Form("NDPC"))
			NDPC2=trim(Request.Form("NDPC2"))
			KXXBG=trim(Request.Form("KXXBG"))
			TJBZ=trim(Request.Form("TJBZ"))
			XGBZ=trim(Request.Form("XGBZ"))
			Depart=trim(Request.Form("Depart"))
			ZhuChiCom=trim(Request.Form("ZhuChiCom"))
			ShuoZaiQv=trim(Request.Form("ShuoZaiQv"))
			FaRenCode=trim(Request.Form("FaRenCode"))
			ComPanyPro=trim(Request.Form("ComPanyPro"))
			CompanyType=trim(Request.Form("CompanyType"))
			RegType=trim(Request.Form("RegType"))
			
			
			role=trim(Request.Form("role"))
			'复选框选中时,strQueryType="%"
			if Request.Form("checkbox").Count=1 then
			   strQueryType="%"
			   else 
			   strQueryType=""
			end if
			'无任何where选项时
			strsql="select * from XT_VD_ProjectName where 1=1 "
			'根据角色生成where选项
			select case role
				case 0 '系统维护员
				strSQLWhere=""
				case 1 '申报者
				strSQLWhere=" and 项目负责人='"&session("usercode")&"'"
				case 2 '主管部门
				strSQLWhere=" and left(项目负责人,3)='"&left(session("usercode"),3)&"'"
				case 3 '项目计划员
				strSQLWhere=""
				case 4 '项目管理员
				strSQLWhere=" and 分配接收处室='"&session("Departcode")&"'"
				case 5 '项目拨款员
				strSQLWhere=" and 合同编码<>''"
				case 6 '部门领导
				strSQLWhere=""
			end select

			'按查询界面各输入框生成多条件where选项
			if not code="" then
			   strSQLWhere=strSQLWhere+" and 项目编码 like '"+strQueryType+code+strQueryType+"'"
			end if
			if not name="" then
			   strSQLWhere=strSQLWhere+" and 项目名称 like '"+strQueryType+name+strQueryType+"'"
			end if
			if not ProjectType="" then
			   strSQLWhere=strSQLWhere+" and 项目类别 like '"+strQueryType+ProjectType+strQueryType+"'"
			end if
			if not ConProjectCode="" then
			   strSQLWhere=strSQLWhere+" and 合并编码 like '"+strQueryType+ConProjectCode+strQueryType+"'"
			end if
			if not PlanCode="" then
			   strSQLWhere=strSQLWhere+" and 计划编码 like '"+strQueryType+PlanCode+strQueryType+"'"
			end if
			if not Username="" then
			   strSQLWhere=strSQLWhere+" and 负责人姓名 like '"+strQueryType+Username+strQueryType+"'"
			end if
			if not TechType="" then
			   strSQLWhere=strSQLWhere+" and 技术领域 like '"+strQueryType+TechType+strQueryType+"'"
			end if
			if not ProjectJD="" then
			   strSQLWhere=strSQLWhere+" and 项目进度 like '"+strQueryType+ProjectJD+strQueryType+"'"
			end if
			if not JDZK="" then
			   strSQLWhere=strSQLWhere+" and 进度状况 like '"+strQueryType+JDZK+strQueryType+"'"
			end if
			if not NDPC="" and not NDPC2="" then
			   strSQLWhere=strSQLWhere+" and (年度批次 between '"+NDPC+"' and '"+NDPC2+"')"
			   else if not NDPC="" and NDPC2="" then
			   strSQLWhere=strSQLWhere+" and 年度批次 like '"+NDPC+strQueryType+"'"
					else if NDPC="" and not NDPC2="" then
					strSQLWhere=strSQLWhere+" and 年度批次 like '"+NDPC2+strQueryType+"'"
						 end if
					end if					
			end if
			if not KXXBG="" then

⌨️ 快捷键说明

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