EditProcessing.jsp
6.59 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
<%@ page language="java" contentType="text/html; charset=UTF-8" %> <%@ include file="/systeminfo/init_wev8.jsp" %>
<%@ page import="weaver.general.Util" %>
<jsp:useBean id="ProcessingTypeComInfo" class="weaver.proj.Maint.ProcessingTypeComInfo" scope="page" />
<jsp:useBean id="PlanSortComInfo" class="weaver.proj.Maint.PlanSortComInfo" scope="page" />
<jsp:useBean id="RecordSet" class="weaver.conn.RecordSet" scope="page" />
<jsp:useBean id="PlanInfoComInfo" class="weaver.proj.Maint.PlanInfoComInfo" scope="page" />
<jsp:useBean id="DocComInfo" class="weaver.docs.docs.DocComInfo" scope="page" />
<jsp:useBean id="ResourceComInfo" class="weaver.hrm.resource.ResourceComInfo" scope="page"/>
<% if(!HrmUserVarify.checkUserRight("EditProcessing:Edit",user)) {
response.sendRedirect("/notice/noright.jsp") ;
return ;
}
%>
<HTML><HEAD>
<LINK href="/css/Weaver_wev8.css" type=text/css rel=STYLESHEET>
</HEAD>
<%
String id = Util.null2String(request.getParameter("id"));
RecordSet.executeProc("Prj_Processing_SelectByID",id);
String prjid="";
String planid="";
String title="";
String content="";
String type="";
String docid="";
String parentids="";
String submitdate="";
String submittime="";
String submiter ="";
String updatedate="";
String updatetime="";
String updater="";
String isprocessed="";
String processdate="";
String processtime="";
String processor="";
if(RecordSet.next()){
prjid=Util.toScreen(RecordSet.getString("prjid"),user.getLanguage());
planid=Util.toScreen(RecordSet.getString("planid"),user.getLanguage());
title=Util.toScreen(RecordSet.getString("title"),user.getLanguage());
content=Util.toScreen(RecordSet.getString("content"),user.getLanguage());
type=Util.toScreen(RecordSet.getString("type"),user.getLanguage());
docid=Util.toScreen(RecordSet.getString("docid"),user.getLanguage());
parentids=Util.toScreen(RecordSet.getString("parentids"),user.getLanguage());
submitdate=Util.toScreen(RecordSet.getString("submitdate"),user.getLanguage());
submittime=Util.toScreen(RecordSet.getString("submittime"),user.getLanguage());
submiter=Util.toScreen(RecordSet.getString("submiter"),user.getLanguage());
updatedate=Util.toScreen(RecordSet.getString("updatedate"),user.getLanguage());
updatetime=Util.toScreen(RecordSet.getString("updatetime"),user.getLanguage());
updater=Util.toScreen(RecordSet.getString("updater"),user.getLanguage());
isprocessed=Util.toScreen(RecordSet.getString("isprocessed"),user.getLanguage());
processdate=Util.toScreen(RecordSet.getString("processdate"),user.getLanguage());
processtime=Util.toScreen(RecordSet.getString("processtime"),user.getLanguage());
processor=Util.toScreen(RecordSet.getString("processor"),user.getLanguage());
}
%>
<%
String imagefilename = "/images/hdReport_wev8.gif";
String titlename = SystemEnv.getHtmlLabelName(93,user.getLanguage())+":"+SystemEnv.getHtmlLabelName(665,user.getLanguage());
String needfav ="1";
String needhelp ="";
%>
<BODY>
<%@ include file="/systeminfo/TopTitle_wev8.jsp" %>
<%@ include file="/systeminfo/RightClickMenuConent_wev8.jsp" %>
<%
RCMenu += "{"+SystemEnv.getHtmlLabelName(86,user.getLanguage())+",javascript:weaver.submit(),_self} " ;
RCMenuHeight += RCMenuHeightStep;
%>
<%
RCMenu += "{"+SystemEnv.getHtmlLabelName(589,user.getLanguage())+",javascript:weaver.reset(),_self} " ;
RCMenuHeight += RCMenuHeightStep;
%>
<%@ include file="/systeminfo/RightClickMenu_wev8.jsp" %>
<FORM id=weaver name=weaver action="/proj/process/ProcessingOperation.jsp" method=post>
<input type="hidden" name="method" value="edit">
<input type="hidden" name="prjid" value="<%=prjid%>">
<input type="hidden" name="id" value="<%=id%>">
<table width=100% height=100% border="0" cellspacing="0" cellpadding="0">
<colgroup>
<col width="10">
<col width="">
<col width="10">
<tr>
<td height="10" colspan="3"></td>
</tr>
<tr>
<td ></td>
<td valign="top">
<TABLE class=Shadow>
<tr>
<td valign="top">
<TABLE class=viewform>
<COLGROUP>
<COL width="15%">
<COL width="35%">
<COL width="15%">
<COL width="35%">
<TBODY>
<TR class=spacing>
<TD class=line1 colSpan=4></TD></TR>
<TR>
<TD><%=SystemEnv.getHtmlLabelName(2239,user.getLanguage())%></TD>
<TD class=Field>
<select class=inputstyle name="type">
<%
while(ProcessingTypeComInfo.next()){
%>
<option value="<%=ProcessingTypeComInfo.getProcessingTypeid()%>" <%if(ProcessingTypeComInfo.getProcessingTypeid().equals(type)){%> selected <%}%>><%=ProcessingTypeComInfo.getProcessingTypename()%></option>
<%}%>
</select>
</TD>
<td><%=SystemEnv.getHtmlLabelName(844,user.getLanguage())%></td>
<td class=field >
<BUTTON class=Browser onclick="showDoc()"></BUTTON>
<SPAN ID=docidname>
<a href="/docs/docs/DocDsp.jsp?id=<%=docid%>"><%=Util.toScreen(DocComInfo.getDocname(docid),user.getLanguage())%></a>
</SPAN>
<INPUT class=inputstyle type=hidden name="docid" value="<%=docid%>">
</td>
</tr> <TR class=spacing>
<TD class=line colSpan=4></TD></TR>
<tr>
<TD><%=SystemEnv.getHtmlLabelName(344,user.getLanguage())%></TD>
<TD class=Field colspan=3><INPUT class=inputstyle maxLength=150 size=50 name="title" value="<%=title%>"></TD>
</TR> <TR class=spacing>
<TD class=line colSpan=4></TD></TR>
<tr>
<td colspan=4><%=SystemEnv.getHtmlLabelName(504,user.getLanguage())%></td>
</tr>
<tr> <TR class=spacing>
<TD class=line1 colSpan=4></TD></TR>
<td colspan=4><TEXTAREA class=inputstyle NAME=content ROWS=10 STYLE="width:100%"><%=content%></textarea>
</TR>
<TR class=spacing>
<TD class=line1 colSpan=4></TD></TR>
</TBODY></TABLE>
</td>
</tr>
</TABLE>
</td>
<td></td>
</tr>
<tr>
<td height="10" colspan="3"></td>
</tr>
</table>
</FORM>
<script language=vbs>
sub onShowPlanID()
id = window.showModalDialog("/systeminfo/BrowserMain.jsp?url=/proj/plan/PlanBrowser.jsp?ProjID=<%=prjid%>")
if (Not IsEmpty(id)) then
if id(0)<> "" then
planspan.innerHtml = "<A href='/proj/plan/DspPlan.jsp?id="&id(0)&"'>"&id(1)&"</A>"
weaver.planid.value=id(0)
else
planspan.innerHtml = "<IMG src='/images/BacoError_wev8.gif' align=absMiddle>"
weaver.planid.value="0"
end if
end if
end sub
sub showDoc()
id = window.showModalDialog("/docs/DocBrowserMain.jsp?url=/docs/docs/DocBrowser.jsp")
if Not isempty(id) then
weaver.docid.value=id(0)&""
docidname.innerHtml = "<a href='/docs/docs/DocDsp.jsp?id="&id(0)&"'>"&id(1)&"</a>"
end if
end sub
</script>
</BODY>
</HTML>