fieldlist.jsp
19.8 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
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
<%@ page language="java" contentType="text/html; charset=UTF-8" %> 
<%@ include file="/systeminfo/init_wev8.jsp" %>
<%@ page import="weaver.general.Util" %>
<%@ page import="java.util.ArrayList" %>
<jsp:useBean id="RecordSet" class="weaver.conn.RecordSet" scope="page" />
<jsp:useBean id="FieldInfo" class="weaver.workflow.mode.FieldInfo" scope="page" />
<script language=javascript src="/js/weaver_wev8.js"></script>
<%
response.setHeader("X-UA-Compatible","IE=EmulateIE8");
int workflowid=Util.getIntValue(request.getParameter("wfid"),0);
int formid=Util.getIntValue(request.getParameter("formid"),0);
int nodeid=Util.getIntValue(request.getParameter("nodeid"),0);
int modeid=Util.getIntValue(request.getParameter("modeid"),0);
int isbill=Util.getIntValue(request.getParameter("isbill"),-1);
int isprint=Util.getIntValue(request.getParameter("isprint"),-1);
%>
<HTML>
<HEAD>
<LINK href="/css/Weaver_wev8.css" type=text/css rel=STYLESHEET>
<LINK rel=stylesheet type=text/css HREF="chinaexcel_wev8.css">
<script language=javascript>
function stop () {
    <%if(user.getLanguage()==8){%>
    alert("<%=SystemEnv.getHtmlLabelName(84008 ,user.getLanguage())%>");
    <%}else if(user.getLanguage()==9){%>
    alert("<%=SystemEnv.getHtmlLabelName(84008 ,user.getLanguage())%>");
    <%}else{%>
    alert("<%=SystemEnv.getHtmlLabelName(84008 ,user.getLanguage())%>");
    <%}%>
return false;
}
document.oncontextmenu=stop;
</script>
<TITLE> </TITLE>
<style>
div{
    height:10;PADDING:4px 2;BACKGROUND-COLOR:#ffffff;cursor:hand;font-size: 12;border:1px groove #cccccc;
    margin:1px;
    }
