Exemplo n.º 1
0
 private void Readed_BarCode(object sender, ReadEventArgs e)
 {
     if (((FrmPOPMDI)this.MdiParent).ActiveMdiChild == this)
     {
         string msg = e.ReadMsg.Replace("%O", "_").Trim();
         ((FrmPOPMDI)this.MdiParent).ClearStrings();
         dt.AcceptChanges();
         var dt2 = (from dr in dt.AsEnumerable() select dr).Where
                       (p => p.Field <string>("WO_Code") == msg).ToList();
         var dt3 = dt2.Any() ? dt2.CopyToDataTable() : new DataTable();
         dgv1.DataSource = dt3;
     }
 }
Exemplo n.º 2
0
 private void Readed_BarCode(object sender, ReadEventArgs e)
 {
     if (((FrmPOPMDI)this.MdiParent).ActiveMdiChild == this)
     {
         string msg = e.ReadMsg.Replace("%O", "_").Trim();
         if (MessageBox.Show($"{msg} 입력하신 작업지시 번호가 맞습니까??", "작업확인", MessageBoxButtons.YesNo) == DialogResult.Yes)
         {
             ((FrmPOPMDI)this.MdiParent).ClearStrings();
             foreach (var Control in panel1.Controls)
             {
                 UserControl1 user = Control as UserControl1;
                 user.comboBox1.Text = msg;
             }
         }
     }
 }