Ejemplo n.º 1
0
 private void fnUILoadStudentRecord(FpStudentObject fso, TempStudentInfo tso)
 {
     if (fso == null)
     {
         this.lbAlertMsg.Visible = true;
         this.lbAlertMsg.Text    = "没有该学员的指纹记录信息";
     }
     else if (tso == null)
     {
         this.lbAlertMsg.Visible = true;
         this.lbAlertMsg.Text    = "没有该学员的个人信息";
     }
     else
     {
         fso.fromTempStudentInfo(tso);
         try {
             this.lbName.Text        = fso.NAME;
             this.lbSex.Text         = fso.SEX;
             this.lbIdCard.Text      = fso.IDCARD;
             this.imgPerson.ImageUrl = string.Format("~/ShowImage.aspx?idcardtype=A&idcard={0}", fso.IDCARD);
             this.lbIDCardType.Text  = "第二代身份证";
             this.lbBrithday.Text    = DateTimeHelper.fnIsNewDateTime(fso.BRITHDAY) ? "" : fso.BRITHDAY.ToString();
             this.lbPhone.Text       = fso.PHONE;
             this.lbAddress.Text     = fso.ADDRESS;
             this.lbDrvSchool.Text   = fso.DRV_SCHOOL;
             this.lbDocNum.Text      = fso.DRV_DOCNUM;
             this.lbDrvType.Text     = fso.DRV_TYPE;
             this.lbRemark.Text      = fso.REMARK;
             this.lbAlertMsg.Text    = "";
         }
         catch (NullReferenceException nre) {
         }
     }
 }
Ejemplo n.º 2
0
    protected void Page_Load(object sender, EventArgs e)
    {
        string lStrIDCard = "";

        if (Request.Params[FPSystemBiz.PARAM_RESULT] == null)
        {
            return;
        }
        lStrIDCard = Request.Params[FPSystemBiz.PARAM_RESULT].ToString();
        if (lStrIDCard.Length < 1)
        {
            this.lbAlertMsg.Text = "没有该学员的指纹信息";
            return;
        }
        //int lIntResultCode = FPSystemBiz.fnIdendityStudentLesson(lStrIDCard);
        //lStrIDCard = "'" + lStrIDCard + "'";
        //FpStudentObject fso = SimpleOrmOperator.Query<FpStudentObject>(lStrIDCard);
        TempStudentInfo tempStudentInfo = DrvQueryHelper.QueryStudent(lStrIDCard);
        FpStudentObject fso             = new FpStudentObject();

        if (tempStudentInfo == null && 1 == 2)
        {
            this.lbAlertMsg.Visible = true;
            this.lbAlertMsg.Text    = "没有该学员的个人信息";
            return;
        }
        fso.fromTempStudentInfo(tempStudentInfo);
        Session[SESSION_STUDENT] = fso;
        this.fnUILoadStudentRecord(fso, tempStudentInfo);
    }
Ejemplo n.º 3
0
 public void fnUILoadStudentRecord(string idcard)
 {
     idcard = StringHelper.fnFormatNullOrBlankString(idcard, "");
     if (idcard != "")
     {
         TempStudentInfo tempStudentInfo = DrvQueryHelper.QueryStudent(idcard);
         FpStudentObject fso             = SimpleOrmOperator.Query <FpStudentObject>(idcard);
         fnUILoadStudentRecord(fso, tempStudentInfo);
     }
 }
Ejemplo n.º 4
0
 public void fromTempStudentInfo(TempStudentInfo info)
 {
     if (info == null)
     {
         return;
     }
     this.name    = info.name;
     this.sex     = info.sex;
     this.phone   = info.phone;
     this.address = info.address;
     // this.brithday = DateTime.Parse(info.birthday);
     this.idcard = info.idCard;
 }
Ejemplo n.º 5
0
 private void fnUILoadStudentRecord(FpStudentObject fso, TempStudentInfo tso)
 {
     if (fso == null)
     {
         this.lbAlertMsg.Visible = true;
         this.lbAlertMsg.Text    = "没有该学员的指纹记录信息";
     }
     else if (tso == null)
     {
         this.lbAlertMsg.Visible = true;
         this.lbAlertMsg.Text    = "没有该学员的个人信息";
     }
     else
     {
         //fso.fromTempStudentInfo(tso);
         try {
             this.lbName.Text = fso.NAME;
             //  this.lbSex.Text = fso.SEX;/;
             this.lbIdCard.Text = fso.IDCARD;
             //  this.imgPerson.ImageUrl = string.Format("~/ShowImage.aspx?idcardtype=A&idcard={0}", fso.IDCARD);
             // this.lbIDCardType.Text = "第二代身份证";
             //  this.lbBrithday.Text = DateTimeHelper.fnIsNewDateTime(fso.BRITHDAY) ? "" : fso.BRITHDAY.ToString();
             //  this.lbPhone.Text = fso.PHONE;
             //  this.lbAddress.Text = fso.ADDRESS;
             //  this.lbDrvSchool.Text = fso.DRV_SCHOOL;
             //  this.lbDocNum.Text = fso.DRV_DOCNUM;
             //   this.lbDrvType.Text = fso.DRV_TYPE;
             this.lbRemark.Text     = fso.REMARK;
             this.lbAlertMsg.Text   = "";
             this.lbLsh.Text        = fso.LSH;
             this.lbSchoolName.Text = fso.SCHOOL_NAME;
             this.lbStaute.Text     = FpStudentObject.GetDictStatue()[fso.STATUE];
             this.lbFeeStatue.Text  = fso.FEE_STATUE == "Y" ? "是" : "否";
             this.lbKm3Verify.Text  = fso.KM3_VERIFY == "Y" ? "是" : "否";
             this.lbCarType.Text    = fso.CAR_TYPE;
             FpLocalType localType = SimpleOrmOperator.Query <FpLocalType>(fso.LOCALTYPE);
             this.lbLocalType.Text = localType == null ? "" : localType.NAME;
         }
         catch (NullReferenceException nre) {
         }
     }
 }