コード例 #1
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!IsPostBack)
     {
         foreach (int key in FpStudentObject.GetDictStatue().Keys)
         {
             string text = FpStudentObject.GetDictStatue()[key];
             ddlStatue.Items.Add(new ListItem(text, key.ToString()));
         }
     }
 }
コード例 #2
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) {
         }
     }
 }
コード例 #3
0
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            this.ProcedurePager1.TableName   = "fp_approve";
            this.ProcedurePager1.FieldString = @"id ,
	idcard ,
	name ,
	school,
    approver ,
	approve_time ,
    type ,
    remark 
	"    .Replace("\r\n", "").Replace("\t", "");
            this.ProcedurePager1.SortString  = " order by id desc";

            Dictionary <int, string> dictStatus = FpStudentObject.GetDictStatue();
            foreach (int key in dictStatus.Keys)
            {
                DropDownList1.Items.Add(new ListItem(dictStatus[key], key.ToString()));
            }
        }
    }