Beispiel #1
0
        public void GeneratePackingListSheet_1()
        {
            if (packingParser.GetParkingParserList() != null &&
                packingParser.GetParkingParserList().Count > 0)
            {
                numberPacket_sheet_1 = 0;

                foreach (ParkingParserItem item in packingParser.GetParkingParserList())
                {
                    if (item.GetListItem() != null && item.GetListItem().Count > 0)
                    {
                        foreach (PackingListItem baseEle in item.GetListItem())
                        {
                            CreateRowValueSheet_1(baseEle, item.GetDatabaseItem());
                        }
                    }
                }
            }
        }
        public void PackingListDetailGeneratorSheet2()
        {
            if (packingParser.GetParkingParserList() != null &&
                packingParser.GetParkingParserList().Count > 0)
            {
                sheet_2_numberPacket = 0;

                foreach (ParkingParserItem item in packingParser.GetParkingParserList())
                {
                    if (item.GetListItem() != null && item.GetListItem().Count > 0)
                    {
                        foreach (PackingListItem baseEle in item.GetListItem())
                        {
                            if (CheckExistsSize_2(baseEle.GetProductSize()) < 0)
                            {
                                AddToListSize_1(baseEle.GetProductSize());
                            }

                            if (baseEle.GetMergerList() != null && baseEle.GetMergerList().Count > 0)
                            {
                                foreach (MergerItem merger in baseEle.GetMergerList())
                                {
                                    if (CheckExistsSize_2(merger.GetProductSize()) < 0)
                                    {
                                        AddToListSize_1(merger.GetProductSize());
                                    }
                                }
                            }
                        }
                    }
                }

                foreach (ParkingParserItem item in packingParser.GetParkingParserList())
                {
                    CreateRowValueSheet_2(item);
                }
            }
        }