Example #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);
        }
Example #2
0
        /// <summary>
        /// Initializes a new instance of the <see cref="ManualPath"/> class.
        /// </summary>
        /// <param name="replanCallback">The replan callback.</param>
        /// <param name="path">The path.</param>
        public ManualPath(Replan replanCallback, Path path)
        {
            Ensure.ArgumentNotNull(path, "path");

            this.onReplan = replanCallback;
            this.path = path;
        }
Example #3
0
        /// <summary>
        /// Initializes a new instance of the <see cref="ManualPath"/> class.
        /// </summary>
        /// <param name="replanCallback">The replan callback.</param>
        /// <param name="path">The path.</param>
        public ManualPath(Replan replanCallback, Path path)
        {
            Ensure.ArgumentNotNull(path, "path");

            this.onReplan = replanCallback;
            this.path     = path;
        }
Example #4
0
        public w_PlanReport()
        {
            InitializeComponent();
            List <PlanInfo> list = new List <PlanInfo>();

            list = Replan.GetPlan();
            orderdata.DataSource = list;
        }
Example #5
0
        /// <summary>
        /// Initializes a new instance of the <see cref="ManualPath"/> class.
        /// </summary>
        /// <param name="replanCallback">The replan callback.</param>
        /// <param name="path">The path.</param>
        public ManualPath(Replan replanCallback, IIndexable<Vector3> path)
        {
            Ensure.ArgumentNotNull(path, "path");

            this.onReplan = replanCallback;

            var stack = new Path(path.count);
            for (int i = path.count - 1; i >= 0; i--)
            {
                stack.Push(path[i].AsPositioned());
            }

            this.path = stack;
        }
Example #6
0
        /// <summary>
        /// Initializes a new instance of the <see cref="ManualPath"/> class.
        /// </summary>
        /// <param name="replanCallback">The replan callback.</param>
        /// <param name="path">The path.</param>
        public ManualPath(Replan replanCallback, params Vector3[] path)
        {
            Ensure.ArgumentNotNull(path, "path");

            this.onReplan = replanCallback;

            var stack = new Path(path.Length);
            for (int i = path.Length - 1; i >= 0; i--)
            {
                stack.Push(path[i].AsPositioned());
            }

            this.path = stack;
        }
Example #7
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);
            }
        }
Example #8
0
        /// <summary>
        /// Initializes a new instance of the <see cref="ManualPath"/> class.
        /// </summary>
        /// <param name="replanCallback">The replan callback.</param>
        /// <param name="path">The path.</param>
        public ManualPath(Replan replanCallback, IIndexable <Vector3> path)
        {
            Ensure.ArgumentNotNull(path, "path");

            this.onReplan = replanCallback;

            var stack = new Path(path.count);

            for (int i = path.count - 1; i >= 0; i--)
            {
                stack.Push(path[i].AsPositioned());
            }

            this.path = stack;
        }
Example #9
0
        /// <summary>
        /// Initializes a new instance of the <see cref="ManualPath"/> class.
        /// </summary>
        /// <param name="replanCallback">The replan callback.</param>
        /// <param name="path">The path.</param>
        public ManualPath(Replan replanCallback, params Vector3[] path)
        {
            Ensure.ArgumentNotNull(path, "path");

            this.onReplan = replanCallback;

            var stack = new Path(path.Length);

            for (int i = path.Length - 1; i >= 0; i--)
            {
                stack.Push(path[i].AsPositioned());
            }

            this.path = stack;
        }