using LYFZ.Software.MainBusiness.DoorCityProcess; using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; namespace LYFZ.Software.MainBusiness.InventoryManagement { public partial class FrmViewPhoto : LYFZ.Software.UI.InventoryManagement.FrmViewPhoto { public int ID; public FrmViewPhoto() { } #region 加载 protected override void FrmViewPhoto_Shown(object sender, EventArgs e) { if (ID > 0) { LYFZ.BLL.BaseBLL.BaseBLL_ErpFixedAssetManagement bll = new BLL.BaseBLL.BaseBLL_ErpFixedAssetManagement(); DataTable dt = bll.GetList("ID=" + ID + "").Tables[0]; if (!string.IsNullOrEmpty(dt.Rows[0]["Fam_PhotoAlbum"].ToString())) { this.pictureBoxEx1.Image = PublicCodeClasses.GetImage(PublicCodeClasses.StringToByte(dt.Rows[0]["Fam_PhotoAlbum"].ToString())); } else { this.pictureBoxEx1.Image = null; } } } #endregion } }