コード例 #1
0
 /// <summary>
 /// Overloaded constructor for creating a ZPLLabel Object for FBA Shipments.
 /// </summary>
 /// <param name="iwhse">The AMZWarehouse object that the shipment will be going to.</param>
 /// <param name="iboxes">A list of Box objects that are being shipped to Amazon.</param>
 public ZPLLabel(AmzWarehouseModel iwhse, CompanyAddressModel shipFromAddress, FBABox box)
 {
     command         = "";
     AmzWarehouse    = iwhse;
     ShipFromAddress = shipFromAddress;
     Box             = box;
 }
コード例 #2
0
ファイル: FBAShipment.cs プロジェクト: iamfonz/FBAContentApp
        /// <summary>
        /// Sorts the shipment boxes by their box number order.
        /// </summary>
        public void SortBoxes()
        {
            int size = Boxes.Count;

            for (int i = 1; i < size; i++)
            {
                for (int j = 0; j < (size - i); j++)
                {
                    if (Boxes[j].BoxNumber > Boxes[j + 1].BoxNumber)
                    {
                        FBABox temp = Boxes[j];
                        Boxes[j]     = Boxes[j + 1];
                        Boxes[j + 1] = temp;
                    }
                }
            }
        }
コード例 #3
0
 /// <summary>
 /// Default constructor for creating a ZPLLabel object.
 /// </summary>
 public ZPLLabel() : this(null, null, null)
 {
     AmzWarehouse    = new AmzWarehouseModel();
     ShipFromAddress = new CompanyAddressModel();
     Box             = new FBABox();
 }