📄 special_plan_task.jsp
字号:
</td>
<td class="common" >
<input type="checkbox" name="chleader" value="" onClick="changeleader()" >
分 管
<select name="leader" disabled>
<% checked="";
for(int i=0;i<userDept.length;i++){
checked="";
if(null==userDept[i][2])
continue;
if(User_ID!=null&&User_ID.equals(userDept[i][2])){
checked=" selected";
}
out.println("<option value=\""+userDept[i][2]+"\""+checked+">"+userDept[i][3]+"</option>");
}
%>
</select>
</td>
<td class="common" ><input type="checkbox" name="chD_PreMoney" value="" onClick="changeD_PreMoney()" >
预支
<select name="D_PreMoney_Con">
<option value="1">>=</option>
<option value="2"><=</option>
</select> <input type="text" name="D_PreMoney" style="width:60" class="middle" value="0" disabled>
</td>
</tr>
<tr>
<td class="common" ><input type="checkbox" name="chD_Importance" value="" onClick="changeD_Importance()" >
级别
<select name="D_Importance" style="font-size:9pt;font-color:#FFFFFF;width:90" disabled>
<% tlset.beforefirst();
while(tlset.next()){%>
<option value="<%=tlset.getO_Name()%>"><%=tlset.getO_Name()%></option>
<%}%>
</select> </td>
<td class="common" >
<input type="checkbox" name="chkuser" value="0" onClick="changeuser()" >
负责人
<select name="select1" disabled>
<%
checked="";
for(int i=0;i<userDept.length;i++){
if(userIDShow.equals(userDept[i][2])){
checked=" selected";
}else{
checked="";
}
/*
如果 userDept[i][2]为空 则不显示
*/
if(null==userDept[i][2])
continue;
if(selfDeptID.equals(userDept[i][0])){
out.println("<option value=\""+userDept[i][2]+"\""+checked+">"+userDept[i][3]+"</option>");
}
}
%>
</select> </td>
<td class="common" ><input type="checkbox" name="chD_ContactMoney" value="" onClick="changeD_ContactMoney()" >
合同 <select name="D_ContactMoney_Con">
<option value="1">>=</option>
<option value="2"><=</option>
</select> <input type="text" name="D_ContactMoney" value="0" style="width:60" class="middle" disabled>
</td>
</tr>
<tr>
<td class="tdC" colspan="1"><input type="checkbox" name="chD_Cancellation" value="" onClick="changeD_Cancellation()" >
作废
<select name="D_Cancellation" style="font-size:9pt;font-color:#FFFFFF;width:90" disabled>
<option value="y">已作废</option>
<option value="n" >未作废</option>
</select> </td>
<td colspan="2" align="left" class="tdC" >
<input type="submit" value="查 询" onmouseover="this.className='button2'" onmouseout="this.className='button1'" class="button1" >
</td>
</tr>
</table>
</form>
<%}%>
<!--add by tang 2004.06.04 end任务查询-->
<!--<%//if(!tasksearch.equals("true")){%>
<table border="0" cellpadding="0" cellspacing="0" width="98%" align="center" class="collapse">
<tr class="common">
<td colspan="24" align="right" class="common">
<%//if(i32 > 0){%>
<input type="button" onmouseover="this.className='button2'" onmouseout="this.className='button1'" class="button1" value="添 加" onClick="document.location.href='/krm/servlet/DetailServlet?module=detail&&status=i<%//if(tasklevel!=null){%>&&tasklevel=<%//=tasklevel%><%//}%><%//if(userid!=null){%>&&userid=<%//=userid%><%//}%><%//if(aserial!=null){%>&&aserial=<%//=aserial%><%//}%><%//if(pserial!=null){%>&&pserial=<%//=pserial%><%//}%><%//if(pcode!=null){%>&&pcode=<%//=pcode%><%//}%><%//if(yyear!=null){%>&&year=<%//=yyear%><%//}%>&&queryterm=obtain'">
<%//}%>
</td>
</tr>
</table>
<%//}%>-->
<table border="0" width="98%" align="center" class="collapse">
<tr >
<td class="tdA" colspan="24" >
任务列表</td>
</tr>
<tr>
<td align="left" class="tdB" width=7%" height="20" nowrap > 编号</td>
<td align="left" class="tdB" width="7%" nowrap >
分管</td>
<td align="left" class="tdB" width="7%" nowrap> 负责人</td>
<td align="left" class="tdB" width="7%" nowrap >
助理</td>
<td align="center" class="tdB" width="18%" nowrap> 任务名称 </td>
<td align="right" class="tdB" width="6%" nowrap>目标</td>
<td align="right" class="tdB" width="6%" nowrap>里程碑</td>
<td align="right" class="tdB" width="6%" nowrap>意向</td>
<td align="right" class="tdB" width="6%" nowrap>预支</td>
<td align="right" class="tdB" width="6%" nowrap>预利</td>
<td align="right" class="tdB" width="6%" nowrap>合同</td>
<td align="right" class="tdB" width="6%" nowrap>收入</td>
<td align="right" class="tdB" width="6%" nowrap>支出</td>
<td align="center" class="tdB" width="6%" nowrap>利润</td>
<td align="right" class="tdB" width="6%" nowrap>应收</td>
<td align="right" class="tdB" width="6%" nowrap>应支</td>
<!--add by tang end 2004.03.06-->
<td align="right" class="tdB" width="6%" nowrap>
自评</td>
<!-- <td align="right" class="tdB" width="6%" nowrap> 督办</td>-->
<!--add by tang begin 2004.03.06-->
<td align="right" class="tdB" width="6%" nowrap> 考核</td>
<td align="center" class="tdB" width="6%" nowrap> 评分</td>
<%if(!tasksearch.equals("true")){%>
<td align="center" class="tdB" width="10%" colspan="2" nowrap> 操作</td>
<%}%>
</tr>
<%int i = 0;
boolean kaoheRight=false;
boolean PingfenRight=false;
if(q36>0){
kaoheRight=true;
}if(q37>0){
PingfenRight=true;
}
String curruserid = userinfo.GetUserID();
String deptid=userinfo.GetDeptID();
int incomenum=0;
if((null != set) && (set.size() > 0)){
set.beforefirst();
while(set.next()){
boolean hasRight=false;
Iterator it = userids.iterator();
while(it.hasNext())
{
String strit = it.next().toString();
if( (strit.toString()).equals(set.getD_ManagerID())
|| (strit.toString()).equals(set.getUser_ID())
|| (strit.toString()).equals(set.getD_AidPerson())
|| ( ((set.getD_IntendPerson()).indexOf("#"+strit.toString()+"#"))!=-1)
)
{
hasRight=true;
}
}
%>
<tr <%if(set.getD_Cancellation().equals("y")){%> bgcolor="#cccccc"<%}
else {if((i+1)%2==0){ %> class="bgcolor"<%}}%>>
<td align="left" class="common" width="6%" > <%=set.getD_Num()%></td>
<td align="left" class="common" width="7%" nowrap>
<%if((null != set.getUser_ID()) && (!set.getUser_ID().trim().equals(""))){
out.println(StringFormat.changeHTMLTags(set.getI_Name()));
}else{
out.println("无");}%>
</td>
<td align="left" class="common" width="7%" >
<%if(null != set.getD_ManagerName())
out.println(StringFormat.changeHTMLTags(set.getD_ManagerName()));
%>
</td>
<!--add by tang 2004.06.18 增加助理-->
<td align="left" class="common" width="7%" nowrap>
<%String aidpersonid = set.getD_AidPerson();
if((set.getD_AidPerson().equals("")))
{ out.println("");
}else{
PersonInfoBusiness bibu = new PersonInfoBusiness();
bibu.setQueryWhere(aidpersonid);
bibu.execute("query");
PersonInfoRecordSet PiRdSet = bibu.getRecordSet();
PiRdSet.next();
out.println(StringFormat.changeHTMLTags(PiRdSet.getI_Name()));
}%>
</td>
<!--add by tang 20040618-->
<td align="center" class="common" width="18%" >
<a <%if(hasRight){%> href="#" onClick="MM_openBrWindow('/krm/servlet/DetailServlet?module=detail&&status=q&&queryterm=primarykey&&id=<%=set.getD_Serial()%>&&isproblem=<%=isproblem%>','detail','resizable=yes,width=800,height=500,top=2,left=2,scrollbars=no')" <%}%>><%=StringFormat.changeHTMLTags(set.getD_Topic())%></a></td>
<td align="center" class="common" width="6%" nowrap>
<a<%if(hasRight){%> href="/krm/servlet/DetailServlet?module=deaim&&status=q&&queryterm=show&&D_Serial=<%=set.getD_Serial()%>"<%}%>>
<%
int aimcount=0;
if(null != set.getD_Goalcount()){
aimcount=Integer.parseInt(set.getD_Goalcount());
}
out.print(aimcount);
aimnumber = aimnumber + aimcount;
%>
<%//=(String)Count7.get(i)%></a>
</td>
<%// aimnumber = aimnumber + Float.parseFloat((String)Count7.get(i));
%>
<td align="center" class="common" width="6%" nowrap>
<a<%if(hasRight){%> href="/krm/servlet/DetailServlet?module=deplan&&status=q&&queryterm=show&&D_Serial=<%=set.getD_Serial()%>"<%}%>>
<%
int plancount=0;
if(null != set.getD_Plancount()){
plancount=Integer.parseInt(set.getD_Plancount());
}
out.print(plancount);
licheng = licheng + plancount;
%>
<%//=(String)Count6.get(i)%>
</a>
</td>
<%// licheng = licheng + Float.parseFloat((String)Count6.get(i));
%>
<td align="right" class="common" width="6%" nowrap>
<%
float wantmoney = Float.parseFloat(set.getD_WantMoney());
m1 = m1 + wantmoney ;
DecimalFormat df51 = new DecimalFormat("#####0.0");
out.println(df51.format(wantmoney));
%>
</td>
<td align="right" class="common" width="6%" nowrap>
<%
float PreMoney = Float.parseFloat(set.getD_PreMoney());
m2 = m2 + PreMoney ;
DecimalFormat df61 = new DecimalFormat("#####0.0");
out.println(df61.format(PreMoney));
%>
</td>
<td align="right" class="common" width="6%" nowrap>
<%
float yulimoney = wantmoney - PreMoney;
m8 = m8 + yulimoney ;
DecimalFormat df77 = new DecimalFormat("#####0.0");
out.println(df77.format(yulimoney));
%>
</td>
<td align="right" class="common" width="6%" nowrap>
<%
float ContactMoney = Float.parseFloat(set.getD_ContactMoney());
m3 = m3 + ContactMoney ;
DecimalFormat df71 = new DecimalFormat("#####0.0");
out.println(df71.format(ContactMoney));
%>
</td>
<td align="right" class="common" width="6%" nowrap>
<a <%if(hasRight){%> href="/krm/servlet/FinIncomeServlet?status=q&module=in&Year=<%=nowyear%>&Month=0&TaskID=<%=set.getD_Serial()%>" <%}%>><%
float D_Income = (Float.parseFloat(set.getD_Income()))/(Float.parseFloat("10000.0"));;
m4 = m4 + D_Income ;
DecimalFormat df11 = new DecimalFormat("#####0.0");
out.println(df11.format(D_Income));
%></a>
</td>
<%
FinApprovalStatInfoBusiness business = new FinApprovalStatInfoBusiness();
FinanceExpenseAccountRecordSet approvalStatRecordSet = new FinanceExpenseAccountRecordSet();
approvalStatRecordSet.setItemSum();
business.setFinanceExpenseAccountRecordSet(approvalStatRecordSet);
business.setQueryWhereDetails();
int num = business.execute("querystat");
FinanceExpenseAccountRecordSet Expenseset=business.getFinanceExpenseAccountRecordSet();
String moneysum="0";
Expenseset.beforefirst();
while(Expenseset.next())
{
if(set.getD_Serial().equals(Expenseset.getEI_ItemID()))
{
moneysum=Expenseset.getMoneySum();
}
}
%>
<td align="right" class="common" width="6%" nowrap>
<a <%if(hasRight){%> href="/krm/servlet/FinIncomeServlet?status=q&module=out&Year=<%=nowyear%>&Month=0&TaskID=<%=set.getD_Serial()%>" <%}%>><%
/*李光文2004-06-15任务支出登记*/
FinIncomePastRecordSet incomepastrs=new FinIncomePastRecordSet();
FinIncomePastBusiness incomepastbs=new FinIncomePastBusiness();
incomepastbs.setQueryWhereID(set.getD_Serial());
int pastnum = incomepastbs.execute("query");
incomepastrs =incomepastbs.getFinIncomePastRecordSet();
float inComeMoney=0;
while(incomepastrs.next()){
String pastMoney = incomepastrs.getIP_Money();
float inCome=(Float.parseFloat(pastMoney))/(Float.parseFloat("10000.0"));
inComeMoney=inCome+inComeMoney;
}
float MoneySum =(Float.parseFloat(moneysum))/(Float.parseFloat("10000.0"));
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -