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); }
/// <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; }
public w_PlanReport() { InitializeComponent(); List <PlanInfo> list = new List <PlanInfo>(); list = Replan.GetPlan(); orderdata.DataSource = list; }
/// <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; }
/// <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; }
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); } }
/// <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; }