| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305 |
- <%@ page language="java" import="java.util.*" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
- <%@include file="/context/mytags.jsp"%>
- <!DOCTYPE html>
- <html>
- <head>
- <title>用户信息</title>
- <t:base type="jquery,easyui,tools"></t:base>
- <%--update-start--Author:jg_renjie Date:20160320 for:#942 【组件封装】所属部门弹出模式,目前是列表,得改造成树方式--%>
- <%--update-start--Author:zhangguoming Date:20140825 for:添加所属部门combobox多选的处理方法--%>
- <script>
- <%-- // update-start--Author:zhangguoming Date:20140826 for:将combobox修改为combotree
- function setOrgIds() {
- // var orgIds = $("#orgSelect").combobox("getValues");
- var orgIds = $("#orgSelect").combotree("getValues");
- $("#orgIds").val(orgIds);
- }
- $(function() {
- $("#orgSelect").combotree({
- onChange: function(n, o) {
- if($("#orgSelect").combotree("getValues") != "") {
- $("#orgSelect option").eq(1).attr("selected", true);
- } else {
- $("#orgSelect option").eq(1).attr("selected", false);
- }
- }
- });
- $("#orgSelect").combobox("setValues", ${orgIdList});
- $("#orgSelect").combotree("setValues", ${orgIdList});
- }); --%>
- // update-start--Author:zhangguoming Date:20140826 for:将combobox修改为combotree
- function openDepartmentSelect() {
- $.dialog.setting.zIndex = getzIndex();
- var orgIds = $("#orgIds").val();
- $.dialog({content: 'url:departController.do?departSelect&orgIds='+orgIds, zIndex: 2101, title: '所属部门列表', lock: true, width: '400px', height: '350px', opacity: 0.4, button: [
- {name: '<t:mutiLang langKey="common.confirm"/>', callback: callbackDepartmentSelect, focus: true},
- {name: '<t:mutiLang langKey="common.cancel"/>', callback: function (){}}
- ]}).zindex();
- }
-
- function callbackDepartmentSelect() {
- var iframe = this.iframe.contentWindow;
- var treeObj = iframe.$.fn.zTree.getZTreeObj("departSelect");
- var nodes = treeObj.getCheckedNodes(true);
- if(nodes.length>0){
- var ids='',names='';
- for(i=0;i<nodes.length;i++){
- var node = nodes[i];
- ids += node.id+',';
- names += node.name+',';
- }
- //判断兼容机构里有没有所属机构
- if(ids.length>0 && $('#jzorgIds').val().length>0){
- if($('#jzorgIds').val().indexOf(ids)>=0){
- console.info("ids:"+ids);
- console.info("orgIds:"+$('#orgIds').val());
- $.messager.alert("错误","所属机构和兼容机构不能有重叠!!");
- }else{
- $('#departname').val(names);
- $('#departname').blur();
- $('#orgIds').val(ids);
- }
- }else{
- $('#departname').val(names);
- $('#departname').blur();
- $('#orgIds').val(ids);
- }
-
- }
- }
-
- function callbackClean(){
- $('#departname').val('');
- $('#orgIds').val('');
- }
-
- function setOrgIds() {}
- $(function(){
- $("#departname").prev().hide();
- $("#jzdepartname").prev().hide();
- });
- <%--update-end--Author:zhangguoming Date:20140825 for:添加所属部门combobox多选的处理方法--%>
-
-
- //兼职机构 start
- function openDepartmentSelectjz() {
- $.dialog.setting.zIndex = getzIndex();
- var jzorgIds = $("#jzorgIds").val();
- $.dialog({content: 'url:departController.do?jzdepartSelect&jzorgIds='+jzorgIds, zIndex: 2100, title: '兼职机构列表', lock: true, width: '400px', height: '350px', opacity: 0.4, button: [
- {name: '<t:mutiLang langKey="common.confirm"/>', callback: callbackDepartmentSelectjz, focus: true},
- {name: '<t:mutiLang langKey="common.cancel"/>', callback: function (){}}
- ]}).zindex();
- }
-
- function callbackDepartmentSelectjz() {
- var iframe = this.iframe.contentWindow;
- var treeObj = iframe.$.fn.zTree.getZTreeObj("jzdepartSelect");
- var nodes = treeObj.getCheckedNodes(true);
- if(nodes.length>0){
- var ids='',names='';
- for(i=0;i<nodes.length;i++){
- var node = nodes[i];
- ids += node.id+',';
- names += node.name+',';
- }
- //判断兼容机构里有没有所属机构
- if(ids.length>0 && $('#orgIds').val().length>0){
- if(ids.indexOf( $('#orgIds').val() )>=0){
- console.info("ids:"+ids);
- console.info("orgIds:"+$('#orgIds').val());
- $.messager.alert("错误","所属机构和兼容机构不能有重叠!");
- }else{
- $('#jzdepartname').val(names);
- $('#jzdepartname').blur();
- $('#jzorgIds').val(ids);
- }
- }else{
- $('#jzdepartname').val(names);
- $('#jzdepartname').blur();
- $('#jzorgIds').val(ids);
- }
-
- }
- }
-
- function callbackCleanjz(){
- $('#jzdepartname').val('');
- $('#jzorgIds').val('');
- }
-
- //兼职机构 end
- function contains(arr, obj) {
- var i = arr.length;
- while (i--) {
- if (arr[i] === obj) {
- return true;
- }
- }
- return false;
- }
- </script>
- <%--update-end--Author:jg_renjie Date:20160320 for:#942 【组件封装】所属部门弹出模式,目前是列表,得改造成树方式--%>
- </head>
- <body style="overflow-y: hidden" scroll="no">
- <%--update-start--Author:zhangguoming Date:20140825 for:格式化页面代码 并 添加所属部门combobox多选框--%>
- <t:formvalid formid="formobj" dialog="true" usePlugin="password" layout="table" action="userController.do?saveUser" beforeSubmit="setOrgIds">
- <input id="id" name="id" type="hidden" value="${user.id }">
- <table style="width: 600px;" cellpadding="0" cellspacing="1" class="formtable">
- <tr>
- <td align="right" width="25%" nowrap>
- <label class="Validform_label"><span color="red" class="requiredIcon">*</span><t:mutiLang langKey="common.username"/>: </label>
- </td>
- <td class="value" width="85%">
- <c:if test="${user.id!=null }"> ${user.userName } </c:if>
- <c:if test="${user.id==null }">
- <input id="userName" class="inputxt" name="userName" validType="t_s_base_user,userName,id" value="${user.userName }" datatype="s2-10" />
- <span class="Validform_checktip"> <t:mutiLang langKey="username.rang2to10"/></span>
- </c:if>
- </td>
- </tr>
- <tr>
- <td align="right" width="10%" nowrap>
- <label class="Validform_label"><span color="red" class="requiredIcon">*</span><t:mutiLang langKey="common.real.name"/>: </label>
- </td>
- <td class="value" width="10%">
- <input id="realName" class="inputxt" name="realName" value="${user.realName }" datatype="s2-10">
- <span class="Validform_checktip"><t:mutiLang langKey="fill.realname"/></span>
- </td>
- </tr>
- <c:if test="${user.id==null }">
- <tr>
- <td align="right"><label class="Validform_label"><span color="red" class="requiredIcon">*</span><t:mutiLang langKey="common.password"/>: </label></td>
- <td class="value">
- <input type="password" class="inputxt" value="" name="password" plugin="passwordStrength" datatype="*6-18" errormsg="" />
- <span class="passwordStrength" style="display: none;">
- <span><t:mutiLang langKey="common.weak"/></span>
- <span><t:mutiLang langKey="common.middle"/></span>
- <span class="last"><t:mutiLang langKey="common.strong"/></span>
- </span>
- <span class="Validform_checktip"> <t:mutiLang langKey="password.rang6to18"/></span>
- </td>
- </tr>
- <tr>
- <td align="right"><label class="Validform_label"><span color="red" class="requiredIcon">*</span><t:mutiLang langKey="common.repeat.password"/>: </label></td>
- <td class="value">
- <input id="repassword" class="inputxt" type="password" value="${user.password}" recheck="password" datatype="*6-18" errormsg="两次输入的密码不一致!">
- <span class="Validform_checktip"><t:mutiLang langKey="common.repeat.password"/></span>
- </td>
- </tr>
- </c:if>
- <tr>
- <td align="right">
- <label class="Validform_label"><span color="red" class="requiredIcon">*</span><t:mutiLang langKey="common.department"/>: </label>
- </td>
- <td class="value">
- <%--update-start--Author:jg_renjie Date:20160320 for:#942 【组件封装】所属部门弹出模式,目前是列表,得改造成树方式--%>
- <%--update-start--Author:zhangguoming Date:20140826 for:将combobox修改为combotree--%>
- <%--<select class="easyui-combobox" data-options="multiple:true, editable: false" id="orgSelect" datatype="*">--%>
- <%--<select class="easyui-combotree" data-options="url:'departController.do?getOrgTree', multiple:true, cascadeCheck:false"
- id="orgSelect" name="orgSelect" datatype="select1">
- update-end--Author:zhangguoming Date:20140826 for:将combobox修改为combotree
- <c:forEach items="${departList}" var="depart">
- <option value="${depart.id }">${depart.departname}</option>
- </c:forEach>
- </select> --%>
- <%-- <t:departSelect departId="${tsDepart.id }" departName="${tsDepart.departname }"></t:departSelect>--%>
-
- <input id="departname" name="departname" type="text" readonly="readonly" class="inputxt" datatype="*" value="${departname}">
- <input id="orgIds" name="orgIds" type="hidden" value="${orgIds}">
- <a href="#" class="easyui-linkbutton" plain="true" icon="icon-search" id="departSearch" onclick="openDepartmentSelect()">选择</a>
- <a href="#" class="easyui-linkbutton" plain="true" icon="icon-redo" id="departRedo" onclick="callbackClean()">清空</a>
- <%--update-end--Author:jg_renjie Date:20160320 for:#942 【组件封装】所属部门弹出模式,目前是列表,得改造成树方式--%>
- <span class="Validform_checktip"><t:mutiLang langKey="please.only.department"/></span>
- </td>
- </tr>
- <!-- 兼职机构 start -->
- <tr>
- <td align="right">
- <label class="Validform_label"> <t:mutiLang langKey="common.jianzhidepartment"/>: </label>
- </td>
- <td class="value">
- <input id="jzdepartname" name="jzdepartname" type="text" readonly="readonly" class="inputxt" value="${jzdepartname}">
- <input id="jzorgIds" name="jzorgIds" type="hidden" value="${jzorgIds}">
- <a href="#" class="easyui-linkbutton" plain="true" icon="icon-search" id="jzdepartSearch" onclick="openDepartmentSelectjz()">选择</a>
- <a href="#" class="easyui-linkbutton" plain="true" icon="icon-redo" id="jzdepartRedo" onclick="callbackCleanjz()">清空</a>
- <%--update-end--Author:jg_renjie Date:20160320 for:#942 【组件封装】所属部门弹出模式,目前是列表,得改造成树方式--%>
- <span class="Validform_checktip"><t:mutiLang langKey="please.muti.jzdepartment"/></span>
- </td>
- </tr>
- <!-- 兼职机构 end -->
- <tr>
- <td align="right">
- <label class="Validform_label"><span color="red" class="requiredIcon">*</span><t:mutiLang langKey="common.role"/>: </label>
- </td>
- <td class="value" nowrap>
- <input id="roleid" name="roleid" type="hidden" value="${id}"/>
- <input name="roleName" id="roleName" class="inputxt" value="${roleName }" readonly="readonly" datatype="*" />
- <t:choose hiddenName="roleid" hiddenid="id" textname="roleName" url="userController.do?roles" name="roleList" icon="icon-search" title="common.role.list" isclear="true" isInit="true"></t:choose>
- <span class="Validform_checktip"><t:mutiLang langKey="role.muti.select"/></span>
- </td>
- </tr>
- <tr>
- <td align="right" nowrap>
- <label class="Validform_label"><span color="red" class="requiredIcon">*</span><t:mutiLang langKey="common.phone"/>: </label>
- </td>
- <td class="value">
- <input class="inputxt" name="mobilePhone" value="${user.mobilePhone}" datatype="m" errormsg="手机号码不正确" validType="t_s_user,mobilePhone,id">
- <span class="Validform_checktip"></span>
- </td>
- </tr>
- <tr>
- <td align="right"><label class="Validform_label"> <t:mutiLang langKey="common.tel"/>: </label></td>
- <td class="value">
- <input class="inputxt" name="officePhone" value="${user.officePhone}" datatype="n" errormsg="办公室电话不正确" ignore="ignore">
- <span class="Validform_checktip"></span>
- </td>
- </tr>
- <tr>
- <td align="right"><label class="Validform_label"> <t:mutiLang langKey="common.common.mail"/>: </label></td>
- <td class="value">
- <input class="inputxt" name="email" value="${user.email}" datatype="e" errormsg="邮箱格式不正确!" ignore="ignore">
- <span class="Validform_checktip"></span>
- </td>
- </tr>
- <tr style="display: none">
- <td align="right"><label class="Validform_label"> <t:mutiLang langKey="common.common.dev"/>: </label></td>
- <td class="value">
- <c:if test="${user.devFlag == null || user.devFlag == ''}" >
- <t:dictSelect id="devFlag" field="devFlag" typeGroupCode="dev_flag" hasLabel="false" datatype="*" defaultVal="0" type="radio"></t:dictSelect>
- </c:if>
- <c:if test="${user.devFlag != null && user.devFlag != ''}" >
- <t:dictSelect id="devFlag" field="devFlag" typeGroupCode="dev_flag" hasLabel="false" datatype="*" defaultVal="${user.devFlag}" type="radio"></t:dictSelect>
- </c:if>
- <span class="Validform_checktip"></span>
- </td>
- </tr>
- <tr style="display: none">
- <td align="right">
- <label class="Validform_label">
- 工作流引擎:
- </label>
- </td>
- <td class="value">
- <c:if test="${user.activitiSync == null || user.activitiSync == ''}" >
- <input name="activitiSync" type="radio" datatype="min" min="1" value="1" checked="checked">
- 同步
- <input name="activitiSync" type="radio" value="0">
- 不同步
- <span class="Validform_checktip">是否同步工作流引擎</span>
- </c:if>
- <c:if test="${user.activitiSync != null && user.activitiSync != ''}" >
- <input name="activitiSync" type="radio" datatype="min" min="1" <c:if test="${user.activitiSync eq 1}">checked="true"</c:if> value="1">
- 同步
- <input name="activitiSync" type="radio" <c:if test="${user.activitiSync eq 0}">checked="true"</c:if> value="0">
- 不同步
- <span class="Validform_checktip">是否同步工作流引擎</span>
- </c:if>
- </td>
- </tr>
- </table>
- </t:formvalid>
- <%--update-end--Author:zhangguoming Date:20140825 for:格式化页面代码 并 添加所属部门combobox多选框--%>
- </body>
|