public HttpResponseBase CancleOrder() { string json = string.Empty; TicketMasterQuery query = new TicketMasterQuery(); List<TicketMasterQuery> list = new List<TicketMasterQuery>(); try { if (!string.IsNullOrEmpty(Request.Form["rowID"])) { string rowIDs = Request.Form["rowID"]; if (rowIDs.IndexOf("|") != -1) { foreach (string id in rowIDs.Split('|')) { if (!string.IsNullOrEmpty(id)) { query = new TicketMasterQuery(); query.master_status = 90; query.detail_status = 90; query.ticket_master_id = Convert.ToInt32(id); list.Add(query); } } } _ITicketMaster = new TicketMasterMgr(mySqlConnectionString); json = _ITicketMaster.ExecCancelOrder(list); } } catch (Exception ex) { Log4NetCustom.LogMessage logMessage = new Log4NetCustom.LogMessage(); logMessage.Content = string.Format("TargetSite:{0},Source:{1},Message:{2}", ex.TargetSite.Name, ex.Source, ex.Message); logMessage.MethodName = System.Reflection.MethodBase.GetCurrentMethod().Name; log.Error(logMessage); json = "{failure:true}"; } this.Response.Clear(); this.Response.Write(json); this.Response.End(); return this.Response; }