Subversion Repositories SmartDukaan

Rev

Rev 6467 | Rev 7672 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 6467 Rev 7410
Line 29... Line 29...
29
  private static final org.apache.thrift.protocol.TField SERIAL_NUMBER_FIELD_DESC = new org.apache.thrift.protocol.TField("serialNumber", org.apache.thrift.protocol.TType.STRING, (short)4);
29
  private static final org.apache.thrift.protocol.TField SERIAL_NUMBER_FIELD_DESC = new org.apache.thrift.protocol.TField("serialNumber", org.apache.thrift.protocol.TType.STRING, (short)4);
30
  private static final org.apache.thrift.protocol.TField INITIAL_QUANTITY_FIELD_DESC = new org.apache.thrift.protocol.TField("initialQuantity", org.apache.thrift.protocol.TType.I64, (short)5);
30
  private static final org.apache.thrift.protocol.TField INITIAL_QUANTITY_FIELD_DESC = new org.apache.thrift.protocol.TField("initialQuantity", org.apache.thrift.protocol.TType.I64, (short)5);
31
  private static final org.apache.thrift.protocol.TField CURRENT_QUANTITY_FIELD_DESC = new org.apache.thrift.protocol.TField("currentQuantity", org.apache.thrift.protocol.TType.I64, (short)6);
31
  private static final org.apache.thrift.protocol.TField CURRENT_QUANTITY_FIELD_DESC = new org.apache.thrift.protocol.TField("currentQuantity", org.apache.thrift.protocol.TType.I64, (short)6);
32
  private static final org.apache.thrift.protocol.TField PURCHASE_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("purchaseId", org.apache.thrift.protocol.TType.I64, (short)7);
32
  private static final org.apache.thrift.protocol.TField PURCHASE_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("purchaseId", org.apache.thrift.protocol.TType.I64, (short)7);
33
  private static final org.apache.thrift.protocol.TField PURCHASE_RETURN_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("purchaseReturnId", org.apache.thrift.protocol.TType.I64, (short)8);
33
  private static final org.apache.thrift.protocol.TField PURCHASE_RETURN_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("purchaseReturnId", org.apache.thrift.protocol.TType.I64, (short)8);
-
 
34
  private static final org.apache.thrift.protocol.TField PHYSICAL_WAREHOUSE_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("physicalWarehouseId", org.apache.thrift.protocol.TType.I64, (short)9);
-
 
35
  private static final org.apache.thrift.protocol.TField TRANSFER_STATUS_FIELD_DESC = new org.apache.thrift.protocol.TField("transferStatus", org.apache.thrift.protocol.TType.I32, (short)10);
34
  private static final org.apache.thrift.protocol.TField SUPPLIER_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("supplierId", org.apache.thrift.protocol.TType.I64, (short)9);
36
  private static final org.apache.thrift.protocol.TField SUPPLIER_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("supplierId", org.apache.thrift.protocol.TType.I64, (short)11);
35
  private static final org.apache.thrift.protocol.TField UNIT_PRICE_FIELD_DESC = new org.apache.thrift.protocol.TField("unitPrice", org.apache.thrift.protocol.TType.DOUBLE, (short)10);
37
  private static final org.apache.thrift.protocol.TField UNIT_PRICE_FIELD_DESC = new org.apache.thrift.protocol.TField("unitPrice", org.apache.thrift.protocol.TType.DOUBLE, (short)12);
36
  private static final org.apache.thrift.protocol.TField CURRENT_WAREHOUSE_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("currentWarehouseId", org.apache.thrift.protocol.TType.I64, (short)11);
38
  private static final org.apache.thrift.protocol.TField CURRENT_WAREHOUSE_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("currentWarehouseId", org.apache.thrift.protocol.TType.I64, (short)13);
37
  private static final org.apache.thrift.protocol.TField LAST_SCAN_TYPE_FIELD_DESC = new org.apache.thrift.protocol.TField("lastScanType", org.apache.thrift.protocol.TType.I32, (short)12);
39
  private static final org.apache.thrift.protocol.TField LAST_SCAN_TYPE_FIELD_DESC = new org.apache.thrift.protocol.TField("lastScanType", org.apache.thrift.protocol.TType.I32, (short)14);
38
 
40
 
39
  private long id; // required
