public void setClearParseMap()
 {
     MapDocid.Clear();
     MapRetailer.Clear();
     MapGoods.Clear();
     MapTourist.Clear();
     MapAdsInfo.Clear();
 }
        public bool getParseGoods(string goods)
        {
            try
            {
                /*//////////////////////////////////////////////////////////////////////////
                * Format
                * [0] : Sale Date          (8)
                * [1] : Item Type Seq      (3)
                *
                * { [2] ~ [7] X [1] }
                * [2] : Item Type Code     (2)
                * [3] : Goods Seq         (3)
                * { [4]~[7] x [3] }
                * [4] : Goods Name
                * [5] : Goods Unit Price
                * [6] : Goods Qty
                * [7] : Goods Amount
                *
                * [8] : Tax Amt
                * [9] : Sale Amt
                * [10] : Refund Amt
                *
                * [11] : Item Type Code
                * [12] : Goods Seq
                * { [13]~[16] x [12] }
                * [13] : Goods Name
                * [14] : Goods Unit Price
                * [15] : Goods Qty
                * [16] : Goods Amount
                *
                * [17] : Tax Amt
                * [18] : Sale Amt
                * [19] : Refund Amt
                *
                * [20] : Total Tax Amt
                * [21] : Total Refund Amt
                * [22] : Total Fee Amt
                * [23] : Total Net Amt
                *
                * ex)
                * 20150310
                * 2
                *
                * 01
                * 2
                * a01 | 10000 | 1 | 10000
                * a02 | 10000 | 1 | 10000
                * 1600 | 20000 | 1280
                *
                * 02
                * 2
                * b01 | 10000 | 1 | 10000
                * b02 | 10000 | 1 | 10000
                * 1600 | 20000 | 1280
                *
                * 40000 | 2560 | 640 | 1920
                *  //////////////////////////////////////////////////////////////////////////*/

                string[] arrGoods = goods.Split('|');
                MapGoods.Add(Goods.SaleDate, arrGoods[0]);
                MapGoods.Add(Goods.ItemTypeSeq, arrGoods[1]);

                int nOffSet = 2;

                for (int i = 0; i < Convert.ToInt32(MapGoods[Goods.ItemTypeSeq]); i++)
                {
                    Dictionary <string, object> ItemMap = new Dictionary <string, object>();
                    ItemMap.Add(Goods.ItemTypeCode, arrGoods[nOffSet++]);
                    ItemMap.Add(Goods.GoodsSeq, arrGoods[nOffSet++]);

                    for (int j = 0; j < Convert.ToInt32(ItemMap[Goods.GoodsSeq]); j++)
                    {
                        Dictionary <string, object> GoodsMap = new Dictionary <string, object>();
                        GoodsMap.Add(Goods.Name, arrGoods[nOffSet++]);
                        GoodsMap.Add(Goods.UnitPrice, arrGoods[nOffSet++]);
                        GoodsMap.Add(Goods.Qty, arrGoods[nOffSet++]);
                        GoodsMap.Add(Goods.Amt, arrGoods[nOffSet++]);
                        string ItemMapKey = String.Format("GoodsMap_{0}", j);
                        ItemMap.Add(ItemMapKey, (object)GoodsMap);
                    }

                    ItemMap.Add(Goods.TaxAmt, arrGoods[nOffSet++]);
                    ItemMap.Add(Goods.SaleAmt, arrGoods[nOffSet++]);
                    ItemMap.Add(Goods.RefundAmt, arrGoods[nOffSet++]);

                    string MapGoodsKey = String.Format("ItemsMap_{0}", i);
                    MapGoods.Add(MapGoodsKey, (object)ItemMap);
                }
                MapGoods.Add(Goods.TotalSaleAmt, arrGoods[nOffSet++]);
                MapGoods.Add(Goods.TotalRefundAmt, arrGoods[nOffSet++]);
                MapGoods.Add(Goods.TotalFeeAmt, arrGoods[nOffSet++]);
                MapGoods.Add(Goods.TotalNetAmt, arrGoods[nOffSet++]);
            }
            catch
            {
                return(false);
            }
            return(true);
        }