<%@ page contentType="text/html; charset=GBK"%>
<%@ page import = "zr.zrpower.common.util.SysPreperty"%>
<%@ page import = "zr.zrpower.entity.sys.SessionUser"%>
<%@ page import = "zr.zrpower.ejb.sys.UIService"%>
<%@ page import = "zr.zrpower.flowengine.mode.base.Package"%>
<%@ page import = "zr.zrpower.flowengine.service.FlowSetup"%>

<%@ page import = "java.lang.Object"%>
<%@ page import = "java.util.*"%>
<%@ page import = "java.text.*"%>
<HTML>
<%
FlowSetup FlowPackage= new FlowSetup();
UIService userUI =new UIService();
SessionUser user = (SessionUser)session.getAttribute("userinfo");
String where=request.getParameter("where");
String strFID = request.getParameter("FID");
if (strFID==null || strFID.length()==0)
{strFID = "000";}
%>
<HTML>
<HEAD>
<TITLE><%=SysPreperty.getProperty().SystemName%><%=SysPreperty.getProperty().Versoin%></TITLE>
<META HTTP-EQUIV="Pragma" CONTENT="no-cache">
<META http-equiv="Content-Type" content="text/html; charset=GBK">
<link REL="stylesheet" type="text/css" href="../../../zrsysmanage/css/<%=user.getUserCSS()%>">
<SCRIPT LANGUAGE="JavaScript" src="../../../zrsysmanage/script/Public.js"></SCRIPT>
<script src="../../../zrsysmanage/html5/script/jquery-2.0.3.min.js" type="text/jscript" ></script>
<script src="../../../zrsysmanage/html5/layer/layer.js" type="text/jscript" ></script>

<script language="JavaScript" type="text/JavaScript">
<!--
function Check(theForm){
   if (theForm.NAME.value == ""){
     <%if(user.getUserWINDOWTYPE().equals("6")){%>
      layer.alert('名称不能为空！', {icon: 7});
    <%}else{%>
      alert("名称不能为空！");
    <%}%>

    theForm.NAME.focus();
    return (false);
  }
return (true);
}

//-->
</script>
</HEAD>
<BODY class="BodyMain">
<%
Calendar cal = Calendar.getInstance();
SimpleDateFormat formatter = new SimpleDateFormat("yyyy-MM-dd");
String mDateTime = formatter.format(cal.getTime());
%>
<FORM name="RegForm" method="post" action="../../../flowpackage.do"  onsubmit="return Check(this);">
<input type="hidden" id="Act" name="Act" value="add">
<input type="hidden" name="UNIT" value="<%=user.getUnitID()%>">
<input type="hidden" name="FID" value="<%=strFID%>">
<input type="hidden" name="ICO" value="1">

<%if(!user.getUserWINDOWTYPE().equals("6")){ %>
<!--HTML Head表单头显示[显示内容,图标文件,用户肤色的图片文件夹]-->
<%=userUI.ShowHeadHtml("流程分类管理","IcoTitle.gif",user.getUserImage())%>
<!--HTML Body Start显示表单开始部分-->
<%=userUI.ShowBodyStartHtml()%>
  <br>&nbsp;
<%}%>


           <DIV id="divMessage" style='padding-left:0;padding-top:0;width:96%;height:100%;overflow:auto'>
           <fieldset>
           <legend>增加流程分类信息</legend>
           <table border="0" class="inputTable" cellspacing="0" cellpadding="0" align="center">
           <tr>
               <td class="inputTdtitle">名称：</td>
               <td class="inputTd" ><input class="text" type="text" name="NAME" size="50" maxlength="100"></td>
          </tr>
          <tr>
               <td class="inputTdtitle">描述：</td>
               <td class="inputTd" ><input class="text" type="text" name="DESC1" size="50" maxlength="300"></td>
          </tr>

           <tr>
        <td class="inputTdtitle">发布状态：</td>
        <td class="inputTd">
          <input type="radio" name="STATUS" value=1 onclick="document.RegForm.STATUS.value='1'" checked>
          启用　
          <input type="radio" name="STATUS" value=0 onclick="document.RegForm.STATUS.value='0'">
          停用
        </td>
      </tr>


            <tr>
               <td class="inputTdtitle">创建者：</td>
               <td class="inputTd" ><input class="text" type="text" name="CREATEPSNNAME" size="50" value="<%=user.getName()%>" maxlength="300" readonly="readonly">
                 <input type="hidden" name="CREATEPSN" value="<%=user.getUserID()%>"></td>
           </tr>
            <tr>
               <td class="inputTdtitle">创建日期：</td>
               <td class="inputTd" ><input class="text" type="text" name="CREATEDATE" size="50"  value="<%=mDateTime%>" maxlength="300" readonly="readonly"></td>
           </tr>
          </table>
          <br>
          </fieldset>
                 <center><br>
                 <table cellspacing="0" cellpadding="0" border='0'><tr>
                 <%=userUI.ClickButton("保存","JavaScript:if(Check(document.RegForm)){document.RegForm.submit();}","buttonSave.gif",user.getUserImage())%>

                 <% if("6".equals(user.getUserWINDOWTYPE())){%>
                 <%=userUI.ClickButton1("关闭","parent.layer.closeAll();","buttonClose.gif",user.getUserImage())%>
                 <% }else{%>
                 <%=userUI.ClickButton("关闭","JavaScript:window.close();","buttonReturn.gif",user.getUserImage())%>
                 <% }%>

                 </tr></table>
                 </center>
          </DIV>

<%if(!user.getUserWINDOWTYPE().equals("6")){ %>
<!--HTML Foot显示表单尾-->
<%=userUI.ShowFootHtml()%>
<%}%>
</FORM>
</BODY>
</HTML>
<%
//清空相关对象
user = null;
userUI = null;
FlowPackage = null;
%>
