dd
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="AddFinger.aspx.cs" Inherits="FineUIPro.Web.FingerMark.AddFinger" %>
|
||||
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
<head id="Head1" runat="server">
|
||||
<title>无标题页</title>
|
||||
<style>
|
||||
.msg{
|
||||
font-size:24;
|
||||
color: #FF0000
|
||||
}
|
||||
</style>
|
||||
|
||||
<script type="text/javascript" src="jquery.fancybox/jquery.fancybox-1.2.1.pack.js"></script>
|
||||
</head>
|
||||
<body style="text-align:center" >
|
||||
<font class="msg">
|
||||
<%=result %>
|
||||
</font>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,131 @@
|
||||
using System;
|
||||
using System.Data;
|
||||
using System.Configuration;
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using System.Data.SqlClient;
|
||||
using System.Data;
|
||||
using System.Web;
|
||||
using System.Web.Security;
|
||||
using System.Web.UI;
|
||||
using System.Web.UI.WebControls;
|
||||
using System.Web.UI.WebControls.WebParts;
|
||||
using System.Web.UI.HtmlControls;
|
||||
using System.IO;
|
||||
|
||||
namespace FineUIPro.Web.FingerMark
|
||||
{
|
||||
public partial class AddFinger : System.Web.UI.Page
|
||||
{
|
||||
protected string RegisterTemplate = "";
|
||||
protected string NumFinger = "";
|
||||
protected string userId = "";
|
||||
protected string username = "";//接收用户名
|
||||
protected string flag = "";
|
||||
protected string[] NumId = new String[10];//第n根手指
|
||||
protected string[] fingers = new String[10];//注册指纹模板
|
||||
protected string result = "";//提示信息
|
||||
protected int isExit = 0;//
|
||||
protected StreamReader SR;
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
{
|
||||
if (Request.Form["userId"].Trim() != null)//判断页面请求用户名是否为空
|
||||
{
|
||||
userId = Request.Form["userId"].Trim();
|
||||
}
|
||||
|
||||
if (Request.Form["username"].Trim() != null) //用户名
|
||||
{
|
||||
username = Request.Form["username"].Trim();
|
||||
}
|
||||
|
||||
if (Request.Form["flag"].Trim() != null) //标记:1-焊工,2-保管员
|
||||
{
|
||||
flag = Request.Form["flag"].Trim();
|
||||
}
|
||||
if (Request.Form["hiddenObj"] != null)//判断页面请求指纹模板是否为空
|
||||
{
|
||||
RegisterTemplate = Request.Form["hiddenObj"];
|
||||
}
|
||||
if (Request.Form["finghidden"] != null) //判断页面请求手指id是否为空
|
||||
{
|
||||
NumFinger = Request.Form["finghidden"];
|
||||
}
|
||||
NumId = NumFinger.Split(',');//将获取的手指id分割成数组存入NumId
|
||||
fingers = RegisterTemplate.Split(',');//将获取的指纹模板分割成数组存入fingers
|
||||
string myFinger = string.Empty;
|
||||
if (flag == "1")
|
||||
{
|
||||
//var welder = BLL.HJGL_PersonManageService.GetBSWelderByTeamWEDID(userId);
|
||||
//myFinger = welder.MyFinger;
|
||||
string strSql = "SELECT MyFinger FROM dbo.HJGL_BS_Welder WHERE WED_ID=@WED_ID";
|
||||
List<SqlParameter> listStr = new List<SqlParameter>();
|
||||
listStr.Add(new SqlParameter("@WED_ID", userId));
|
||||
SqlParameter[] parameter = listStr.ToArray();
|
||||
myFinger = BLL.SQLHelper.getStr(strSql, parameter);
|
||||
|
||||
if (myFinger != null && myFinger != "")
|
||||
{
|
||||
string[] tmpGroup = myFinger.Split('@');
|
||||
for (int n = 0; n < tmpGroup.Length; n++)
|
||||
{
|
||||
if (tmpGroup[n].Substring(tmpGroup[n].IndexOf('#') + 1, 1).Equals(NumId[0]))//在用户名相同的情况下判断用户登记的手指是否相同
|
||||
{
|
||||
isExit = 1;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
//var storeman = BLL.StoremanInfoService.GetStoremanById(userId);
|
||||
//myFinger = storeman.MyFinger;
|
||||
string strSql = "SELECT MyFinger FROM dbo.Weld_Storeman WHERE StoremanId=@StoremanId";
|
||||
List<SqlParameter> listStr = new List<SqlParameter>();
|
||||
listStr.Add(new SqlParameter("@StoremanId", userId));
|
||||
SqlParameter[] parameter = listStr.ToArray();
|
||||
myFinger = BLL.SQLHelper.getStr(strSql, parameter);
|
||||
|
||||
if (myFinger != null && myFinger != "")
|
||||
{
|
||||
string[] tmpGroup = myFinger.Split('@');
|
||||
for (int n = 0; n < tmpGroup.Length; n++)
|
||||
{
|
||||
if (tmpGroup[n].Substring(tmpGroup[n].IndexOf('#') + 1, 1).Equals(NumId[0]))//在用户名相同的情况下判断用户登记的手指是否相同
|
||||
{
|
||||
isExit = 1;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (isExit == 1)
|
||||
{
|
||||
result = "该用户名的该指纹已经存在";
|
||||
}
|
||||
else
|
||||
{
|
||||
if(string.IsNullOrEmpty(myFinger))
|
||||
{
|
||||
myFinger = fingers[0] + "#" + NumId[0];
|
||||
}
|
||||
else
|
||||
{
|
||||
myFinger = myFinger + "@" + fingers[0] + "#" + NumId[0];
|
||||
}
|
||||
|
||||
if (flag == "1")
|
||||
{
|
||||
BLL.HJGL_PersonManageService.WelderFinger(userId, myFinger);
|
||||
}
|
||||
else
|
||||
{
|
||||
BLL.StoremanInfoService.StoremanFinger(userId, myFinger);
|
||||
}
|
||||
|
||||
result = "指纹已成功保存到服务器!";
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,24 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <自动生成>
|
||||
// 此代码由工具生成。
|
||||
//
|
||||
// 对此文件的更改可能会导致不正确的行为,并且如果
|
||||
// 重新生成代码,这些更改将会丢失。
|
||||
// </自动生成>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
namespace FineUIPro.Web.FingerMark {
|
||||
|
||||
|
||||
public partial class AddFinger {
|
||||
|
||||
/// <summary>
|
||||
/// Head1 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.HtmlControls.HtmlHead Head1;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,19 @@
|
||||
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="CheckConfirm.aspx.cs" Inherits="FineUIPro.Web.FingerMark.CheckConfirm" %>
|
||||
|
||||
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" >
|
||||
<head id="Head1" runat="server">
|
||||
<title>无标题页</title>
|
||||
<style>
|
||||
.msg{
|
||||
font-size:24;
|
||||
color: #FF0000
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<%=msg%>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,240 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Data.SqlClient;
|
||||
|
||||
namespace FineUIPro.Web.FingerMark
|
||||
{
|
||||
public partial class CheckConfirm : PageBase
|
||||
{
|
||||
protected int result = 233;
|
||||
protected string msg = "";
|
||||
protected string keyId = "";
|
||||
protected string flag = "";
|
||||
protected string grid = "";
|
||||
protected string S = "";
|
||||
protected string k = "";
|
||||
protected string stockMan = "";
|
||||
protected string VerifyTemplate = "", RegisterTemplate = "";
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
{
|
||||
checkFinger();
|
||||
}
|
||||
|
||||
private string GetMyFinger(string userId, string def)
|
||||
{
|
||||
string strSql = "";
|
||||
if (def == "1")
|
||||
{
|
||||
strSql = "SELECT MyFinger FROM dbo.HJGL_BS_Welder WHERE WED_ID=@UserId";
|
||||
}
|
||||
else
|
||||
{
|
||||
strSql = "SELECT MyFinger FROM dbo.Weld_Storeman WHERE StoremanId=@UserId";
|
||||
}
|
||||
List<SqlParameter> listStr = new List<SqlParameter>();
|
||||
listStr.Add(new SqlParameter("@UserId", userId));
|
||||
SqlParameter[] parameter = listStr.ToArray();
|
||||
return BLL.SQLHelper.getStr(strSql, parameter);
|
||||
}
|
||||
|
||||
private void checkFinger()
|
||||
{
|
||||
if (Request.Form["keyId"] != null)//判断页面请求用户名是否为空
|
||||
{
|
||||
keyId = Request.Form["keyId"].Trim();
|
||||
}
|
||||
if (Request.Form["flag"] != null) //1-焊工,2-保管员
|
||||
{
|
||||
flag = Request.Form["flag"].Trim();
|
||||
}
|
||||
if (Request.Form["grid"] != null) //1-领料,2-退料,3-退焊条头,4-保管员结束确认
|
||||
{
|
||||
grid = Request.Form["grid"].Trim();
|
||||
}
|
||||
|
||||
VerifyTemplate = Request.Form["VerifyTemplate"].Trim();
|
||||
|
||||
string myFinger = "";
|
||||
if (grid == "1") // 领料
|
||||
{
|
||||
var usingMat = BLL.UsingMatService.GetUsingMatById(keyId);
|
||||
if (usingMat != null)
|
||||
{
|
||||
if (flag == "1")
|
||||
{
|
||||
myFinger = GetMyFinger(usingMat.UsingMan, "1");
|
||||
}
|
||||
else
|
||||
{
|
||||
myFinger = GetMyFinger(usingMat.StoreMan, "2");
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
msg = "请选中要确认的领料记录";
|
||||
}
|
||||
}
|
||||
|
||||
if (grid == "2") // 退料
|
||||
{
|
||||
var recycleMat = BLL.RecycleMatService.GetRecycleMatById(keyId);
|
||||
if (recycleMat != null)
|
||||
{
|
||||
if (flag == "1")
|
||||
{
|
||||
myFinger = GetMyFinger(recycleMat.RecycleMan, "1");
|
||||
}
|
||||
else
|
||||
{
|
||||
myFinger = GetMyFinger(recycleMat.StockMan, "2");
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
msg = "请选中要确认的退料记录";
|
||||
}
|
||||
}
|
||||
|
||||
//if (grid == "3") // 退焊条头
|
||||
//{
|
||||
// var recycleMatTop = BLL.RecycleMatTopService.GetRecycleMatTopById(keyId);
|
||||
// if (recycleMatTop != null)
|
||||
// {
|
||||
// if (flag == "1")
|
||||
// {
|
||||
// myFinger = GetMyFinger(recycleMatTop.RecycleMan, "1");
|
||||
// }
|
||||
// else
|
||||
// {
|
||||
// myFinger = GetMyFinger(recycleMatTop.StockMan, "2");
|
||||
// }
|
||||
// }
|
||||
// else
|
||||
// {
|
||||
// msg = "请选中要确认的退还的焊条头记录";
|
||||
// }
|
||||
//}
|
||||
|
||||
//if (grid == "4") //保管员结束确认
|
||||
//{
|
||||
// string strsql = "SELECT StoremanId,MyFinger FROM dbo.Weld_Storeman WHERE MyFinger IS NOT NULL";
|
||||
// DataTable dt = BLL.SQLHelper.GetDataTableRunText(strsql, null);
|
||||
|
||||
// if (dt.Rows.Count > 0)
|
||||
// {
|
||||
// for (int i = 0; i < dt.Rows.Count; i++)
|
||||
// {
|
||||
// string finger = dt.Rows[i][1].ToString();
|
||||
|
||||
// string[] tmpGroup = finger.Split('@');
|
||||
// for (int n = 0; n < tmpGroup.Length; n++)
|
||||
// {
|
||||
// k = tmpGroup[n].Substring(0, tmpGroup[n].IndexOf('#'));
|
||||
// result = BLL.RefComm.process(k, VerifyTemplate); //指纹模板的对比
|
||||
// if (result == 1)
|
||||
// {
|
||||
// stockMan = dt.Rows[i][0].ToString();
|
||||
// break;
|
||||
// }
|
||||
// }
|
||||
// if (result == 1)
|
||||
// {
|
||||
// break;
|
||||
// }
|
||||
// }
|
||||
// }
|
||||
//}
|
||||
|
||||
|
||||
if (myFinger != null && myFinger != "")
|
||||
{
|
||||
string[] tmpGroup = myFinger.Split('@');
|
||||
for (int n = 0; n < tmpGroup.Length; n++)
|
||||
{
|
||||
k = tmpGroup[n].Substring(0, tmpGroup[n].IndexOf('#'));
|
||||
result = BLL.RefComm.process(k, VerifyTemplate); //指纹模板的对比
|
||||
if (result == 1)
|
||||
{
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
if (result == 1)
|
||||
{
|
||||
if (grid == "1") // 领料
|
||||
{
|
||||
if (flag == "1")
|
||||
{
|
||||
BLL.UsingMatService.WelderConfirm(keyId, true);
|
||||
msg = "指纹对比成功,焊工已确认";
|
||||
}
|
||||
|
||||
else
|
||||
{
|
||||
BLL.UsingMatService.StoreManConfirm(keyId, true);
|
||||
msg = "指纹对比成功,保管员已确认";
|
||||
}
|
||||
}
|
||||
|
||||
if (grid == "2") // 退料
|
||||
{
|
||||
if (flag == "1")
|
||||
{
|
||||
BLL.RecycleMatService.WelderConfirm(keyId, true);
|
||||
|
||||
var recycle = BLL.RecycleMatService.GetRecycleMatById(keyId);
|
||||
var mat = BLL.UsingMatService.GetUsingMatById(recycle.UsingMatId);
|
||||
if (!string.IsNullOrEmpty(mat.StockInId))
|
||||
{
|
||||
decimal recycleAmount = recycle.RecycleAmount.HasValue ? recycle.RecycleAmount.Value : 0;
|
||||
BLL.StockInService.UpdateStockInAmount(mat.StockInId, recycleAmount);
|
||||
}
|
||||
|
||||
msg = "指纹对比成功,焊工已确认";
|
||||
}
|
||||
|
||||
else
|
||||
{
|
||||
BLL.RecycleMatService.StoreManConfirm(keyId, true);
|
||||
msg = "指纹对比成功,保管员已确认";
|
||||
}
|
||||
}
|
||||
|
||||
if (grid == "3") // 退焊条头
|
||||
{
|
||||
if (flag == "1")
|
||||
{
|
||||
BLL.RecycleMatTopService.WelderConfirm(keyId, true);
|
||||
msg = "指纹对比成功,焊工已确认";
|
||||
}
|
||||
|
||||
else
|
||||
{
|
||||
BLL.RecycleMatTopService.StoreManConfirm(keyId, true);
|
||||
msg = "指纹对比成功,保管员已确认";
|
||||
}
|
||||
}
|
||||
|
||||
if (grid == "4")
|
||||
{
|
||||
BLL.UsingPlanService.UpdateIsFinish(keyId, stockMan);
|
||||
var s = BLL.StoremanInfoService.GetStoremanById(stockMan);
|
||||
|
||||
msg = "保管员:" + s.StoreName + "确认此计划完成";
|
||||
}
|
||||
|
||||
//Response.Write("<script>window.parent.parent.location.href='~/WeldMat/UsingSentMat/UsingMat.aspx?welderId=" + usingMat.UsingMan + "&&projectId=" + usingMat.ProjectId + "';</script>");
|
||||
//string itemsString = usingMat.ProjectId + "|" + usingMat.UsingMan;
|
||||
//PageContext.RegisterStartupScript(ActiveWindow.GetWriteBackValueReference(itemsString)
|
||||
// + ActiveWindow.GetHidePostBackReference());
|
||||
}
|
||||
|
||||
else
|
||||
{
|
||||
msg = "指纹不匹配";
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,24 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <自动生成>
|
||||
// 此代码由工具生成。
|
||||
//
|
||||
// 对此文件的更改可能会导致不正确的行为,并且如果
|
||||
// 重新生成代码,这些更改将会丢失。
|
||||
// </自动生成>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
namespace FineUIPro.Web.FingerMark {
|
||||
|
||||
|
||||
public partial class CheckConfirm {
|
||||
|
||||
/// <summary>
|
||||
/// Head1 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.HtmlControls.HtmlHead Head1;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,19 @@
|
||||
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="CheckFinger.aspx.cs" Inherits="FineUIPro.Web.FingerMark.CheckFinger" %>
|
||||
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
<head id="Head1" runat="server">
|
||||
<title>无标题页</title>
|
||||
<style>
|
||||
.msg{
|
||||
font-size:24;
|
||||
color: #FF0000
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<table><tr><td style="height:60px"></td></tr></table>
|
||||
<%=msg%>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,83 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Web;
|
||||
using System.Web.UI;
|
||||
using System.Web.UI.WebControls;
|
||||
|
||||
namespace FineUIPro.Web.FingerMark
|
||||
{
|
||||
public partial class CheckFinger : System.Web.UI.Page
|
||||
{
|
||||
protected int result = 233;
|
||||
protected string msg = "";
|
||||
protected string projectId = "";
|
||||
protected string userId = "";
|
||||
protected string username = "";
|
||||
protected string S = "";
|
||||
protected string k = "";
|
||||
protected string VerifyTemplate = "", RegisterTemplate = "";
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
{
|
||||
checkFinger();
|
||||
}
|
||||
|
||||
private void checkFinger()
|
||||
{
|
||||
//if (Request.Form["projectId"] != null)//判断页面请求用户名是否为空
|
||||
//{
|
||||
// projectId = Request.Form["projectId"].Trim();
|
||||
//}
|
||||
|
||||
//if (Request.Form["username"] != null) //用户名
|
||||
//{
|
||||
// username = Request.Form["username"].Trim();
|
||||
//}
|
||||
|
||||
VerifyTemplate = Request.Form["VerifyTemplate"].Trim();
|
||||
RegisterTemplate = Request.Form["RegisterTemplate"];
|
||||
|
||||
//string projectId = userId;//"560239b5-4d83-4d58-b752-1caa3407ec34";
|
||||
//userId = "22c72d38-b76e-48ba-b914-c3981ab717fd";
|
||||
//var welderList = BLL.Project_WelderService.GetProjectWelder(projectId);
|
||||
var welderList = BLL.HJGL_PersonManageService.GetFingerWelderList(BLL.Const.zzfgsId);
|
||||
foreach (var item in welderList)
|
||||
{
|
||||
var welder = BLL.HJGL_PersonManageService.GetWelderByWenId(item.WED_ID);
|
||||
string myFinger = welder.MyFinger;
|
||||
|
||||
string[] tmpGroup = myFinger.Split('@');
|
||||
for (int n = 0; n < tmpGroup.Length; n++)
|
||||
{
|
||||
k = tmpGroup[n].Substring(0, tmpGroup[n].IndexOf('#'));
|
||||
result = BLL.RefComm.process(k, VerifyTemplate); //指纹模板的对比
|
||||
if (result == 1)
|
||||
{
|
||||
userId = item.WED_ID;
|
||||
username = welder.WED_Name;
|
||||
break;
|
||||
}
|
||||
}
|
||||
if (result == 1)
|
||||
{
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
if (result == 1)
|
||||
{
|
||||
//msg = "指纹对比成功,用户名:" + username;
|
||||
|
||||
//ClientScript.RegisterStartupScript(ClientScript.GetType(), "myscript", "<script type='text/javascript'>ShowUsingMat('" + userId + "'," + projectId + ");</script>");
|
||||
//Response.Redirect("../WeldMat/UsingSentMat/UsingMat.aspx?welderId=" + userId + "",true);
|
||||
//Server.Transfer("../WeldMat/UsingSentMat/UsingMat.aspx?welderId=" + userId + "&&projectId=" + projectId + "");
|
||||
Response.Write("<script>window.parent.location.href='../WeldMat/UsingSentMat/UsingMat.aspx?welderId=" + userId + "';</script>");
|
||||
}
|
||||
//msg = "指纹对比成功,用户名:" + username;
|
||||
else
|
||||
{
|
||||
msg = "指纹不匹配";
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,24 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <自动生成>
|
||||
// 此代码由工具生成。
|
||||
//
|
||||
// 对此文件的更改可能会导致不正确的行为,并且如果
|
||||
// 重新生成代码,这些更改将会丢失。
|
||||
// </自动生成>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
namespace FineUIPro.Web.FingerMark {
|
||||
|
||||
|
||||
public partial class CheckFinger {
|
||||
|
||||
/// <summary>
|
||||
/// Head1 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.HtmlControls.HtmlHead Head1;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,46 @@
|
||||
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="FingerConfirm.aspx.cs" Inherits="FineUIPro.Web.FingerMark.FingerConfirm" %>
|
||||
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
|
||||
<head>
|
||||
<title>ÎÞ±êÌâÒ³</title>
|
||||
<link rel="stylesheet" type="text/css" href="jquery.fancybox/jquery.fancybox.css" media="screen" />
|
||||
<script type="text/javascript" src="jquery.fancybox/jquery.fancybox-1.2.1.pack.js"></script>
|
||||
|
||||
<OBJECT classid="clsid:A318A9AC-E75F-424C-9364-6B40A848FC6B" width=0 height=0 id=zkonline >
|
||||
</OBJECT>
|
||||
|
||||
<COMMENT>
|
||||
<EMBED type="application/x-eskerplus"
|
||||
classid="clsid:A318A9AC-E75F-424C-9364-6B40A848FC6B"
|
||||
codebase="ZKOnline.ocx"
|
||||
width=0 height=0 style="visibility:hidden">
|
||||
</EMBED>
|
||||
</COMMENT>
|
||||
</head>
|
||||
|
||||
<body onload="FingerConfirm()">
|
||||
<span id='id_error'></span>
|
||||
<table width="100%" style="height: 320px" border="0" cellpadding="0" cellspacing="0">
|
||||
<tr valign="top">
|
||||
<td height="25" align="center">
|
||||
<form id="form1" name="form1" method="post" action="" style="margin: 0">
|
||||
<input name="hiddenObj" id="hiddenObj" type="hidden" value="" />
|
||||
<input name="keyId" type="hidden" id="keyId" value="<%=keyId %>" />
|
||||
<input name="flag" id="flag" type="hidden" value="<%=flag %>"/>
|
||||
<input name="grid" id="grid" type="hidden" value="<%=grid %>"/>
|
||||
</form>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="width:100%; height:450px" valign="top" align="center">
|
||||
<iframe name="showMsg" id="showMsg" width="0" src="" height="0" marginheight="0"
|
||||
marginwidth="0" hspace="0" allowtransparency="true" frameborder="0"></iframe>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
@@ -0,0 +1,22 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Web;
|
||||
using System.Web.UI;
|
||||
using System.Web.UI.WebControls;
|
||||
|
||||
namespace FineUIPro.Web.FingerMark
|
||||
{
|
||||
public partial class FingerConfirm : System.Web.UI.Page
|
||||
{
|
||||
protected string flag = "";//标志(1-焊工,2-保管员)
|
||||
protected string keyId = "";//接收用户ID
|
||||
protected string grid = "";//1-领料,2-退料,3-退回焊条头
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
{
|
||||
keyId = Request.Params["keyId"];
|
||||
flag = Request.Params["flag"];
|
||||
grid = Request.Params["grid"];
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,15 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <自动生成>
|
||||
// 此代码由工具生成。
|
||||
//
|
||||
// 对此文件的更改可能会导致不正确的行为,并且如果
|
||||
// 重新生成代码,这些更改将会丢失。
|
||||
// </自动生成>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
namespace FineUIPro.Web.FingerMark {
|
||||
|
||||
|
||||
public partial class FingerConfirm {
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,52 @@
|
||||
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="RegisterFinger.aspx.cs" Inherits="FineUIPro.Web.FingerMark.RegisterFinger" %>
|
||||
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
|
||||
<head>
|
||||
<title>无标题页</title>
|
||||
<link rel="stylesheet" type="text/css" href="jquery.fancybox/jquery.fancybox.css" media="screen" />
|
||||
|
||||
<script type="text/javascript" src="jquery.fancybox/jquery.fancybox-1.2.1.pack.js"></script>
|
||||
<OBJECT classid="clsid:A318A9AC-E75F-424C-9364-6B40A848FC6B" width=0 height=0 id=zkonline >
|
||||
</OBJECT>
|
||||
|
||||
<COMMENT>
|
||||
<EMBED type="application/x-eskerplus"
|
||||
classid="clsid:A318A9AC-E75F-424C-9364-6B40A848FC6B"
|
||||
codebase="ZKOnline.ocx"
|
||||
width=0 height=0 style="visibility:hidden">
|
||||
</EMBED>
|
||||
</COMMENT>
|
||||
|
||||
</head>
|
||||
|
||||
<body onload="Load()">
|
||||
<span id='id_error'></span>
|
||||
<table width="610px" style="height:460px" border="0" cellpadding="0" cellspacing="0">
|
||||
<tr>
|
||||
<td height="55" align="center">
|
||||
<form id="form1" name="form1" method="post" action="" style="margin:0">
|
||||
<input name="hiddenObj" id="hiddenObj" type="hidden" value="" />
|
||||
<input name="finghidden" id="finghidden" type="hidden" value="" />
|
||||
<input name="userId" type="hidden" id="userId" value="<%=userId %>" />指纹登记人员:
|
||||
<input name="username" id="username" value="<%=username %>" readonly="readonly"/>
|
||||
<input name="flag" type="hidden" id="flag" value="<%=flag %>" />
|
||||
</form>
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td height="136" align="center"><input name="regFinger" type="button" class="btn1" id="regFinger" style="width:120px; height:36px" value="登记指纹"/>
|
||||
<input name="fingerLogin" type="hidden" class="btn1" id="fingerLogin" style="width:0px; height:0px" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="width:610px; height:460px" align="center">
|
||||
<iframe name="showMsg" id="showMsg" width="0" src="" height="0" marginheight="0" marginwidth="0" hspace="0" allowtransparency="true" frameborder="0"></iframe> </td>
|
||||
</tr>
|
||||
</table>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
@@ -0,0 +1,38 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Web;
|
||||
using System.Web.UI;
|
||||
using System.Web.UI.WebControls;
|
||||
|
||||
namespace FineUIPro.Web.FingerMark
|
||||
{
|
||||
public partial class RegisterFinger : System.Web.UI.Page
|
||||
{
|
||||
protected string username = "";//接收用户名
|
||||
protected string userId = "";//接收用户ID
|
||||
protected string flag = "";
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
{
|
||||
userId = Request.Params["userId"];
|
||||
flag = Request.Params["flag"];
|
||||
if (flag == "1")
|
||||
{
|
||||
var userInfo = BLL.HJGL_PersonManageService.GetWelderByWenId(userId);
|
||||
if (userInfo != null)
|
||||
{
|
||||
username = userInfo.WED_Name;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
var userInfo = BLL.StoremanInfoService.GetStoremanById(userId);
|
||||
if (userInfo != null)
|
||||
{
|
||||
username = userInfo.StoreName;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,15 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <自动生成>
|
||||
// 此代码由工具生成。
|
||||
//
|
||||
// 对此文件的更改可能会导致不正确的行为,并且如果
|
||||
// 重新生成代码,这些更改将会丢失。
|
||||
// </自动生成>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
namespace FineUIPro.Web.FingerMark {
|
||||
|
||||
|
||||
public partial class RegisterFinger {
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,115 @@
|
||||
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="UsingCheck.aspx.cs" Inherits="FineUIPro.Web.FingerMark.UsingCheck" %>
|
||||
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
|
||||
<head>
|
||||
<title>无标题页</title>
|
||||
<link rel="stylesheet" type="text/css" href="jquery.fancybox/jquery.fancybox.css"
|
||||
media="screen" />
|
||||
<script src="../Scripts/jquery-1.4.1.js" type="text/javascript"></script>
|
||||
<script type="text/javascript" src="jquery.fancybox/jquery.fancybox-1.2.1.pack.js"></script>
|
||||
<object classid="clsid:A318A9AC-E75F-424C-9364-6B40A848FC6B" width="0" height="0"
|
||||
id="zkonline">
|
||||
</object>
|
||||
<comment>
|
||||
<EMBED type="application/x-eskerplus"
|
||||
classid="clsid:A318A9AC-E75F-424C-9364-6B40A848FC6B"
|
||||
codebase="ZKOnline.ocx"
|
||||
width=0 height=0 style="visibility:hidden">
|
||||
</EMBED>
|
||||
</comment>
|
||||
</head>
|
||||
<body onload="Load()">
|
||||
<span id='id_error'></span>
|
||||
<table width="100%" style="height: 320px" border="0" cellpadding="0" cellspacing="0">
|
||||
<tr valign="top">
|
||||
<td height="25" align="left">
|
||||
<form id="form1" name="form1" method="post" action="" style="margin: 0">
|
||||
<input name="hiddenObj" id="hiddenObj" type="hidden" value="" />
|
||||
<input name="finghidden" id="finghidden" type="hidden" value="" />
|
||||
<input name="userId" type="hidden" id="userId" />
|
||||
<input name="username" id="username" type="hidden" />
|
||||
<%-- <input name="projectId" type="hidden" id="projectId" />
|
||||
<select id="drpProject" name="drpProject" style="width: 560px; height: 24px;" onchange="bao(this.options[this.options.selectedIndex].value)" />--%>
|
||||
<input name="regFinger" type="hidden" class="btn1" id="regFinger" style="width: 0px;
|
||||
height: 0px" />
|
||||
<input name="fingerLogin" type="button" class="btn2" id="fingerLogin" style="width: 200px;
|
||||
height: 48px" value="焊工领料(指纹)" />
|
||||
<input name="faceLogin" type="button" class="btn2" id="faceLogin" style="width: 200px;
|
||||
height: 48px" value="焊工领料(人脸)" onclick="window.location.href='../RLSB/WelderRead.aspx'"/>
|
||||
</form>
|
||||
</td>
|
||||
</tr>
|
||||
<tr >
|
||||
<td height="15px"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td height="25" align="left" style="font-size:24px; font-weight:bold">
|
||||
输入焊工号:
|
||||
<input name="welderCode" type="text" id="welderCode" style="width: 160px;
|
||||
height: 40px; font-size:24px" runat="server" />
|
||||
<input name="welderCodeLogin" type="button" onclick="welderCodeLogin();" class="btn2" id="welderCodeLogin" style="width: 120px;
|
||||
height: 48px;" value="领料确认"/>
|
||||
</td>
|
||||
</tr>
|
||||
<tr >
|
||||
<td height="15px"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<h3>
|
||||
1. 焊剂、焊条、焊条头退回:领料后没有超过8小时的,焊工按指纹从焊材领用页面进入进行退料,焊工和保管员需指纹确认超过8小时的自动闭环,默认全部用完,</h3>
|
||||
<h3>
|
||||
  如这时要退则要从焊材及焊条头回收页面进入,右键点击进行退料,焊工和保管员点击按钮确认,不需要指纹确认,但要记录超时退料一次。</h3>
|
||||
<h3>
|
||||
2. 焊丝、焊带退回:领料后没有超过28小时的,焊工按指纹从焊材领用页面进入进行退料,焊工和保管员需指纹确认,超过28小时的自动闭环,默认全部用完,</h3>
|
||||
<h3>
|
||||
  如这时要退则要从焊材及焊条头回收页面进入,右键点击进行退料,焊工和保管员点击按钮确认,不需要指纹确认,但要记录超时退料一次。</h3>
|
||||
<h3>
|
||||
3. 焊材退回只有在保管员确认后才进入库存,并记录退回材料的流水号</h3>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="width: 100%; height: 640px" valign="top" align="center">
|
||||
<iframe name="showMsg" id="showMsg" width="0" src="" height="0" marginheight="0"
|
||||
marginwidth="0" hspace="0" allowtransparency="true" frameborder="0"></iframe>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</body>
|
||||
</html>
|
||||
<script language="javascript" type="text/javascript">
|
||||
// var drpProject = $("drpProject");
|
||||
// var projectId = $("projectId");
|
||||
var userId = $("userId");
|
||||
var username = $("username");
|
||||
|
||||
userId.value = "0";
|
||||
username.value = "--请选择--";
|
||||
|
||||
function welderCodeLogin() {
|
||||
var welderCode = $("welderCode");
|
||||
if (welderCode.value != "") {
|
||||
window.location.href = '../WeldMat/UsingSentMat/UsingMat.aspx?welderCode=' + welderCode.value + '';
|
||||
}
|
||||
else {
|
||||
alert("请输入焊工号!");
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
// var arr = projectList.split('|')
|
||||
// option = new Option("--请选择--", "0");
|
||||
// drpProject.options.add(option);
|
||||
// for (i = 0; i < arr.length; i++) {
|
||||
// option = new Option(arr[i].split(',')[1], arr[i].split(',')[0]);
|
||||
// drpProject.options.add(option);
|
||||
// }
|
||||
// function bao(s) {
|
||||
// projectId.value = s;
|
||||
// userId.value = s;
|
||||
// username.value = s;
|
||||
// }
|
||||
|
||||
</script>
|
||||
@@ -0,0 +1,45 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Web;
|
||||
using System.Web.UI;
|
||||
using System.Web.UI.WebControls;
|
||||
|
||||
namespace FineUIPro.Web.FingerMark
|
||||
{
|
||||
public partial class UsingCheck : System.Web.UI.Page
|
||||
{
|
||||
protected string username = "";//接收用户名
|
||||
protected string userId = "";//接收用户ID
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
{
|
||||
//string wederId = Request.Params["wederId"];
|
||||
//userId = wederId;
|
||||
//var weld = BLL.HJGL_PersonManageService.GetWelderByWenId(wederId);
|
||||
//if (weld != null)
|
||||
//{
|
||||
// username = weld.WED_Name;
|
||||
//}
|
||||
}
|
||||
|
||||
//public string ProjectList()
|
||||
//{
|
||||
// string currUser = ((Model.Sys_User)Session["CurrUser"]).UserId;
|
||||
// var projects = BLL.Base_ProjectService.GetProjectListByUserId(currUser, "2");
|
||||
// string ProjectArr = string.Empty;
|
||||
// if (projects.Count() > 0)
|
||||
// {
|
||||
// foreach (var p in projects)
|
||||
// {
|
||||
// ProjectArr = ProjectArr + p.ProjectId + "," + p.ProjectCode + "-" + p.ProjectName + "|";
|
||||
// }
|
||||
// }
|
||||
// if (ProjectArr.Length > 0)
|
||||
// {
|
||||
// ProjectArr = ProjectArr.Substring(0, ProjectArr.Length - 1);
|
||||
// }
|
||||
// return ProjectArr;
|
||||
//}
|
||||
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,24 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <自动生成>
|
||||
// 此代码由工具生成。
|
||||
//
|
||||
// 对此文件的更改可能导致不正确的行为,如果
|
||||
// 重新生成代码,则所做更改将丢失。
|
||||
// </自动生成>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
namespace FineUIPro.Web.FingerMark {
|
||||
|
||||
|
||||
public partial class UsingCheck {
|
||||
|
||||
/// <summary>
|
||||
/// welderCode 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.HtmlControls.HtmlInputText welderCode;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,245 @@
|
||||
|
||||
function $(id){
|
||||
return document.getElementById(id);
|
||||
|
||||
}
|
||||
function DisplayError(errnum,emessage,etips){
|
||||
|
||||
$("id_error").style.display = "block";//id为id_error的对象的display(显示)方式为block(显示)
|
||||
if(errnum=="0"){ //如果错误号码为0
|
||||
|
||||
$("id_error").innerHTML="<ul class='errorlist'><li>"+emessage+"</li><li>"+etips+"</li></ul>";
|
||||
}
|
||||
}
|
||||
var fingertemplate="";
|
||||
var VerifyTemplate="";
|
||||
function submitFinger(action) {
|
||||
;
|
||||
$("id_error").style.display = "block"; //id为id_error的对象的display(显示)方式为block(显示)
|
||||
$("form1").target = "showMsg"
|
||||
if (action == "checkFinger") {
|
||||
|
||||
$("form1").action = "CheckFinger.aspx";
|
||||
$("hiddenObj").name = "VerifyTemplate";
|
||||
}
|
||||
if (action == "regFinger") {
|
||||
$("form1").action = "AddFinger.aspx";
|
||||
|
||||
$("hiddenObj").name = "hiddenObj";
|
||||
$("finghidden").name = "finghidden";
|
||||
}
|
||||
|
||||
if (action == "regFinger") {
|
||||
if ($("username").value == "") {
|
||||
alert("请输入用户名");
|
||||
$("username").focus();
|
||||
}
|
||||
else {
|
||||
$("showMsg").width = 600;
|
||||
$("showMsg").height = 450;
|
||||
$("form1").submit();
|
||||
}
|
||||
}
|
||||
if (action == "checkFinger") {
|
||||
if (($("username").value == "0" || $("username").value == "")) {
|
||||
alert("请选择项目!");
|
||||
$("username").focus();
|
||||
}
|
||||
else {
|
||||
$("showMsg").width = 1024;
|
||||
$("showMsg").height = 640;
|
||||
$("form1").submit();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// if ($("username").value == "" && action == "regFinger") {
|
||||
// alert("请输入用户名");
|
||||
// $("username").focus();
|
||||
// }
|
||||
|
||||
// else if (($("username").value == "0" || $("username").value == "") && action == "checkFinger") {
|
||||
// alert("请选择项目!");
|
||||
// $("username").focus();
|
||||
// }
|
||||
// else {
|
||||
// $("showMsg").width = 1024;
|
||||
// $("showMsg").height = 640;
|
||||
// $("form1").submit();
|
||||
// }
|
||||
}
|
||||
|
||||
function submitFingerConfirm(action) {;
|
||||
$("id_error").style.display = "block"; //id为id_error的对象的display(显示)方式为block(显示)
|
||||
$("form1").target = "showMsg"
|
||||
if (action == "CheckConfirm") {
|
||||
|
||||
$("form1").action = "CheckConfirm.aspx";
|
||||
$("hiddenObj").name = "VerifyTemplate";
|
||||
$("keyId").name = "keyId";
|
||||
$("flag").name = "flag";
|
||||
$("grid").name = "grid";
|
||||
}
|
||||
|
||||
$("showMsg").width = 600;
|
||||
$("showMsg").height = 450;
|
||||
$("form1").submit();
|
||||
|
||||
}
|
||||
|
||||
function FingerConfirm() {
|
||||
if (navigator.appName == "Microsoft Internet Explorer") {
|
||||
if (typeof zkonline.RegisterTemplate != "undefined") {
|
||||
if (zkonline.GetVerTemplate()) {
|
||||
VerifyTemplate = zkonline.VerifyTemplate;
|
||||
|
||||
} else {
|
||||
VerifyTemplate = "";
|
||||
return;
|
||||
}
|
||||
} else {
|
||||
var errnum = "0";
|
||||
var emessage = "登记失败.";
|
||||
var etips = "请检查确认已安装ZKOnline客户端和指纹设备已连接.";
|
||||
DisplayError(errnum, emessage, etips);
|
||||
return;
|
||||
}
|
||||
} else {
|
||||
if (window["zkonline"]) {
|
||||
if (zkonline.GetVerTemplate()) {
|
||||
VerifyTemplate = zkonline.VerifyTemplate;
|
||||
} else {
|
||||
VerifyTemplate = "";
|
||||
return;
|
||||
}
|
||||
} else {
|
||||
var errnum = "0";
|
||||
var emessage = "登记失败.";
|
||||
var etips = "请检查确认已安装ZKOnline客户端和指纹设备已连接.";
|
||||
DisplayError(errnum, emessage, etips);
|
||||
return;
|
||||
}
|
||||
}
|
||||
form1.hiddenObj.value = VerifyTemplate;
|
||||
submitFingerConfirm("CheckConfirm")
|
||||
}
|
||||
|
||||
|
||||
function checkFinger(){
|
||||
if (navigator.appName == "Microsoft Internet Explorer") {
|
||||
if (typeof zkonline.RegisterTemplate != "undefined") {
|
||||
if (zkonline.GetVerTemplate()){
|
||||
VerifyTemplate=zkonline.VerifyTemplate;
|
||||
|
||||
}else{
|
||||
VerifyTemplate="";
|
||||
return;
|
||||
}
|
||||
} else {
|
||||
var errnum = "0";
|
||||
var emessage = "登记失败.";
|
||||
var etips = "请检查确认已安装ZKOnline客户端和指纹设备已连接.";
|
||||
DisplayError(errnum,emessage,etips);
|
||||
return;
|
||||
}
|
||||
} else {
|
||||
if (window["zkonline"]) {
|
||||
if (zkonline.GetVerTemplate()){
|
||||
VerifyTemplate=zkonline.VerifyTemplate;
|
||||
}else{
|
||||
VerifyTemplate="";
|
||||
return;
|
||||
}
|
||||
} else {
|
||||
var errnum = "0";
|
||||
var emessage = "登记失败.";
|
||||
var etips = "请检查确认已安装ZKOnline客户端和指纹设备已连接.";
|
||||
DisplayError(errnum,emessage,etips);
|
||||
return;
|
||||
}
|
||||
}
|
||||
form1.hiddenObj.value=VerifyTemplate;
|
||||
submitFinger("checkFinger")
|
||||
}
|
||||
function RegFinger(){
|
||||
var RegisterTemplate=[]; //定义指纹模板数组,接收需要注册的指纹模板。
|
||||
var fingerids=[]; //定义手指id数组,接收手指id
|
||||
if (navigator.appName == "Microsoft Internet Explorer") {
|
||||
if (typeof zkonline.RegisterTemplate != "undefined") {
|
||||
if (zkonline.Register()){
|
||||
for(i=1;i<=10;i++){
|
||||
if(zkonline.GetRegFingerTemplate(i).length>2){
|
||||
fingerids.push(i);
|
||||
RegisterTemplate.push(zkonline.GetRegFingerTemplate(i));
|
||||
}
|
||||
|
||||
}
|
||||
zkonline.RegisterTemplate="";//清空临时接收模板
|
||||
}else{
|
||||
RegisterTemplate="";
|
||||
return;
|
||||
}
|
||||
} else {
|
||||
var errnum = "0";
|
||||
var emessage = "登录失败.";
|
||||
var etips = "请检查确认已安装ZKOnline客户端和指纹设备已连接.";
|
||||
DisplayError(errnum,emessage,etips);
|
||||
return;
|
||||
}
|
||||
} else {
|
||||
if (window["zkonline"]) {
|
||||
if (zkonline.Register()) {
|
||||
for(i=1;i<=10;i++){
|
||||
if(zkonline.GetRegFingerTemplate(i).length>2){
|
||||
fingerids.push(i);
|
||||
RegisterTemplate.push(zkonline.GetRegFingerTemplate(i));
|
||||
}
|
||||
}
|
||||
RegisterTemplate=zkonline.RegisterTemplate;
|
||||
zkonline.RegisterTemplate="";
|
||||
}else{
|
||||
RegisterTemplate="";
|
||||
return;
|
||||
}
|
||||
} else {
|
||||
var errnum = "0";
|
||||
var emessage = "登录失败.";
|
||||
var etips = "请检查确认已安装ZKOnline客户端和指纹设备已连接.";
|
||||
DisplayError(errnum,emessage,etips);
|
||||
return;
|
||||
}
|
||||
}
|
||||
$("hiddenObj").value=RegisterTemplate;
|
||||
$("finghidden").value=fingerids;
|
||||
submitFinger("regFinger")
|
||||
}
|
||||
|
||||
function Load(){
|
||||
var fingerLogin = $("fingerLogin");
|
||||
var regFinger = $("regFinger");
|
||||
var welderCodeLogin = $("welderCodeLogin");
|
||||
var userId = $("userId");
|
||||
var username = $("username");
|
||||
var welderCode = $("welderCode");
|
||||
fingerLogin.onclick = (function () {
|
||||
// userId.onblur = "";
|
||||
// if (userId.value == "0") {
|
||||
// alert("请选择项目!");
|
||||
// username.focus();
|
||||
// } else {
|
||||
// checkFinger();
|
||||
// }
|
||||
userId.blur();
|
||||
checkFinger();
|
||||
});
|
||||
regFinger.onclick=(function(){
|
||||
userId.onblur = "";
|
||||
if (userId.value == "") {
|
||||
alert("请先输入用户名");
|
||||
username.focus();
|
||||
}else{
|
||||
RegFinger();
|
||||
}
|
||||
});
|
||||
|
||||
};
|
||||
@@ -0,0 +1,368 @@
|
||||
html{
|
||||
height: 100%;
|
||||
}
|
||||
body{
|
||||
FILTER: progid:DXImageTransform.Microsoft.Gradient(GradientType=0, StartColorStr=#C1DEF9, EndColorStr=#ffffff);
|
||||
margin-left: 0px;
|
||||
margin-top: 0px;
|
||||
margin-right: 0px;
|
||||
margin-bottom: 0px;
|
||||
font-size:12px;
|
||||
}
|
||||
.btn {
|
||||
PADDING-LEFT: 5px;
|
||||
FONT-SIZE: 12px;
|
||||
cursor: expression("hand");
|
||||
FILTER: progid:DXImageTransform.Microsoft.Gradient(GradientType=0, StartColorStr=#ffffff, EndColorStr=#C1DEF9);
|
||||
CURSOR: hand;
|
||||
COLOR: black;
|
||||
PADDING-TOP: 2px;
|
||||
border: 1px solid #C1DEF9;
|
||||
}
|
||||
|
||||
.btn2 {
|
||||
PADDING-LEFT: 2px;
|
||||
FONT-SIZE: 24px;
|
||||
cursor: expression("hand");
|
||||
FILTER: progid:DXImageTransform.Microsoft.Gradient(GradientType=0, StartColorStr=#ffffff, EndColorStr=#C1DEF9);
|
||||
CURSOR: hand;
|
||||
COLOR: black;
|
||||
PADDING-TOP: 2px;
|
||||
border: 1px solid #C1DEF9;
|
||||
}
|
||||
|
||||
table{ /*表格样式(全局样式)*/
|
||||
font-size:12px;
|
||||
}
|
||||
.sys_table{ /*表格样式类(表格的四个边框)*/
|
||||
border-collapse:collapse; /*collapse是将单元格之间两条线合并在一起*/
|
||||
border:1px solid #629AF9;
|
||||
}
|
||||
.sys_td{ /*单元格样式(表格内的单元格)类*/
|
||||
border: 1px solid #629AF9;
|
||||
}
|
||||
.title1{
|
||||
font-size:28px;
|
||||
color:#000;
|
||||
}
|
||||
.btn1 { PADDING-LEFT: 2px;
|
||||
FONT-SIZE: 12px;
|
||||
cursor: expression("hand");
|
||||
FILTER: progid:DXImageTransform.Microsoft.Gradient(GradientType=0, StartColorStr=#ffffff, EndColorStr=#C1DEF9);
|
||||
CURSOR: hand;
|
||||
COLOR: black;
|
||||
PADDING-TOP: 2px;
|
||||
border: 1px solid #C1DEF9;
|
||||
}
|
||||
|
||||
div#fancy_overlay {
|
||||
position: fixed;
|
||||
top: 0;
|
||||
left: 0;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
background-color: #666;
|
||||
display: none;
|
||||
z-index: 30;
|
||||
}
|
||||
|
||||
* html div#fancy_overlay {
|
||||
position: absolute;
|
||||
height: expression(document.body.scrollHeight > document.body.offsetHeight ? document.body.scrollHeight : document.body.offsetHeight + 'px');
|
||||
}
|
||||
|
||||
div#fancy_wrap {
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
div#fancy_loading {
|
||||
position: absolute;
|
||||
height: 40px;
|
||||
width: 40px;
|
||||
cursor: pointer;
|
||||
display: none;
|
||||
overflow: hidden;
|
||||
background: transparent;
|
||||
z-index: 100;
|
||||
}
|
||||
|
||||
div#fancy_loading div {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
width: 40px;
|
||||
height: 480px;
|
||||
background: transparent url('fancy_progress.png') no-repeat;
|
||||
}
|
||||
|
||||
div#fancy_loading_overlay {
|
||||
position: absolute;
|
||||
background-color: #FFF;
|
||||
z-index: 30;
|
||||
}
|
||||
|
||||
div#fancy_loading_icon {
|
||||
position: absolute;
|
||||
background: url('fancy_loading.gif') no-repeat;
|
||||
z-index: 35;
|
||||
width: 16px;
|
||||
height: 16px;
|
||||
}
|
||||
|
||||
div#fancy_outer {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
z-index: 90;
|
||||
padding: 18px 18px 33px 18px;
|
||||
margin: 0;
|
||||
overflow: hidden;
|
||||
background: transparent;
|
||||
display: none;
|
||||
}
|
||||
|
||||
div#fancy_inner {
|
||||
position: relative;
|
||||
width:100%;
|
||||
height:100%;
|
||||
border: 1px solid #BBB;
|
||||
background: #FFF;
|
||||
}
|
||||
|
||||
div#fancy_content {
|
||||
margin: 0;
|
||||
z-index: 100;
|
||||
position: absolute;
|
||||
}
|
||||
|
||||
div#fancy_div {
|
||||
background: #000;
|
||||
color: #FFF;
|
||||
height: 100%;
|
||||
width: 100%;
|
||||
z-index: 100;
|
||||
}
|
||||
|
||||
img#fancy_img {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
border:0;
|
||||
padding: 0;
|
||||
margin: 0;
|
||||
z-index: 100;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
div#fancy_close {
|
||||
position: absolute;
|
||||
top: -12px;
|
||||
right: -15px;
|
||||
height: 30px;
|
||||
width: 30px;
|
||||
background: url('fancy_closebox.png') top left no-repeat;
|
||||
cursor: pointer;
|
||||
z-index: 181;
|
||||
display: none;
|
||||
}
|
||||
|
||||
#fancy_frame {
|
||||
position: relative;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
display: none;
|
||||
}
|
||||
|
||||
#fancy_ajax {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
overflow: auto;
|
||||
}
|
||||
|
||||
a#fancy_left, a#fancy_right {
|
||||
position: absolute;
|
||||
bottom: 0px;
|
||||
height: 100%;
|
||||
width: 35%;
|
||||
cursor: pointer;
|
||||
z-index: 111;
|
||||
display: none;
|
||||
background-image: url(data:image/gif;base64,AAAA);
|
||||
outline: none;
|
||||
}
|
||||
|
||||
a#fancy_left {
|
||||
left: 0px;
|
||||
}
|
||||
|
||||
a#fancy_right {
|
||||
right: 0px;
|
||||
}
|
||||
|
||||
span.fancy_ico {
|
||||
position: absolute;
|
||||
top: 50%;
|
||||
margin-top: -15px;
|
||||
width: 30px;
|
||||
height: 30px;
|
||||
z-index: 112;
|
||||
cursor: pointer;
|
||||
display: block;
|
||||
}
|
||||
|
||||
span#fancy_left_ico {
|
||||
left: -9999px;
|
||||
background: transparent url('fancy_left.png') no-repeat;
|
||||
}
|
||||
|
||||
span#fancy_right_ico {
|
||||
right: -9999px;
|
||||
background: transparent url('fancy_right.png') no-repeat;
|
||||
}
|
||||
|
||||
a#fancy_left:hover {
|
||||
visibility: visible;
|
||||
}
|
||||
|
||||
a#fancy_right:hover {
|
||||
visibility: visible;
|
||||
}
|
||||
|
||||
a#fancy_left:hover span {
|
||||
left: 20px;
|
||||
}
|
||||
|
||||
a#fancy_right:hover span {
|
||||
right: 20px;
|
||||
}
|
||||
|
||||
.fancy_bigIframe {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
background: transparent;
|
||||
}
|
||||
|
||||
div#fancy_bg {
|
||||
position: absolute;
|
||||
top: 0; left: 0;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
z-index: 70;
|
||||
border: 0;
|
||||
padding: 0;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
div.fancy_bg {
|
||||
position: absolute;
|
||||
display: block;
|
||||
z-index: 70;
|
||||
border: 0;
|
||||
padding: 0;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
div.fancy_bg_n {
|
||||
top: -18px;
|
||||
width: 100%;
|
||||
height: 18px;
|
||||
background: transparent url('fancy_shadow_n.png') repeat-x;
|
||||
}
|
||||
|
||||
div.fancy_bg_ne {
|
||||
top: -18px;
|
||||
right: -13px;
|
||||
width: 13px;
|
||||
height: 18px;
|
||||
background: transparent url('fancy_shadow_ne.png') no-repeat;
|
||||
}
|
||||
|
||||
div.fancy_bg_e {
|
||||
right: -13px;
|
||||
height: 100%;
|
||||
width: 13px;
|
||||
background: transparent url('fancy_shadow_e.png') repeat-y;
|
||||
}
|
||||
|
||||
div.fancy_bg_se {
|
||||
bottom: -18px;
|
||||
right: -13px;
|
||||
width: 13px;
|
||||
height: 18px;
|
||||
background: transparent url('fancy_shadow_se.png') no-repeat;
|
||||
}
|
||||
|
||||
div.fancy_bg_s {
|
||||
bottom: -18px;
|
||||
width: 100%;
|
||||
height: 18px;
|
||||
background: transparent url('fancy_shadow_s.png') repeat-x;
|
||||
}
|
||||
|
||||
div.fancy_bg_sw {
|
||||
bottom: -18px;
|
||||
left: -13px;
|
||||
width: 13px;
|
||||
height: 18px;
|
||||
background: transparent url('fancy_shadow_sw.png') no-repeat;
|
||||
}
|
||||
|
||||
div.fancy_bg_w {
|
||||
left: -13px;
|
||||
height: 100%;
|
||||
width: 13px;
|
||||
background: transparent url('fancy_shadow_w.png') repeat-y;
|
||||
}
|
||||
|
||||
div.fancy_bg_nw {
|
||||
top: -18px;
|
||||
left: -13px;
|
||||
width: 13px;
|
||||
height: 18px;
|
||||
background: transparent url('fancy_shadow_nw.png') no-repeat;
|
||||
}
|
||||
|
||||
div#fancy_title {
|
||||
position: absolute;
|
||||
bottom: -33px;
|
||||
left: 0;
|
||||
width: 100%;
|
||||
z-index: 100;
|
||||
display: none;
|
||||
}
|
||||
|
||||
div#fancy_title div {
|
||||
color: #FFF;
|
||||
font: bold 12px Arial;
|
||||
padding-bottom: 3px;
|
||||
}
|
||||
|
||||
div#fancy_title table {
|
||||
margin: 0 auto;
|
||||
}
|
||||
|
||||
div#fancy_title table td {
|
||||
padding: 0;
|
||||
vertical-align: middle;
|
||||
}
|
||||
|
||||
td#fancy_title_left {
|
||||
height: 32px;
|
||||
width: 15px;
|
||||
background: transparent url(fancy_title_left.png) repeat-x;
|
||||
}
|
||||
|
||||
td#fancy_title_main {
|
||||
height: 32px;
|
||||
background: transparent url(fancy_title_main.png) repeat-x;
|
||||
}
|
||||
|
||||
td#fancy_title_right {
|
||||
height: 32px;
|
||||
width: 15px;
|
||||
background: transparent url(fancy_title_right.png) repeat-x;
|
||||
}
|
||||
Reference in New Issue
Block a user