紧急求助tomcat和weblogic高手!

kfx 2002-02-01 05:11:35
我现在在把别人在tomcat开发的系统移植到weblogic(6.1)下,出现以下错误,但是该程序在tomcat下完全没问题,各位大虾救命!
/cmst1111/list/sendbill_list.jsp(942): scriptlet close brace '}' unbalanced at line 942 which breaks scope '_base_service_scope_'
probably occurred due to an error in /cmst1111/list/sendbill_list.jsp line 942
...全文
176 10 打赏 收藏 转发到动态 举报
AI 作业
写回复
用AI写文章
10 条回复
切换为时间正序
请发表友善的回复…
发表回复
yanchang 2002-02-04
  • 打赏
  • 举报
回复
要是实在没办法,
你就只能一点一点的注释掉程序,调试那里出问题了吧
kfx 2002-02-04
  • 打赏
  • 举报
回复
哇,那我怎么知道哪个空格是全角?
binpp 2002-02-04
  • 打赏
  • 举报
回复
同意楼上的,tomcat上的是不能完全移植到weblogic上的,我也碰到过这样的问题,
当时是把tomcat下编译过的jsp生成.class的文件(也就是把.jsp转换后的.class文件)
全部删除,让weblogic上重新去编译哪些jsp文件,给你提示的错误就会明白一些的
三一先生 2002-02-04
  • 打赏
  • 举报
回复
tomcat上的不能完全移植到weblogic上,要做一些调整哟……
yanchang 2002-02-03
  • 打赏
  • 举报
回复
哇!!!好长

我决的是对中文的支持弄的
程序可能没问题,但里边隐藏了一些不被支持的特殊符号(比如全脚空格什么的)
而造成的
kfx 2002-02-02
  • 打赏
  • 举报
回复
好的,谢谢!(很长哟:-)
<%/*---------------------------------------

list\sendbill_list.jsp

created by zhounan 2001-1-16 22:50



last modified by ZHOUNAN 2001-8-28 10:18

--------------------------------







modify by zsh 2001-2-9

接运员:分批发运

接运员:查看所有发货单



--------------------------------------

modified by zn 2001-11-15

理货员:Other=17,汽车代运,产生清单





*called by



1. lhy/fh_left.html

1> 自提非指定发货

Module_ID=04

Bill_Type=1

Other=2//发货形式(Clear_Tag=2)货物状态为"正在发"(Item_State=2 )

2> 自提指定发货

Module_ID=04

Bill_Type=1

Other=3//发货形式(Clear_Tag=3)货物状态为"正在发"(Item_State=2 )

3> 代运非指定发货

Module_ID=04

Bill_Type=1

Other=4//发货形式(Clear_Tag=2)货物状态为"备料"(Item_State=4)

4> 代运指定发货

Module_ID=04

Bill_Type=1

Other=5//发货形式(Clear_Tag=3)货物状态为"备料"(Item_State=4)

5>生成发货清单(直接输入发货清单,不回填码单和发货单实发数),

Module_ID=04

Bill_Type=1

Other=6 //货物状态为"正在发"或"已发完"(Item_State=2 or =3 or =4)

6>生成发货清单(非指定发货,一条堆码记录和多条堆码记录,不区分代运和自提)

Module_ID=04

Bill_Type=1

Other=7 //货物状态为"正在发"或"已发完"(Item_State=2 or =3 or =4)

7>设置备料完成时间

Module_ID=04

Bill_Type=1

Other=0 //货物状态为"备料"(Item_State=4)



2. ywsly/fh_left.html

1> 自提发货

Module_ID=03

Bill_Type=1

Other=1 //出库方式(Out_Mode=01)

2> 代运发货

Module_ID=03

Bill_Type=1

Other=2 //出库方式(Out_Mode!=01)

3> 生成发货分割单

Module_ID=03

Bill_Type=1

Other=3 //发货单分割标志(Divid_Send_Tag=1)

4> 生成自提发货清单(指定发货的和非指定发货的)

Module_ID=03

Bill_Type=1

Other=4 //

5> 生成代运发货清单(指定发货的和非指定发货的)

Module_ID=03

Bill_Type=1

Other=5 //







5. ywsly/zzyw_left.html

1> 生成中转发货分割单

Module_ID=03

Bill_Type=3

Other=3 //发货单分割标志



2> 中转发货单

Module_ID=03

Bill_Type=3

Other=0

6. ywsly/tsyw_left.html

1>以发代验

Module_ID=03

Bill_Type=7

Other=7 //无其他条件





2>临时发货

Module_ID=03

Bill_Type=4

Other=0 //无其他条件

6.2 ywsly/td_left.html

1>退单

Module_ID=03

Bill_Type=0

Other=8 //待发或正在发

2>已退单

Module_ID=03

Bill_Type=0

Other=9 //退单







7. jyy/dyfh_left.html

1>设置备料时间

Module_ID=01

Bill_Type=1

Other=3 //货物状态为"待发"(Item_State=1 and Out_Mode!=1)



2>记录分批发运时间 //非指定

Module_ID=01

Bill_Type=1

Other=4 //货物状态为"正在发"(clear_tag=2,Item_State=2or Item_State=5 and Out_Mode!=01)



3>输入代垫费用和配车清单

 Module_ID=01

Bill_Type=1

Other=0 //货物状态为"已发完 "(Item_State=3 and Out_Mode!=01)

4>记录分批发运时间 //指定

Module_ID=01

Bill_Type=1

Other=9 //货物状态为"正在发"(clear_tag=2,Item_State=2or Item_State=5 and Out_Mode!=01)



8. jyy/zzyw_left.html

1> 自提或汽车代运发货

Module_ID=01

Bill_Type=3

Other=5 //

2> 代运发货(一次作业)

Module_ID=01

Bill_Type=3

Other=6 //出库方式(Out_Mode!=01)

3> 自提或汽车代运发货(分发)

Module_ID=01

Bill_Type=3

Other=7 //

4> 代运发货(分发)

Module_ID=01

Bill_Type=3

Other=8 //出库方式(Out_Mode!=01)

9.hydl/ysjh_left.html

1>输入运输计划

Module_ID=02

Bill_Type=0 //显示中转和一般业务类型的发货单

Other=2 //出库方式(Out_Mode!=01)



*input Parameter

1.Module_ID:

2.Bill_Type:发货单类型

0-全部类型,不分模块 1-一般 2-过户 3-中转 4-退单 5-临时 6-变更 7-以发代验

3.Other:0-无条件

1>出库方式(Out_Mode): 1-自提,!1-代运(业务受理模块)

2>发货形式(Clear_Tag):2-无堆码,3-有堆码(理货员模块)

3>货物状态(Item_State):3-待发 4-正在发 0-已发完





Parameter processing

classes/SBcommit/SendBillChild.java



public ResultSet queryMain(String s_depot,String s_module,String s_billtype,String s_other)





-------------------------------------------*/%>