41
  private long id; // required
40
  private long itemId; // required
42
  private long itemId; // required
41
  private String itemNumber; // required
43
  private String itemNumber; // required
42
  private String serialNumber; // required
44
  private String serialNumber; // required
43
  private long initialQuantity; // required
45
  private long initialQuantity; // required
44
  private long currentQuantity; // required
46
  private long currentQuantity; // required
45
  private long purchaseId; // required
47
  private long purchaseId; // required
46
  private long purchaseReturnId; // required
48
  private long purchaseReturnId; // required
-
 
49
  private long physicalWarehouseId; // required
-
 
50
  private TransferLotStatus transferStatus; // required
47
  private long supplierId; // required
51
  private long supplierId; // required
48
  private double unitPrice; // required
52
  private double unitPrice; // required
49
  private long currentWarehouseId; // required
53
  private long currentWarehouseId; // required
50
  private ScanType lastScanType; // required
54
  private ScanType lastScanType; // required
51
 
55
 
Line 57... Line 61...
57
    SERIAL_NUMBER((short)4, "serialNumber"),
61
    SERIAL_NUMBER((short)4, "serialNumber"),
58
    INITIAL_QUANTITY((short)5, "initialQuantity"),
62
    INITIAL_QUANTITY((short)5, "initialQuantity"),
59
    CURRENT_QUANTITY((short)6, "currentQuantity"),
63
    CURRENT_QUANTITY((short)6, "currentQuantity"),
60
    PURCHASE_ID((short)7, "purchaseId"),
64
    PURCHASE_ID((short)7, "purchaseId"),
61
    PURCHASE_RETURN_ID((short)8, "purchaseReturnId"),
65
    PURCHASE_RETURN_ID((short)8, "purchaseReturnId"),
-
 
66
    PHYSICAL_WAREHOUSE_ID((short)9, "physicalWarehouseId"),
-
 
67
    /**
-
 
68
     * 
-
 
69
     * @see TransferLotStatus
-
 
70
     */
-
 
71
    TRANSFER_STATUS((short)10, "transferStatus"),
62
    SUPPLIER_ID((short)9, "supplierId"),
72
    SUPPLIER_ID((short)11, "supplierId"),
63
    UNIT_PRICE((short)10, "unitPrice"),
73
    UNIT_PRICE((short)12, "unitPrice"),
64
    CURRENT_WAREHOUSE_ID((short)11, "currentWarehouseId"),
74
    CURRENT_WAREHOUSE_ID((short)13, "currentWarehouseId"),
65
    /**
75
    /**
66
     * 
76
     * 
67
     * @see ScanType
77
     * @see ScanType
68
     */
78
     */
69
    LAST_SCAN_TYPE((short)12, "lastScanType");
79
    LAST_SCAN_TYPE((short)14, "lastScanType");
70
 
80
 
71
    private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
81
    private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
72
 
82
 
73
    static {
83
    static {
74
      for (_Fields field : EnumSet.allOf(_Fields.class)) {
84
      for (_Fields field : EnumSet.allOf(_Fields.class)) {
Line 95... Line 105...
95
          return CURRENT_QUANTITY;
105
          return CURRENT_QUANTITY;
96
        case 7: // PURCHASE_ID
106
        case 7: // PURCHASE_ID
97
          return PURCHASE_ID;
107
          return PURCHASE_ID;
98
        case 8: // PURCHASE_RETURN_ID
108
        case 8: // PURCHASE_RETURN_ID
99
          return PURCHASE_RETURN_ID;
109
          return PURCHASE_RETURN_ID;
-
 
110
        case 9: // PHYSICAL_WAREHOUSE_ID
-
 
111
          return PHYSICAL_WAREHOUSE_ID;
-
 
112
        case 10: // TRANSFER_STATUS
-
 
113
          return TRANSFER_STATUS;
100
        case 9: // SUPPLIER_ID
114
        case 11: // SUPPLIER_ID
101
          return SUPPLIER_ID;
115
          return SUPPLIER_ID;
102
        case 10: // UNIT_PRICE
116
        case 12: // UNIT_PRICE
103
          return UNIT_PRICE;
117
          return UNIT_PRICE;
104
        case 11: // CURRENT_WAREHOUSE_ID
118
        case 13: // CURRENT_WAREHOUSE_ID
105
          return CURRENT_WAREHOUSE_ID;
119
          return CURRENT_WAREHOUSE_ID;
106
        case 12: // LAST_SCAN_TYPE
120
        case 14: // LAST_SCAN_TYPE
107
          return LAST_SCAN_TYPE;
121
          return LAST_SCAN_TYPE;
108
        default:
122
        default:
109
          return null;
123
          return null;
110
      }
124
      }
111
    }
125
    }
