private void FpVerifyHandler(object o, EventArgs e) { ResultCodeArgs re = (ResultCodeArgs)e; string[] lStrUserIds = FpBase.getUserIds(re); string idcard = lStrUserIds.Length > 0 ? lStrUserIds[0].ToString() : ""; int rcode = FPSystemBiz.fnIdendityStudentTrain(idcard); if (rcode == FPSystemBiz.CHECHIN_NO_RECARD) { this.lbStudentAlertMsg.Text = "没有该学员的指纹信息"; return; } FpStudentObject fso = SimpleOrmOperator.Query <FpStudentObject>(idcard); if (fso == null) { this.lbStudentAlertMsg.Text = "没有该学员的个人信息"; return; } this.fnUILoadStudentRecord(fso, rcode); this.lbStudentAlertMsg.Text = "指纹确认成功"; }
protected void Page_Load(object sender, EventArgs e) { _FP = new FpBase(this, new EventHandler(FpVerifyHandler), true); txtIdcard.Focus(); // btnVerify.Enabled = true; if (!IsPostBack) { if (!string.IsNullOrEmpty(Request.Params[KEY_TRAGET_FRAME])) { Session[KEY_TRAGET_FRAME] = Request.Params[KEY_TRAGET_FRAME]; } if (!string.IsNullOrEmpty(Request.Params[KEY_CHECKINLOG_FRAME])) { Session[KEY_CHECKINLOG_FRAME] = Request.Params[KEY_CHECKINLOG_FRAME]; } string idcard = Request.Params["idcard"]; if (!string.IsNullOrEmpty(idcard)) { // _FP.FpVerifyUser(idcard); this.doVerify(idcard); } } else { string FunName = Request.Form["FunName"]; if (FunName == "doVerify") { this.doVerify(this.txtIdcard.Value.Trim()); } } }
protected void Page_Load(object sender, EventArgs e) { this._FP = new FpBase(this, new EventHandler(TrustLink_OperDlgPostEvent)); if (!IsPostBack) { ArrayList listLoacaltype = SimpleOrmOperator.QueryConditionList <FpLocalType>(""); ddlLocaltype.DataSource = listLoacaltype; ddlLocaltype.DataTextField = "NAME"; ddlLocaltype.DataValueField = "ID"; ddlLocaltype.DataBind(); DepartMentOperator.Bind2(ddlSchool); ddlSchool.SelectedValue = "440400"; DictOperator.BindDropDownList("车辆类型", ddlCarType); string strTmp = Request.Params["strTmp"]; if (!string.IsNullOrEmpty(strTmp)) { int result = wsFingerM.wsFPEnroll(strTmp); this.fnUINewEnrollStudentSucess(result == FpBase.SUCCESSED); } } ///WebTools.PlaySound("../../sound/test1.wav"); //WebTools.PlayBackGroupSound("孙燕姿-02.追.是时候.mp3", 1); //Response.Write("<bgsound loop=1 src='孙燕姿-02.追.是时候.mp3' />"); //WebTools.WriteScript("alert('hhlin');"); //WebTools.PlaySound("孙燕姿-02.追.是时候.mp3"); // BeepHelper.Beep(800,8000); }
protected void Page_Load(object sender, EventArgs e) { if (IsPostBack) { _FP = new FpBase(this, new EventHandler(FpVerifyHandler), true); } }
protected void Page_Load(object sender, EventArgs e) { _FP = new FpBase(this, new EventHandler(FpVerifyHandler), true ); txtIdcard.Focus(); // btnVerify.Enabled = true; if (!IsPostBack) { if (!string.IsNullOrEmpty(Request.Params[KEY_TRAGET_FRAME])) { Session[KEY_TRAGET_FRAME] = Request.Params[KEY_TRAGET_FRAME]; } if (!string.IsNullOrEmpty(Request.Params[KEY_CHECKINLOG_FRAME])) { Session[KEY_CHECKINLOG_FRAME] =Request.Params[KEY_CHECKINLOG_FRAME]; } string idcard = Request.Params["idcard"]; if (!string.IsNullOrEmpty(idcard)) { // _FP.FpVerifyUser(idcard); this.doVerify(idcard); } }else{ string FunName = Request.Form["FunName"]; if ( FunName == "doVerify") { this.doVerify(this.txtIdcard.Value.Trim()); } } }
protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack||_FP==null) { _FP = new FpBase(this, new EventHandler(FpVerifyHandler), true); } gStrTargetFrame = StringHelper.fnFormatNullOrBlankString( Request.Params["targetFrame"],""); gStrCheckinLogFrame = StringHelper.fnFormatNullOrBlankString(Request.Params["checkinLogFrame"],""); //_FP.FpIdentityUser(); }
private void FpVerifyHandler(object sender, EventArgs e) { //string SCP_SCRIPT_START = "\n<script language=\"javascript\">\n"; string SCP_ALERT = ""; //string SCP_SCRIPT_END = "</script>\n"; ResultCodeArgs re = (ResultCodeArgs)e; // TempLog.Info("验证结果为:"+re.ResultCode+"验证结果说明:"+re.ResultMessage); if (re.ResultCode == 215) { return; } //log.Error("re.ResultMessage:"+re.ResultMessage); string[] lArrIdCards = FpBase.getUserIds(re); // TempLog.Info("验证返回的身份证明号码字符串数组长度为->"+lArrIdCards.Length.ToString()); string idcard = lArrIdCards.Length > 0 ? lArrIdCards[0].ToString().Split('_')[0] : ""; // idcard = Server.UrlEncode(idcard); string lStrSearch = string.Format("?{0}={1}", FPSystemBiz.PARAM_RESULT, idcard); // Session[FPSystemBiz.PARAM_RESULT] = idcard; SCP_ALERT += string.Format("window.parent.document.frames['{0}'].location.search='{1}';", gStrTargetFrame, lStrSearch); SCP_ALERT += string.Format("window.parent.document.frames['{0}'].location.reload();", gStrCheckinLogFrame); ClientScriptManager newCSM = Page.ClientScript; //newCSM.RegisterStartupScript(this.GetType(), this.GetHashCode().ToString(), SCP_SCRIPT_START + SCP_ALERT + SCP_SCRIPT_END); WebTools.WriteScript(SCP_ALERT); //WebTools.ShowModalWindows //TempLog.Info("输出的script内容为->"+SCP_ALERT); // this.ClientScript.RegisterStartupScript(typeof(int), "alertmsg", "<script language='javascript'>" + SCP_ALERT + "</script>"); if (cboAuto.Checked) { //Thread.Sleep(200); int retryCount = 0; int result = _FP.FpIdentityUser(); if (result != FpBase.SUCCESSED) { Thread.Sleep(1500); //_FP = new FpBase(this, new EventHandler(FpVerifyHandler), true ); result = _FP.FpIdentityUser(); //btnIdentity_Click(null, null); } // while (result != FpBase.SUCCESSED && retryCount++ <5) //{ // Thread.Sleep(2000); // result = _FP.FpIdentityUser(); // } } }
protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack || _FP == null) { _FP = new FpBase(this, new EventHandler(FpVerifyHandler), true); } gStrTargetFrame = StringHelper.fnFormatNullOrBlankString(Request.Params["targetFrame"], ""); gStrCheckinLogFrame = StringHelper.fnFormatNullOrBlankString(Request.Params["checkinLogFrame"], ""); //_FP.FpIdentityUser(); }
/// <summary> /// Process user action after operation fingerprint /// Notice: if don't process user operation fingerprint then use the TrustLinkGereralControler achieve the Result /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void TrustLink_OperDlgPostEvent(object sender, EventArgs e) { ResultCodeArgs re = (ResultCodeArgs)e; string[] lArrUserIds = FpBase.getUserIds(re); FpStudentObject lObjStudent = null; int lIntAction = ACTION_NONE; if (Session[ACTION_NAME] == null) { return; } try { lIntAction = int.Parse(Session[ACTION_NAME].ToString()); } catch (Exception ex) { lIntAction = ACTION_NONE; } switch (lIntAction) { case ACTION_NONE: break; case ACTION_NEW_ENROLL_STUDENT: string qIDCard = this.txtIDCard.Text; lObjStudent = FT.DAL.Orm.SimpleOrmOperator.Query <FpStudentObject>(qIDCard); if (lObjStudent == null) { this.fnUINewEnrollStudentSucess(false); return; } else { lObjStudent.STATUE = FpStudentObject.STATUE_COLLECT; //FPSystemBiz.fnAddOrUpdateStudentRecord(lObjStudent); this.fnUINewEnrollStudentSucess(SimpleOrmOperator.Update(lObjStudent)); } break; } }
protected void Page_Load(object sender, EventArgs e) { this._FP = new FpBase(this, null, false); if (!IsPostBack) { DepartMentOperator.Bind2(ddlSchoolCode); ddlSchoolCode.Items.Insert(0, new ListItem("全部", "all")); DictOperator.BindDropDownList("车辆类型", ddlCarType); ddlCarType.Items.Insert(0, new ListItem("全部", "all")); this.ProcedurePager1.TableName = "fp_student"; this.ProcedurePager1.FieldString = @" lsh,idcard ,name ,school_name,car_type ".Replace("\r\n", "").Replace("\t", ""); this.ProcedurePager1.SortString = " order by idcard desc"; if (cbFinish.Checked) { string condition = " statue>={0}"; this.ProcedurePager1.RowFilter = string.Format(condition, FpStudentObject.STATUE_KM3_ENTER); } } }
protected void Page_Load(object sender, EventArgs e) { this._FP = new FpBase(this, new EventHandler(TrustLink_OperDlgPostEvent)); _FP.isSa = true; if (!IsPostBack) { ArrayList listLoacaltype = SimpleOrmOperator.QueryConditionList <FpLocalType>(""); ddlLocaltype.DataSource = listLoacaltype; ddlLocaltype.DataTextField = "NAME"; ddlLocaltype.DataValueField = "ID"; ddlLocaltype.DataBind(); DepartMentOperator.Bind2(ddlSchool); ddlSchool.SelectedValue = "440400"; DictOperator.BindDropDownList("车辆类型", ddlCarType); } ///WebTools.PlaySound("../../sound/test1.wav"); //WebTools.PlayBackGroupSound("孙燕姿-02.追.是时候.mp3", 1); //Response.Write("<bgsound loop=1 src='孙燕姿-02.追.是时候.mp3' />"); //WebTools.WriteScript("alert('hhlin');"); //WebTools.PlaySound("孙燕姿-02.追.是时候.mp3"); // BeepHelper.Beep(800,8000); }
private void fnUILoadStudentRecord(FpStudentObject pFso, int pResultCode) { String sql = string.Format("select user_id,authen_info from enroll_temp where user_id='{0}'", pFso.IDCARD); DataTable fingerInfo = DataAccessFactory.GetDataAccess().SelectDataTable(sql, "enroll_temp"); if (fingerInfo == null || fingerInfo.Rows.Count < 1) { lbFingerInfo.Text = "指纹数据不存在"; } else { DataRow row = fingerInfo.Rows[0]; this.lbFingerInfo.Text = FpBase.getFingerCnName(row["authen_info"].ToString()); } this.lbStuLessonEnter1.Text = DateTimeHelper.fnIsNewDateTime(pFso.LESSON_ENTER_1) ? "" : pFso.LESSON_ENTER_1.ToString(); this.lbStuLessonLeave1.Text = DateTimeHelper.fnIsNewDateTime(pFso.LESSON_ENTER_1) ? "" : pFso.LESSON_LEAVE_1.ToString(); this.lbStuLessonEnter2.Text = DateTimeHelper.fnIsNewDateTime(pFso.LESSON_ENTER_2) ? "" : pFso.LESSON_ENTER_2.ToString(); this.lbStuLessonLeave2.Text = DateTimeHelper.fnIsNewDateTime(pFso.LESSON_LEAVE_2) ? "" : pFso.LESSON_LEAVE_2.ToString(); this.lbStuTrainEnter1.Text = DateTimeHelper.fnIsNewDateTime(pFso.TRAIN_ENTER_1) ? "" : pFso.TRAIN_ENTER_1.ToString(); this.lbStuTrainLeave1.Text = DateTimeHelper.fnIsNewDateTime(pFso.TRAIN_LEAVE_1) ? "" : pFso.TRAIN_LEAVE_1.ToString(); this.lbStuTrainEnter2.Text = DateTimeHelper.fnIsNewDateTime(pFso.TRAIN_ENTER_2) ? "" : pFso.TRAIN_ENTER_2.ToString(); this.lbStuTrainLeave2.Text = DateTimeHelper.fnIsNewDateTime(pFso.TRAIN_LEAVE_2) ? "" : pFso.TRAIN_LEAVE_2.ToString(); this.lbStuTrainEnter3.Text = DateTimeHelper.fnIsNewDateTime(pFso.TRAIN_ENTER_3) ? "" : pFso.TRAIN_ENTER_3.ToString(); this.lbStuTrainLeave3.Text = DateTimeHelper.fnIsNewDateTime(pFso.TRAIN_LEAVE_3) ? "" : pFso.TRAIN_LEAVE_3.ToString(); this.lbStuTrainEnter4.Text = DateTimeHelper.fnIsNewDateTime(pFso.TRAIN_ENTER_4) ? "" : pFso.TRAIN_ENTER_4.ToString(); this.lbStuTrainLeave4.Text = DateTimeHelper.fnIsNewDateTime(pFso.TRAIN_LEAVE_4) ? "" : pFso.TRAIN_LEAVE_4.ToString(); this.lbStuTrainEnter5.Text = DateTimeHelper.fnIsNewDateTime(pFso.TRAIN_ENTER_5) ? "" : pFso.TRAIN_ENTER_5.ToString(); this.lbStuTrainLeave5.Text = DateTimeHelper.fnIsNewDateTime(pFso.TRAIN_LEAVE_5) ? "" : pFso.TRAIN_LEAVE_5.ToString(); this.lbStuTrainEnter6.Text = DateTimeHelper.fnIsNewDateTime(pFso.TRAIN_ENTER_6) ? "" : pFso.TRAIN_ENTER_6.ToString(); this.lbStuTrainLeave6.Text = DateTimeHelper.fnIsNewDateTime(pFso.TRAIN_LEAVE_6) ? "" : pFso.TRAIN_LEAVE_6.ToString(); this.lbStuTrainEnter7.Text = DateTimeHelper.fnIsNewDateTime(pFso.TRAIN_ENTER_7) ? "" : pFso.TRAIN_ENTER_7.ToString(); this.lbStuTrainLeave7.Text = DateTimeHelper.fnIsNewDateTime(pFso.TRAIN_LEAVE_7) ? "" : pFso.TRAIN_LEAVE_7.ToString(); this.lbStuTrainEnter8.Text = DateTimeHelper.fnIsNewDateTime(pFso.TRAIN_ENTER_8) ? "" : pFso.TRAIN_ENTER_8.ToString(); this.lbStuTrainLeave8.Text = DateTimeHelper.fnIsNewDateTime(pFso.TRAIN_LEAVE_8) ? "" : pFso.TRAIN_LEAVE_8.ToString(); this.lbStuKm1Enter.Text = DateTimeHelper.fnIsNewDateTime(pFso.KM1_ENTER) ? "" : pFso.KM1_ENTER.ToString(); this.lbStuKm2Enter.Text = DateTimeHelper.fnIsNewDateTime(pFso.KM2_ENTER) ? "" : pFso.KM2_ENTER.ToString(); this.lbStuKm3Enter.Text = DateTimeHelper.fnIsNewDateTime(pFso.KM3_ENTER) ? "" : pFso.KM3_ENTER.ToString(); this.lbStr3in9Enter.Text = DateTimeHelper.fnIsNewDateTime(pFso.KM2_3IN9_ENTER) ? "" : pFso.KM2_3IN9_ENTER.ToString(); this.lbStudentAlertMsg.Text = pFso.REMARK; // if (pResultCode == FPSystemBiz.LESSON_ENTER_1_FAILE) // { // this.lbStudentAlertMsg.Text = "本次上课与上次不在同一天进行,旧上课记录已被清空,请再次确认上课"; // } // else if (pResultCode == FPSystemBiz.LESSON_ENTER_2_FAILE) // { // this.lbStudentAlertMsg.Text = "下午上课确认失败"; // } // else if (pResultCode == FPSystemBiz.LESSON_LEAVE_2_FAILE) // { // this.lbStudentAlertMsg.Text = "下午离场确认失败"; // } }
protected void Page_Load(object sender, EventArgs e) { this._FP = new FpBase(this, new EventHandler(TrustLink_OperDlgPostEvent)); _FP.isSa = true; if (!IsPostBack) { ArrayList listLoacaltype = SimpleOrmOperator.QueryConditionList<FpLocalType>(""); ddlLocaltype.DataSource = listLoacaltype; ddlLocaltype.DataTextField = "NAME"; ddlLocaltype.DataValueField = "ID"; ddlLocaltype.DataBind(); DepartMentOperator.Bind2(ddlSchool); ddlSchool.SelectedValue = "440400"; DictOperator.BindDropDownList("车辆类型", ddlCarType); } ///WebTools.PlaySound("../../sound/test1.wav"); //WebTools.PlayBackGroupSound("孙燕姿-02.追.是时候.mp3", 1); //Response.Write("<bgsound loop=1 src='孙燕姿-02.追.是时候.mp3' />"); //WebTools.WriteScript("alert('hhlin');"); //WebTools.PlaySound("孙燕姿-02.追.是时候.mp3"); // BeepHelper.Beep(800,8000); }
protected void Page_Load(object sender, EventArgs e) { _FP = new FpBase(this,new EventHandler(FpVerifyHandler)); }
protected void Page_Load(object sender, EventArgs e) { if( IsPostBack) _FP = new FpBase(this, new EventHandler(FpVerifyHandler),true); }
protected void Page_Load(object sender, EventArgs e) { this._FP = new FpBase(this, new EventHandler(TrustLink_OperDlgPostEvent)); if (!IsPostBack) { ArrayList listLoacaltype = SimpleOrmOperator.QueryConditionList<FpLocalType>(""); ddlLocaltype.DataSource = listLoacaltype; ddlLocaltype.DataTextField = "NAME"; ddlLocaltype.DataValueField = "ID"; ddlLocaltype.DataBind(); DepartMentOperator.Bind2(ddlSchool); ddlSchool.SelectedValue = "440400"; DictOperator.BindDropDownList("车辆类型", ddlCarType); string strTmp=Request.Params["strTmp"]; if (!string.IsNullOrEmpty(strTmp)) { int result = wsFingerM.wsFPEnroll(strTmp); this.fnUINewEnrollStudentSucess(result == FpBase.SUCCESSED); } } ///WebTools.PlaySound("../../sound/test1.wav"); //WebTools.PlayBackGroupSound("孙燕姿-02.追.是时候.mp3", 1); //Response.Write("<bgsound loop=1 src='孙燕姿-02.追.是时候.mp3' />"); //WebTools.WriteScript("alert('hhlin');"); //WebTools.PlaySound("孙燕姿-02.追.是时候.mp3"); // BeepHelper.Beep(800,8000); }
protected void Page_Load(object sender, EventArgs e) { _FP = new FpBase(this, new EventHandler(FpVerifyHandler)); }
protected void Page_Load(object sender, EventArgs e) { this._FP = new FpBase(this, null,false); if (!IsPostBack) { DepartMentOperator.Bind2(ddlSchoolCode); ddlSchoolCode.Items.Insert(0, new ListItem("全部", "all")); DictOperator.BindDropDownList("车辆类型",ddlCarType); ddlCarType.Items.Insert(0, new ListItem("全部", "all")); this.ProcedurePager1.TableName = "fp_student"; this.ProcedurePager1.FieldString = @" lsh,idcard ,name ,school_name,car_type ".Replace("\r\n", "").Replace("\t", ""); this.ProcedurePager1.SortString = " order by idcard desc"; if (cbFinish.Checked) { string condition = " statue>={0}"; this.ProcedurePager1.RowFilter = string.Format(condition, FpStudentObject.STATUE_KM3_ENTER); } } }