<%

HttpSession s=request.getSession();

Integer grant=(Integer)s.getAttribute("grant");

Integer num = new Integer(2000);

String s_depot = (String)s.getAttribute("depot");

String s_id = (String)s.getAttribute("user_code");

if(!num.equals(grant)){

%>

<form action="/" target="_top" name=myform12>

</form>

<script language="javascript">

<!--

myform12.submit();

-->

</script>

<%

return;

}

%>









<html>

<head>

<title>发货单列表</title>

</head>

<link rel="stylesheet" href="../css/templates.css">

<body>

<%@page language="java" import="java.sql.*" contentType="text/html;charset=gb2312"%>

<jsp:useBean id="sendbill" scope="page" class="SBcommit.SendBillList_q"/>

<jsp:useBean id="list" scope="page" class="listz.DispHtml"/>

<jsp:useBean id="itemcard" scope="page" class="itemcard.ItemCardBill"/>

<jsp:useBean id="sign" scope="page" class="main.BillTypeAndName"/>

<jsp:useBean id="sendbillrecord" scope="page" class="SBcommit.SendRecord_q"/>

<jsp:useBean id="conn" scope="page" class="conn.data_conn"/>



<%

Connection con1=conn.getconn();

Statement stmt=conn.createStatement(con1,true);

Statement stmt_sign=conn.createStatement(con1);

Statement stmt_list=conn.createStatement(con1);

Statement stmt_item=conn.createStatement(con1);

sign.getStatement(stmt_sign);



String s_module=request.getParameter("Module_ID");



if(s_module==null) s_module="03";

int i_module=Integer.parseInt(s_module.trim());

String s_type=request.getParameter("Bill_Type");

String s_other=request.getParameter("Other");

String s_outmode=new String();

String s_outmodeName=new String();







String s_temp0=new String();

if(s_other==null) s_other="0";

int i_other=Integer.parseInt(s_other.trim());

if (s_type.equals("0")&&i_other==0) {

s_temp0="所有业务类型";

}

else {



switch(i_module){

case 1:

String s_temp1[]={"输入代垫费用","自提","代运","设置备料时间","非指定发货-发运情况","输入自提发运情况","输入代运发运情况","设置中转分割标志","中转专线分批发运","指定发货-发运情况"};

s_temp0=s_temp1[i_other];

break;

case 2:

s_temp0="制定运输计划"; break;

case 3:

String s_temp3[] ={"临时发货","自提发货","代运发货","生成发货分割单","产生发货清单(自提)","产生发货清单(代运)","非指定发货-发货清单(代运)","以发代验","指定发货-发货清单(代运)","中转"};



s_temp0=s_temp3[i_other];



break;

case 4:

String s_temp4[]={ "设置备料完成时间","设置分割发货","自提-非指定发货","自提-指定发货",

"代运-非指定发货","代运-指定发货","退单(已产生发货清单)","发货清单(非指定)",

"发货清单(非指定)","已确定发货数量","已发完","已备料",

"未处理以发代验","已处理以发代验","过户","变更(已产生发货清单)",

"","代运-非指定发货"};

s_temp0=s_temp4[i_other];

break;



}//switch

}

out.print("<p align=center><big><strong>发货单列表<"+s_temp0+"></big></strong></p>");

%>

<%



int i_num=0;

String Owner_ID;

String s_checkbillno=new String();//以发代验

String receiveCardno=new String();//以发代验

String s_url1=new String();

itemcard.getStatement(stmt_item);

ResultSet rs;

rs=sendbill.queryMain(stmt,s_depot,s_module,s_type,s_other);

%>



<%

/*

*以下处理分页显示

*/



int curPageNo=1,totalRows=0;

final int ROWS_PER_PAGE=20;

totalRows=0; //总行数

curPageNo=1; //当前页号

rs.last();



totalRows=rs.getRow();

if(totalRows==0)

