protected void btnSubmit_Click(object sender, EventArgs e) { string strSa = Request.Form["saleAccount"]; if (!string.IsNullOrEmpty(strSa)) { string[] strArray = strSa.Split(','); foreach (string strId in strArray) { int id = 0; if (int.TryParse(strId, out id)) { SaleAccountType saleAccount = SaleAccountType.findById(id); if (saleAccount != null) { EbayEmailUtil eeu = new EbayEmailUtil(); eeu.UploadEmailByAPI(saleAccount); } } } } }
protected void btnSubmit_Click(object sender, EventArgs e) { string strSa = Request.Form["saleAccount"]; if (!string.IsNullOrEmpty(strSa)) { string[] strArray = strSa.Split(','); foreach(string strId in strArray) { int id = 0; if (int.TryParse(strId, out id)) { SaleAccountType saleAccount = SaleAccountType.findById(id); if (saleAccount != null) { EbayEmailUtil eeu = new EbayEmailUtil(); DateTime endTime=Convert.ToDateTime(txtEndTime.Value); endTime = new DateTime(endTime.Year, endTime.Month, endTime.Day, 23, 59, 59, 999); eeu.GetEmailByAPI(saleAccount, Convert.ToDateTime(txtStartTime.Value), endTime); } } } } }