|
|
|
|
<!doctype html>
|
|
|
|
|
<html>
|
|
|
|
|
<head>
|
|
|
|
|
<title></title>
|
|
|
|
|
<!--<script type="text/javascript" src="../Scripts/config.js"></script>-->
|
|
|
|
|
<script type="text/javascript" src="/WF/Scripts/jquery-1.11.0.min.js"></script>
|
|
|
|
|
<script src="/WF/Scripts/easyUI/jquery.easyui.min.js" type="text/javascript"></script>
|
|
|
|
|
<script src="/WF/Scripts/QueryString.js" type="text/javascript"></script>
|
|
|
|
|
|
|
|
|
|
<!-- 引入新版本的类库. -->
|
|
|
|
|
<script src="/WF/Scripts/config.js" type="text/javascript"></script>
|
|
|
|
|
<script src="/WF/Comm/Gener.js" type="text/javascript"></script>
|
|
|
|
|
<script type="text/javascript" language="javascript">
|
|
|
|
|
|
|
|
|
|
//页面启动函数.
|
|
|
|
|
$(function () {
|
|
|
|
|
var orgNo = GetQueryString("OrgNo");
|
|
|
|
|
var empNo = GetQueryString("EmpNo");
|
|
|
|
|
if (empNo == null) {
|
|
|
|
|
var webUser = new WebUser();
|
|
|
|
|
empNo = webUser.No;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
var handler = new HttpHandler("BP.Cloud.HttpHandler.Admin_Org");
|
|
|
|
|
handler.AddPara("EmpNo", empNo);
|
|
|
|
|
var data = handler.DoMethodReturnString("Siganture_Init");
|
|
|
|
|
|
|
|
|
|
if (data.indexOf('err@') == 0) {
|
|
|
|
|
alert(data);
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
data = JSON.parse(data);
|
|
|
|
|
var img = document.getElementById("sigimg");
|
|
|
|
|
|
|
|
|
|
var url = "";
|
|
|
|
|
if (plant == "CCFlow")
|
|
|
|
|
url = '/DataUser/Siganture/' + orgNo+'/' + empNo + '.jpg';
|
|
|
|
|
else
|
|
|
|
|
url = basePath + '/DataUser/Siganture/' + orgNo + '/' + empNo + '.jpg';
|
|
|
|
|
img.src = url;
|
|
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
function Upload() {
|
|
|
|
|
if (File_Upload.files.length == 0) {
|
|
|
|
|
alert('请选择要上传的文件');
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
var fileName = File_Upload.files[0].name;
|
|
|
|
|
|
|
|
|
|
//判断文件类型.
|
|
|
|
|
var fileExt = "bpm,jpg,jpeg,png,gif";
|
|
|
|
|
//获取文件的后缀名
|
|
|
|
|
var ext = fileName.substring(fileName.lastIndexOf(".") + 1);
|
|
|
|
|
if (fileExt.indexOf(ext.toLowerCase()) == -1) {
|
|
|
|
|
alert("上传的文件必须是以图片格式:" + fileExt + " 类型, 现在类型是:" + ext);
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
var empNo = GetQueryString("EmpNo");
|
|
|
|
|
if (empNo == null) {
|
|
|
|
|
var webUser = new WebUser();
|
|
|
|
|
empNo = webUser.No;
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
var doMethod = "Siganture_Save";
|
|
|
|
|
var httpHandlerName = "BP.Cloud.HttpHandler.Admin_Org";
|
|
|
|
|
var url = dynamicHandler + "?DoType=HttpHandler&DoMethod=" + doMethod + "&HttpHandlerName=" + httpHandlerName + "&EmpNo=" + empNo;
|
|
|
|
|
|
|
|
|
|
$("#cc").form("submit", {
|
|
|
|
|
type: 'POST',
|
|
|
|
|
dataType: 'html',
|
|
|
|
|
url: url,
|
|
|
|
|
onSubmit: function (param) {
|
|
|
|
|
//return false; //这里可以做表单的验证,如果验证失败,就return false 来终止表单提交
|
|
|
|
|
},
|
|
|
|
|
success: function (data) {
|
|
|
|
|
if (data.indexOf("err@") != -1) {
|
|
|
|
|
alert(data);
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
alert(data);
|
|
|
|
|
Reload();
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
function IconImgErr(obj) {
|
|
|
|
|
obj.src = basePath + "DataUser/Siganture/UnName.jpg";
|
|
|
|
|
}
|
|
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
</head>
|
|
|
|
|
<body>
|
|
|
|
|
<form id="cc" name="cc" action="" enctype="multipart/form-data" method="post">
|
|
|
|
|
|
|
|
|
|
<h3> 电子签名设置 </h3>
|
|
|
|
|
<hr />
|
|
|
|
|
<p align="center">
|
|
|
|
|
<img id="sigimg" width="120" height="30" border="1" onerror="" />
|
|
|
|
|
</p>
|
|
|
|
|
上传<input type="file" name="File_Upload" id="File_Upload" />
|
|
|
|
|
<input id="btn" type="button" value="确定" onclick="Upload()" /></br></br>
|
|
|
|
|
|
|
|
|
|
<fieldset>
|
|
|
|
|
<legend>利用扫描仪设置步骤 </legend>
|
|
|
|
|
<ul>
|
|
|
|
|
<li>在白纸上写下您的签名</li>
|
|
|
|
|
<li>送入扫描仪扫描,并得到jpg文件。</li>
|
|
|
|
|
<li>利用图片处理工具把他们处理缩小到 90*30像素大小。</li>
|
|
|
|
|
</ul>
|
|
|
|
|
|
|
|
|
|
<legend>使用手写板手写设置 </legend>
|
|
|
|
|
<ul>
|
|
|
|
|
<li>在程序,附件里找到手写板。</li>
|
|
|
|
|
<li>启动画板程序,写下您的签名。</li>
|
|
|
|
|
<li>保存成.jpg文件,设置文件为90*30像素大小。</li>
|
|
|
|
|
</ul>
|
|
|
|
|
|
|
|
|
|
<!--<B>让系统自动为您创建(请选择字体):</B><ul><li><a href='Siganture.htm?RefNo=Siganture&DoType=ST'>宋体</a></li> -->
|
|
|
|
|
<!--<li><a href='Siganture.htm?RefNo=Siganture&DoType=LS'>隶书</a></li> -->
|
|
|
|
|
</fieldset>
|
|
|
|
|
|
|
|
|
|
</form>
|
|
|
|
|
</body>
|
|
|
|
|
</html>
|