{

%>

<big><strong>当前没有可用的发货单!!</big></strong>

<%

conn.close();

return;

}





//记算总页数



int intPageCount = (totalRows + ROWS_PER_PAGE-1) / ROWS_PER_PAGE;



rs.first();

if(request.getParameter("page_no")==null)

{

curPageNo=1;

}

else

{

try{

curPageNo=Integer.parseInt(request.getParameter("page_no"));

}

catch(NumberFormatException nfe){

System.out.println("数值转换错误,页码数值不对!");

curPageNo=1;

}

}



%>

<script language="javascript" src="../js/list.js"></script>

<table width="100%">

<tr>

<form onsubmit="javascript:return _gotoPage(this)">

<td width="100%" align="center">

当前第 <%=curPageNo%> 页

<strong>|</strong>

共 <%=intPageCount%> 页

<strong>|</strong>



<%if(curPageNo==1){%>

第一页

<%}else{%>

<A HREF=<%=response.encodeURL(request.getRequestURI()+"?page_no=1&Module_ID="+s_module+"&Bill_Type="+s_type+"&Other="+s_other)%>>第一页</a>

<%}%>

<strong>|</strong>

<%if(curPageNo==1){%>

上一页

<%}else{%>

<A HREF=<%=response.encodeURL(request.getRequestURI()+"?page_no="+(curPageNo-1)+"&Module_ID="+s_module+"&Bill_Type="+s_type+"&Other="+s_other)%>>上一页</a>

<%}%>

<strong>|</strong>

<%if ( curPageNo >= intPageCount){%>

下一页

<%}else{%>

<A HREF=<%=response.encodeURL(request.getRequestURI()+"?page_no="+(curPageNo+1)+"&Module_ID="+s_module+"&Bill_Type="+s_type+"&Other="+s_other)%>>下一页</a>

<%}%>

<strong>|</strong>

<%if(curPageNo >= intPageCount){%>

最后一页

<%}else{%>

<A HREF=<%=response.encodeURL(request.getRequestURI()+"?page_no="+intPageCount+"&Module_ID="+s_module+"&Bill_Type="+s_type+"&Other="+s_other)%>>最后一页</a>

<%}%>

<strong>|</strong>

转至 <input type="text" name="page_no" value="<%=curPageNo%>" size = 5> 页

</td>

<input type="hidden" name="Module_ID" value="<%=s_module%>">

<input type="hidden" name="Bill_Type" value="<%=s_type%>">

<input type="hidden" name="Other" value="<%=s_other%>">

<input type="hidden" name="PageCount" value="<%=intPageCount%>">

</form>

</tr>

</table>





<table width=100% border=0 cellspacing=1>

<tr>

<th align=center>序号</td>

<th align=center>发货单编号</td>

<th align=center>存货人</td>

<th align=center>提货人</td>

<th align=center>经办人</td>

<th align=center>发货日期</td>



<%if (i_module==2) {%>

<th align=center>代运合同号</td>

<% }

else if (s_type.equals("0")||s_type.equals("3")||(s_type.equals("5"))||(s_type.equals("7"))||(i_other==7 &&i_module==4))//当显示各种单据时,才显示出库方式

{%> <th align=center>出库方式</td>

<%}%>



<% if (s_type.equals("7")){%>

<th align=center>验收<br>通知单</td>

<%}else if (!(s_type.equals("3"))){ %>

<th align=center>发货<br>形式</td>

<%}%>

<th align=center>发货单<br>类型</td>

<th align=center>业务受<br>理员</td>

<th align=center>货物<br>状态</td>

<th align=center>处理<br>状态</td>

<th align=center>所在<br>岗位</td>



<% //if (s_type.equals("0")&&(i_module!=2||i_module==03&&i_other==8) //显示所有情况的发货单

if (!(i_module==3&&(i_other==8||i_other==9))&&s_type.equals("0")&&i_module!=2){//显示所有

out.print("<th align=center>单据夹</td>");

}

else {



switch(i_module){

case 1:

String s_temp1[]={"单据夹","单据夹","单据夹","单据夹","输入分发情况","单据夹","单据夹","单据夹","单据夹","输入分发情况"};

out.print("<th align=center>"+s_temp1[i_other]+"</td>");break;



case 2:

out.print("<th align=center>单据夹|运输计划</td>");break;



case 3:

String s_temp[] ={"单据夹","单据夹","单据夹","产生分割单","发货清单","发货清单","发货清单","单据夹","退单","存档","单据夹"};

out.print("<th align=center>"+s_temp[i_other]+"</td>");break;

case 4:

if (i_other==7)

out.print("<th align=center>产生发货清单</td>");

else if (i_other==6 || i_other==15)

out.print("<th align=center>操作</td>");

else

out.print("<th align=center>单据夹</td>");



}

}//end else

%>

</tr>



<%

int real_rownum = 0;

for(int i=(curPageNo-1)*ROWS_PER_PAGE + 1;i<=curPageNo*ROWS_PER_PAGE;i++)

