<!--#INCLUDE FILE="../HXINCLUDE/HXINCLUDEHEAD.ASP"-->
<%if WS_S.MemberPriv("WS_SystemSetWorkFlowType")<>1 then HX_GoBack "对不起,您的权限不够!",""
action=request("action")
if action="saveinfo" then
  WorkTypeName=request("TypeName"):WorkTypeBrief=request("TypeBrief"):ColumnName="":Tablename="HX_WorkFlowType":Orderby=" where WS_WorkFlowTypeName='"&WorkTypeName&"'"
  set rs=WS_S.HX_SetRSD(ColumnName,Tablename,Orderby)
    if rs.recordcount>0 then
	  HX_GoBack "此类别已存在","" 
	else
	  rs.addnew:rs("WS_WorkFlowTypeName")=WorkTypeName:rs("WS_WorkFlowTypeBrief")=WorkTypeBrief:rs.update
	  response.write "<script>window.opener.location.reload();if(confirm('是否继续添加？')) {location.href='WorkFlowAddType.asp';}else {location.href='WorkFlowType.asp';window.close();}</script>"
      response.end
	end if
end if
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><body topmargin='20' leftmargin='0' bottommargin='0'>"
WSOASCOMSTR=WSOASCOMSTR&"<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'><tr><td height='25' background='../hximages/titleline.gif'><font class='fontmenu'>公文类别添加</font>"
WSOASCOMSTR=WSOASCOMSTR&"</td></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'><td width='25%' height='23'>　类别名称：</td><td width='75%' height='23'>"
WSOASCOMSTR=WSOASCOMSTR&"<input name='TypeName' type='text' 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'></textarea></td></tr><tr bgcolor='#FFFBE8'><td width='25%'></td><td width='75%'>"
WSOASCOMSTR=WSOASCOMSTR&"<input type='submit' value=' 添 加 ' name='B4'> <input type='reset' value=' 重 填 ' name='B3'> <input type='button' name='Submit' value=' 关 闭 ' onclick='javascript:window.close();'></td></tr></form></table></td></tr></table>"
response.Write WSOASCOMSTR%>