Line 149... Line 163...
149
  private static final int __ITEMID_ISSET_ID = 1;
163
  private static final int __ITEMID_ISSET_ID = 1;
150
  private static final int __INITIALQUANTITY_ISSET_ID = 2;
164
  private static final int __INITIALQUANTITY_ISSET_ID = 2;
151
  private static final int __CURRENTQUANTITY_ISSET_ID = 3;
165
  private static final int __CURRENTQUANTITY_ISSET_ID = 3;
152
  private static final int __PURCHASEID_ISSET_ID = 4;
166
  private static final int __PURCHASEID_ISSET_ID = 4;
153
  private static final int __PURCHASERETURNID_ISSET_ID = 5;
167
  private static final int __PURCHASERETURNID_ISSET_ID = 5;
-
 
168
  private static final int __PHYSICALWAREHOUSEID_ISSET_ID = 6;
154
  private static final int __SUPPLIERID_ISSET_ID = 6;
169
  private static final int __SUPPLIERID_ISSET_ID = 7;
155
  private static final int __UNITPRICE_ISSET_ID = 7;
170
  private static final int __UNITPRICE_ISSET_ID = 8;
156
  private static final int __CURRENTWAREHOUSEID_ISSET_ID = 8;
171
  private static final int __CURRENTWAREHOUSEID_ISSET_ID = 9;
157
  private BitSet __isset_bit_vector = new BitSet(9);
172
  private BitSet __isset_bit_vector = new BitSet(10);
158
 
173
 
159
  public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
174
  public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
