예제 #1
0
        private void btnManyChangeStatus_Click(object sender, System.EventArgs e)
        {
            string text = "";

            ManagerHelper.CheckPrivilege(Privilege.DeleteMember);
            foreach (System.Web.UI.WebControls.GridViewRow gridViewRow in this.grdCardList.Rows)
            {
                System.Web.UI.WebControls.CheckBox checkBox = (System.Web.UI.WebControls.CheckBox)gridViewRow.FindControl("checkboxCol");
                if (checkBox.Checked)
                {
                    text = text + "'" + this.grdCardList.DataKeys[gridViewRow.RowIndex].Value.ToString() + "'" + ",";
                }
            }
            text = text.TrimEnd(new char[]
            {
                ','
            });
            if (string.IsNullOrEmpty(text))
            {
                this.ShowMsg("请先选择要已配送的任务!", false);
                return;
            }

            if (VShopHelper.ChangStatus(text, ManagerHelper.GetCurrentManager().UserId))
            {
                this.ShowMsg("成功已配送了任务!", true);
                this.BindData();
            }
        }