コード例 #1
0
    protected void Page_Load(object sender, EventArgs e)
    {
        if (Request.Params[FPSystemBiz.PARAM_RESULT] == null)
        {
            return;
        }
        string lStrIDCard = Request.Params[FPSystemBiz.PARAM_RESULT].ToString();

        if (lStrIDCard.Length < 1)
        {
            return;
        }
        int             lIntResultCode = FPSystemBiz.fnIdendityStudentLesson(lStrIDCard);
        FpStudentObject fso            = SimpleOrmOperator.Query <FpStudentObject>(lStrIDCard);

        if (fso == null)
        {
            this.lbAlertMsg.Text = "没有该学员的个人信息";
            return;
        }
        this.fnUILoadStudentRecord(fso, lIntResultCode);
    }
コード例 #2
0
ファイル: FpAttendLesson.aspx.cs プロジェクト: radtek/fivemen
    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.fnIdendityStudentLesson(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);
    }