Beispiel #1
0
        private void btnOK_Click(object sender, EventArgs e)
        {
            try
            {
                ent.ITEM_QTY = int.Parse(txtItemQty.Text);
            }
            catch (Exception ex)
            {
                MessageBox.Show("请输入有效字符");
                return;
            }
            if (string.IsNullOrWhiteSpace(txtItemCode.Text))
            {
                MessageBox.Show("物料编码不能为空");
                return;
            }
            ent.ITEM_CODE = txtItemCode.Text;
            ent.ITEM_NAME = txtItemName.Text;
            LineSideStockFactory.Storage(ent);

            txtItemName.Text = "";
            txtItemCode.Text = "";
            txtItemQty.Text  = "";
        }