ViewWorkflowbillfield.jsp
4.37 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
<%@ page import="weaver.general.Util" %>
<%@ page language="java" contentType="text/html; charset=UTF-8" %> <%@ include file="/systeminfo/init_wev8.jsp" %>
<%@ page import= "weaver.systeminfo.workflowbill.WorkFlowBillUtil"%>
<jsp:useBean id="rs" class="weaver.conn.RecordSet" scope="page" />
<html>
<%
WorkFlowBillUtil wf = new WorkFlowBillUtil();
String indexdesc="";
int billid=0;
int id;
id = Util.getIntValue(request.getParameter("id"),0);
//indexdesc = Util.toScreen(request.getParameter("indexdesc"),user.getLanguage(),"0");
String sql = "select * from workflow_billfield where id = "+id;
rs.executeSql(sql);
%>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<LINK href="/css/BacoSystem_wev8.css" type=text/css rel=STYLESHEET>
<script language="javascript">
</script>
</head>
<BODY>
<DIV class=HdrTitle>
<TABLE cellSpacing=0 cellPadding=0 width="100%" border=0>
<TBODY>
<TR>
<TD align=left width=55><IMG height=24 src="/images/hdReport_wev8.gif"></TD>
<TD align=left><SPAN id=BacoTitle class=titlename>详细信息: 工作流单据字段</SPAN></TD>
<TD align=right> </TD>
<TD width=5></TD>
<tr>
<TBODY>
</TABLE>
</div>
<DIV class=HdrProps></DIV>
<FORM style="MARGIN-TOP: 0px" name=workflowbillViewform method=post action="WorkflowbillOperation.jsp">
<BUTTON class=btn id=btnEdit accessKey=E name=btnEdit onclick="editworkflowbill()"><U>E</U>-编辑</BUTTON>
<%if(Util.getIntValue(user.getSeclevel(),0)>=20){%>
<BUTTON class=btn id=btnDelete accessKey=D name=btnDelete onclick="deleteworkflowbillfield()"><U>D</U>-删除</BUTTON>
<BUTTON class=btn id=btnBack accessKey=B name=btnBack onclick="back()"><U>D</U>-返回</BUTTON>
<input type=hidden name=operation>
<input type=hidden name=id value="<%=id%>">
<%}%>
<br>
<TABLE class=Form>
<COLGROUP> <COL width="20%"> <COL width="80%"><TBODY>
<TR class=Section>
<TH colSpan=5>字段信息</TH>
</TR>
<TR class=Separator>
<TD class=sep1 colSpan=5></TD>
</TR>
<%
while(rs.next()){
billid = Util.getIntValue(rs.getString("billid"),0);
int fieldlabel = Util.getIntValue(rs.getString("fieldlabel"),0);
indexdesc = wf.getLabelByLabelId(fieldlabel);
String name = rs.getString("fieldname");
String dbtype = rs.getString("fielddbtype");
int htmltype = Util.getIntValue(rs.getString("fieldhtmltype"),0);
int ht = wf.getHtmlType(htmltype);
int type = wf.getType(htmltype,Util.getIntValue(rs.getString("type"),0));
int dsporder = Util.getIntValue(rs.getString("dsporder"),0);
int viewtype = Util.getIntValue(rs.getString("viewtype"),0);
%>
<TR>
<TD>字段id</TD>
<TD Class=Field><a><%=id%></TD>
</TR>
<TR>
<TD>单据id</TD>
<TD Class=Field><a><%=billid%></TD>
</TR>
<TR>
<TD>字段名</TD>
<TD Class=Field><%=name%></TD>
</TR>
<TR>
<TD>字段显示名称</TD>
<TD Class=Field><%=indexdesc%></TD>
</TR>
<TR>
<TD>字段数据库类型</TD>
<TD Class=Field><%=dbtype%></TD>
</TR>
<TR>
<TD>字段页面类型</TD>
<TD Class=Field><%=Util.null2String(SystemEnv.getHtmlLabelName(ht,user.getLanguage()))%></TD>
</TR>
<TR>
<TD>单据字段类型</TD>
<TD Class=Field><%=Util.null2String(SystemEnv.getHtmlLabelName(type,user.getLanguage()))%></TD>
</TR>
<TR>
<TD>字段显示顺序</TD>
<TD Class=Field><%=dsporder%></TD>
</TR>
<TR>
<TD>所属数据库类型</TD>
<TD Class=Field>
<%if(viewtype==0){%>
main table
<%}else{%>
detail table
<%}%>
</TD>
</TR>
<%
}
%>
</TBODY>
</TABLE>
</FORM>
<script>
function editworkflowbill(){
location = "EditWorkflowbillfield.jsp?id=<%=id%>&indexdesc=<%= indexdesc%>";
}
function deleteworkflowbillfield(){
if(confirm("Are you sure to delete the field?")){
document.workflowbillViewform.operation.value = "deletefield";
document.workflowbillViewform.submit();
}
}
function back(){
location = "ViewWorkflowbill.jsp?id=<%=billid%>";
}
</script>
</BODY>
</HTML>