示例#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;
    }
示例#2
0
 public void Add()
 {
     Account_Period ap = new Account_Period();
     ap.AccountID = Guid.NewGuid();
     ap.BeginDate = DateTime.Now;
     ap.EndDate = null;
     Reposi.Add(ap);
 }