<%@ 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.entity.sys.BPIP_USER_REMOVE" %>
<%@ page import = "zr.zrpower.ejb.sys.UserRemoveService" %>

<%@ page import = "zr.zrpower.ejb.sys.UnitService" %>
<%@ page import = "java.lang.Object"%>
<%@ page import = "java.util.*" %>
<%@ page import = "java.text.*" %>
<HTML>
<%
UserRemoveService UserRemove =new UserRemoveService();
UIService userUI =new UIService();
SessionUser user = (SessionUser)session.getAttribute("userinfo");
String where=request.getParameter("where");
String strID = request.getParameter("SelectedItems");
UnitService depMgr = new UnitService();
String UnitName = depMgr.GetUnitName(request.getParameter("unitid")) ;
String UnitID = request.getParameter("Unit_No") ;
String strunitid = request.getParameter("unitid");
%>
<HTML>
<HEAD>
<TITLE></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()%>">
<%if("6".equals(user.getUserWINDOWTYPE())){ %>
<SCRIPT LANGUAGE="JavaScript" src="../zrsysmanage/html5/script/jquery-2.0.3.min.js"></SCRIPT>
<SCRIPT LANGUAGE="JavaScript" src="../zrsysmanage/html5/layer/layer.js"></SCRIPT>
<%}%>
<SCRIPT LANGUAGE="JavaScript" src="../zrsysmanage/script/Public.js"></SCRIPT>
<script language="JavaScript" type="text/JavaScript">
<!--
function Check(theForm){

  if (theForm.BEFOREUNIT.value == ""){
    
    <%if("6".equals(user.getUserWINDOWTYPE())){ %>
        layer.alert('调动前单位不能为空!', {icon: 7});
      <%}else{%>
       alert("调动前单位不能为空！");
       <%}%>
    theForm.BEFOREUNIT.focus();
    return (false);
  }

  if (theForm.AFTERUNIT.value == ""){
    
    <%if("6".equals(user.getUserWINDOWTYPE())){ %>
        layer.alert('调动后单位不能为空！', {icon: 7});
      <%}else{%>
       alert("调动后单位不能为空！");
       <%}%>
    theForm.AFTERUNIT.focus();
    return (false);
  }

return (true);
}
function selectUnit(){
   <%if("6".equals(user.getUserWINDOWTYPE())){ %>
       openLaoadUrl('../zrsysmanage/PublicJsp/UnitIndex.jsp?id=AFTERUNIT&name=AFTERUNITNAME','520px','415px');
   <%}else{%>
     window.open("../zrsysmanage/PublicJsp/UnitIndex.jsp?id=AFTERUNIT&name=AFTERUNITNAME","selectuser","top=60,left=100,toolbar=no,location=no,directories=no,status=no,menubar=no,resizable=yes,scrollbars=yes,width=520,height=415");

    <%}%>
        
}
//-->
</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="../actionuserremove.do"  onsubmit="return Check(this);">
<input type="hidden" id="Act" name="Act" value="add">

           <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="USERID" value='<%=strID%>' size="57" maxlength="30" readonly="readonly"></td>
             </tr>
             <tr>
              <td class="inputTdtitle">调动时间：</td>
               <td class="inputTd" ><input class="text" type="text" name="MOVETIME" value='<%=mDateTime%>' size="57" maxlength="300" readonly="readonly"></td>
             </tr>
             <tr>
               <td class="inputTdtitle">调动前单位：</td>
               <td class="inputTd" ><input class="text" type="text" name="" size="57" value='<%=UnitName%>' maxlength="300" readonly="readonly"><input type="hidden" name="BEFOREUNIT" value="<%=strunitid%>"></td>
            </tr>
             <tr>
             <td class="inputTdtitle">调动后单位：</td>
           <td> <table cellspacing="0" cellpadding="0" border='0'><tr><td><input type="text" class="text" id="AFTERUNITNAME" name="AFTERUNITNAME" size="57" maxlength="1000" readonly="readonly"><input type="hidden" id="AFTERUNIT" name="AFTERUNIT"  value=""></td>
            <%=userUI.ClickButton1("选择","selectUnit();","buttonSelect.gif",user.getUserImage())%>
             </tr></table></td>
            </tr>
             <tr>
              <td class="inputTdtitle">调动原因：</td>
               <td class="inputTd" ><textarea name="MOVEREASON" rows="3" cols="56"></textarea></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())%>
                 <%=userUI.ClickButton("重 填","JavaScript:document.RegForm.reset();","buttonReset.gif",user.getUserImage())%>
                 <%=userUI.ClickButton("返 回","JavaScript:history.back();","buttonReturn.gif",user.getUserImage())%>
                 </tr></table>
                 </center>
          </DIV>

</FORM>
</BODY>
</HTML>
<%
UserRemove = null;
userUI = null;
user = null;
depMgr = null;
%>
