コード例 #1
0
        private void txtId_KeyPress(object sender, KeyPressEventArgs e)
        {
            if (e.KeyChar == 13)
            {
                T_JB_Materiel mo = Utility.AnalyzeBarcodeMateriel(inOutType);

                if (mo != null)
                {
                    ModelToUI(mo);

                    if (txtInPlace.Text.Trim().Length > 0)
                    {//无货位自动分配
                        string place = pbll.GetAutoPlace(mo.C_area);
                    }
                }
                else
                {
                    MessageBox.Show("无法解析!", "提示", MessageBoxButtons.OK, MessageBoxIcon.Information);
                }
            }
        }