LgcAssetPriceEdit.jsp
5.86 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
<%@ page import="weaver.general.Util" %>
<%@ page language="java" contentType="text/html; charset=UTF-8" %> <%@ include file="/systeminfo/init_wev8.jsp" %>
<% if(!HrmUserVarify.checkUserRight("LgcAssetPriceEdit:Edit",user)) {
response.sendRedirect("/notice/noright.jsp") ;
return ;
}
%>
<jsp:useBean id="RecordSet" class="weaver.conn.RecordSet" scope="page"/>
<jsp:useBean id="CurrencyComInfo" class="weaver.fna.maintenance.CurrencyComInfo" scope="page"/>
<HTML><HEAD>
<LINK href="/css/Weaver_wev8.css" type=text/css rel=STYLESHEET>
<SCRIPT language="javascript" src="../../js/weaver_wev8.js"></script>
</head>
<%
int msgid = Util.getIntValue(request.getParameter("msgid"),-1);
String paraid = Util.null2String(request.getParameter("paraid")) ;
String assetpriceid = paraid ;
String redirect = Util.null2String(request.getParameter("redirect")) ;
RecordSet.executeProc("LgcAssetPrice_SelectByID",assetpriceid);
RecordSet.next();
String numfrom = Util.null2String(RecordSet.getString("numfrom"));
String numto = Util.null2String(RecordSet.getString("numto"));
String pricedesc = Util.toScreenToEdit(RecordSet.getString("pricedesc"),user.getLanguage());
String currencyid = Util.null2String(RecordSet.getString("currencyid"));
String unitprice = Util.null2String(RecordSet.getString("unitprice"));
String taxrate = Util.null2String(RecordSet.getString("taxrate"));
String imagefilename = "/images/hdLOG_wev8.gif";
String titlename = SystemEnv.getHtmlLabelName(726,user.getLanguage())+" : "+SystemEnv.getHtmlLabelName(365,user.getLanguage());
String needfav ="1";
String needhelp ="";
%>
<BODY>
<%@ include file="/systeminfo/TopTitle_wev8.jsp" %>
<%@ include file="/systeminfo/RightClickMenuConent_wev8.jsp" %>
<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">
<%
if(msgid!=-1){
%>
<DIV>
<font color=red size=2>
<%=SystemEnv.getErrorMsgName(msgid,user.getLanguage())%>
</font>
</DIV>
<%}%>
<FORM name=frmain action=LgcAssetPriceOperation.jsp?Action=2 method=post>
<DIV style="display:none">
<%
RCMenu += "{"+SystemEnv.getHtmlLabelName(86,user.getLanguage())+",javascript:OnSubmit(),_top} " ;
RCMenuHeight += RCMenuHeightStep ;
%>
<BUTTON class=btnSave accessKey=S onclick='OnSubmit()'><U>S</U>-保存</BUTTON>
<%
if(HrmUserVarify.checkUserRight("LgcAssetPriceEdit:Delete", user)){
%>
<%
RCMenu += "{"+SystemEnv.getHtmlLabelName(91,user.getLanguage())+",javascript:onDelete(),_top} " ;
RCMenuHeight += RCMenuHeightStep ;
%>
<BUTTON class=btnDelete id=Delete accessKey=D onclick="onDelete()"><U>D</U>-<%=SystemEnv.getHtmlLabelName(91,user.getLanguage())%></BUTTON>
<%}%>
</DIV>
<input type="hidden" name="operation" value="editassetprice">
<input type="hidden" name="assetpriceid" value="<%=assetpriceid%>">
<input type="hidden" name="redirect" value="<%=redirect%>">
<TABLE class=ViewForm width="100%">
<COLGROUP> <COL width="10%"> <COL width="90%"> <TBODY>
<TR class=Title>
<TH colSpan=2>价格</TH>
</TR>
<TR class=Spacing>
<TD class=Line1 colSpan=2></TD>
</TR>
<tr>
<td>数量,从</td>
<td class=Field>
<input type=text <input class=InputStyle id=Type size=10 name=numfrom value='<%=numfrom%>' onKeyPress="ItemCount_KeyPress()" onBlur='checknumber("numfrom")'>
</td>
</TR><tr><td class=Line colspan=2></td></tr>
<TR>
<TD>数量,到</TD>
<TD class=Field>
<input type=text <input class=InputStyle id=Type size=10 name=numto value='<%=numto%>' onKeyPress="ItemCount_KeyPress()" onBlur='checknumber("numto")'>
</TD>
</TR><tr><td class=Line colspan=2></td></tr>
<TR>
<TD>说明</TD>
<TD class=Field>
<input type=text <input class=InputStyle id=Type size=60 maxLength=60 name=pricedesc value='<%=pricedesc%>'>
</TD>
</TR><tr><td class=Line colspan=2></td></tr>
<tr>
<td>币种</td>
<td class=Field><button class=Browser
id=selectcurrency onClick="onShowCurrencyID()"></button> <span <input class=InputStyle
id=currencyidspan><%=Util.toScreen(CurrencyComInfo.getCurrencyname(currencyid),user.getLanguage())%></span>
<input <input class=InputStyle id=currencyid type=hidden value=2 name=currencyid value='<%=currencyid%>'>
</td>
</TR><tr><td class=Line colspan=2></td></tr>
<TR>
<TD>单价</TD>
<TD class=Field><input type=text <input class=InputStyle id=Type size=20 name=unitprice value='<%=unitprice%>' onKeyPress="ItemCount_KeyPress()" onBlur='checknumber("unitprice")'></TD>
</TR><tr><td class=Line colspan=2></td></tr>
<TR>
<TD>增值税率</TD>
<TD class=Field>
<input type=text <input class=InputStyle id=Type size=10 name=taxrate onKeyPress="ItemCount_KeyPress()" onBlur='checknumber("taxrate")' value='<%=taxrate%>'>%</TD>
</TR><tr><td class=Line colspan=2></td></tr>
</TBODY>
</TABLE>
</form>
</td>
</tr>
</TABLE>
</td>
<td></td>
</tr>
<tr>
<td height="10" colspan="3"></td>
</tr>
</table>
<%@ include file="/systeminfo/RightClickMenu_wev8.jsp" %>
</BODY>
<SCRIPT language=VBS>
sub onShowCurrencyID()
id = window.showModalDialog("/systeminfo/BrowserMain.jsp?url=/fna/maintenance/CurrencyBrowser.jsp")
if NOT isempty(id) then
if id(0)<> "" then
currencyidspan.innerHtml = id(1)
frmain.currencyid.value=id(0)
else
currencyidspan.innerHtml = ""
frmain.currencyid.value= ""
end if
end if
end sub
</SCRIPT>
<SCRIPT language="javascript">
function OnSubmit(){
if(check_form(document.frmain,"currencyid,unitprice"))
{
document.frmain.submit();
}
}
function onDelete(){
if(confirm("<%=SystemEnv.getHtmlNoteName(7,user.getLanguage())%>")) {
document.frmain.operation.value="deleteassetprice";
document.frmain.submit();
}
}
</script>
</HTML>