CapitalReturnOperation.jsp
2.29 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
<%@ page import="weaver.general.Util" %>
<%@ page import="java.util.*" %>
<%@ page language="java" contentType="text/html; charset=UTF-8" %> <%@ include file="/systeminfo/init_wev8.jsp" %>
<jsp:useBean id="RecordSet" class="weaver.conn.RecordSet" scope="page" />
<jsp:useBean id="CapitalComInfo" class="weaver.cpt.capital.CapitalComInfo" scope="page"/>
<%
String dtinfo = Util.fromScreen(request.getParameter("dtinfo"),user.getLanguage());
String capitalid = Util.fromScreen(request.getParameter("capitalid"),user.getLanguage());
String stateid = Util.fromScreen(request.getParameter("stateid"),user.getLanguage());
String afterstateid = Util.fromScreen(request.getParameter("afterstateid"),user.getLanguage());
String returndate = Util.fromScreen(request.getParameter("returndate"),user.getLanguage());
String departmentid = Util.fromScreen(request.getParameter("departmentid"),user.getLanguage());
String costcenterid = Util.fromScreen(request.getParameter("costcenterid"),user.getLanguage());
String resourceid = Util.fromScreen(request.getParameter("resourceid"),user.getLanguage());
String userequest = Util.fromScreen(request.getParameter("userequest"),user.getLanguage());
String fee = Util.fromScreen(request.getParameter("fee"),user.getLanguage());
if(fee.equals("")){
fee="0";
}
String location = Util.fromScreen(request.getParameter("location"),user.getLanguage());
String remark = Util.fromScreenForCpt(request.getParameter("remark"),user.getLanguage());
if(!HrmUserVarify.checkUserRight("CptCapital:Return", user)){
response.sendRedirect("/notice/noright.jsp");
return;
}
char separator = Util.getSeparator() ;
String para = "";
para = capitalid;
para +=separator+returndate;
para +=separator+departmentid;
para +=separator+resourceid;
para +=separator+"1";
para +=separator+location;
para +=separator+userequest;
para +=separator+"";
para +=separator+fee;
para +=separator+stateid;
para +=separator+remark;
para +=separator+costcenterid;
para +=separator+afterstateid;
RecordSet.executeProc("CptUseLogReturn_Insert",para);
CapitalComInfo.removeCapitalCache();
response.sendRedirect("CptCapital.jsp?id="+capitalid);
%>
<input type="button" name="Submit2" value="<%=SystemEnv.getHtmlLabelName(236,user.getLanguage())%>" onClick="javascript:history.go(-1)">