private void DataGrid2_DeleteCommand(object source, System.Web.UI.WebControls.DataGridCommandEventArgs e) { try { OrderBookDetail detail = new OrderBookDetail(); detail.cnnOrderSerialNo = decimal.Parse(txtOrderSerialNo.Text); detail.cnvcInvCode = e.Item.Cells[3].Text; OperLog operLog = new OperLog(); operLog.cnvcOperID = oper.strLoginID; operLog.cnvcDeptID = oper.strDeptID; operLog.cnvcOperType = "订单删除产品"; OrderFacade order = new OrderFacade(); order.DeleteDetail(detail, operLog); Popup("删除成功"); BindDetail(txtOrderSerialNo.Text); } catch (Exception ex) { Popup(ex.Message); } }