private void FrmBatchMachineBarrel_Select_KeyUp(object sender, KeyEventArgs e)
 {
     if (e.KeyCode == Keys.Escape)
     {
         this.Output       = null;
         this.DialogResult = DialogResult.Cancel;
         this.Close();
     }
 }
        void Return()
        {
            GridRow gridRow = superGridControl1.PrimaryGrid.ActiveRow as GridRow;

            if (gridRow == null)
            {
                return;
            }

            this.Output       = (gridRow.DataItem as BatchMachineBarrel_Select);
            this.DialogResult = DialogResult.OK;
            this.Close();
        }
        void Search(string input)
        {
            List <BatchMachineBarrel_Select> list = new List <BatchMachineBarrel_Select>();
            string    sql = string.Format(@"select a.sampleid from inftbInfBatchMachineBarrel a where a.barrelstatus=1 and a.datastatus=1 group by a.sampleid");
            DataTable dt  = commonDAO.SelfDber.ExecuteDataTable(sql);

            if (dt.Rows.Count > 0)
            {
                for (int i = 0; i < dt.Rows.Count; i++)
                {
                    BatchMachineBarrel_Select entity = new BatchMachineBarrel_Select();
                    entity.SampleID = dt.Rows[i]["sampleid"].ToString();
                    list.Add(entity);
                }
            }
            superGridControl1.PrimaryGrid.DataSource = list;
        }