2018-06-03 22:26:41 +08:00

49 lines
2.2 KiB
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<%@ page contentType="text/html; charset=GBK"%><%@ include file="/IncludeBeginMDAJAX.jsp"%><%
//点击鼠标sFlag ="1"
String sFlag = CurPage.getParameter("Flag");
String sSql,WhereCase;
ASResultSet rsTips=null;
String sTipsFlag;
int countApplay=0;
WhereCase= " from EVALUATE_RECORD ER, FLOW_TASK FT "+
" where ER.SerialNo = FT.ObjectNo and ER.ModelNo like '0%' "+
" and FT.ObjectType='Customer' and FT.UserID='"+CurUser.getUserID()+"' "+
" and (FT.EndTime is null or FT.EndTime = ' ') "+
" and (FT.PhaseAction is null or FT.PhaseAction = ' ') ";
if(sFlag.equals("0")){
sSql = " select count(ER.SerialNo) ";
sSql = sSql+ WhereCase;
rsTips = Sqlca.getResultSet(sSql);
if(rsTips.next()) countApplay = rsTips.getInt(1);
out.println(countApplay);
rsTips.getStatement().close();
}else if(sFlag.equals("1")){
sSql= " select getModelName(ER.ModelNo)||'&nbsp;['||getCustomerName(ER.ObjectNo)||']'||'&nbsp;['||FT.PhaseName||']', "+
" FT.ApplyType,FT.BeginTime,FT.PhaseName,FT.PhaseNo,FT.PhaseType ";
sSql = sSql+ WhereCase + " order by ER.ModelNo,FT.BeginTime";
rsTips = Sqlca.getResultSet(sSql);
while(rsTips.next()){
if (rsTips.getString(3).substring(0,10).equals(StringFunction.getToday()))
sTipsFlag="&nbsp;&nbsp;";
else
sTipsFlag="<img src='"+sWebRootPath+"/DeskTop/WorkTipsAJAX/icon_alert.gif' width=12 height=12 alt='该工作完成期限已超过1天'>&nbsp;";
%>
<tr>
<%
if(rsTips.getString(5).equals("0010")){//新增还未提交或发回补充资料
%>
<td align="left" ><%=sTipsFlag%><a href="javascript:OpenComp('CreditApplyMain','/Common/WorkFlow/ApplyMain.jsp','ApplyType=<%=rsTips.getString(2)%>&PhaseType=<%=rsTips.getString(6)%>&DefaultTVItemName=<%=rsTips.getString("PhaseName")%>','_top','')"><%=rsTips.getString(1)%>&nbsp;</a></td>
<%
}else{//待审查审批
%>
<td align="left" ><%=sTipsFlag%><a href="javascript:OpenComp('CreditApproveMain','/Common/WorkFlow/ApproveMain.jsp','ApproveType=CreditCogApprove&DefaultTVItemName=<%=rsTips.getString("PhaseName")%>','_top','')"><%=rsTips.getString(1)%>&nbsp;</a></td>
<%
}
%>
</tr><br/>
<%
}
rsTips.getStatement().close();
}
%><%@ include file="/IncludeEndAJAX.jsp"%>