{

String s_billno=null;

try

{

rs.absolute(i);

s_billno=rs.getString(1).trim();

}

catch(SQLException e)

{

break;

}

catch(Exception e)

{

break;

}



real_rownum ++;



if(s_billno.length()<6)

{

totalRows --;

continue;

}



String s_cardno=itemcard.checkIsExist2(s_billno);

if (!(s_cardno==null)&&!(s_cardno.equals("-1"))&&(i_module==3)&&(i_other==1||i_other==2))//发货单加入单据夹时,已加入单据夹不列出

{

totalRows --;

continue;

}

if ((s_cardno==null||s_cardno.equals("-1"))&&(i_module==3)&&(i_other==4||i_other==5))//产生发货清单,未加入单据夹不列出

{

totalRows --;

continue;

}



i_num++;



s_outmode=rs.getString(12);

if (s_outmode==null||s_outmode.trim().equals("0")||s_outmode.trim().equals("1")||s_outmode.trim().equals("01")){

s_outmodeName="自提";

}else if (s_outmode.trim().equals("03")){//汽车代运,提货人为客户代码

s_outmodeName="汽车代运";

}

else {//代运,提货人为客户代码

s_outmodeName="专线代运";

}

%>

<%if(i % 2 == 0){%>

<tr class="tr1">

<%}else{%>

<tr class="tr2">

<%}%>



<td align=center><%=totalRows - i +1%></td>

<td align=center>

<% String s_href="<a href=javascript:windowOpener('";







if (s_type.equals("0")){

if (s_outmodeName.equals("自提"))

{ s_url1=sign.getBillUrl("2");//取得自提发货单显示URL

out.print(s_href+s_url1+s_billno+"')>"+s_billno.substring(6,16));

} else{

s_url1=sign.getBillUrl("31");//取得代运发货单显示URL

out.print(s_href+s_url1+s_billno+"')>"+s_billno.substring(6,16));

}

}

else{



switch(i_module){//选择列表中针对发货单的有关处理的url

case 1://接运员

switch(i_other){

case 1://自提

s_url1=sendbill.getOperationUrl(s_module,3);

out.print(s_href+s_url1+"no="+s_billno+"')>"+s_billno.substring(6,16));

break;

case 2://代运

s_url1=sendbill.getOperationUrl(s_module,3);

out.print(s_href+s_url1+"send_no="+s_billno+"')>"+s_billno.substring(6,16));

break;



case 3://设置备料时间

s_url1=sendbill.getOperationUrl(s_module,4);

out.print(s_href+s_url1+s_billno+"')>"+s_billno.substring(6,16));

break;

case 4://分批发运(非指定)

case 9://分批发运(指定)

case 7:

case 8:

s_url1=sendbill.getOperationUrl(s_module,1);

//out.print(s_href+s_url1+s_billno+"')>"+s_billno.substring(6,16));

out.print(s_href+"../fhdlb/fhdlr_fpfy_last.jsp?no="+s_billno+"')>"+s_billno.substring(6,16));

break;

case 5://中转,自提代运(一次)

s_url1=sendbill.getOperationUrl(s_module,9);

out.print(s_href+s_url1+s_billno+"')>"+s_billno.substring(6,16));

break;

case 6://中转,代运发运(一次)

s_url1=sendbill.getOperationUrl(s_module,10);

out.print(s_href+s_url1+s_billno+"')>"+s_billno.substring(6,16));

break;

// case 7://中转,设置分割标志/分批发运

// s_url1=sendbill.getOperationUrl(s_module,11);

// out.print(s_href+s_url1+s_billno+"')>"+s_billno.substring(6,16));

// break;

// case 8://中转,专线分批发运

// s_url1=sendbill.getOperationUrl(s_module,12);

// out.print(s_href+s_url1+s_billno+"')>"+s_billno.substring(6,16));

// break;

case 0://输入代垫费用和配车清单

s_url1=sendbill.getOperationUrl(s_module,7);

out.print(s_href+s_url1+s_billno+"')>"+s_billno.substring(6,16));



}

break;

case 2://货运代理

s_url1=sendbill.getOperationUrl(s_module,1);

out.print(s_href+s_url1+"no="+s_billno+"')>"+s_billno.substring(6,16));

break;

case 3://业务受理员



switch(i_other){

case 1://自提

s_url1=sendbill.getOperationUrl(s_module,3);

//out.print(s_href+s_url1+s_billno+"')>"+s_billno.substring(6,16));

out.print(s_href+"../fhdlb/ffhdfh_pd_ywsly.jsp?no="+s_billno+"')>"+s_billno.substring(6,16));

break;

case 2://代运

s_url1=sendbill.getOperationUrl(s_module,3);

out.print(s_href+s_url1+s_billno+"')>"+s_billno.substring(6,16));

break;

case 3://生成发货分割单

s_url1=sendbill.getOperationUrl(s_module,4);

out.print(s_href+s_url1+s_billno+"')>"+s_billno.substring(6,16));

break;

case 4://生成发货清单

s_url1=sendbill.getOperationUrl(s_module,14);

out.print(s_href+s_url1+s_billno+"&out_mode=1')>"+s_billno.substring(6,16));

break;



case 5://生成发货清单(代运)

s_url1=sendbill.getOperationUrl(s_module,15);

out.print(s_href+s_url1+s_billno+"&out_mode=2')>"+s_billno.substring(6,16));



break;

case 10://中转

case 9://已退单

case 8://退单

case 7://以发代验

if (s_outmodeName.equals("代运"))

s_url1=sendbill.getOperationUrl(s_module,15);

else

s_url1=sendbill.getOperationUrl(s_module,14);



out.print(s_href+s_url1+s_billno+"&out_mode=1')>"+s_billno.substring(6,16));

break;

case 0://临时发货



s_url1=sendbill.getOperationUrl(s_module,5);

out.print(s_href+s_url1+s_billno+"','2')>"+s_billno.substring(6,16));

//out.println("here");





}//end of (other)



break;

case 4://理货员

switch(i_other){

case 0: //设置备料完成时间

s_url1=sendbill.getOperationUrl(s_module,3);

out.print(s_href+s_url1+"send_no="+s_billno+"')>"+s_billno.substring(6,16));

break;

case 1://设置分割发货

s_url1=sendbill.getOperationUrl(s_module,2);

out.print(s_href+s_url1+s_billno+"')>"+s_billno.substring(6,16));

break;

case 2://自提非指定发货

s_url1=sendbill.getOperationUrl(s_module,4);

out.print(s_href+s_url1+s_billno+"&out_mode=1')>"+s_billno.substring(6,16));

//out.print(s_href+"../fhdlb/ffhdfh_pd.jsp?no="+s_billno+"')>"+s_billno.substring(6,16));

break;

case 3://自提指定发货

s_url1=sendbill.getOperationUrl(s_module,1);

out.print(s_href+s_url1+s_billno+"')>"+s_billno.substring(6,16));

break;

case 4://代运非指定发货备料

s_url1=sendbill.getOperationUrl(s_module,6);

out.print(s_href+s_url1+s_billno+"&out_mode=2')>"+s_billno.substring(6,16));

break;

case 5://代运指定发货备料

s_url1=sendbill.getOperationUrl(s_module,9);

out.print(s_href+s_url1+s_billno+"')>"+s_billno.substring(6,16));

break;



case 14://过户



case 12://以发代验,待发

case 13: //以发代验,备料完成或已发完

case 6://生成发货清单(退单)

case 15://生成发货清单(变更)

case 16://已变更或退单



case 8: //自提,输入发货人,货物状态为"已生成发货清单"

case 7://自提,生成发货清单(多条堆码记录)

s_url1=sendbill.getOperationUrl(s_module,8);

out.print(s_href+s_url1+s_billno+"&out_mode=1')>"+s_billno.substring(6,16));

break;

case 9: //代运

case 17://代运,生成发货清单

case 11: //代运,备料完成

s_url1=sendbill.getOperationUrl(s_module,7);

out.print(s_href+s_url1+s_billno+"')>"+s_billno.substring(6,16));

break;

case 10://自提,已发完

out.print(s_href+"/servlet/TransferShow.TransferShow?file=/billshow/fhd_zt_trafficno.html&no="+s_billno+"')>"+s_billno.substring(6,16));

break;



}//end of switch(other)

}//END of switch

%>

</a></td>

<%

}//end of else

%>



<%

if (rs.getString(3)==null||"".equals(rs.getString(3).trim()))

Owner_ID="0000";

else

Owner_ID=rs.getString(3);

%>

<td align=center><%=list.getCustomerData(stmt_list,s_depot,Owner_ID)%></td>

<%





if (s_outmodeName.equals("自提")){

out.print(list.getTD(rs.getString(2)));

}

else {//代运,提货人为客户代码

out.print(list.getTD(list.getCustomerData(stmt_list,s_depot,rs.getString(2))));



}



/*显示*/

out.print(list.getTD(rs.getString(4)));



/*显示*/

out.print(list.getTD(rs.getString(5)));





/*显示

代运合同(货运代理)

出库方式(各种类型的发货单,中转业务,以发代验)

*/

if (i_module==2) {//代运合同,货运代理

String s_tmp=rs.getString(13);

if(s_tmp!=null&&s_tmp.length()>=16) s_tmp=s_tmp.substring(6);

out.print(list.getTD(s_tmp));



}

else if (s_type.equals("0")||s_type.equals("3")||(s_type.equals("5"))||(s_type.equals("7"))||(i_other==7 &&i_module==4))

{

/*当显示各种单据时,才显示出库方式*/

out.print(list.getTD(s_outmode+s_outmodeName));

}



/*显示

验收通知单编号(以发代验)

发货形式(非中转业务时)

*/



if (s_type.equals("7"))

{

//out.print(list.getTD(s_billno));

//以发代验,显示验收通知单编号

s_checkbillno = sendbillrecord.queryCheckBillNo(stmt_item,s_billno);//通过发货单找

if(s_checkbillno!=null&&s_checkbillno.length()>=16)

out.print(list.getTD(s_checkbillno.substring(6)));

else

out.print(list.getTD(s_checkbillno));



receiveCardno=itemcard.checkIsExist2(s_checkbillno);//得到验收单所在的收货单据夹

}////

else if (!(s_type.equals("3")))//中转业务发货形式

out.print(list.getTD(rs.getString("Clear_Tag")+sendbill.getSendType(rs.getString("Clear_Tag"))));



/*显示发货单类型*/

out.print(list.getTD(rs.getString(11)+sendbill.getType(rs.getString(11))));



/*显示操作人员*/

out.print(list.getTD(list.getOperatorName(stmt_list,rs.getString(7))));



/*显示货物状态*/

out.print(list.getTD(rs.getString(10)+sendbill.getItemState(rs.getString(10))));



/*显示处理状态*/

out.print(list.getTD(rs.getString(8)+sendbill.getDisposeState(rs.getString(8))));



/*显示岗位名称*/

out.print(list.getTD(sign.getModuleName(rs.getString("Module_ID"))));



%>



<td align=center>



<%

String s_url2;

if (i_module==3&&i_other==8){



s_url1=new String(sendbill.getOperationUrl(s_module,17));

out.println("<a href=javascript:windowOpener('"+s_url1+s_billno+"')>退单</a></td>");



}else if (i_module==3&&i_other==9){



s_url1=new String(sendbill.getOperationUrl(s_module,18));

out.println("<a href=javascript:windowOpener('"+s_url1+s_billno+"')>存档</a></td>");



}else if(s_type.equals("0")&&i_module!=2&&i_other!=7&&i_other!=17&&i_other!=3&&i_other!=5){//显示所有

if(s_cardno==null||s_cardno.equals("-1"))

out.println("未加入");

else {

s_url1=sendbill.getOperationUrl(s_module,0);//0为所有模块的单据夹显示的URL的序号

//out.println("<a href=javascript:windowOpener('"+s_url1+s_cardno+"')>"+s_cardno.substring(6)+"</a>");

out.println("<a href=javascript:windowOpener('../main/current_itemcard_jyy.jsp?Module_ID=01&no="+s_cardno+"&Item_Card_Type=2')>"+s_cardno.substring(6)+"</a>");

}



}

else{//显示符合条件

switch(i_module){//选择列表中操作对应的url

case 1://接运员

switch(i_other){

case 1://自提

case 2://代运

case 3://设置备料时间

if(s_cardno==null||s_cardno.equals("-1"))

{

out.print("未加入");

}

else{//

s_url1=new String(sendbill.getOperationUrl(s_module,6));

out.println("<a href=javascript:windowOpener('"+s_url1+"01&no="+s_cardno+"')>"+s_cardno.substring(6)+"</a>");

}

break;



case 4://代运分批发运(非指定)



s_url1=new String(sendbill.getOperationUrl(s_module,14));

out.println("<a href=javascript:windowOpener('"+s_url1+s_billno+"&out_mode=2')>输入发货情况</a></td>");



//out.println("<a href=javascript:windowOpener('../fhdlb/fhdlr_fpfy_pd.jsp?no="+s_billno+"')>编辑</a></td>");

break;

case 9://代运分批发运(指定发货,根据发货清单进行分发工作)



s_url1=new String(sendbill.getOperationUrl(s_module,13));

out.println("<a href=javascript:windowOpener('"+s_url1+s_billno+"')>输入发货情况</a></td>");



//out.println("<a href=javascript:windowOpener('../fhdlb/fhdlr_fpfy_pd.jsp?no="+s_billno+"')>编辑</a></td>");

break;

case 5://一次//中转自提

case 6://一次发运//中转自提

if(s_cardno==null||s_cardno.equals("-1"))

{

out.print("未加入");

}

else{

s_url1=new String(sendbill.getOperationUrl(s_module,0));

out.println("<a href=javascript:windowOpener('"+s_url1+s_cardno+"')>"+s_cardno.substring(6)+"</a>");

}

break;



case 7://分批发运//中转自提

s_url1=new String(sendbill.getOperationUrl(s_module,11));

out.println("<a href=javascript:windowOpener('"+s_url1+s_billno+"&out_mode=1')>输入发运情况</a></td>");

break;

case 8://分批发运//中转代运

s_url1=new String(sendbill.getOperationUrl(s_module,12));

out.println("<a href=javascript:windowOpener('"+s_url1+s_billno+"')>输入发运情况</a></td>");

break;

case 0://输入代垫费用和配车清单



if(s_cardno==null||s_cardno.equals("-1"))

{

out.print("未加入单据夹");

}

else{

s_url1=new String(sendbill.getOperationUrl(s_module,0));

s_url2=new String(sendbill.getOperationUrl(s_module,8));

out.println("<a href=javascript:windowOpener('"+s_url1+s_cardno+"')>查看单据夹</a>");

// out.println("|<a href=javascript:windowOpener('"+s_url2+s_cardno+"')>产生配车清单</a>");

}

break;



}//end of switch(other)



break;

case 2://货运代理

if(s_cardno==null||s_cardno.equals("-1"))

{

out.print("未加入");

}

else{

s_url1=new String(sendbill.getOperationUrl(s_module,0));

s_url2=new String(sendbill.getOperationUrl(s_module,2));

out.println("<a href=javascript:windowOpener('"+s_url1+s_cardno+"')>"+s_cardno.substring(6)+"</a>");

out.print("|<a href="+s_url2+s_billno+">输入</a></td>");

}



break;



case 3://业务受理

String clearTag=rs.getString("Clear_Tag");

try

{

clearTag = clearTag.trim();

}

catch(Exception e)

{

clearTag = "2";

}

switch(i_other){

case 1://自提

case 2://代运

case 7://以发代验

case 0://临时发货

case 10://中转



if(s_cardno==null||s_cardno.equals("-1"))

{ String stemp;

if (i_other==10)

stemp="&itemcard_type=4";

else if (i_other==4){

stemp="&itemcard_type=3";

} else if (i_other==7){

stemp="&itemcard_type=6";

}else

stemp="&itemcard_type=2";



s_url1=new String(sendbill.getOperationUrl(s_module,2));

s_url2=new String(sendbill.getOperationUrl(s_module,1));

out.print("<a href="+s_url1+"billno="+s_billno+"&Module_ID="+s_module+"&Owner_ID="+Owner_ID+">加入</a>");

out.print("|<a href="+s_url2+"no="+s_billno+"&Module_ID="+s_module+stemp+"&chr="+Owner_ID.trim()+">新建</a></td>");

}

else{

s_url1=new String(sendbill.getOperationUrl(s_module,0));

out.println("<a href=javascript:windowOpener('"+s_url1+s_cardno+"&out_mode=1')>"+s_cardno.substring(6)+"</a>");

}

break;

case 3://生成发货分割单

s_url1=new String(sendbill.getOperationUrl(s_module,4));

out.println("<a href=javascript:windowOpener('"+s_url1+s_billno+"')>生成|修改</a></td>");

break;

case 4://自提,生成发货清单(非指定发货or 指定发货)

if (clearTag.equals("2"))//非指定

{

s_url1=sendbill.getOperationUrl(s_module,9);//modified by qiu 2001-04-26

//s_url2=sendbill.getOperationUrl(s_module,18);//拆件发货清单

s_url2="../sendlist-new/CSB-list.jsp?Send_Bill_No=";

out.print("<a href=\"javascript:windowOpener('"+s_url1+s_billno+"&out_mode=1')\">发货清单</a>");

out.print("|<a href=\"javascript:windowOpener('"+s_url2+s_billno+"&out_mode=1')\">拆件发货</a></td>");

}

else if (clearTag.equals("3"))//指定

{

s_url1=sendbill.getOperationUrl(s_module,10);



out.print("<a href=\"javascript:windowOpener('"+s_url1+s_billno+"&out_mode=1')\">发货清单</a></td>");



}



break;

case 5://代运生成发货清单(非指定发货or指定发货)

if (clearTag.equals("2"))//非指定

{

if (s_outmodeName.equals("汽车代运")){

s_url1=sendbill.getOperationUrl(s_module,19);

out.print(s_href+s_url1+s_billno+"&out_mode=03')>"+s_billno.substring(6,16));

}else {//专线代运

s_url1=sendbill.getOperationUrl(s_module,9);

out.print(s_href+s_url1+s_billno+"&out_mode=2')>"+s_billno.substring(6,16));

}

}

else if (clearTag.equals("3")){//指定

s_url1=sendbill.getOperationUrl(s_module,11);

out.print("<a href=\"javascript:windowOpener('"+s_url1+s_billno+"&out_mode=2')\">发货清单</a></td>");

}

break;

case 8://退单

s_url1=new String(sendbill.getOperationUrl(s_module,17));

out.println("<a href=javascript:windowOpener('"+s_url1+s_billno+"')>退单</a></td>");

case 9://已退单

s_url1=new String(sendbill.getOperationUrl(s_module,18));

out.println("<a href=javascript:windowOpener('"+s_url1+s_billno+"')>存档</a></td>");



}//end of switch(other)

break;

case 4://理货员

switch (i_other){



case 14://过户,码单产生码单



s_url1=sendbill.getOperationUrl(s_module,10);

//out.print(s_href+s_url1+s_billno+"&Check_Store_Bill_NO="+s_checkbillno+"')>产生码单");

out.print("<a href=\"javascript:windowOpener('"+s_url1+s_billno+"&other="+i_other+"')\">发货清单</a></td>");

break;



case 12://验收通知单产生码单,加入以发代验收货单据夹

s_url1=new String(sendbill.getOperationUrl(s_module,13));//

//out.println(s_url1);

//s_checkbillno=s_billno;

out.print("<a href=javascript:windowOpener('"+s_url1+s_billno+"¬ifyBillNo="+s_checkbillno+"&cardno="+receiveCardno+"&Out_Mode=01')>产生码单</a></td>");

break;

case 17://汽车代运,产生发货清单(多条堆码,一条堆码),回填实发数

//专线代运,产生发货清单(多条堆码,一条堆码),填备料数

if (s_outmodeName.equals("汽车代运")){//汽车代运,产生发货清单(多条堆码,一条堆码),回填实发数

s_url1=new String(sendbill.getOperationUrl(s_module,18));

out.print("<a href=\"javascript:windowOpener('"+s_url1+s_billno+"&out_mode=03')\">发货清单</a></td>");



}else{//专线代运,产生发货清单(多条堆码,一条堆码),填备料数

s_url1=new String(sendbill.getOperationUrl(s_module,10));//

out.print("<a href=\"javascript:windowOpener('"+s_url1+s_billno+"&out_mode=2')\">发货清单</a></td>");

}

break;

case 7://自提,产生发货清单(多条堆码,一条堆码),回填实发数

s_url1=new String(sendbill.getOperationUrl(s_module,10));//

s_url2=new String(sendbill.getOperationUrl(s_module,18));//

// s_url2="../sendlist-new/CSB-list.jsp?Send_Bill_No=";

out.print("<a href=\"javascript:windowOpener('"+s_url1+s_billno+"&out_mode=1')\">发货清单</a>");

out.print("|<a href=\"javascript:windowOpener('"+s_url2+s_billno+"&out_mode=1')\">拆件发货</a></td>");

break;

case 6://已产生发货清单,退单

s_url1=new String(sendbill.getOperationUrl(s_module,15));//

out.print("<a href="+s_url1+s_billno+"&ModuleID=04 target=_black>退单</a></td>");

break;

case 15://已产生发货清单,变更

s_url1=new String(sendbill.getOperationUrl(s_module,16));//

out.print("<a href="+s_url1+s_billno+"&ModuleID=04 target=_black>变更</a></td>");

break;

case 3://自提指定发货

case 5://代运指定发货(专线代运,汽车代运)

s_url2=new String(sendbill.getOperationUrl(s_module,1));//

out.print("<a href=javascript:windowOpener('"+s_url2+s_billno+"')>发货清单</a></td>");

//modify by zsh 2001/11/26

/*

if (s_outmodeName.equals("汽车代运")){

s_url2=new String(sendbill.getOperationUrl(s_module,1));//

out.print("<a href=javascript:windowOpener('"+s_url2+s_billno+"')>发货清单</a></td>");

}else {//专线代运

s_url2=new String(sendbill.getOperationUrl(s_module,1));//

out.print("<a href=javascript:windowOpener('"+s_url2+s_billno+"')>发货清单</a></td>");

}

*/

//modify by zsh 2001/11/26 end

break;

case 9://通过单据夹输入发货清单发货人

case 8://通过单据夹输入发货清单发货人

if(s_cardno==null||s_cardno.equals("-1"))

out.print("未加入");

else{//

s_url1=new String(sendbill.getOperationUrl(s_module,17));

out.println("<a href=javascript:windowOpener('"+s_url1+s_cardno+"')>"+s_cardno.substring(6)+"</a>");

}

break;



case 16://已变更或退单

default:



if(s_cardno==null||s_cardno.equals("-1"))

out.print("未加入");

else{//

s_url1=new String(sendbill.getOperationUrl(s_module,0));

out.println("<a href=javascript:windowOpener('"+s_url1+s_cardno+"')>"+s_cardno.substring(6)+"</a>");

}

}//end of switch(other)

}//END of switch



}//end of else

%>



</tr>

<%

}

