protected void gvData_RowCommand(object sender, GridViewCommandEventArgs e) { string commandName = e.CommandName; string orderNum = e.CommandArgument.ToArrowString(); if (e.CommandName == "UpdateData") { GridViewRow drv = ((GridViewRow)(((LinkButton)(e.CommandSource)).Parent.Parent)); string memberUserName = (gvData.Rows[drv.RowIndex].FindControl("hfMemberUserName") as HiddenField).Value; Response.Redirect("OrderMemberEdit.aspx?OrderNum=" + orderNum + "&MemberUserName="******"&")); } else if (e.CommandName == "ConfirmData") { GridViewRow drv = ((GridViewRow)(((LinkButton)(e.CommandSource)).Parent.Parent)); string memberUserName = (gvData.Rows[drv.RowIndex].FindControl("hfMemberUserName") as HiddenField).Value; OrderBLL.ConfirmOrder(orderNum, memberUserName, CurrentAdmin); BindData(); MessageBox.Show("确认成功!", CurrentUrl); } }
public OperationResult <Boolean> StaffOrder([FromBody] UserInfo user) { return(orderBLL.ConfirmOrder(user.UserName, user.Meno)); }