Exemplo n.º 1
0
        private void otherItemManagerBtn_Click(object sender, EventArgs e)
        {
            try
            {
                if (statusBox.Text == "系统Offline")
                {
                    return;
                }

                if (statusBox.Text == "通过")
                {
                    return;
                }

                if (_isOperating == false)
                {
                    return;
                }

                if (_touCyaKu == null)
                {
                    msgBox.Text = "没有搬送数据";
                    return;
                }

                if (statusBox.Text != "正常")
                {
                    msgBox.Text = "非正常模式下不能进入该画面";
                    return;
                }

                OtherStockin1 form = new OtherStockin1(1, _touCyaKu.BUCKET_NO);
                if (form.ShowDialog(this) == DialogResult.OK)
                {
                    msgBox.Text  = "设定成功";
                    _isOperating = false;
                    ClearAll();
                }
            }
            catch (Exception ex)
            {
                msgBox.Text = ex.Message;
            }
        }
Exemplo n.º 2
0
        private void otherItemManagerBtn_Click(object sender, EventArgs e)
        {
            try
            {
                if (statusBox.Text == "系统Offline")
                {
                    return;
                }

                if (!DoBucketNo())
                {
                    bucketNoBox.Focus();
                    bucketNoBox.SelectAll();
                    return;
                }

                if (statusBox.Text != "正常")
                {
                    msgBox.Text = "非正常模式下不能进入该画面";
                    return;
                }

                if (string.IsNullOrEmpty(bucketNoBox.Text.Trim()))
                {
                    msgBox.Text = "请输入BucketNo";
                    bucketNoBox.Focus();
                    bucketNoBox.SelectAll();
                    return;
                }

                OtherStockin1 form = new OtherStockin1(2, bucketNoBox.Text);
                if (form.ShowDialog(this) == DialogResult.OK)
                {
                    msgBox.Text = "设定成功";
                    ClearAll();
                }
            }
            catch (Exception ex)
            {
                msgBox.Text = ex.Message;
            }
        }