protected void btnDo_Click(object sender, System.EventArgs e) { int storeId = 0; int.TryParse(this.dropStores.SelectedValue, out storeId); string orderIds = Request.QueryString["OrderIds"]; if (string.IsNullOrEmpty(orderIds)) { ShowMsg("请选择要分配的订单", false); return; } string orderIds2 = "'" + orderIds.Replace(",", "','") + "'"; if (OrderHelper.AllocateOrderToStore(orderIds2, storeId)) { ShowMsg("成功分配订单到门店", true); } else { ShowMsg("分配订单到门店失败", false); } }