160
  static {
175
  static {
161
    Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
176
    Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
162
    tmpMap.put(_Fields.ID, new org.apache.thrift.meta_data.FieldMetaData("id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
177
    tmpMap.put(_Fields.ID, new org.apache.thrift.meta_data.FieldMetaData("id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
Line 173... Line 188...
173
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
188
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
174
    tmpMap.put(_Fields.PURCHASE_ID, new org.apache.thrift.meta_data.FieldMetaData("purchaseId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
189
    tmpMap.put(_Fields.PURCHASE_ID, new org.apache.thrift.meta_data.FieldMetaData("purchaseId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
175
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
190
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
176
    tmpMap.put(_Fields.PURCHASE_RETURN_ID, new org.apache.thrift.meta_data.FieldMetaData("purchaseReturnId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
191
    tmpMap.put(_Fields.PURCHASE_RETURN_ID, new org.apache.thrift.meta_data.FieldMetaData("purchaseReturnId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
177
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
192
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
193
    tmpMap.put(_Fields.PHYSICAL_WAREHOUSE_ID, new org.apache.thrift.meta_data.FieldMetaData("physicalWarehouseId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
194
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
195
    tmpMap.put(_Fields.TRANSFER_STATUS, new org.apache.thrift.meta_data.FieldMetaData("transferStatus", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
196
        new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, TransferLotStatus.class)));
178
    tmpMap.put(_Fields.SUPPLIER_ID, new org.apache.thrift.meta_data.FieldMetaData("supplierId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
197
    tmpMap.put(_Fields.SUPPLIER_ID, new org.apache.thrift.meta_data.FieldMetaData("supplierId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
179
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
198
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
180
    tmpMap.put(_Fields.UNIT_PRICE, new org.apache.thrift.meta_data.FieldMetaData("unitPrice", org.apache.thrift.TFieldRequirementType.DEFAULT, 
199
    tmpMap.put(_Fields.UNIT_PRICE, new org.apache.thrift.meta_data.FieldMetaData("unitPrice", org.apache.thrift.TFieldRequirementType.DEFAULT, 
181
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
200
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
182
    tmpMap.put(_Fields.CURRENT_WAREHOUSE_ID, new org.apache.thrift.meta_data.FieldMetaData("currentWarehouseId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
201
    tmpMap.put(_Fields.CURRENT_WAREHOUSE_ID, new org.apache.thrift.meta_data.FieldMetaData("currentWarehouseId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
Line 197... Line 216...
197
    String serialNumber,
216
    String serialNumber,
198
    long initialQuantity,
217
    long initialQuantity,
199
    long currentQuantity,
218
    long currentQuantity,
200
    long purchaseId,
219
    long purchaseId,
201
    long purchaseReturnId,
220
    long purchaseReturnId,
-
 
221
    long physicalWarehouseId,
-
 
222
    TransferLotStatus transferStatus,
202
    long supplierId,
223
    long supplierId,
203
    double unitPrice,
224
    double unitPrice,
204
    long currentWarehouseId,
225
    long currentWarehouseId,
205
    ScanType lastScanType)
226
    ScanType lastScanType)
206
  {
227
  {
Line 217... Line 238...
217
    setCurrentQuantityIsSet(true);
238
    setCurrentQuantityIsSet(true);
218
    this.purchaseId = purchaseId;
239
    this.purchaseId = purchaseId;
219
    setPurchaseIdIsSet(true);
240
    setPurchaseIdIsSet(true);
220
    this.purchaseReturnId = purchaseReturnId;
241
    this.purchaseReturnId = purchaseReturnId;
221
    setPurchaseReturnIdIsSet(true);
242
    setPurchaseReturnIdIsSet(true);
-
 
243
    this.physicalWarehouseId = physicalWarehouseId;
-
 
244
    setPhysicalWarehouseIdIsSet(true);
-
 
245
    this.transferStatus = transferStatus;
222
    this.supplierId = supplierId;
246
    this.supplierId = supplierId;
223
    setSupplierIdIsSet(true);
247
    setSupplierIdIsSet(true);
224
    this.unitPrice = unitPrice;
248
    this.unitPrice = unitPrice;
225
    setUnitPriceIsSet(true);
249
    setUnitPriceIsSet(true);
226
    this.currentWarehouseId = currentWarehouseId;
250
    this.currentWarehouseId = currentWarehouseId;
Line 244... Line 268...
244
    }
268
    }
245
    this.initialQuantity = other.initialQuantity;
269
    this.initialQuantity = other.initialQuantity;
246
    this.currentQuantity = other.currentQuantity;
270
    this.currentQuantity = other.currentQuantity;
247
    this.purchaseId = other.purchaseId;
271
    this.purchaseId = other.purchaseId;
248
    this.purchaseReturnId = other.purchaseReturnId;
272
    this.purchaseReturnId = other.purchaseReturnId;
-
 
273
    this.physicalWarehouseId = other.physicalWarehouseId;
-
 
274
    if (other.isSetTransferStatus()) {
-
 
275
      this.transferStatus = other.transferStatus;
-
 
276
    }
249
    this.supplierId = other.supplierId;
277
    this.supplierId = other.supplierId;
250
    this.unitPrice = other.unitPrice;
278
    this.unitPrice = other.unitPrice;
251
    this.currentWarehouseId = other.currentWarehouseId;
279
    this.currentWarehouseId = other.currentWarehouseId;
252
    if (other.isSetLastScanType()) {
280
    if (other.isSetLastScanType()) {
253
      this.lastScanType = other.lastScanType;
281
      this.lastScanType = other.lastScanType;
Line 272... Line 300...
272
    this.currentQuantity = 0;
300
    this.currentQuantity = 0;
273
    setPurchaseIdIsSet(false);
301
    setPurchaseIdIsSet(false);
274
    this.purchaseId = 0;
302
    this.purchaseId = 0;
275
    setPurchaseReturnIdIsSet(false);
303
    setPurchaseReturnIdIsSet(false);
276
    this.purchaseReturnId = 0;
304
    this.purchaseReturnId = 0;
-
 
305
    setPhysicalWarehouseIdIsSet(false);
-
 
306
    this.physicalWarehouseId = 0;
-
 
307
    this.transferStatus = null;
277
    setSupplierIdIsSet(false);
308
    setSupplierIdIsSet(false);
278
    this.supplierId = 0;
309
    this.supplierId = 0;
279
    setUnitPriceIsSet(false);
310
    setUnitPriceIsSet(false);
280
    this.unitPrice = 0.0;
311
    this.unitPrice = 0.0;
281
    setCurrentWarehouseIdIsSet(false);
312
    setCurrentWarehouseIdIsSet(false);
Line 459... Line 490...
459
 
490
 
460
  public void setPurchaseReturnIdIsSet(boolean value) {
491
  public void setPurchaseReturnIdIsSet(boolean value) {
461
    __isset_bit_vector.set(__PURCHASERETURNID_ISSET_ID, value);
492
    __isset_bit_vector.set(__PURCHASERETURNID_ISSET_ID, value);
462
  }
493
  }
463
 
494
 
-
 
495
  public long getPhysicalWarehouseId() {
-
 
496
    return this.physicalWarehouseId;
-
 
497
  }
-
 
498
 
-
 
499
  public void setPhysicalWarehouseId(long physicalWarehouseId) {
-
 
500
    this.physicalWarehouseId = physicalWarehouseId;
-
 
501
    setPhysicalWarehouseIdIsSet(true);
-
 
502
  }
-
 
503
 
-
 
504
  public void unsetPhysicalWarehouseId() {
-
 
505
    __isset_bit_vector.clear(__PHYSICALWAREHOUSEID_ISSET_ID);
-
 
506
  }
-
 
507
 
-
 
508
  /** Returns true if field physicalWarehouseId is set (has been assigned a value) and false otherwise */
-
 
509
  public boolean isSetPhysicalWarehouseId() {
-
 
510
    return __isset_bit_vector.get(__PHYSICALWAREHOUSEID_ISSET_ID);
-
 
511
  }
-
 
512
 
-
 
513
  public void setPhysicalWarehouseIdIsSet(boolean value) {
-
 
514
    __isset_bit_vector.set(__PHYSICALWAREHOUSEID_ISSET_ID, value);
-
 
515
  }
-
 
516
 
-
 
517
  /**
-
 
518
   * 
-
 
519
   * @see TransferLotStatus
-
 
520
   */
-
 
521
  public TransferLotStatus getTransferStatus() {
-
 
522
    return this.transferStatus;
-
 
523
  }
-
 
524
 
-
 
525
  /**
-
 
526
   * 
-
 
527
   * @see TransferLotStatus
-
 
528
   */
-
 
529
  public void setTransferStatus(TransferLotStatus transferStatus) {
-
 
530
    this.transferStatus = transferStatus;
-
 
531
  }
-
 
532
 
-
 
533
  public void unsetTransferStatus() {
-
 
534
    this.transferStatus = null;
-
 
535
  }
-
 
536
 
-
 
537
  /** Returns true if field transferStatus is set (has been assigned a value) and false otherwise */
-
 
538
  public boolean isSetTransferStatus() {
-
 
539
    return this.transferStatus != null;
-
 
540
  }
-
 
541
 
-
 
542
  public void setTransferStatusIsSet(boolean value) {
-
 
543
    if (!value) {
-
 
544
      this.transferStatus = null;
-
 
545
    }
-
 
546
  }
-
 
547
 
464
  public long getSupplierId() {
548
  public long getSupplierId() {
465
    return this.supplierId;
549
    return this.supplierId;
466
  }
550
  }
467
 
551
 
468
  public void setSupplierId(long supplierId) {
552
  public void setSupplierId(long supplierId) {
Line 622... Line 706...
622
      } else {
706
      } else {
623
        setPurchaseReturnId((Long)value);
707
        setPurchaseReturnId((Long)value);
624
      }
708
      }
625
      break;
709
      break;
626
 
710
 
-
 
711
    case PHYSICAL_WAREHOUSE_ID:
-
 
712
      if (value == null) {
-
 
713
        unsetPhysicalWarehouseId();
-
 
714
      } else {
-
 
715
        setPhysicalWarehouseId((Long)value);
-
 
716
      }
-
 
717
      break;
-
 
718
 
-
 
719
    case TRANSFER_STATUS:
-
 
720
      if (value == null) {
-
 
721
        unsetTransferStatus();
-
 
722
      } else {
-
 
723
        setTransferStatus((TransferLotStatus)value);
-
 
724
      }
-
 
725
      break;
-
 
726
 
627
    case SUPPLIER_ID:
727
    case SUPPLIER_ID:
628
      if (value == null) {
728
      if (value == null) {
629
        unsetSupplierId();
729
        unsetSupplierId();
630
      } else {
730
      } else {
631
        setSupplierId((Long)value);
731
        setSupplierId((Long)value);
Line 683... Line 783...
683
      return Long.valueOf(getPurchaseId());
783
      return Long.valueOf(getPurchaseId());
684
 
784
 
685
    case PURCHASE_RETURN_ID:
785
    case PURCHASE_RETURN_ID:
686
      return Long.valueOf(getPurchaseReturnId());
786
      return Long.valueOf(getPurchaseReturnId());
687
 
787
 
-
 
788
    case PHYSICAL_WAREHOUSE_ID:
-
 
789
      return Long.valueOf(getPhysicalWarehouseId());
-
 
790
 
-
 
791
    case TRANSFER_STATUS:
-
 
792
      return getTransferStatus();
-
 
793
 
688
    case SUPPLIER_ID:
794
    case SUPPLIER_ID:
689
      return Long.valueOf(getSupplierId());
795
      return Long.valueOf(getSupplierId());
690
 
796
 
691
    case UNIT_PRICE:
797
    case UNIT_PRICE:
692
      return Double.valueOf(getUnitPrice());
798
      return Double.valueOf(getUnitPrice());
Line 722... Line 828...
722
      return isSetCurrentQuantity();
828
      return isSetCurrentQuantity();
723
    case PURCHASE_ID:
829
    case PURCHASE_ID:
724
      return isSetPurchaseId();
830
      return isSetPurchaseId();
725
    case PURCHASE_RETURN_ID:
831
    case PURCHASE_RETURN_ID:
726
      return isSetPurchaseReturnId();
832
      return isSetPurchaseReturnId();
-
 
833
    case PHYSICAL_WAREHOUSE_ID:
-
 
834
      return isSetPhysicalWarehouseId();
-
 
835
    case TRANSFER_STATUS:
-
 
836
      return isSetTransferStatus();
727
    case SUPPLIER_ID:
837
    case SUPPLIER_ID:
728
      return isSetSupplierId();
838
      return isSetSupplierId();
729
    case UNIT_PRICE:
839
    case UNIT_PRICE:
730
      return isSetUnitPrice();
840
      return isSetUnitPrice();
731
    case CURRENT_WAREHOUSE_ID:
841
    case CURRENT_WAREHOUSE_ID:
Line 819... Line 929...
819
        return false;
929
        return false;
820
      if (this.purchaseReturnId != that.purchaseReturnId)
930
      if (this.purchaseReturnId != that.purchaseReturnId)
821
        return false;
931
        return false;
822
    }
932
    }
823
 
933
 
-
 
934
    boolean this_present_physicalWarehouseId = true;
-
 
935
    boolean that_present_physicalWarehouseId = true;
-
 
936
    if (this_present_physicalWarehouseId || that_present_physicalWarehouseId) {
-
 
937
      if (!(this_present_physicalWarehouseId && that_present_physicalWarehouseId))
-
 
938
        return false;
-
 
939
      if (this.physicalWarehouseId != that.physicalWarehouseId)
-
 
940
        return false;
-
 
941
    }
-
 
942
 
-
 
943
    boolean this_present_transferStatus = true && this.isSetTransferStatus();
-
 
944
    boolean that_present_transferStatus = true && that.isSetTransferStatus();
-
 
945
    if (this_present_transferStatus || that_present_transferStatus) {
-
 
946
      if (!(this_present_transferStatus && that_present_transferStatus))
-
 
947
        return false;
-
 
948
      if (!this.transferStatus.equals(that.transferStatus))
-
 
949
        return false;
-
 
950
    }
-
 
951
 
824
    boolean this_present_supplierId = true;
952
    boolean this_present_supplierId = true;
825
    boolean that_present_supplierId = true;
953
    boolean that_present_supplierId = true;
826
    if (this_present_supplierId || that_present_supplierId) {
954
    if (this_present_supplierId || that_present_supplierId) {
827
      if (!(this_present_supplierId && that_present_supplierId))
955
      if (!(this_present_supplierId && that_present_supplierId))
828
        return false;
956
        return false;
Line 951... Line 1079...
951
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.purchaseReturnId, typedOther.purchaseReturnId);
1079
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.purchaseReturnId, typedOther.purchaseReturnId);
952
      if (lastComparison != 0) {
1080
      if (lastComparison != 0) {
953
        return lastComparison;
1081
        return lastComparison;
954
      }
1082
      }
955
    }
1083
    }
-
 
1084
    lastComparison = Boolean.valueOf(isSetPhysicalWarehouseId()).compareTo(typedOther.isSetPhysicalWarehouseId());
-
 
1085
    if (lastComparison != 0) {
-
 
1086
      return lastComparison;
-
 
1087
    }
-
 
1088
    if (isSetPhysicalWarehouseId()) {
-
 
1089
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.physicalWarehouseId, typedOther.physicalWarehouseId);
-
 
1090
      if (lastComparison != 0) {
-
 
1091
        return lastComparison;
-
 
1092
      }
-
 
1093
    }
-
 
1094
    lastComparison = Boolean.valueOf(isSetTransferStatus()).compareTo(typedOther.isSetTransferStatus());
-
 
1095
    if (lastComparison != 0) {
-
 
1096
      return lastComparison;
-
 
1097
    }
-
 
1098
    if (isSetTransferStatus()) {
-
 
1099
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.transferStatus, typedOther.transferStatus);
-
 
1100
      if (lastComparison != 0) {
-
 
1101
        return lastComparison;
-
 
1102
      }
-
 
1103
    }
956
    lastComparison = Boolean.valueOf(isSetSupplierId()).compareTo(typedOther.isSetSupplierId());
1104
    lastComparison = Boolean.valueOf(isSetSupplierId()).compareTo(typedOther.isSetSupplierId());
957
    if (lastComparison != 0) {
1105
    if (lastComparison != 0) {
958
      return lastComparison;
1106
      return lastComparison;
959
    }
1107
    }
960
    if (isSetSupplierId()) {
1108
    if (isSetSupplierId()) {
Line 1070... Line 1218...
1070
            setPurchaseReturnIdIsSet(true);
1218
            setPurchaseReturnIdIsSet(true);
1071
          } else { 
1219
          } else { 
1072
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1220
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1073
          }
1221
          }
1074
          break;
1222
          break;
-
 
1223
        case 9: // PHYSICAL_WAREHOUSE_ID
-
 
1224
          if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
1225
            this.physicalWarehouseId = iprot.readI64();
-
 
1226
            setPhysicalWarehouseIdIsSet(true);
-
 
1227
          } else { 
-
 
1228
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
1229
          }
-
 
1230
          break;
-
 
1231
        case 10: // TRANSFER_STATUS
-
 
1232
          if (field.type == org.apache.thrift.protocol.TType.I32) {
-
 
1233
            this.transferStatus = TransferLotStatus.findByValue(iprot.readI32());
-
 
1234
          } else { 
-
 
1235
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
1236
          }
-
 
1237
          break;
1075
        case 9: // SUPPLIER_ID
1238
        case 11: // SUPPLIER_ID
1076
          if (field.type == org.apache.thrift.protocol.TType.I64) {
1239
          if (field.type == org.apache.thrift.protocol.TType.I64) {
1077
            this.supplierId = iprot.readI64();
1240
            this.supplierId = iprot.readI64();
1078
            setSupplierIdIsSet(true);
1241
            setSupplierIdIsSet(true);
1079
          } else { 
1242
          } else { 
1080
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1243
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1081
          }
1244
          }
1082
          break;
1245
          break;
1083
        case 10: // UNIT_PRICE
1246
        case 12: // UNIT_PRICE
1084
          if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
1247
          if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
1085
            this.unitPrice = iprot.readDouble();
1248
            this.unitPrice = iprot.readDouble();
1086
            setUnitPriceIsSet(true);
1249
            setUnitPriceIsSet(true);
1087
          } else { 
1250
          } else { 
1088
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1251
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1089
          }
1252
          }
1090
          break;
1253
          break;
1091
        case 11: // CURRENT_WAREHOUSE_ID
1254
        case 13: // CURRENT_WAREHOUSE_ID
1092
          if (field.type == org.apache.thrift.protocol.TType.I64) {
1255
          if (field.type == org.apache.thrift.protocol.TType.I64) {
1093
            this.currentWarehouseId = iprot.readI64();
1256
            this.currentWarehouseId = iprot.readI64();
1094
            setCurrentWarehouseIdIsSet(true);
1257
            setCurrentWarehouseIdIsSet(true);
1095
          } else { 
1258
          } else { 
1096
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1259
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1097
          }
1260
          }
1098
          break;
1261
          break;
1099
        case 12: // LAST_SCAN_TYPE
1262
        case 14: // LAST_SCAN_TYPE
1100
          if (field.type == org.apache.thrift.protocol.TType.I32) {
1263
          if (field.type == org.apache.thrift.protocol.TType.I32) {
1101
            this.lastScanType = ScanType.findByValue(iprot.readI32());
1264
            this.lastScanType = ScanType.findByValue(iprot.readI32());
1102
          } else { 
1265
          } else { 
1103
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1266
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1104
          }
1267
          }
Line 1142... Line 1305...
1142
    oprot.writeI64(this.purchaseId);
1305
    oprot.writeI64(this.purchaseId);
1143
    oprot.writeFieldEnd();
1306
    oprot.writeFieldEnd();
1144
    oprot.writeFieldBegin(PURCHASE_RETURN_ID_FIELD_DESC);
1307
    oprot.writeFieldBegin(PURCHASE_RETURN_ID_FIELD_DESC);
1145
    oprot.writeI64(this.purchaseReturnId);
1308
    oprot.writeI64(this.purchaseReturnId);
1146
    oprot.writeFieldEnd();
1309
    oprot.writeFieldEnd();
-
 
1310
    oprot.writeFieldBegin(PHYSICAL_WAREHOUSE_ID_FIELD_DESC);
-
 
1311
    oprot.writeI64(this.physicalWarehouseId);
-
 
1312
    oprot.writeFieldEnd();
-
 
1313
    if (this.transferStatus != null) {
-
 
1314
      oprot.writeFieldBegin(TRANSFER_STATUS_FIELD_DESC);
-
 
1315
      oprot.writeI32(this.transferStatus.getValue());
-
 
1316
      oprot.writeFieldEnd();
-
 
1317
    }
1147
    oprot.writeFieldBegin(SUPPLIER_ID_FIELD_DESC);
1318
    oprot.writeFieldBegin(SUPPLIER_ID_FIELD_DESC);
1148
    oprot.writeI64(this.supplierId);
1319
    oprot.writeI64(this.supplierId);
1149
    oprot.writeFieldEnd();
1320
    oprot.writeFieldEnd();
1150
    oprot.writeFieldBegin(UNIT_PRICE_FIELD_DESC);
1321
    oprot.writeFieldBegin(UNIT_PRICE_FIELD_DESC);
1151
    oprot.writeDouble(this.unitPrice);
1322
    oprot.writeDouble(this.unitPrice);
Line 1205... Line 1376...
1205
    if (!first) sb.append(", ");
1376
    if (!first) sb.append(", ");
1206
    sb.append("purchaseReturnId:");
1377
    sb.append("purchaseReturnId:");
1207
    sb.append(this.purchaseReturnId);
1378
    sb.append(this.purchaseReturnId);
1208
    first = false;
1379
    first = false;
1209
    if (!first) sb.append(", ");
1380
    if (!first) sb.append(", ");
-
 
1381
    sb.append("physicalWarehouseId:");
-
 
1382
    sb.append(this.physicalWarehouseId);
-
 
1383
    first = false;
-
 
1384
    if (!first) sb.append(", ");
-
 
1385
    sb.append("transferStatus:");
-
 
1386
    if (this.transferStatus == null) {
-
 
1387
      sb.append("null");
-
 
1388
    } else {
-
 
1389
      sb.append(this.transferStatus);
-
 
1390
    }
-
 
1391
    first = false;
-
 
1392
    if (!first) sb.append(", ");
1210
    sb.append("supplierId:");
1393
    sb.append("supplierId:");
1211
    sb.append(this.supplierId);
1394
    sb.append(this.supplierId);
1212
    first = false;
1395
    first = false;
1213
    if (!first) sb.append(", ");
1396
    if (!first) sb.append(", ");
1214
    sb.append("unitPrice:");
1397
    sb.append("unitPrice:");