You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

395 lines
13 KiB

<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
<%@include file="/wdk/theme/je/module/public/common.jsp"%>
<!-- 上述3个meta标签*必须*放在最前面,任何其他内容都*必须*跟随其后! -->
<%
String menu_code = request.getParameter("menucode");
WDK.writeButton(out, su, menu_code);
%>
<title>人员管理-详情</title>
<style type="text/css">
html, body {
width: 100%;
height: 100%;
overflow:hidden;
}
</style>
<script type="text/javascript">
//获取参数数据
var param = $.getURLParam('param');
var jparam = $.str2json($.urlparam_decode(param));
var _actionflag = jparam.queryParams.actionflag; //操作类型 add-新增 update-修改,读取原信息
var _mid = jparam.queryParams.mid; //父界面刷新方法标识
var _selected_id = jparam.queryParams.selected_id; //主键
var _persondeptex_uuid = jparam.queryParams.persondeptex_uuid; //兼职部门主键,如果为空,则说明是主职账号
$(function(){
//初始化数据
//请求地址参数
//组织参数
var dataParam = {};
var method = "queryStaffInfoByID";
if(_persondeptex_uuid){
method = "queryStaffDeptexInfoByID";
dataParam = {
_SRVNAME:'service.usr.staff'
,_SRVMETHOD:method
,_DATA:$.json2str({
op_account_uuid:$.getSessionUser().account_id,
person_uuid:_selected_id,
persondeptex_uuid : _persondeptex_uuid,
resultfields:''
})
}
}else{
dataParam = {
_SRVNAME:'service.usr.staff'
,_SRVMETHOD:method
,_DATA:$.json2str({
op_account_uuid:$.getSessionUser().account_id,
person_uuid:_selected_id,
resultfields:''
})
}
}
//初始化加载数据
$.cuajax({
url:'wdk?action=wdk.pub&method=call_service&ajaxparam='+new Date().getTime()
,method:"post"
,timeout:WDK_Timeout
,data:dataParam
,success:function(result) {
$.wait_close();
var jres = $.str2json(result);
//加载成功
if(jres.code=="1"){
//回填数据
$.setFieldValue(jres.staff_info, "#view_form");
$("#birth_date").val(formatdatestr(jres.staff_info.birth_date));
$("#entry_date").val(formatdatestr(jres.staff_info.entry_date));
}else{
alert(jres.desc);
}
},
error:function(result){
$.wait_close();
alert('网络错误!result='+result);
}
});
});
//关闭当前页面
function opt_close() {
$.closeActiveTab();
}
//邮送日期时间格式化成yyyy-MM-dd这种格式
function formatdatestr(value){
if(value!=null && value!="" && value.indexOf("-")==-1){
value = dateformat(value,'yyyy-MM-dd');
//value = $.dateformat(value,'yyyy-MM-dd HH:mm:ss');
}
return value;
}
//时间格式化
function dateformat(str,formatter){
if(formatter && formatter == 'yyyy-MM-dd HH:mm:ss'){
if(str && str!=null && str.length == 14){
str = str.substring(0,4)+'-'+str.substring(4,6)+'-'+str.substring(6,8)+' '+str.substring(8,10)+':'+str.substring(10,12)+':'+str.substring(12,14);
}
}
if(formatter && formatter == 'yyyy-MM-dd'){
if(str && str!=null && str.length >= 8){
str = str.substring(0,4)+'-'+str.substring(4,6)+'-'+str.substring(6,8);
}
}
return str;
}
</script>
</head>
<body class="easyui-layout" data-options="fit:true">
<div data-options="region:'north',border:false,collapsed:false" class="page-title" style="overflow: hidden;height:40px;">
<div class="edit-page-toolbar">
<a href="javascript:void(0);" class="easyui-linkbutton" data-options="iconCls:'fa fa-close'" onclick="opt_close()">关闭</a>
</div>
</div>
<div data-options="region:'center',border:false,collapsed:false">
<div class="edit-container">
<form id="view_form">
<input type="hidden" id="person_uuid" name="person_uuid" value="" />
<div class="form-title">
<span class="form-title-text">人员基本信息</span>
</div>
<div class="row">
<div class="formgroup">
<label >姓名</label>
<div>
<input type="text" class="easyui-validatebox" id="person_name" name="person_name" value="" readonly="readonly"/>
</div>
</div>
<div class="formgroup">
<label>曾用名</label>
<div>
<input type="text" class="easyui-validatebox" id="old_name" name="old_name" value="" readonly="readonly"/>
</div>
</div>
</div>
<div class="row">
<div class="formgroup">
<label>性别</label>
<div>
<input type="text" class="easyui-validatebox" id="gender_scodename" name="gender_scodename" value="" readonly="readonly"/>
<input type="hidden" id="gender_scode" name="gender_scode" value="" />
</div>
</div>
<div class="formgroup">
<label>出生日期</label>
<div>
<input type="text" class="easyui-validatebox" id="birth_date" name="birth_date" value="" readonly="readonly"/>
</div>
</div>
</div>
<div class="row">
<div class="formgroup">
<label>证件类型</label>
<div>
<input type="text" class="easyui-validatebox" id="cer_type_scodename" name="cer_type_scodename" value="" readonly="readonly"/>
<input type="hidden" id="cer_type_scode" name="cer_type_scode" value="" />
</div>
</div>
<div class="formgroup">
<label>证件号码</label>
<div>
<input type="text" class="easyui-validatebox" id="id_no" name="id_no" value="" readonly="readonly" />
</div>
</div>
</div>
<div class="row">
<div class="formgroup">
<label>国家</label>
<div>
<input type="text" class="easyui-validatebox" id="country" name="country" value="" readonly="readonly" />
</div>
</div>
<div class="formgroup">
<label>籍贯</label>
<div>
<input type="text" class="easyui-validatebox" id="nation_place" name="nation_place" value="" readonly="readonly"/>
</div>
</div>
</div>
<div class="row">
<div class="formgroup">
<label>政治面貌</label>
<div>
<input type="text" class="easyui-validatebox" id="politics_uuidname" name="politics_uuidname" value="" readonly="readonly"/>
<input type="hidden" id="politics_uuid" name="politics_uuid" value="" />
</div>
</div>
<div class="formgroup">
<label>学历</label>
<div>
<input type="text" class="easyui-validatebox" id="diploma_uuidname" name="diploma_uuidname" value="" readonly="readonly"/>
<input type="hidden" id="diploma_uuid" name="diploma_uuid" value="" />
</div>
</div>
</div>
<div class="row">
<div class="formgroup">
<label>民族</label>
<div>
<input type="text" class="easyui-validatebox" id="nationname" name="nationname" value="" readonly="readonly"/>
</div>
</div>
<div class="formgroup">
<label>人员状态</label>
<div>
<input type="text" class="easyui-validatebox" id="person_status_uuidname" name="person_status_uuidname" value="" readonly="readonly"/>
<input type="hidden" id="person_status_uuid" name="person_status_uuid" value="" />
</div>
</div>
</div>
<!-- <div class="row">
<div class="formgroup">
<label>手机号码</label>
<div>
<input type="text" class="easyui-validatebox nospaceinside" data-options="validType:'isMobile',tipPosition:'bottom'" id="master_mobile" name="master_mobile" value="" />
</div>
</div>
</div> -->
<div class="row">
<div class="formgroup col-12">
<label>常住地址</label>
<div>
<input type="text" class="easyui-validatebox" id="address" name="address" value="" readonly="readonly"/>
</div>
</div>
</div>
<div class="form-title" style="margin-top:10px;">
<span class="form-title-text">岗位相关信息</span>
</div>
<div class="row">
<div class="formgroup">
<label>工号</label>
<div>
<input type="text" class="easyui-validatebox" id="emp_no" name="emp_no" value="" readonly="readonly"/>
</div>
</div>
<div class="formgroup">
<label>人员编码</label>
<div>
<input type="text" class="easyui-validatebox" id="person_code" name="person_code" value="" readonly="readonly"/>
</div>
</div>
</div>
<div class="row">
<div class="formgroup">
<label>所属部门</label>
<div>
<input type="text" class="easyui-validatebox" id="depart_uuidname" name="depart_uuidname" value="" readonly="readonly"/>
<input type="hidden" id="depart_uuid" name="depart_uuid" value="" />
</div>
</div>
<div class="formgroup">
<label>岗位</label>
<div>
<input type="text" class="easyui-validatebox" id="job_title" name="job_title" value="" readonly="readonly"/>
</div>
</div>
</div>
<div class="row">
<div class="formgroup">
<label>入职日期</label>
<div>
<input type="text" class="easyui-validatebox" id="entry_date" name="entry_date" value="" readonly="readonly"/>
</div>
</div>
<div class="formgroup">
<label>排序序号</label>
<div>
<input type="text" class="easyui-validatebox" id="display_order" name="display_order" value="" readonly="readonly"/>
</div>
</div>
</div>
<div class="row">
<div class="formgroup">
<label>内部邮箱</label>
<div>
<input type="text" class="easyui-validatebox" id="master_email" name="master_email" value="" readonly="readonly"/>
</div>
</div>
<div class="formgroup">
<label>外部邮箱</label>
<div>
<input type="text" class="easyui-validatebox" id="backup_email" name="backup_email" value="" readonly="readonly"/>
</div>
</div>
</div>
<div class="row">
<div class="formgroup">
<label>手机</label>
<div>
<input type="text" class="easyui-validatebox nospaceinside" data-options="validType:'isMobile',tipPosition:'bottom'" id="master_mobile" name="master_mobile" value="" readonly="readonly"/>
</div>
</div>
<div class="formgroup">
<label>办公室电话</label>
<div>
<input type="text" class="easyui-validatebox nospaceinside nospaceinside" data-options="validType:'isTel',tipPosition:'bottom'" id="office_phone_no" name="office_phone_no" value="" readonly="readonly"/>
</div>
</div>
</div>
<div class="row">
<div class="formgroup">
<label>虚拟网短号</label>
<div>
<input type="text" class="easyui-validatebox nospaceinside" data-options="tipPosition:'bottom'" id="backup_mobile" name="backup_mobile" value="" readonly="readonly"/>
</div>
</div>
<div class="formgroup">
<label>QQ号码</label>
<div>
<input type="text" class="easyui-validatebox nospaceinside nospaceinside" data-options="tipPosition:'bottom'" id="qq_no" name="qq_no" value="" readonly="readonly"/>
</div>
</div>
</div>
<div class="row">
<div class="formgroup">
<label>钉钉</label>
<div>
<input type="text" class="easyui-validatebox nospaceinside" data-options="tipPosition:'bottom'" id="dd_no" name="dd_no" value="" readonly="readonly"/>
</div>
</div>
</div>
<div class="row">
<div class="formgroup col-12">
<label>备注</label>
<div>
<input type="text" class="easyui-validatebox nospaceinside" data-options="tipPosition:'bottom'" id="remark" name="remark" value="" readonly="readonly"/>
</div>
</div>
</div>
<div class="form-title" style="margin-top:10px;">
<span class="form-title-text">业务相关信息</span>
</div>
<div class="row">
<div class="formgroup col-2">
<label>销售员</label>
<div>
<input type="checkbox" id="is_saler" name="is_saler" value="1" disabled/>
</div>
</div>
<div class="formgroup col-2" style="margin-left:20px;">
<label>采购员</label>
<div>
<input type="checkbox" id="is_purcher" name="is_purcher" value="1" disabled/>
</div>
</div>
<div class="formgroup col-2" style="margin-left:20px;">
<label>仓管员</label>
<div>
<input type="checkbox" id="is_warehouse_keeper" name="is_warehouse_keeper" value="1" disabled/>
</div>
</div>
<div class="formgroup col-2" style="margin-left:20px;">
<label>质检员</label>
<div>
<input type="checkbox" id="is_inspector" name="is_inspector" value="1" disabled/>
</div>
</div>
<div class="formgroup col-2" style="margin-left:20px;">
<label>生产员</label>
<div>
<input type="checkbox" id="is_producer" name="is_producer" value = "1" disabled/>
</div>
</div>
</div>
</form>
</div>
</div>
</body>
</html>