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

179 lines
7.4 KiB
Plaintext

11 months ago
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>驰骋工作流程管理系统</title>
<link href="../Scripts/bootstrap/css/bootstrap.css" rel="stylesheet" type="text/css" />
<link href="../Comm/fonts/font-awesome.css" rel="stylesheet">
<link href="../Style/skin/css/style.css" rel="stylesheet" type="text/css" />
<link href="../Style/skin/css/animate.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div class="wrapper wrapper-content animated fadeInRight">
<div class="ibox-content">
<div class="usercenter">我的设置</div>
<table class="table table-bordered">
<tr>
<td align="center">
<img id="touxiang" width="100" border=1 src="" ; onerror="this.src='../../DataUser/UserIcon/Default.png'" />
<!--<img id="touxiang" border=1 src="../../DataUser/UserIcon/Default.png"; onerror="this.src='../../DataUser/UserIcon/Default.png'" />--><br />
<a href='Profile.htm'>设置/修改</a>
</td>
<td>
<div class="form-horizontal">
<div class="form-group">
<label for="UserNo" class="col-sm-2 control-label">登录帐号</label>
<div class="col-sm-10">
<span id="UserNo" class="form-control" />
</div>
</div>
<div class="form-group">
<label for="UserName" class="col-sm-2 control-label">用户名</label>
<div class="col-sm-10">
<input type="text" class="form-control" id="UserName">
</div>
</div><div class="form-group">
<label for="Tel" class="col-sm-2 control-label">手机号</label>
<div class="col-sm-10">
<input type="text" class="form-control" id="Tel">
</div>
</div>
<div class="form-group">
<label for="Email" class="col-sm-2 control-label">E-mail</label>
<div class="col-sm-10">
<input type="text" class="form-control" id="Email">
</div>
</div>
<div class="form-group">
<label for="Email" class="col-sm-2 control-label"></label>
<div class="col-sm-10">
<button type="button" class="btn btn-success" id="btn_Startup" onclick="Save()">保存修改</button>
<a href="Author.htm">设置委托</a>
<a href="javascript:ClearCash()">清除缓存</a>
</div>
</div>
</div>
</td>
</tr>
</table>
</div>
</div>
<div class="wrapper wrapper-content animated fadeInRight">
<div class="ibox-content">
<div class="row">
<div class="col-sm-3">
<div class="userbox">
<div class="box1"><img id="QianMing" border=1 src="" /></div>
<div class="box2">电子签字</div>
<div class="box3"><a href='Siganture.htm'>设置/修改</a></div>
</div>
</div>
<div class="col-sm-3">
<div class="userbox">
<div class="box1"><span id="DeptName"></span></div>
<div class="box2">主部门</div>
<div class="box3"><a href='ChangeDept.htm'>切换登录部门</a></div>
</div>
</div>
<div class="col-sm-3">
<div class="userbox">
<div class="box1"><span id="ChangePassword">密码设置</span></div>
<div class="box2">修改密码</div>
<div class="box3"><a href='ChangePassword.htm'>修改密码</a></div>
</div>
</div>
<div class="col-sm-3">
<div class="userbox">
<div class="box1"><span id="Stations"></span></div>
<div class="box2"><span id="Depts"></span></div>
<div class="box3">岗位/部门-权限</div>
</div>
</div>
</div>
</div>
</div>
<script src="../Scripts/easyUI/jquery-1.8.0.min.js" type="text/javascript"></script>
<script src="../Scripts/QueryString.js" type="text/javascript"></script>
<!-- 引用通用的js文件. -->
<script type="text/javascript" src="../Scripts/config.js"></script>
<script type="text/javascript" src="../Comm/Gener.js"></script>
<script type="text/javascript" language="javascript">
//页面启动函数.
$(function () {
var webUser = new WebUser();
//var en = new Entity("BP.Sys.UserRegedit");
//en.MyPK = webUser.UserID;
//if (en.Retrieve())
var url = "/WF/Comm/En.htm?EnName=BP.Port.Emp&No=" + webUser.UserNo;
window.location.href = url;
return;
var handler = new HttpHandler("BP.WF.HttpHandler.WF_Setting");
var data = handler.DoMethodReturnString("Default_Init");
if (data.indexOf('err@') == 0) {
alert(data);
return;
}
data = JSON.parse(data);
//调用公共类库的方法:执行批量主表赋值
GenerFullAllCtrlsVal(data);
$("#UserName").val(data.UserName);
$("#Tel").val(data.Tel);
$("#Email").val(data.Email);
var qmUrl = "../../DataUser/Siganture/" + data.UserNo + ".jpg";
//签名.
var qmImg = document.getElementById("QianMing");
qmImg.src = qmUrl;
qmImg.onerror="this.style.display='none'";
var txUrl = "../../DataUser/UserIcon/" + data.UserNo + ".png";
//头像.
var txImg = document.getElementById("touxiang");
txImg.src = txUrl;
$("#Author").html(data.Author);
return;
});
function ClearCash()
{
var handler = new HttpHandler("BP.WF.HttpHandler.WF_Setting");
var data = handler.DoMethodReturnString("Default_ClearCash");
alert(data);
}
function Save() {
var UserName = $("#UserName").val();
var Tel = $("#Tel").val();
var Email = $("#Email").val();
var handler = new HttpHandler("BP.WF.HttpHandler.WF_Setting");
handler.AddPara("Name", UserName);
handler.AddPara("Tel", Tel);
handler.AddPara("Email", Email);
var data = handler.DoMethodReturnString("UpdateEmpNo");
alert(data);
}
</script>
</body>
</html>