Exemplo n.º 1
0
    private List<Shop_Store> BuildTestData()
    {
        List<Shop_Store> stores = new List<Shop_Store>();

        for (int i = 0; i < 100; i++)
        {
            Account_Period ap = new Account_Period();
            ap.AccountID = Guid.NewGuid();
            ap.BeginDate = DateTime.Now;
            ap.EndDate = DateTime.Now;

            ProInfo pi = new ProInfo();
            pi.Name = "name" + i;
            pi.Unit = "jin";
            ShopInfo si = new ShopInfo();
            si.ShopName = "name" + i;

            Shop_Store ss = new Shop_Store();

            ss.Account_Period = ap;
            ss.ChkQty = i;
            ss.CurrQty = i;
            ss.ExpQty = i;
            ss.Id = i;
            ss.ImpQty = ss.PreQty = i;
            ss.ProInfo = pi;
            ss.ShopInfo = si;
            stores.Add(ss);
        }

        return stores;
    }
Exemplo n.º 2
0
    private List<Shop_Store> BuildTestData()
    {
        List<Shop_Store> details = new List<Shop_Store>();
        for (int i = 0; i < 100; i++)
        {
            Shop_Store d = new Shop_Store();

            ShopInfo si = new ShopInfo();
            si.ShopName = "shopname" + i;
            d.ShopInfo = si;

            d.Account_Period = new Account_Period();
            d.ChkQty = d.CurrQty = d.ExpQty = d.ImpQty = i;
            details.Add(d);

        }
        return details;
    }