<%@ page contentType="text/html;charset=gbk" %>
<%@ page import="java.util.Iterator" %>
<%@ page import="net.sz600.basicdata.*" %>
<%@ page import="net.sz600.tool.SzConvert" %>
<%@ page import="net.sz600.database.SzPageInfo" %>
<%@ page import="net.sz600.system.SzProperties" %>
<%@ page import="net.sz600.system.SzLevelNumber" %>
<%@ page import="net.sz600.system.SzPageHelp" %>
<%@ page import="net.sz600.flow.*" %>
<%@ page import="net.sz600.organize.*" %>
<%@ include file="/sessionInfo.jsp"%>
<head>
<title></title>
<meta http-equiv="Content-Type" content="text/html; charset=GBK">
<link href="<%=strSkin_SESSION%>/css2007.css" rel="stylesheet" type="text/css">
</head>
<%
    //传阅窗口，选择人员后，发送给人员，自动关闭
    String sOPERATOR = SzConvert.toSpaceStr(request.getParameter("OPERATOR"));
    int iFormID = SzConvert.toInt(request.getParameter("FormID"));
    int iInfoID = SzConvert.toInt(request.getParameter("InfoID"));
    //加入选择人员的信息，选择后提交到control
    if (sOPERATOR.equals("")) {
    	sOPERATOR = "pass";
    }
%>
<body>
<!-----上面的工具栏------>
<form name="formUpdate" method="post">
  <input type="hidden" name="FormID" value="<%=iFormID%>"> 
  <input type="hidden" name="InfoID" value="<%=iInfoID%>">
  <input type="hidden" name="OPERATOR" value="<%=sOPERATOR%>">  
  <input type="hidden" name="CYDLXM" value="<%=sDLXM_SESSION%>">
  <input type="hidden" name="CYDLID" value="<%=iDLID_SESSION%>">  
<%@ include file="title.jsp"%>
<table width="100%">
  <tr>
    <td>
    <%=SzPageHelp.saveButton()%>
    <%=SzPageHelp.backButton()%>
    </td>
  </tr>
</table>

<!-----信息维护------>
<table width="600" border="1" bordercolorlight="#C0C0C0" bordercolordark="#FFFFFF" class="tableClass" cellpadding="3" cellspacing="0">
  <tr>
    <td width="30%" align="right" valign="top">提醒设置</td>
    <td align="left">
      <input type="checkbox" name="MessageAlert" value="1" checked>是否即时信息提醒
      <input type="checkbox" name="SmsAlert" value="1" checked>是否手机短信提醒
    </td>
  </tr> 
  <tr>
    <td width="30%" align="right" valign="top">印发说明</td>
    <td align="left">
      <TEXTAREA class=areaClass2 id=CYSM name=CYSM></TEXTAREA>
    </td>
  </tr> 
  <tr>
    <td width="30%" align="right" valign="top">人员选择
    <input type="button" class="btnClassShort" value="选择" OnClick="javascript:OpenFlowUserWin();"></td>
    <td align="left">
<!----这里列出可以选择的用户---->
<%
    String sDLID_selected = "0";
%>
    <input type="hidden" name="RYDLID1" value="" >
    <input type="hidden" name="RYDLID2" value="" >
    <input type="hidden" name="RYDLID3" value="" >
    直接选择人员
    <textarea name="RYDLXM1" class="areaClass2" readonly></textarea><br>
    直接选择部门
    <textarea name="RYDLXM2" class="areaClass2" readonly></textarea><br>
    直接选择职务
    <textarea name="RYDLXM3" class="areaClass2" readonly></textarea>
<%//@ include file="/share/organize/login_mult_include.jsp"%>
    </td>
  </tr>
</table>

</form>

<!-----这里包含要提交的内容--->
<form name="formHidden" method="post">
  <input type="hidden" name="FormID" value="<%=iFormID%>"> 
  <input type="hidden" name="InfoID" value="<%=iInfoID%>">
</form>
<script language="javascript" src="../../share/js/commonTool.js"></script>
<script language="javascript" src="../../share/js/selectTool.js"></script>
<script language="javascript">
  function FormSave(formName, url) {
    //选择全部
    //SelectAllOption(formName.LoginSelected);
    //SelectAllOption(formName.DepartSelected);
    //SelectAllOption(formName.PostSelected);

    formName.action = url;
    formName.submit();
  }
  
  //弹出窗口，选择人员。这里特定是流程里某个步骤的选择人员。
  function OpenFlowUserWin() {
    var type = "all";
    var url = "../../share/organize/user_win3.jsp";

    url = url + "?objId=formUpdate.RYDLID1&objName=formUpdate.RYDLXM1";
    url = url + "&objDesc=formUpdate.RYDLID2&objDescName=formUpdate.RYDLXM2";
    url = url + "&objPostId=formUpdate.RYDLID3&objPostName=formUpdate.RYDLXM3";
    
    window.showModalDialog(url,window,"status=no;dialogWidth=800px;dialogHeight=450px");
  }  
</script>
</body>


