コード例 #1
0
 protected void grid_RowCommand(object sender, GridViewCommandEventArgs e)
 {
     if (e.CommandName == "DeleteOrderByRequest")
     {
         OrderByRequestService.DeleteOrderByRequest(SQLDataHelper.GetInt(e.CommandArgument));
     }
 }
コード例 #2
0
 protected void grid_RowCommand(object sender, GridViewCommandEventArgs e)
 {
     if (e.CommandName == "DeleteOrderByRequest")
     {
         OrderByRequestService.DeleteOrderByRequest(Convert.ToInt32(e.CommandArgument));
     }
 }
コード例 #3
0
 protected void lbDeleteSelected_Click(object sender, EventArgs e)
 {
     if ((_selectionFilter != null) && (_selectionFilter.Values != null))
     {
         if (!_inverseSelection)
         {
             foreach (string id in _selectionFilter.Values)
             {
                 OrderByRequestService.DeleteOrderByRequest(SQLDataHelper.GetInt(id));
             }
         }
         else
         {
             foreach (int id in OrderByRequestService.GetIdList().Where(id => !_selectionFilter.Values.Contains(id.ToString(CultureInfo.InvariantCulture))))
             {
                 OrderByRequestService.DeleteOrderByRequest(id);
             }
         }
     }
 }
コード例 #4
0
 protected void btnDeleteOrder_Click(object sender, EventArgs e)
 {
     OrderByRequestService.DeleteOrderByRequest(OrderByRequestId);
     Response.Redirect("OrderByRequest.aspx");
 }