if(i_num==0){

if (s_type.equals("0"))

out.print("<tr><td colspan=14>没有满足条件的发货单</td></tr>");

else

out.print("<tr><td colspan=13>没有满足条件的发货单</td></tr>");

}





//***********

conn.close();



%>

<%

if(intPageCount > 1 && real_rownum > ROWS_PER_PAGE /4)

{

%>

<table width="100%">

<tr>

<form onsubmit="javascript:return _gotoPage(this)">

<td width="100%" align="center">

当前第 <%=curPageNo%> 页

<strong>|</strong>

共 <%=intPageCount%> 页

<strong>|</strong>



<%if(curPageNo==1){%>

第一页

<%}else{%>

<A HREF=<%=response.encodeURL(request.getRequestURI()+"?page_no=1&Module_ID="+s_module+"&Bill_Type="+s_type+"&Other="+s_other)%>>第一页</a>

<%}%>

<strong>|</strong>

<%if(curPageNo==1){%>

上一页

<%}else{%>

<A HREF=<%=response.encodeURL(request.getRequestURI()+"?page_no="+(curPageNo-1)+"&Module_ID="+s_module+"&Bill_Type="+s_type+"&Other="+s_other)%>>上一页</a>

<%}%>

<strong>|</strong>

<%if ( curPageNo >= intPageCount){%>

下一页

<%}else{%>

<A HREF=<%=response.encodeURL(request.getRequestURI()+"?page_no="+(curPageNo+1)+"&Module_ID="+s_module+"&Bill_Type="+s_type+"&Other="+s_other)%>>下一页</a>

<%}%>

<strong>|</strong>

<%if( curPageNo >= intPageCount){%>

最后一页

<%}else{%>

<A HREF=<%=response.encodeURL(request.getRequestURI()+"?page_no="+intPageCount+"&Module_ID="+s_module+"&Bill_Type="+s_type+"&Other="+s_other)%>>最后一页</a>

<%}%>

<strong>|</strong>

转至 <input type="text" name="page_no" value="<%=curPageNo%>" size = 5> 页

</td>

<input type="hidden" name="Module_ID" value="<%=s_module%>">

<input type="hidden" name="Bill_Type" value="<%=s_type%>">

<input type="hidden" name="Other" value="<%=s_other%>">

<input type="hidden" name="PageCount" value="<%=intPageCount%>">

</form>

</tr>

</table>

<%

}

