招标信息管理系统
源代码在线查看: guanli_type_qx.jsp~12~~1~
request.setCharacterEncoding("GBK");
long pjid=0;
if(request.getParameter("pjid")!=null)
pjid=Long.parseLong(request.getParameter("pjid").trim());
NewProject newpj=new NewProject();
String[] oldlist;
String[] typeidlist;
typeidlist=request.getParameterValues("typeidlist");
oldlist=request.getParameterValues("oldlist");
long type_id=0;
if(typeidlist!=null)
{
for(int i=0;i {
boolean flag=false;
if(oldlist!=null)
{
for(int j=0;j {
if(oldlist[j].equals(typeidlist[i]))
flag=true;
}
}
if(!flag)
{
type_id=Long.parseLong(typeidlist[i]);
newpj.addProjectType(pjid,type_id);
}
}
}
if(oldlist!=null)
{
for(int i=0;i {
boolean flag1=false;
if(typeidlist!=null)
{
for(int j=0;j {
if(typeidlist[j]==oldlist[i])
flag1=true;
}
}
if(!flag1)
{
newpj.delProjectidType(pjid);
NewPPM newppm=new NewPPM();
type_id=Long.parseLong(oldlist[i]);
newppm.delPPMProjectidTypeid(pjid,type_id);
newppm.freeCon();
}
}
}
/*
NewProject newpj=new NewProject();
newpj.delProjectidType(pjid);
if(typeidlist!=null)
{
for(int i=0;i {
long type_id;
type_id=Long.parseLong(typeidlist[i]);
newpj.addProjectType(pjid,type_id);
}
}
*/
newpj.freeCon();
%>
guanli_type_qx
修改成功,请返回