protected void Page_Load(object sender, EventArgs e) { if (Request.Params[FPSystemBiz.PARAM_RESULT] == null || IsPostBack) { return; } string lStrIDCard = StringHelper.fnFormatNullOrBlankString(Request.Params[FPSystemBiz.PARAM_RESULT], ""); if (lStrIDCard == "") { return; } FpStudentObject fso = SimpleOrmOperator.Query <FpStudentObject>(lStrIDCard); //lStrIDCard = Server.UrlDecode(lStrIDCard); //int lIntResultCode= FPSyst//////////emBiz.fnIdendityStudentLesson(lStrIDCard); bool isCheckin = false; DateTime lDtToday = DateTime.Now; if (fso == null) { this.lbStudentAlertMsg.Text = "学员个人信息不存在,可能是驾校未及时上传"; WebTools.PlaySound("../../sound/学员个人信息不存在.wav"); return; } else { ucStudentInfo.fnUILoadStudentRecord(fso); try { //int site_id = StringHelper.fnFormatNullOrBlankInt(Session["site_id"].ToString()); FpSite fpSite = Session[typeof(FpSite).Name] as FpSite; isCheckin = FPSystemBiz.fnStudentCheckIn(ref fso, fpSite, lDtToday); if (isCheckin) { if (fso.STATUE == FpStudentObject.STATUE_LESSON_END) { WebTools.PlaySound("../../sound/学员已完成上课.wav"); } else { WebTools.PlaySound("../../sound/上课考勤有效.wav"); } } else { WebTools.PlaySound("../../sound/上课考勤无效.wav"); } this.fnUILoadStudentRecord(fso, 0); } catch (Exception ex) { lbStudentAlertMsg.Text = ex.Message; } } }
protected void Page_Load(object sender, EventArgs e) { if (Request.Params[FPSystemBiz.PARAM_RESULT] == null) { return; } string lStrIDCard = StringHelper.fnFormatNullOrBlankString(Request.Params[FPSystemBiz.PARAM_RESULT], ""); if (lStrIDCard == "") { return; } //int lIntResultCode = FPSystemBiz.fnIdendityStudentTrain(lStrIDCard); FpStudentObject fso = SimpleOrmOperator.Query <FpStudentObject>(lStrIDCard); bool isCheckin = false; DateTime lDtToday = DateTime.Now; string bustype = "km"; if (Session["bustype"] != null) { bustype = Session["bustype"].ToString(); } if (fso == null) { this.lbStudentAlertMsg.Text = "学员个人信息不存在"; WebTools.PlaySound("../../sound/学员个人信息不存在.wav"); return; } else { ucStudentInfo.fnUILoadStudentRecord(fso); try { //int site_id = StringHelper.fnFormatNullOrBlankInt(Session["site_id"].ToString()); FpSite fpSite = Session[typeof(FpSite).Name] as FpSite; isCheckin = FPSystemBiz.fnStudentCheckIn(ref fso, fpSite, lDtToday); if (isCheckin) { WebTools.PlaySound("../../sound/考试入场考勤有效.wav"); } else { WebTools.PlaySound("../../sound/考试入场考勤无效.wav"); } this.fnUILoadStudentRecord(fso, 0); } catch (Exception ex) { lbStudentAlertMsg.Text = ex.Message; } } }