%>



<script language=javascript>

<!-- Hide

//var newWindow = null

function windowOpener(loadpos)

{

var newWindow = null

if (! newWindow || newWindow.closed)

{

newWindow = window.open(loadpos,"surveywin","toolbar,resizable,scrollbars,dependent,width=400,height=280");

}else

{

newWindow.focus();

}

}

//end

-->

</script>

</table>

<p align="left">总共有记录<font color=red size=3><%=totalRows%></font>条</p>

</body>

</html>

Yang_Sun 2002-02-02
  • 打赏
  • 举报
回复
你把你的jsp贴出来,因为有的时候,就是中文出的毛病,各个服务器对中文解决办法不同。
sharetop 2002-02-01
  • 打赏
  • 举报
回复

这是经常的事,我以前也总遇到,主要是jsp不能解析。特别有有汉字的地方。

我也不知道如何办好?

一般把这个jsp的相应地方,删除掉,总输入一下,(仍然是原来的内容),再把work或其它临时目录下被编译成的class/java文件也删除,再试一下?

但这样做有时行有时也不行。


kfx 2002-02-01
  • 打赏
  • 举报
回复
不可能少的,因为tomcat的语法检查通过了,否则tomcat通不过的
pengji 2002-02-01
  • 打赏
  • 举报
回复
检查程序,提示说你的代码中少了个},再查查!

81,122

社区成员

发帖
与我相关
我的任务
社区描述
Java Web 开发
社区管理员
  • Web 开发社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