CompanyAttach.jsp
7.17 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
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
<%@ page import="weaver.general.Util" %>
<%@ page language="java" contentType="text/html; charset=UTF-8" %> <%@ include file="/systeminfo/init_wev8.jsp" %>
<jsp:useBean id="rs" class="weaver.conn.RecordSet" scope="page" />
<jsp:useBean id="RecordSet" class="weaver.conn.RecordSet" scope="page" />
<jsp:useBean id="MainCCI" class="weaver.docs.category.MainCategoryComInfo" scope="page" />
<jsp:useBean id="SecCCI" class="weaver.docs.category.SecCategoryComInfo" scope="page" />
<jsp:useBean id="SubCCI" class="weaver.docs.category.SubCategoryComInfo" scope="page" />
<jsp:useBean id="cu" class="weaver.company.CompanyUtil" scope="page" />
<LINK href="/css/Weaver_wev8.css" type=text/css rel=STYLESHEET>
<link href="/cpcompanyinfo/style/Public_wev8.css" rel="stylesheet" type="text/css" />
<%
if(!cu.canOperate(user,"3"))//不具有入口权限
{
response.sendRedirect("/notice/noright.jsp");
return;
}
String directory="";
String luji="";
//select * from mytrainaccessoriestype where accessoriesname='lmdirectors'"
//select * from mytrainaccessoriestype where accessoriesname='lmlic4ense'
//select * from mytrainaccessoriestype where accessoriesname='lmconstitution'
//select * from mytrainaccessoriestype where accessoriesname='lmshare'
String [] list_road=new String[4];
String [] list_roadDesc=new String[4];
//查出这条配置数据
String sql="select * from mytrainaccessoriestype where accessoriesname in('lmdirectors','lmlicense','lmconstitution','lmshare') ";
RecordSet.execute(sql);
while(RecordSet.next()){
String mainid="";
String subid="";
String secid="";
String accessoriesname="";
mainid=RecordSet.getString("mainid");
subid=RecordSet.getString("subid");
secid=RecordSet.getString("secid");
accessoriesname=RecordSet.getString("accessoriesname");
luji=mainid+";"+subid+";"+secid;
directory="/"+MainCCI.getMainCategoryname(mainid)+"/"+SubCCI.getSubCategoryname(subid)+"/"+SecCCI.getSecCategoryname(secid);
if("///".equals(directory)){
directory="";
}
if("lmdirectors".equals(accessoriesname)){
//懂事会
list_road[0]=luji;
list_roadDesc[0]=directory;
}else if("lmlicense".equals(accessoriesname)){
//公司证照
list_road[1]=luji;
list_roadDesc[1]=directory;
}else if("lmconstitution".equals(accessoriesname)){
//章程
list_road[2]=luji;
list_roadDesc[2]=directory;
}else if("lmshare".equals(accessoriesname)){
//股东
list_road[3]=luji;
list_roadDesc[3]=directory;
}
}
String imagefilename = "/images/hdSystem_wev8.gif";
String titlename = SystemEnv.getHtmlLabelName(30985,user.getLanguage());
String needfav ="1";
String needhelp ="";
%>
<%@ include file="/systeminfo/TopTitle_wev8.jsp" %>
<%@ include file="/systeminfo/RightClickMenuConent_wev8.jsp" %>
<%
RCMenu += "{"+SystemEnv.getHtmlLabelName(30986,user.getLanguage())+",javascript:dosave_gd(),_self} " ;
RCMenuHeight += RCMenuHeightStep;
%>
<%@ include file="/systeminfo/RightClickMenu_wev8.jsp" %>
<body oncontextmenu="return false;" >
<FORM id=frmMain name=frmMain action="/cpcompanyinfo/CompanyServiceOperate.jsp" method=post >
<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">
<input type="hidden" name=temp_type id="temp_type" value="CompanyAttach">
<TABLE class=viewform id="webTable2gd">
<COLGROUP>
<COL width="20%">
<COL width="80%">
<TBODY>
<TR class=spacing style="height:1px;">
<TD class=line1 colSpan=2></TD></TR>
<tr>
<td class=Field>
<%=SystemEnv.getHtmlLabelName(30936,user.getLanguage()) %>
</td>
<td>
<BUTTON class="Browser" id="selectannexCategoryid" onClick="onShowAnnexCatalog(this)"></BUTTON>
<span _spanid="lmdirectors">
<%out.println(list_roadDesc[0]);%>
</span>
<input type="hidden" value="<%=list_road[0]%>">
</td>
</tr>
<TR style='height:1px;'><TD class=Line colSpan=2></TD></TR>
<tr>
<td class=Field>
<%=SystemEnv.getHtmlLabelName(30958,user.getLanguage()) %>
</td>
<td>
<BUTTON class="Browser" id="selectannexCategoryid" onClick="onShowAnnexCatalog(this)"></BUTTON>
<span _spanid="lmlicense">
<%out.println(list_roadDesc[1]);%>
</span>
<input type="hidden" value="<%=list_road[1]%>">
</td>
</tr>
<TR style='height:1px;'><TD class=Line colSpan=2></TD></TR>
<tr>
<td class=Field>
<%=SystemEnv.getHtmlLabelName(30940,user.getLanguage()) %>
</td>
<td>
<BUTTON class="Browser" id="selectannexCategoryid" onClick="onShowAnnexCatalog(this)"></BUTTON>
<span _spanid="lmconstitution">
<%out.println(list_roadDesc[2]);%>
</span>
<input type="hidden" value="<%=list_road[2]%>">
</td>
</tr>
<TR style='height:1px;'><TD class=Line colSpan=2></TD></TR>
<tr>
<td class=Field>
<%=SystemEnv.getHtmlLabelName(28421,user.getLanguage()) %>
</td>
<td>
<BUTTON class="Browser" id="selectannexCategoryid" onClick="onShowAnnexCatalog(this)"></BUTTON>
<span _spanid="lmshare">
<%out.println(list_roadDesc[3]);%>
</span>
<input type="hidden" value="<%=list_road[3]%>">
</td>
</tr>
<TR style='height:1px;'><TD class=Line colSpan=2></TD></TR>
</TBODY>
</TABLE>
</td>
</tr>
</TABLE>
</td>
<td></td>
</tr>
<tr>
<td height="10" colspan="3"></td>
</tr>
</table>
</form>
<script type="text/javascript">
// {tag:"1",id:""+id, path:""+path, mainid:""+mainid, subid:""+subid,path2:""+parth2};
function onShowAnnexCatalog(obj) {
var result = showModalDialog("/systeminfo/BrowserMain.jsp?url=/docs/category/MultiCategorySingleBrowser.jsp");
if (result != null) {
if (result.id > 0) {
$(obj).next().html(result.path);
$(obj).next().next().val(result.mainid+";"+result.subid+";"+result.id);
}else{
$(obj).next().html("");
$(obj).next().next().val("0;0;0");
}
}
}
function dosave_gd(){
var lmdirectors;
var lmlicense;
var lmconstitution;
var lmshare;
$("span[_spanid='lmdirectors']").each(function(){
lmdirectors=$(this).next().val()
});
$("span[_spanid='lmlicense']").each(function(){
lmlicense=$(this).next().val()
});
$("span[_spanid='lmconstitution']").each(function(){
lmconstitution=$(this).next().val()
});
$("span[_spanid='lmshare']").each(function(){
lmshare=$(this).next().val()
});
var o4params = {
lmdirectors:lmdirectors,
lmlicense:lmlicense,
lmconstitution:lmconstitution,
lmshare:lmshare,
temp_type:$("#temp_type").val()
}
$.post("/cpcompanyinfo/CompanyServiceOperate.jsp",o4params,function(data){
alert(data);
});
}
</script>
</body>
</html>
<BODY>