Exemplo n.º 1
0
        private void btnKind_Click(object sender, EventArgs e)
        {
            //新建生产设备类别后刷新设备类别;
            VindicateEquipment frmVindicate = new VindicateEquipment();

            frmVindicate.Text = "新建生产设备类别";
            if (frmVindicate.ShowDialog(this) == DialogResult.OK)
            {
                SetKind();
            }
        }
Exemplo n.º 2
0
        private void btnModel_Click(object sender, EventArgs e)
        {
            //新建生产设备规格后刷新设备规格;
            VindicateEquipment frmVindicate = new VindicateEquipment();

            frmVindicate.Text = "新建生产设备规格";
            if (frmVindicate.ShowDialog(this) == DialogResult.OK)
            {
                SetModel();
            }
        }
Exemplo n.º 3
0
        private void btnName_Click(object sender, EventArgs e)
        {
            //新建生产设备名称后刷新设备名称;


            if (!Check.CheckEmpty(cbxKind.Text.Trim()))
            {
                MessageBox.Show("设备类别不能为空,请选择设备类别后在输入设备名称!", "提示", MessageBoxButtons.OK, MessageBoxIcon.Information);
                cbxKind.Focus();
                return;
            }
            else
            {
                VindicateEquipment frmVindicate = new VindicateEquipment();
                frmVindicate.Text = "新建生产设备名称";

                frmVindicate.EkId = Convert.ToInt64(cbxKind.SelectedValue.ToString());

                if (frmVindicate.ShowDialog(this) == DialogResult.OK)
                {
                    cobBoBoxLinkage();
                }
            }
        }