Пример #1
0
        private void btn_replenishplan_Click(object sender, EventArgs e)
        {
            Replan   plan     = new Replan();
            Response response = plan.AutoGenReplan();

            MessageBox.Show(response.MessageText, "提示", MessageBoxButtons.OK, MessageBoxIcon.Information);
        }
Пример #2
0
        private void btn_replenishplan_Click(object sender, EventArgs e)
        {
            Replan   plan     = new Replan();
            Response response = plan.AutoGenReplan();

            if (response.IsSuccess)
            {
                MessageBox.Show("补货计划生成成功!", "提示", MessageBoxButtons.OK, MessageBoxIcon.Information);
            }
            else
            {
                MessageBox.Show("补货计划生成失败,请联系系统管理员!", "提示", MessageBoxButtons.OK, MessageBoxIcon.Information);
            }
        }