<!--#INCLUDE FILE="../HXINCLUDE/HXINCLUDEHEAD.ASP"-->
<%if WS_S.MemberPriv("WS_SystemSetWorkFlowType")<>1 then HX_GoBack "对不起,您的权限不够!",""
ColumnName="":Tablename="HX_WorkFlowType"
WS_WTID=request("WS_WTID")
 if WS_WTID="" or isnull(WS_WTID) or (WS_WTID<>"" and not isnumeric(WS_WTID)) then 	response.write "<script>alert('非法操作');window.close();</script>":response.end  
Orderby=" where WS_WTID="&WS_WTID
set rs=WS_S.HX_SetRSD(ColumnName,Tablename,Orderby)
action=request("action")
if action="saveinfo" then
WorkTypeName=request("TypeName"):  WorkTypeBrief=request("TypeBrief")
rs("WS_WorkFlowTypeName")=WorkTypeName:rs("WS_WorkFlowTypeBrief")=WorkTypeBrief:rs.update
response.write "<script>if(confirm('修改成功!\n是否关闭此窗口？')) {window.close();window.opener.location.reload();}else {location.href='workflowmodify.asp?WS_WTID="&WS_WTID&"';}</script>":response.end
end if
if rs.recordcount<=0 then response.write "<script>alert('非法操作');window.close();</script>":response.end
WSOASCOMSTR="<head><meta http-equiv='Content-Type' content='text/html; charset=gb2312'><title>公文类别修改</title><link rel=stylesheet type=text/css href='../HXinclude/HX_Css.css'><script src='../HXinclude/HX_Function.js'></script></head>"
WSOASCOMSTR=WSOASCOMSTR&"<body topmargin='20' leftmargin='0' bottommargin='0'><table width='480'  border='0' cellspacing='1' cellpadding='0' align=center bgcolor='#613c25'><tr><td colspan='2' bgcolor=FFFBE8><table width='100%'  border='0' cellspacing='0' cellpadding='0'>"
WSOASCOMSTR=WSOASCOMSTR&"<tr><td height='25' background='../hximages/titleline.gif'><font class='fontmenu'>公文类别修改</font></td>"
WSOASCOMSTR=WSOASCOMSTR&"</tr></table><table width='100%'  border='0' cellspacing='1' cellpadding='3' bgcolor=FFFBE8><form name='form1' method='post' action='?action=saveinfo' onSubmit='return WorkTypecheck(this);'><tr bgcolor='#FFFBE8'>"
WSOASCOMSTR=WSOASCOMSTR&"<td width='25%' height='23'>　类别名称：</td><td width='75%' height='23'><input name='TypeName' type='text' value='"&rs("WS_WorkFlowTypeName")&"' size='20'></td></tr><tr bgcolor='#FFFBE8'><td width='25%' height='89' valign='top'>　简要说明：</td><td width='75%' height='89'><textarea rows='5' name='TypeBrief' cols='48' CLASS='BGLINE'>"
WSOASCOMSTR=WSOASCOMSTR&rs("WS_WorkFlowTypeBrief")&"</textarea></td></tr><tr bgcolor='#FFFBE8'><td width='25%'></td><td width='75%'><input type='submit' value=' 修 改 ' name='B4'> <input type='reset' value=' 重 填 ' name='B3'> <input type='button' name='Submit' value=' 关 闭 ' onclick='javascript:window.close();'>"
WSOASCOMSTR=WSOASCOMSTR&" <input name='WS_WTID' type='hidden' id='WS_WTID' value='"&rs("WS_WTID")&"'></td></tr></form></table></td></tr></table>"
RESPONSE.Write WSOASCOMSTR 
%>