WarehouseUsageInfo.java 778 Bytes
package com.huaheng.api.wmsinfo.domain;

import java.util.ArrayList;
import java.util.List;

/**
 * 库容使用率
 */
public class WarehouseUsageInfo {

    public List<Usage> UsageList = new ArrayList<>();

    class Usage{
        public int Used; //已经使用库位数
        public int Total; //总库位数
        public String StoreNo; //仓库编码
        public String StoreName; //仓库名

        public Usage(int used, int total, String storeNo, String storeName) {
            Used = used;
            Total = total;
            StoreNo = storeNo;
            StoreName = storeName;
        }
    }

    public void addUsage(int used, int total, String storeNo, String storeName){
        UsageList.add(new Usage(used, total, storeNo, storeName));
    }
}