示例#1
0
        public static PurchaseRow MakeFake(GDID gdid)
        {
            var purch = new PurchaseRow()
            {
                ID          = gdid,
                Customer    = PersonRow.MakeFake(gdid),
                Date        = DateTime.Now,
                Amount      = new Amount("usd", gdid.ID % 1897),
                SalesPerson = (gdid.ID % 2) == 0 ? null : PersonRow.MakeFake(gdid),
                G_Product   = new GDID(0, gdid.ID + 157)
            };

            return(purch);
        }
示例#2
0
文件: TRow.cs 项目: itadapter/nfx
        public static PurchaseRow MakeFake(GDID gdid)
        {
            var purch = new PurchaseRow()
              {
            ID = gdid,
            Customer = PersonRow.MakeFake(gdid),
            Date = DateTime.Now,
            Amount = new Amount("usd", gdid.ID % 1897),
            SalesPerson = (gdid.ID % 2) == 0 ? null : PersonRow.MakeFake(gdid),
            G_Product = new GDID(0, gdid.ID + 157)
              };

              return purch;
        }