📄 diaryamend.jsp
字号:
if((diaryForTaskRs.getDFT_DiaryPeriod().trim().equals(PD_ID[i]))
&&(diaryForTaskRs.getDFT_TaskID().equals("1"))
&&(diaryForTaskRs.getDFT_WriteDate().equals(writeDate))){
%>
selected
<%
}
}
diaryForTaskRs.beforefirst();
%>
>技术</option>
<option value="2"
<%
while(diaryForTaskRs.next()){
if((diaryForTaskRs.getDFT_DiaryPeriod().trim().equals(PD_ID[i]))
&&(diaryForTaskRs.getDFT_TaskID().equals("2"))
&&(diaryForTaskRs.getDFT_WriteDate().equals(writeDate))){
%>
selected
<%
}
}
diaryForTaskRs.beforefirst();
%>
>管理</option>
<option value="3"
<%
while(diaryForTaskRs.next()){
if((diaryForTaskRs.getDFT_DiaryPeriod().trim().equals(PD_ID[i]))
&&(diaryForTaskRs.getDFT_TaskID().equals("3"))
&&(diaryForTaskRs.getDFT_WriteDate().equals(writeDate))){
%>
selected
<%
}
}
diaryForTaskRs.beforefirst();
%>
>市场</option>
<option value="4"
<%
while(diaryForTaskRs.next()){
if((diaryForTaskRs.getDFT_DiaryPeriod().trim().equals(PD_ID[i]))
&&(diaryForTaskRs.getDFT_TaskID().equals("4"))
&&(diaryForTaskRs.getDFT_WriteDate().equals(writeDate))){
%>
selected
<%
}
}
diaryForTaskRs.beforefirst();
%>
>资本</option>
<option value="5"
<%
while(diaryForTaskRs.next()){
if((diaryForTaskRs.getDFT_DiaryPeriod().trim().equals(PD_ID[i]))
&&(diaryForTaskRs.getDFT_TaskID().equals("5"))
&&(diaryForTaskRs.getDFT_WriteDate().equals(writeDate))){
%>
selected
<%
}
}
diaryForTaskRs.beforefirst();
%>
>销售</option>
<option value="6"
<%
while(diaryForTaskRs.next()){
if((diaryForTaskRs.getDFT_DiaryPeriod().trim().equals(PD_ID[i]))
&&(diaryForTaskRs.getDFT_TaskID().equals("6"))
&&(diaryForTaskRs.getDFT_WriteDate().equals(writeDate))){
%>
selected
<%
}
}
diaryForTaskRs.beforefirst();
%>
>学院</option>
<option value="7"
<%
while(diaryForTaskRs.next()){
if((diaryForTaskRs.getDFT_DiaryPeriod().trim().equals(PD_ID[i]))
&&(diaryForTaskRs.getDFT_TaskID().equals("7"))
&&(diaryForTaskRs.getDFT_WriteDate().equals(writeDate))){
%>
selected
<%
}
}
diaryForTaskRs.beforefirst();
%>
>其他</option>
</select>
<%
}else{
%>
<select name="TaskItem<%=i%>" size=1 onChange="return count(TaskItem<%=i%>)">
<option value="0" selected > ---无--- </option>
<%
String strSelect="";
boolean a=false;
if(null!=detailRs){
Loop:
while(detailRs.next()){
%>
<option
value="<%=detailRs.getD_Serial()%>" > <%=detailRs.getD_Topic()%>
</option>
<%
if(null!=diaryForTaskRs){
while(diaryForTaskRs.next()){
if((diaryForTaskRs.getDFT_DiaryPeriod().trim().equals(PD_ID[i]))
&&(diaryForTaskRs.getDFT_TaskID().equals(detailRs.getD_Serial()))){
strSelect="selected";
a=true;
%>
<!--selected-->
<%
if(a){
%>
<option
selected value="<%=detailRs.getD_Serial()%>" > <%=detailRs.getD_Topic()%>
</option>
<%
}
%>
<%
continue Loop;}
;}
diaryForTaskRs.beforefirst();
}
%>
<%
}
detailRs.beforefirst();
}
%>
<option value="10"
<%
while(diaryForTaskRs.next()){
if((diaryForTaskRs.getDFT_DiaryPeriod().trim().equals(PD_ID[i]))
&&(diaryForTaskRs.getDFT_TaskID().equals("10"))){
%>
selected
<%
}
}
diaryForTaskRs.beforefirst();
%>
>其他任务
</option>
</select>
</TD>
<%
}
%>
</TR>
<%
k=k+timePeriodInfo[i];
}
%>
</TABLE> </TD>
</TR>
<TR>
<TD class="common" align="center"> <p>
<%
if(error.equals("1")){
%>
<font color="#FF0000">您当天时间安排填写的不是数字!请重新填写</font>
<%
}else if(error.equals("2")){
%>
<font color="#FF0000">您的时间安排超过24小时,请重新填写!</font>
<%
}else{
%>
<font color="#006633">当天时间安排</font>
<%
}
%>
<table width="100%" border="1" align="center" bordercolor="A1B7DB" class="collapse">
<tr>
<td width="10%" height="20" align=center class="common">工作</td>
<td width="15%" height="20" align=center class="common"><INPUT name="work" size=10 value=<%=workTime%> id="work" readOnly ></td>
<td height="20" align=center class="common">学习</td>
<td height="20" align=center class="common"><INPUT name="study" size=10 value=<%=learnTime%> id="study" readOnly ></td>
<td height="20" align=center class="common">运动</td>
<td height="20" align=center class="common"><INPUT name="sport" size=10 value=<%=sportTime%> id="sport" readOnly ></td>
<td height="20" align=center class="common">休息</td>
<td height="20" align=center class="common"><INPUT name="rest" size=10 value=<%=restTime%> id="rest" readOnly ></td>
</tr>
</table>
<BR>
备忘: <font color="#FF0000">(请把文字限制在120个汉字以内) </font> <BR>
<textarea cols="80" name="memoInfo" style="overflow:auto" rows="7" bgcolor="#E7F3FF"><%
String otherMemo = StringFormat.changeHTMLTags(memoInfo);
if(userID.equals("141")) {
if(java.sql.Date.valueOf(writeDate).before(java.sql.Date.valueOf("2004-04-18"))){
out.println(otherMemo);
}else{
String memoDate = writeDate;
//FileInputStream is = new FileInputStream("D:\\tomcat\\webapps\\krm\\jsp\\diamanage\\diamemo\\" +memoDate);
//zenghongli 2004.5.21
Configuration cfg = Configuration.getInstance();
String path = cfg.getValue("SYS.DIAMEMOPATH");
FileInputStream is = new FileInputStream(path + System.getProperty("file.separator") + memoDate);
byte[] a=new byte[is.available()];
is.read(a);
is.close();
String chenMemo = new String(a);
out.println(new String(chenMemo.getBytes("gb2312"),"iso_8859_1"));
}
}else {
out.println(otherMemo);
}
%> </textarea>
<BR>
<BR>
<input name="imageField" type="image" src="/krm/jsp/image/amend.gif">
<a href="#" onClick="history.back(1);"><img src="/krm/jsp/image/back.gif" border="0"></a>
</p>
</TD>
</TR>
<%
}else{
%>
<table width="100%" border="1" align="center" bordercolor="A1B7DB" class="collapse">
<tr>
<td class="common"><font color="#003300"> <font color="#FF0000">工作日记填写时段未设置!请到管理员处询问</font></font></td>
</tr>
</table>
<%
}
%>
</TABLE>
</fieldset>
</td>
</tr>
</table>
</form>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -