protected void Button10_Click(object sender, EventArgs e) { string sellerNick = TextBox2.Text.Trim(); string session = txtSession.Text.Trim(); DateTime startTradeDate = Convert.ToDateTime(DateTime.Now.AddMonths(-3).ToShortDateString()); DateTime endTradeDate = Convert.ToDateTime(DateTime.Now.ToShortDateString()); if (BuyerBLL.SynicOldTrade(session, startTradeDate, endTradeDate, sellerNick)) { if (SellersBLL.SetSyncTradeFlag(sellerNick, 1)) { lbError.Text = "订单同步完成!"; lbError.ForeColor = Color.Blue; } } }