CptCapitalCheckStockAdd1.jsp
2.53 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
<%@ page import="weaver.general.Util" %>
<%@ page language="java" contentType="text/html; charset=UTF-8" %> <%@ include file="/systeminfo/init_wev8.jsp" %>
<jsp:useBean id="CapitalComInfo" class="weaver.cpt.capital.CapitalComInfo" scope="page"/>
<%
if(!HrmUserVarify.checkUserRight("CptCapitalCheckStockAdd:Add", user)){
response.sendRedirect("/notice/noright.jsp");
return;
}
%>
<HTML><HEAD>
<LINK href="/css/Weaver_wev8.css" type=text/css rel=STYLESHEET>
<SCRIPT language="javascript" src="../../js/weaver_wev8.js"></script>
</head>
<%
String imagefilename = "/images/hdMaintenance_wev8.gif";
String titlename = SystemEnv.getHtmlLabelName(1506,user.getLanguage());
String needfav ="1";
String needhelp ="";
%>
<BODY>
<%@ include file="/systeminfo/TopTitle_wev8.jsp" %>
<FORM id=weaver name=frmain method=post onSubmit="onSubmit()">
<DIV class=HdrProps></DIV>
<BUTTON class=btnSave accessKey=S onclick="onSubmit()"><U>S</U>-<%=SystemEnv.getHtmlLabelName(1402,user.getLanguage())%></BUTTON>
<BUTTON class=btn accessKey=B onclick='window.history.back(-1)'><U>B</U>-<%=SystemEnv.getHtmlLabelName(1290,user.getLanguage())%></BUTTON>
<TABLE class=form>
<COLGROUP> <COL width="15%"> <COL width="85%"> <TBODY>
<tr>
<td><%=SystemEnv.getHtmlLabelName(124,user.getLanguage())%></td>
<td class=Field><button class=Browser id=SelectDeparment onClick="onShowDepartment()"></button>
<span class=saveHistory id=departmentspan></span>
<input id=departmentid type=hidden name=departmentid>
</td>
</tr>
<tr>
<td><%=SystemEnv.getHtmlLabelName(1387,user.getLanguage())%></td>
<td class=Field>
<input type=text size=60 maxlength=100 name="location" >
</td>
</tr>
</TBODY>
</TABLE>
</form>
<script language=vbs>
sub onShowDepartment()
id = window.showModalDialog("/systeminfo/BrowserMain.jsp?url=/hrm/company/DepartmentBrowser.jsp?selectedids="&frmain.departmentid.value)
issame = false
if (Not IsEmpty(id)) then
if id(0)<> 0 then
if id(0) = frmain.departmentid.value then
issame = true
end if
departmentspan.innerHtml = id(1)
frmain.departmentid.value=id(0)
else
departmentspan.innerHtml = ""
frmain.departmentid.value=""
end if
end if
end sub
</script>
<script language="javascript">
function onSubmit(){
if((frmain.departmentid.value=="")&&(frmain.location.value=="")){
alert('<%=SystemEnv.getHtmlLabelName(15318,user.getLanguage())%>');
}else{
document.frmain.action="CptCapitalCheckStockAdd2.jsp"
document.frmain.submit();
}
}
</script>
</BODY></HTML>