예제 #1
0
        public void UpdateOrderDetail(BDeviceOrder order)
        {
            try
            {
                TotalCutQty     = 0;
                lbTotalQty.Text = "";

                if (order != null)
                {
                    BMachineLoader.Controls.Clear();
                    var po      = SequenceQuery.GetOriginalPo(order);
                    var BeamPos = BeamCutQuery.GetBeamCutPos(po.id);
                    if (BeamPos != null)
                    {
                        int i = 0;
                        foreach (var item in BeamPos)
                        {
                            OrderResult orderResult = new OrderResult(item);
                            TotalCutQty += orderResult.TotalCutQty;
                            BMachineLoader.Controls.Add(orderResult, 0, i);
                            i++;
                        }
                    }
                }

                lbTotalCut.Text = TotalCutQty.ToString();
                label1.Text     = order.PoNumber;
                lbTotalQty.Text = order.PoQty.ToString();
            }
            catch { }
        }