示例#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
 /// <summary>
 /// Default constructor. Initializes all components to allow for creation of ZPL box labels.
 /// </summary>
 public LabelFactory()
 {
     BoxLabels       = new List <ZPLLabel>();
     ShipmentBoxes   = new List <FBABox>();
     AmzWarehouse    = new AmzWarehouseModel();
     ShipFromAddress = new CompanyAddressModel();
 }
示例#3
0
 public FBAShipment()
 {
     shipmentId      = "";
     boxes           = new List <FBABox>();
     companyShipFrom = new CompanyAddressModel();
     amzWarehouse    = new AmzWarehouseModel();
     shipmentDate    = DateTime.Now;
 }
示例#4
0
 /// <summary>
 /// Overloaded constructor that automatically creates the labels with the passed in parameters.
 /// </summary>
 /// <param name="boxes">List of boxes to print.</param>
 /// <param name="shipTo">The Amazon Warehouse to ship to</param>
 /// <param name="shipFrom">The Company Address to ship from</param>
 public LabelFactory(List <FBABox> boxes, AmzWarehouseModel shipTo, CompanyAddressModel shipFrom, int boxCount)
 {
     ShipmentBoxes   = boxes;
     BoxLabels       = new List <ZPLLabel>();
     AmzWarehouse    = shipTo;
     ShipFromAddress = shipFrom;
     BoxCount        = boxCount;
     CreateLabels();
 }
示例#5
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();
 }