Beispiel #1
0
        /// <summary>
        /// 下载本地数据库所有表格信息
        /// </summary>
        public void DownloadData(DownloadData p)
        {
            Stopwatch a = new Stopwatch();

            a.Start();
            DownloadUserData();
            a.Stop();
            p.AppendMessage("下载分店用户信息成功,耗时:" + a.ElapsedMilliseconds + "毫秒 \n");
            a.Reset();
            p.Step();
            a.Start();
            DownloadRoleData();
            a.Stop();
            p.AppendMessage("下载角色信息成功,耗时:" + a.ElapsedMilliseconds + "毫秒 \n");
            a.Reset();
            p.Step();
            a.Start();
            DownloadZcProviderInfoData();
            a.Stop();
            p.AppendMessage("下载供应商数据信息成功,耗时:" + a.ElapsedMilliseconds + "毫秒\n");
            a.Reset();
            p.Step();
            a.Start();
            DownloadZcUserInfoData();
            a.Stop();
            p.AppendMessage("下载用户信息成功,耗时:" + a.ElapsedMilliseconds + "毫秒\n");
            a.Reset();
            p.Step();
            a.Start();
            DownloadZcOrderTransitData();
            a.Stop();
            p.AppendMessage("下载订单数据信息成功,耗时:" + a.ElapsedMilliseconds + "毫秒\n");
            a.Reset();
            p.Step();
            a.Start();
            DownloadZcOrderTransitItemData();
            a.Stop();
            p.AppendMessage("下载订单明细数据信息成功,耗时:" + a.ElapsedMilliseconds + "毫秒\n");
            a.Reset();
            p.Step();
            a.Start();
            DownloadZcClassifyData();
            a.Stop();
            p.AppendMessage("下载商品分类信息成功,耗时:" + a.ElapsedMilliseconds + "毫秒\n");
            a.Reset();
            p.Step();
            a.Start();
            DownloadZcGoodsMasterData();
            a.Stop();
            p.AppendMessage("下载商品数据信息成功,耗时:" + a.ElapsedMilliseconds + "毫秒\n");
            a.Reset();
            p.Step();
            a.Start();
            DownloadZcBranchTotalData();
            a.Stop();
            p.AppendMessage("下载分店数据信息成功,耗时:" + a.ElapsedMilliseconds + "毫秒\n");
            a.Reset();
            p.Step();
            a.Start();
            DownloadRelUserRoleData();
            a.Stop();
            p.AppendMessage("下载用户分店关系数据信息成功,耗时:" + a.ElapsedMilliseconds + "毫秒\n");
            a.Reset();
            p.Step();
            a.Start();
            DownloadZcZoningData();
            a.Stop();
            p.AppendMessage("下载区域地址数据信息成功,耗时:" + a.ElapsedMilliseconds + "毫秒\n");
            a.Reset();
            p.Step();
            a.Start();
            DownloadZcBranchInfoData();
            a.Stop();
            p.AppendMessage("下载仓库数据信息成功,耗时:" + a.ElapsedMilliseconds + "毫秒\n");
            a.Reset();
            p.Step();
            a.Start();
            DownloadZcStoreHouseData();
            a.Stop();
            p.AppendMessage("下载库存数据信息成功,耗时:" + a.ElapsedMilliseconds + "毫秒\n");
            a.Reset();
            p.Step();
            a.Start();

            ///新增下载  date 2016-1-7 11:25
            DownloadZcAssociatorInfoData();
            a.Stop();
            p.AppendMessage("下载会员表数据成功,耗时:" + a.ElapsedMilliseconds + "毫秒\n");
            a.Reset();
            p.Step();
            a.Start();
            ///新增下载 date 2016-1-26 16:47
            DownloadZcOrderSorteData();
            a.Stop();
            p.AppendMessage("下载配送数据信息成功,耗时:" + a.ElapsedMilliseconds + "毫秒\n");
            a.Reset();
            p.Step();
            a.Start();

            p.Close();
        }