div table td {
	padding:2px;
}
</style>
</HEAD>
<BODY style="BACKGROUND-COLOR:buttonface;MARGIN:0">
<table id="fieldtable" style="HEIGHT:100%;WIDTH:100%;PADDING:0px;BACKGROUND-COLOR:buttonface;border:1px solid #666666;" cellpadding='0' height=100% width=100% cellspacing='0'>
<tr><td valign="top" style="heigth:100%;WIDTH:100%;">
<div style="BACKGROUND-COLOR:buttonface;cursor:text">
<table height=15 width=100% cellpadding='0' cellspacing='0'>
<tr><td valign="top" style="height:15;font-size: 15;font-weight: bold;"><%=SystemEnv.getHtmlLabelName(18020,user.getLanguage())%>
</td></tr>
</table>
</div>
<div onmouseover="this.style.background='#CCFF66'" onmouseout="this.style.background='#ffffff'" id="requestname" value="<%=SystemEnv.getHtmlLabelName(229,user.getLanguage())%>" onclick="setcellval(this)">
<table height=10 width=100% cellpadding='0' cellspacing='0'>
<tr><td valign="top" style="color:#FF00FF">
<%=SystemEnv.getHtmlLabelName(229,user.getLanguage())%>
</td></tr>
</table>
</div>
<div onmouseover="this.style.background='#CCFF66'" onmouseout="this.style.background='#ffffff'" id="requestlevel" value="<%=SystemEnv.getHtmlLabelName(15534,user.getLanguage())%>" onclick="setcellval(this)">
<table height=10 width=100% cellpadding='0' cellspacing='0'>
<tr><td valign="top" style="color:#FF00FF">
<%=SystemEnv.getHtmlLabelName(15534,user.getLanguage())%>
</td></tr>
</table>
</div>
<%--<div onmouseover="this.style.background='#CCFF66'" onmouseout="this.style.background='#ffffff'" id="messageType" value="<%=SystemEnv.getHtmlLabelName(17582,user.getLanguage())%>" onclick="setcellval(this)">--%>
<%--<table height=10 width=100% cellpadding='0' cellspacing='0'>--%>
<%--<tr><td valign="top" style="color:#FF00FF">--%>
<%--<%=SystemEnv.getHtmlLabelName(17582,user.getLanguage())%>--%>
<%--</td></tr>--%>
<%--</table>--%>
<%--</div>--%>
<%--<div onmouseover="this.style.background='#CCFF66'" onmouseout="this.style.background='#ffffff'" id="chatsType" value="<%=SystemEnv.getHtmlLabelName(32812,user.getLanguage())%>" onclick="setcellval(this)">--%>
<%--<table height=10 width=100% cellpadding='0' cellspacing='0'>--%>
<%--<tr><td valign="top" style="color:#FF00FF">--%>
<%--<%=SystemEnv.getHtmlLabelName(32812,user.getLanguage())%>--%>
<%--</td></tr>--%>
<%--</table>--%>
<%--</div>--%>
<div onmouseover="this.style.background='#CCFF66'" onmouseout="this.style.background='#ffffff'" id="qianzi" value="<%=SystemEnv.getHtmlLabelName(1007,user.getLanguage())%>" onclick="setcellval(this)">
<table height=10 width=100% cellpadding='0' cellspacing='0'>
<tr><td valign="top" style="color:#FF00FF">
<%=SystemEnv.getHtmlLabelName(1007,user.getLanguage())%>
</td></tr>
</table>
</div>
<div onmouseover="this.style.background='#CCFF66'" onmouseout="this.style.background='#ffffff'" id="main_showKeyword" onclick="setcellval(this)">
<table height=10 width=100% cellpadding='0' cellspacing='0'>
<tr><td valign="top" style="color:#FF00FF">
<%=SystemEnv.getHtmlLabelName(21517,user.getLanguage())%>
</td></tr>
</table>
</div>
<div onmouseover="this.style.background='#CCFF66'" onmouseout="this.style.background='#ffffff'" id="main_createCodeAgain" onclick="setcellval(this)">
<table height=10 width=100% cellpadding='0' cellspacing='0'>
<tr><td valign="top" style="color:#FF00FF">
<%=SystemEnv.getHtmlLabelName(22784,user.getLanguage())%>
</td></tr>
</table>
</div>
<div onmouseover="this.style.background='#CCFF66'" onmouseout="this.style.background='#ffffff'" id="main_dycs" value="<%=SystemEnv.getHtmlLabelName(22308,user.getLanguage())%>" onclick="setcellval(this)">
<table height=10 width=100% cellpadding='0' cellspacing='0'>
<tr><td valign="top" style="color:#FF00FF">
<%=SystemEnv.getHtmlLabelName(22308,user.getLanguage())%>
</td></tr>
</table>
</div>
<%
RecordSet.executeSql("select nodetype from workflow_flownode where nodeid="+nodeid);
String nodetype = "";
if(RecordSet.next()){
	nodetype = RecordSet.getString("nodetype");
}
ArrayList mantablefields=new ArrayList();
ArrayList mantablefieldnames=new ArrayList();
ArrayList detailtablefields=new ArrayList();
ArrayList detailtablefieldnames=new ArrayList();
ArrayList nodes=new ArrayList();
ArrayList nodenames=new ArrayList();
FieldInfo.GetManTableField(formid,isbill,user.getLanguage());
FieldInfo.GetDetailTableField(formid,isbill,user.getLanguage());
FieldInfo.GetWorkflowNode(workflowid);
mantablefields=FieldInfo.getManTableFields();
mantablefieldnames=FieldInfo.getManTableFieldNames();
detailtablefields=FieldInfo.getDetailTableFields();
detailtablefieldnames=FieldInfo.getDetailTableFieldNames();
nodes=FieldInfo.getNodes();
nodenames=FieldInfo.getNodeNames();
for(int i=0; i<mantablefields.size();i++){
%>
<div onmouseover="this.style.background='#CCFF66'" onmouseout="this.style.background='#ffffff'" id="<%=mantablefields.get(i)%>" value="<%=mantablefieldnames.get(i)%>" onclick="setcellval(this)">
<table height=10 width=100% cellpadding='0' cellspacing='0'>
<tr><td valign="top">
<%=mantablefieldnames.get(i)%>
</td></tr>
</table>
</div>
<%
}%>
<div style="BACKGROUND-COLOR:buttonface;cursor:text">
<table height=15 width=100% cellpadding='0' cellspacing='0'>
<tr><td valign="top" style="height:15;font-size: 15;font-weight: bold;"><%=SystemEnv.getHtmlLabelName(18021,user.getLanguage())%>
</td></tr>
</table>
</div>
<%
for(int i=0;i<detailtablefields.size();i++){
%>
<div style="BACKGROUND-COLOR:buttonface;cursor:text">
<table height=10 width=100% cellpadding='0' cellspacing='0'>
<tr><td valign="top" style="font-size: 12;font-weight: bold;" >
<%=SystemEnv.getHtmlLabelName(17463,user.getLanguage())%><%=i+1%>
</td></tr>
</table>
</div>
<div onmouseover="this.style.background='#CCFF66'" onmouseout="this.style.background='#ffffff'" id="detail<%=i%>_add" onclick="setcellval(this)">
<table height=10 width=100% cellpadding='0' cellspacing='0'>
<tr><td valign="top" style="color:#FF00FF">
<%=SystemEnv.getHtmlLabelName(19569,user.getLanguage())%>
</td></tr>
</table>
</div>
<div onmouseover="this.style.background='#CCFF66'" onmouseout="this.style.background='#ffffff'" id="detail<%=i%>_del" onclick="setcellval(this)">
<table height=10 width=100% cellpadding='0' cellspacing='0'>
<tr><td valign="top" style="color:#FF00FF">
<%=SystemEnv.getHtmlLabelName(19570,user.getLanguage())%>
</td></tr>
</table>
</div>
<div onmouseover="this.style.background='#CCFF66'" onmouseout="this.style.background='#ffffff'" id="detail<%=i%>_sel" onclick="setcellval(this)">
<table height=10 width=100% cellpadding='0' cellspacing='0'>
<tr><td valign="top" style="color:#FF00FF">
<%=SystemEnv.getHtmlLabelName(19571,user.getLanguage())%>
</td></tr>
</table>
</div>
<div onmouseover="this.style.background='#CCFF66'" onmouseout="this.style.background='#ffffff'" id="detail<%=i%>_head" onclick="setcellval(this)">
<table height=10 width=100% cellpadding='0' cellspacing='0'>
<tr><td valign="top" style="color:#FF00FF">
<%=SystemEnv.getHtmlLabelName(19572,user.getLanguage())%>
</td></tr>
</table>
</div>
<div onmouseover="this.style.background='#CCFF66'" onmouseout="this.style.background='#ffffff'" id="detail<%=i%>_end" onclick="setcellval(this)">
<table height=10 width=100% cellpadding='0' cellspacing='0'>
<tr><td valign="top" style="color:#FF00FF">
<%=SystemEnv.getHtmlLabelName(19573,user.getLanguage())%>
</td></tr>
</table>
</div>
<%if(isprint==1){%>
<div onmouseover="this.style.background='#CCFF66'" onmouseout="this.style.background='#ffffff'" id="detail<%=i%>_isprintbegin" onclick="setcellval(this)">
<table height=10 width=100% cellpadding='0' cellspacing='0'>
<tr><td valign="top" style="color:#FF00FF">
<%=SystemEnv.getHtmlLabelName(22364,user.getLanguage())%>
</td></tr>
</table>
</div>
<div onmouseover="this.style.background='#CCFF66'" onmouseout="this.style.background='#ffffff'" id="detail<%=i%>_isprintend" onclick="setcellval(this)">
<table height=10 width=100% cellpadding='0' cellspacing='0'>
<tr><td valign="top" style="color:#FF00FF">
<%=SystemEnv.getHtmlLabelName(22365,user.getLanguage())%>
</td></tr>
</table>
</div>
<%}%>
<%if(!nodetype.equals("3")){%>
<div onmouseover="this.style.background='#CCFF66'" onmouseout="this.style.background='#ffffff'" id="detail<%=i%>_isneed" value="<%=SystemEnv.getHtmlLabelName(24801,user.getLanguage())%>" onclick="setcellval(this)">
<table height=10 width=100% cellpadding='0' cellspacing='0'>
<tr><td valign="top" style="color:#FF00FF">
<%=SystemEnv.getHtmlLabelName(24801,user.getLanguage())%>
</td></tr>
</table>
</div>
<div onmouseover="this.style.background='#CCFF66'" onmouseout="this.style.background='#ffffff'" id="detail<%=i%>_isdefault" value="<%=SystemEnv.getHtmlLabelName(24796,user.getLanguage())%>" onclick="setcellval(this)">
<table height=10 width=100% cellpadding='0' cellspacing='0'>
<tr><td valign="top" style="color:#FF00FF">
<%=SystemEnv.getHtmlLabelName(24796,user.getLanguage())%>
</td></tr>
</table>
</div>
<%}%>
<%
    ArrayList tempdetails=(ArrayList)detailtablefields.get(i);
    ArrayList tempdetailnames=(ArrayList)detailtablefieldnames.get(i);
    for(int j=0;j<tempdetails.size();j++){
%>
<div onmouseover="this.style.background='#CCFF66'" onmouseout="this.style.background='#ffffff'" id="<%=tempdetails.get(j)%>" value="<%=tempdetailnames.get(j)%>" onclick="setcellval(this)">
<table height=10 width=100% cellpadding='0' cellspacing='0'>
<tr><td valign="top">
<%=tempdetailnames.get(j)%>
</td></tr>
</table>
</div>
<%
    }
}
%>
<div style="BACKGROUND-COLOR:buttonface;cursor:text">
<table height=15 width=100% cellpadding='0' cellspacing='0'>
<tr><td valign="top" style="height:15;font-size: 15;font-weight: bold;"><%=SystemEnv.getHtmlLabelName(18015,user.getLanguage())%><%=SystemEnv.getHtmlLabelName(15586,user.getLanguage())%>
</td></tr>
</table>
</div>
<%
for(int i=0;i<nodes.size();i++){
%>
<div onmouseover="this.style.background='#CCFF66'" onmouseout="this.style.background='#ffffff'" id="<%=nodes.get(i)%>"  value="<%=nodenames.get(i)%>" onclick="setcellval(this)">
<table height=10 width=100% cellpadding='0' cellspacing='0'>
<tr><td valign="top">
<%=nodenames.get(i)%>
</td></tr>
</table>
</div>
<%
}
%>
</td></tr>
</table>
<script language=vbs>
sub setcellval(obj)
    Dim nCombiRows
    nowrow=parent.chinaexcel.CellWeb1.Row
    nowcol=parent.chinaexcel.CellWeb1.Col
    userstring=parent.chinaexcel.CellWeb1.GetCellUserStringValue(nowrow,nowcol)  
    cellval=parent.chinaexcel.CellWeb1.GetCellValue(nowrow,nowcol)
    strname=obj.id
    if InStr(userstring,"_head")>0 or InStr(userstring,"_end")>0 then
    exit sub
    end if
    if InStr(strname,"_head")<1 and InStr(strname,"_end")<1 and InStr(strname,"_isprintbegin")<1 and InStr(strname,"_isprintend")<1 then
        parent.chinaexcel.CellWeb1.SetCellProtect nowrow,nowcol,nowrow,nowcol,false
        if Len(userstring)>0 then            
            document.getElementById(userstring).style.display=""
            parent.chinaexcel.CellWeb1.DeleteCellImage nowrow,nowcol,nowrow,nowcol
        end if
        parent.chinaexcel.CellWeb1.SetCellNormalType nowrow,nowcol
        //parent.chinaexcel.CellWeb1.HorzTextAlign = 2
        parent.chinaexcel.CellWeb1.SetCellUserStringValue nowrow,nowcol,nowrow,nowcol,strname
        if strname="requestname" then
        <%
		    if(nodetype.equals("0")){
	    	%>
        	parent.chinaexcel.CellWeb1.SetCellUserValue nowrow,nowcol,nowrow,nowcol,2
        	parent.chinaexcel.CellWeb1.ReadHttpImageFile "/images/BacoError_wev8.gif",nowrow,nowcol,true,true
        <%}else{%>
        	parent.chinaexcel.CellWeb1.SetCellUserValue nowrow,nowcol,nowrow,nowcol,0
        <%}%> 
        else parent.chinaexcel.CellWeb1.SetCellUserValue nowrow,nowcol,nowrow,nowcol,0
        end if
    end if
    if InStr(strname,"_add")>0 then
        parent.chinaexcel.CellWeb1.HorzTextAlign = 2
        parent.chinaexcel.CellWeb1.SetCellVal nowrow,nowcol,"<%=SystemEnv.getHtmlLabelName(456,user.getLanguage())%>"
        parent.chinaexcel.CellWeb1.ReadHttpImageFile "/images/addDocs_wev8.gif",nowrow,nowcol,true,false        
    else
        if InStr(strname,"_del")>0 then
            parent.chinaexcel.CellWeb1.HorzTextAlign = 2
            parent.chinaexcel.CellWeb1.SetCellVal nowrow,nowcol,"<%=SystemEnv.getHtmlLabelName(91,user.getLanguage())%>"
            parent.chinaexcel.CellWeb1.ReadHttpImageFile "/images/addDocs_wev8.gif",nowrow,nowcol,true,false
        else
            if InStr(strname,"_sel")>0 then
                parent.chinaexcel.CellWeb1.SetCellVal nowrow,nowcol,""
                parent.chinaexcel.CellWeb1.SetCellCheckBoxType nowrow,nowcol
            else
                if InStr(strname,"_head")>0 then
                    if nowrow>1 then
                    parent.chinaexcel.CellWeb1.InsertNextRow nowrow-1,nowrow-1
                    parent.chinaexcel.CellWeb1.SetCellBkColor nowrow,1,nowrow,1,15527148
                    parent.chinaexcel.CellWeb1.CombiNation nowrow,nowrow,1,parent.chinaexcel.CellWeb1.GetMaxCol                    
                    parent.chinaexcel.CellWeb1.SetCellVal nowrow,1,"【$<%=SystemEnv.getHtmlLabelName(19572,user.getLanguage())%>】"
                    parent.chinaexcel.CellWeb1.SetCellUserStringValue nowrow,1,nowrow,1,strname
                    parent.chinaexcel.CellWeb1.GoToCell nowrow,1
                    else
                    msgbox "<%=SystemEnv.getHtmlLabelName(19574,user.getLanguage())%>"
                    Exit Sub
                    end if
                else
                    if InStr(strname,"_end")>0 then
                        parent.chinaexcel.CellWeb1.GetCellCombiNationWeb nowrow,nowcol,StartCombiRow,StartCombiCol,nCombiRows,nCombiCols
                        parent.chinaexcel.CellWeb1.InsertNextRow nowrow+nCombiRows,nowrow+nCombiRows    
                        parent.chinaexcel.CellWeb1.SetCellBkColor nowrow+nCombiRows+1,1,nowrow+nCombiRows+1,parent.chinaexcel.CellWeb1.GetMaxCol,15527148
                        parent.chinaexcel.CellWeb1.CombiNation nowrow+nCombiRows+1,nowrow+nCombiRows+1,1,parent.chinaexcel.CellWeb1.GetMaxCol                        
                        parent.chinaexcel.CellWeb1.SetCellVal nowrow+nCombiRows+1,1,"【$<%=SystemEnv.getHtmlLabelName(19573,user.getLanguage())%>】"
                        parent.chinaexcel.CellWeb1.SetCellUserStringValue nowrow+nCombiRows+1,1,nowrow+nCombiRows+1,1,strname
                        parent.chinaexcel.CellWeb1.GoToCell nowrow+nCombiRows+1,1
                    else 
                        if InStr(strname,"_isprintbegin")>0 then
                         	  if nowrow>1 then
                                parent.chinaexcel.CellWeb1.InsertNextRow nowrow-1,nowrow-1
                                parent.chinaexcel.CellWeb1.SetCellBkColor nowrow,1,nowrow,1,15527148
                                parent.chinaexcel.CellWeb1.CombiNation nowrow,nowrow,1,parent.chinaexcel.CellWeb1.GetMaxCol                    
                                parent.chinaexcel.CellWeb1.SetCellVal nowrow,1,"【$<%=SystemEnv.getHtmlLabelName(22364,user.getLanguage())%>】"
                                parent.chinaexcel.CellWeb1.SetCellUserStringValue nowrow,1,nowrow,1,strname
                                parent.chinaexcel.CellWeb1.GoToCell nowrow,1
                            else
                                msgbox "<%=SystemEnv.getHtmlLabelName(19574,user.getLanguage())%>"
                                Exit Sub
                            end if
                        else if InStr(strname,"_isprintend")>0 then
                         	  if nowrow>1 then
                                parent.chinaexcel.CellWeb1.GetCellCombiNationWeb nowrow,nowcol,StartCombiRow,StartCombiCol,nCombiRows,nCombiCols
                                parent.chinaexcel.CellWeb1.InsertNextRow nowrow+nCombiRows,nowrow+nCombiRows    
                                parent.chinaexcel.CellWeb1.SetCellBkColor nowrow+nCombiRows+1,1,nowrow+nCombiRows+1,parent.chinaexcel.CellWeb1.GetMaxCol,15527148
                                parent.chinaexcel.CellWeb1.CombiNation nowrow+nCombiRows+1,nowrow+nCombiRows+1,1,parent.chinaexcel.CellWeb1.GetMaxCol                        
                                parent.chinaexcel.CellWeb1.SetCellVal nowrow+nCombiRows+1,1,"【$<%=SystemEnv.getHtmlLabelName(22365,user.getLanguage())%>】"
                                parent.chinaexcel.CellWeb1.SetCellUserStringValue nowrow+nCombiRows+1,1,nowrow+nCombiRows+1,1,strname
                                parent.chinaexcel.CellWeb1.GoToCell nowrow+nCombiRows+1,1
                            else
                                msgbox "<%=SystemEnv.getHtmlLabelName(19574,user.getLanguage())%>"
                                Exit Sub
                            end if
                        else 
                        if InStr(strname,"showKeyword")>0 then
                            parent.chinaexcel.CellWeb1.HorzTextAlign = 2
                            parent.chinaexcel.CellWeb1.SetCellVal nowrow,nowcol,""
                            parent.chinaexcel.CellWeb1.ReadHttpImageFile "/images/BacoBrowser_wev8.gif",nowrow,nowcol,true,true
						else
                            if InStr(strname,"createCodeAgain")>0 then
                                parent.chinaexcel.CellWeb1.HorzTextAlign = 2
                                parent.chinaexcel.CellWeb1.SetCellVal nowrow,nowcol,""
                                parent.chinaexcel.CellWeb1.ReadHttpImageFile "/images/BacoBrowser_wev8.gif",nowrow,nowcol,true,true
						    else						
                                if InStr(cellval,"@")<1 then                        
                                    parent.chinaexcel.CellWeb1.SetCellVal nowrow,nowcol,"【$"&obj.value&"】"
                                end if
							end if
						end if
                    end if
                    end if
                    end if
                end if
            end if
        end if
    end if
    if InStr(strname,"_head")<1 and InStr(strname,"_end")<1 and InStr(strname,"_isprintbegin")<1 and InStr(strname,"_isprintend")<1 then
    parent.chinaexcel.CellWeb1.SetCellProtect nowrow,nowcol,nowrow,nowcol,true
    else
        if InStr(strname,"_head")>0 or InStr(strname,"_isprintbegin")>0 then
            parent.chinaexcel.CellWeb1.SetCellProtect nowrow,1,nowrow,1,true
        else
            parent.chinaexcel.CellWeb1.SetCellProtect nowrow+nCombiRows+1,1,nowrow+nCombiRows+1,1,true
        end if
    end if
    if InStr(cellval,"@")>0 then
        parent.chinaexcel.CellWeb1.SetCellProtect nowrow,nowcol,nowrow,nowcol,false
    end if
    parent.chinaexcel.CellWeb1.RefreshViewSize
    obj.style.display="none"
end sub
</script>
</BODY>
</HTML>