Beispiel #1
0
        protected void Page_Load(object sender, EventArgs e)
        {
            BLL  = new ZcryBLL(this.WorkUser);
            ryID = this.Request.QueryString["ryid"];
            DataTable dt    = BLL.Read(ryID);
            DataRow   model = null;

            if (dt != null && dt.Rows.Count > 0)
            {
                model = dt.Rows[0];
            }
            if (model != null && model["sfzsmj"] != DBNull.Value && model["sfzsmj"].ToString().Length > 0)
            {
                Byte[] b = (byte[])model["sfzsmj"];
                //this.Response.Write(b.Length);
                if (b != null && b.Length > 0)
                {
                    MemoryStream         mymemorystream            = new MemoryStream(b, 0, b.Length);
                    System.Drawing.Image image                     = System.Drawing.Image.FromStream(mymemorystream);
                    System.Drawing.Image.GetThumbnailImageAbort cb = new System.Drawing.Image.GetThumbnailImageAbort(CallBack);
                    System.Drawing.Image thumbnailImage            = image.GetThumbnailImage(110, 137, cb, System.IntPtr.Zero);
                    MemoryStream         ms = new MemoryStream();
                    thumbnailImage.Save(ms, System.Drawing.Imaging.ImageFormat.Jpeg);
                    Response.BinaryWrite(ms.ToArray());
                }
                else
                {
                    Response.Write("<span style=\" color:Red;text-align:center;vertical-align:middle;height:100%;padding-top:45%;\">无照片信息</span>");
                }
            }
            else
            {
                Response.Write("<span style=\" color:Red;text-align:center;vertical-align:middle;height:100%;padding-top:45%;\">无照片信息</span>");
            }
        }
Beispiel #2
0
 protected void Page_Load(object sender, EventArgs e)
 {
     ryid    = Request.QueryString["ryid"].ToString();
     zcryBll = new ZcryBLL(this.WorkUser);
     if (!IsPostBack)
     {
         SearchData();
     }
 }
Beispiel #3
0
 protected void Page_Load(object sender, EventArgs e)
 {
     zcryBll = new ZcryBLL(this.WorkUser);
     if (!IsPostBack)
     {
         WebCommon.DropDownListDataBind(this.ssdq, true);
         //数据绑定
         SearData(0);
     }
 }
Beispiel #4
0
        protected void Page_Load(object sender, EventArgs e)
        {
            zcryBll = new ZcryBLL(this.WorkUser);
            ryid    = Request.QueryString["ryid"].ToString();
            if (!IsPostBack)
            {
                SearData(0);

                if (!string.IsNullOrEmpty(txtSfzhm.Text.Trim()))
                {
                    txtSfzhm.Text = txtSfzhm.Text.Substring(0, 10) + "******" + txtSfzhm.Text.Substring(txtSfzhm.Text.Length - 2, 2);
                }
            }
        }