private void InShow(string orderNo) { OrderModel orderModel = PBLL.GetOrderDetail(orderNo); InLicensePlateNo.Text = orderModel.LicensePlateNo; label2.Text = orderModel.InDate.ToString(); label11.Text = "入口"; pictureBox2.Load(orderModel.picPath); LicensePlateNo = orderModel.LicensePlateNo; InOrderNo = orderModel.OrderNo; storePicPathIn = orderModel.picPath; }
/// <summary> /// 点击图片按钮事件 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void pictureBox_Click(object sender, EventArgs e) { PictureBox pic = sender as PictureBox;//定义鼠标当前点击picureBox的行为 if (pic == null) { return; } string tag = pic.Tag.ToString(); //MessageBox.Show(tag);//显示每一个图片位置编号,其他的功能根据自己需要扩展 //this.groupBox.Refresh(); OrderModel orderModel = PBLL.GetOrderDetail(tag); InLicensePlateNo.Text = orderModel.LicensePlateNo; label2.Text = orderModel.InDate.ToString(); label11.Text = "入口"; pictureBox2.Load(orderModel.picPath); LicensePlateNo = orderModel.LicensePlateNo; InOrderNo = orderModel.OrderNo; }