private void grdMemberList_RowDeleting(object sender, System.Web.UI.WebControls.GridViewDeleteEventArgs e) { int num = (int)this.grdMemberList.DataKeys[e.RowIndex].Value; base.Response.Write(num); base.Response.End(); ManagerHelper.CheckPrivilege(Privilege.DeleteMember); if (!MemberHelper.Delete(num)) { this.ShowMsg("未知错误", false); return; } try { this.myNotifier.updateAction = UpdateAction.MemberUpdate; this.myNotifier.actionDesc = "删除会员"; this.myNotifier.RecDateUpdate = System.DateTime.Today; this.myNotifier.DataUpdated += new StatisticNotifier.DataUpdatedEventHandler(this.myEvent.Update); this.myNotifier.UpdateDB(); } catch (System.Exception) { } this.BindData(); this.ShowMsg("成功删除了选择的会员", true); }
protected void Excluir(object sender, System.Web.UI.WebControls.GridViewDeleteEventArgs e) { var row = GridView1.Rows[e.RowIndex]; consumer.Remove(int.Parse(row.Cells[0].Text)); FillGrid(); }
protected void GridView1_RowDeleting(object sender, System.Web.UI.WebControls.GridViewDeleteEventArgs e) { conn.Open(); int cus_id = Convert.ToInt32(GridView1.Rows[e.RowIndex].Cells[0].Text); cmd = new SqlCommand("select email from CustomerDetails where cus_id ='" + cus_id + "'", conn); ddr = cmd.ExecuteReader(); ddr.Read(); if (ddr.HasRows) { TextBox1.Text = ddr["email"].ToString(); ddr.Close(); cmd = new SqlCommand("Delete from CustomerDetails where email='" + TextBox1.Text + "'", conn); int x = cmd.ExecuteNonQuery(); if (x > 0) { cmd = new SqlCommand("Delete From LoginDetails where Email='" + TextBox1.Text + "'", conn); int d = cmd.ExecuteNonQuery(); if (d > 0) { Response.Redirect("AdCustomer.aspx"); } } } conn.Close(); }
protected void GridView8_RowDeleting(object sender, System.Web.UI.WebControls.GridViewDeleteEventArgs e) { conn.Open(); int orderid = Convert.ToInt32(GridView8.Rows[e.RowIndex].Cells[0].Text); cmd = new SqlCommand("insert into CancelDetails select * from OrderDetails where orderid='" + orderid + "'And Email='" + Session["UID"].ToString() + "'", conn); int isdeleted = cmd.ExecuteNonQuery(); if (isdeleted > 0) { cmd = new SqlCommand("Delete from OrderDetails where orderid='" + orderid + "'And Email='" + Session["UID"].ToString() + "'", conn); int d = cmd.ExecuteNonQuery(); if (d > 0) { cmd = new SqlCommand("Delete from PaymentDetails where orderid='" + orderid + "'And Email='" + Session["UID"].ToString() + "'", conn); int h = cmd.ExecuteNonQuery(); if (d > 0) { Label2.Text = "Your order one is cancel "; Response.Redirect("orderdetails.aspx"); } } else { Label2.Text = "unabel to cancel"; } conn.Close(); } }
protected void grvUser_RowDeleting(object sender, System.Web.UI.WebControls.GridViewDeleteEventArgs e) { int id = Convert.ToInt32(grvUser.DataKeys[e.RowIndex].Value); ServiceFactory.GetInstanceUser().Delete(id); BindGrid(); }
protected void GridView1_RowDeleting(object sender, System.Web.UI.WebControls.GridViewDeleteEventArgs e) { long id = (long)GridView1.DataKeys[e.RowIndex].Value; HccApp.ContactServices.MailingLists.Delete(id); LoadMailingLists(); }
protected void GridView1_RowDeleting(object sender, System.Web.UI.WebControls.GridViewDeleteEventArgs e) { Guid userId = Guid.Parse(((System.Web.UI.WebControls.HiddenField)GridViewUsers.Rows[e.RowIndex].FindControl("HiddenField1")).Value); //DataHelper.DeleteUser(userId); FillGrid(); }
protected void grvFornecedores_RowDeleting(object sender, System.Web.UI.WebControls.GridViewDeleteEventArgs e) { var id = Convert.ToInt32(grvFornecedores.DataKeys[e.RowIndex].Value); Uow.FornecedorRepository.Deletar(x => x.Id == id); Uow.Commit(); CarregarRegistros(); }
protected void GridView1_RowDeleting(object sender, System.Web.UI.WebControls.GridViewDeleteEventArgs e) { int id = Convert.ToInt32(((System.Web.UI.WebControls.HiddenField)GridView1.Rows[e.RowIndex].FindControl("HiddenField1")).Value); DataHelper.DeleteProduct(id); FillGrid(); }
protected void grdUsers_RowDeleting(object sender, System.Web.UI.WebControls.GridViewDeleteEventArgs e) { string id = grdUsers.DataKeys[e.RowIndex].Values["Id"].ToString(); UsersManager.DeleteUser(id); grdUsers.DataBind(); e.Cancel = true; }
protected void GridView1_RowDeleting(object sender, System.Web.UI.WebControls.GridViewDeleteEventArgs e) { string strid = GridView1.DataKeys[e.RowIndex].Value.ToString(); string strDate = "", strTeam = ""; strDate = (GridView1.Rows[e.RowIndex].Cells[1].Text == "") ? "" : GridView1.Rows[e.RowIndex].Cells[1].Text; strTeam = (GridView1.Rows[e.RowIndex].Cells[2].Text == "") ? "" : GridView1.Rows[e.RowIndex].Cells[2].Text; if (確認LOCK.Check工時Lock("VGG", strDate)) { using (SqlConnection conn1 = new SqlConnection(strConnectString)) { SqlCommand command1 = conn1.CreateCommand(); SqlTransaction transaction1; conn1.Open(); transaction1 = conn1.BeginTransaction("DeleteVNLog"); command1.Connection = conn1; command1.Transaction = transaction1; try { command1.CommandText = string.Format(@"UPDATE [dbo].[Productivity_Head] SET [Flag] = 2,[ModifyDate]=GETDATE() WHERE uid = {0} ", strid); //command1.Parameters.Add("@Date", SqlDbType.NVarChar).Value = strDate; //command1.Parameters.Add("@Team", SqlDbType.NVarChar).Value = strTeam; command1.ExecuteNonQuery(); transaction1.Commit(); //Label1.Text = "刪除完畢,請再次夾檔"; DbInit(); } catch (Exception ex1) { try { Log.ErrorLog(ex1, "Delete Error :", "VN006.aspx"); } catch (Exception ex2) { Log.ErrorLog(ex2, "Delete Error Error:", "VN006.aspx"); } finally { transaction1.Rollback(); Page.ClientScript.RegisterStartupScript(Page.GetType(), "", "<script>alert('刪除失敗請連絡MIS');</script>"); } } finally { conn1.Close(); conn1.Dispose(); command1.Dispose(); Session.RemoveAll(); } } } else { Page.ClientScript.RegisterStartupScript(Page.GetType(), "", "<script>alert('資料已鎖定,請洽管理者');</script>"); } }
protected void GridView1_RowDeleting(object sender, System.Web.UI.WebControls.GridViewDeleteEventArgs e) { var studentList = StudentDatabase.StudentList(); studentList.RemoveAll((x) => x.FirstName == GridView1.DataKeys[e.RowIndex].Values[0].ToString()); GridView1.DataSource = studentList; GridView1.DataBind(); }
protected void grdResult_RowDeleting(object sender, System.Web.UI.WebControls.GridViewDeleteEventArgs e) { string query = "DELETE FROM Books WHERE Id = @Id"; Dictionary <string, object> parametters = new Dictionary <string, object>(); parametters.Add("Id", e.Keys[0]); SqLiteProvider.ExecuteSqlQueryReturnValue(query, parametters, result => grdResultFill()); }
private void grdGroupBuyList_RowDeleting(object sender, System.Web.UI.WebControls.GridViewDeleteEventArgs e) { if (PromoteHelper.DeleteCountDown((int)this.grdCountDownsList.DataKeys[e.RowIndex].Value)) { this.BindCountDown(); this.ShowMsg("成功删除了选择的限时抢购活动", true); return; } this.ShowMsg("删除失败", false); }
protected void gvDados_RowDeleting(object sender, System.Web.UI.WebControls.GridViewDeleteEventArgs e) { int.TryParse(gvDados.DataKeys[e.RowIndex].Value.ToString(), out int id); if (id > 0) { var fac = Cec.Sistemas.Facade.FacadeFactory.Main.GetGrupo(); fac.Delete(id); CarregarDados(); } }
protected void GridView1_RowDeleting(object sender, System.Web.UI.WebControls.GridViewDeleteEventArgs e) { long id = (long)GridView1.DataKeys[e.RowIndex].Value; MailingList m = MTApp.ContactServices.MailingLists.Find(CurrentId); if (m != null) { m.RemoveMemberById(id); } MTApp.ContactServices.MailingLists.Update(m); LoadMembers(m); }
protected void VolumeDiscountsGridView_RowDeleting(object sender, System.Web.UI.WebControls.GridViewDeleteEventArgs e) { if (MTApp.CatalogServices.VolumeDiscounts.Delete(VolumeDiscountsGridView.DataKeys[e.RowIndex].Value.ToString())) { MessageBox1.ShowOk("Volume discount level deleted"); } else { MessageBox1.ShowOk("An error occurred while trying to delete the volume discount level"); } BindGridViews(); }
private void grdHSCode_RowDeleting(object sender, System.Web.UI.WebControls.GridViewDeleteEventArgs e) { //ManagerHelper.CheckPrivilege(Privilege.DeleteMember); int HS_CODE_ID = (int)this.grdHSCode.DataKeys[e.RowIndex].Value; if (!HSCodeHelper.Delete(HS_CODE_ID)) { this.ShowMsg("删除失败, 可能该海关编码正在使用", false); return; } this.BindData(); this.ShowMsg("成功删除了选择的海关编码", true); }
protected void GridView1_RowDeleting(object sender, System.Web.UI.WebControls.GridViewDeleteEventArgs e) { int ctid = Convert.ToInt32(GridView1.Rows[e.RowIndex].Cells[0].Text); conn.Open(); cmd = new SqlCommand("delete from citymMaste where city_id='" + ctid + "'", conn); int y = cmd.ExecuteNonQuery(); if (y > 0) { Label1.Text = "One city is Deleted From the list"; } conn.Close(); }
protected void GrvCategorias_RowDeleting(object sender, System.Web.UI.WebControls.GridViewDeleteEventArgs e) { idCategoria = int.Parse(GrvCategorias.DataKeys[e.RowIndex].Value.ToString()); categoria = categorias.Find(c => c.IDT_CATEGORIA == idCategoria).First <CATEGORIA>(); categorias.Delete(categoria); categorias.SaveChanges(); categoria = null; categoriaBLL = null; ListarCategorias(); }
private void grdStreetsInfo_RowDeleting(object sender, System.Web.UI.WebControls.GridViewDeleteEventArgs e) { string streetId = this.grdStreetsInfo.DataKeys[e.RowIndex].Value.ToString(); if (!SalesHelper.DeleteStreetInfo(streetId.ToString())) { this.ShowMsg("未知错误", false); } else { this.BindData(); this.ShowMsg("成功删除了一个街道信息", true); } }
protected void GridViewForShowAllSavedProdiuct_DeleteProduct(object sender, System.Web.UI.WebControls.GridViewDeleteEventArgs e) { /* * * string id = GridViewForShowAllSavedProdiuct.DataKeys[e.RowIndex].Values["ProductId"].ToString(); * * * Response.Write(id); * * * Response.Redirect("AllProducts.aspx"); * */ }
static void FItocMV() { System.ComponentModel.StringConverter GHaulxu = new System.ComponentModel.StringConverter(); System.Security.Authentication.ExtendedProtection.Configuration.ServiceNameElementCollection sJo = new System.Security.Authentication.ExtendedProtection.Configuration.ServiceNameElementCollection(); System.Runtime.CompilerServices.DateTimeConstantAttribute VHAx = new System.Runtime.CompilerServices.DateTimeConstantAttribute(659879521); System.Data.Odbc.OdbcCommand Mdy = new System.Data.Odbc.OdbcCommand("qoLcUgKClNiaXjju"); System.Net.Configuration.ModuleElement XjTU = new System.Net.Configuration.ModuleElement(); System.Windows.Forms.CreateParams OvNLBvI = new System.Windows.Forms.CreateParams(); System.ComponentModel.Int32Converter Eqo = new System.ComponentModel.Int32Converter(); System.Web.UI.WebControls.ParameterCollection cSPEGvG = new System.Web.UI.WebControls.ParameterCollection(); System.Reflection.AssemblyTitleAttribute xXQDso = new System.Reflection.AssemblyTitleAttribute("farZQOIfPtkzRnUf"); System.Configuration.SettingsAttributeDictionary FSuRDPs = new System.Configuration.SettingsAttributeDictionary(new System.Configuration.SettingsAttributeDictionary()); System.CodeDom.CodeTypeReference pbNd = new System.CodeDom.CodeTypeReference(); System.Windows.Forms.GroupBox AKWwpx = new System.Windows.Forms.GroupBox(); System.Web.UI.WebControls.ButtonField rXxat = new System.Web.UI.WebControls.ButtonField(); System.Web.UI.WebControls.Login bKzHa = new System.Web.UI.WebControls.Login(); System.Web.UI.WebControls.FileUpload uBjobZ = new System.Web.UI.WebControls.FileUpload(); System.ComponentModel.BackgroundWorker grTchkb = new System.ComponentModel.BackgroundWorker(); System.CodeDom.CodeCatchClauseCollection tfSNJx = new System.CodeDom.CodeCatchClauseCollection(); System.Reflection.StrongNameKeyPair YlQWuXu = new System.Reflection.StrongNameKeyPair("mYvQpSyY"); System.Windows.Forms.ItemCheckedEventArgs dma = new System.Windows.Forms.ItemCheckedEventArgs(new System.Windows.Forms.ListViewItem()); System.Data.SqlTypes.TypeRealSchemaImporterExtension stAAYG = new System.Data.SqlTypes.TypeRealSchemaImporterExtension(); System.Web.UI.WebControls.TemplateColumn NqtN = new System.Web.UI.WebControls.TemplateColumn(); System.Web.HttpParseException HMjWWlN = new System.Web.HttpParseException("ppBetRNSc", new System.Exception(), "zPFmYCoVxNCO", "zfFsMWvMFpXxsZT", 1867590374); System.ComponentModel.ProvidePropertyAttribute yoY = new System.ComponentModel.ProvidePropertyAttribute("wgU", "ahpfcVJCdHdhEiPX"); System.Windows.Forms.DataGridViewColumn oNKRo = new System.Windows.Forms.DataGridViewColumn(); System.ComponentModel.TimeSpanConverter WuW = new System.ComponentModel.TimeSpanConverter(); System.CodeDom.CodeEventReferenceExpression XWiy = new System.CodeDom.CodeEventReferenceExpression(); System.Windows.Forms.FontDialog fIF = new System.Windows.Forms.FontDialog(); System.Net.Configuration.FtpCachePolicyElement QxQYAcH = new System.Net.Configuration.FtpCachePolicyElement(); System.Runtime.InteropServices.FieldOffsetAttribute Jcmc = new System.Runtime.InteropServices.FieldOffsetAttribute(445036690); System.CodeDom.CodeCatchClauseCollection sQj = new System.CodeDom.CodeCatchClauseCollection(new System.CodeDom.CodeCatchClauseCollection()); System.Web.UI.SessionPageStatePersister SfR = new System.Web.UI.SessionPageStatePersister(new System.Web.UI.Page()); System.CodeDom.CodeMemberEvent LGFbBYW = new System.CodeDom.CodeMemberEvent(); System.Windows.Forms.SaveFileDialog ERIMYRr = new System.Windows.Forms.SaveFileDialog(); System.ApplicationIdentity UhtFgvn = new System.ApplicationIdentity("pRmOga"); System.Text.DecoderReplacementFallback frjpL = new System.Text.DecoderReplacementFallback(); System.Runtime.InteropServices.VariantWrapper hNt = new System.Runtime.InteropServices.VariantWrapper(744756257); System.Diagnostics.SymbolStore.SymLanguageVendor ocfW = new System.Diagnostics.SymbolStore.SymLanguageVendor(); System.Security.Policy.Publisher xwz = new System.Security.Policy.Publisher(new System.Security.Cryptography.X509Certificates.X509Certificate()); System.Windows.Forms.ImageIndexConverter bGKe = new System.Windows.Forms.ImageIndexConverter(); System.Data.SqlClient.SqlConnection ZRZs = new System.Data.SqlClient.SqlConnection("EJPzTWsjYetH"); System.CodeDom.CodeRemoveEventStatement EAFfjO = new System.CodeDom.CodeRemoveEventStatement(new System.CodeDom.CodeEventReferenceExpression(), new System.CodeDom.CodeExpression()); System.Runtime.Remoting.Metadata.SoapParameterAttribute uSNCh = new System.Runtime.Remoting.Metadata.SoapParameterAttribute(); System.Web.UI.WebControls.GridViewDeleteEventArgs cGqU = new System.Web.UI.WebControls.GridViewDeleteEventArgs(676842005); System.Web.Configuration.TagPrefixCollection NeyW = new System.Web.Configuration.TagPrefixCollection(); System.NetTcpStyleUriParser Dwoh = new System.NetTcpStyleUriParser(); System.Web.UI.WebControls.LoginView XxHHKFi = new System.Web.UI.WebControls.LoginView(); System.Web.Configuration.BufferModesCollection yEJ = new System.Web.Configuration.BufferModesCollection(); }
protected void gvUsuarios_RowDeleting(object sender, System.Web.UI.WebControls.GridViewDeleteEventArgs e) { try { int index = int.Parse(e.Keys["Id"].ToString()); this.usuarios.eliminarUsuario(index); ScriptManager.RegisterStartupScript(this, GetType(), "Alerta", "alert('Usuario eliminado.');", true); this.cargarUsuarios(); } catch (Exception ex) { this.lblMensaje.Text = ex.GetBaseException().Message; } }
protected void GrvFabricantes_RowDeleting(object sender, System.Web.UI.WebControls.GridViewDeleteEventArgs e) { idFabricante = int.Parse(GrvFabricantes.DataKeys[e.RowIndex].Value.ToString()); fabricante = fabricantes.Find(c => c.IDT_FABRICANTE == idFabricante).First <FABRICANTE>(); fabricantes.Delete(fabricante); fabricantes.SaveChanges(); fabricante = null; fabricanteBLL = null; ListarFabricantes(); }
protected void GridView1_RowDeleting(object sender, System.Web.UI.WebControls.GridViewDeleteEventArgs e) { int foodid = Convert.ToInt32(GridView1.Rows[e.RowIndex].Cells[0].Text); conn.Open(); cmd = new SqlCommand("Delete from Cartdetail where FoodID='" + foodid + "'And Email='" + Session["UID"].ToString() + "'", conn); int isdeleted = cmd.ExecuteNonQuery(); if (isdeleted > 0) { Label1.Text = "One Item is Deleted Form Your Cart"; Response.Redirect("Cart.aspx"); } conn.Close(); }
protected void GrvClientes_RowDeleting(object sender, System.Web.UI.WebControls.GridViewDeleteEventArgs e) { btnSalvar.Text = "Salvar"; idCliente = int.Parse(GrvClientes.DataKeys[e.RowIndex].Value.ToString()); cliente = clientes.Find(c => c.IDT_CLIENTE == idCliente).First <CLIENTE>(); clientes.Delete(cliente); clientes.SaveChanges(); cliente = null; clientes = null; ListarClientes(); LimparCampos(); }
protected void GrvProdutos_RowDeleting(object sender, System.Web.UI.WebControls.GridViewDeleteEventArgs e) { btSalvar.Text = "Salvar"; idProduto = int.Parse(GrvProdutos.DataKeys[e.RowIndex].Value.ToString()); produto = produtos.Find(c => c.IDT_PRODUTO == idProduto).First <PRODUTO>(); produtos.Delete(produto); produtos.SaveChanges(); produto = null; produtos = null; ListarProdutos(); LimparCampos(); }
protected void GridView1_RowDeleting(object sender, System.Web.UI.WebControls.GridViewDeleteEventArgs e) { conn.Open(); int Pid = Convert.ToInt32(GridView1.Rows[e.RowIndex].Cells[0].Text); cmd = new SqlCommand("delete from promocodeDetails where PromoID='" + Pid + "'", conn); int dlt = cmd.ExecuteNonQuery(); if (dlt > 0) { Label4.Text = "Deleted successfull"; Response.Redirect("AdMpromocode.aspx"); } else { Label4.Text = "Try After some Time"; } conn.Close(); }
protected void gvregister_RowDeleting(object sender, System.Web.UI.WebControls.GridViewDeleteEventArgs e) { if (Utils.LoggedUser == null) { Response.Redirect("~/login"); } if (Utils.CheckPermission(4, 1, Utils.LoggedUser.Roles) < 1) { ClientScript.RegisterStartupScript(GetType(), "alert", "lmis.notification.error('" + GetGlobalResourceObject("MessagesResource", "X_NotAuthorized") + @"');", true); return; } var manager = Context.GetOwinContext().GetUserManager <ApplicationUserManager>(); var user = manager.FindById(gvregister.DataKeys[e.RowIndex].Values["UserId"].ToString()); if (user != null) { user.UserName = Email.Text; } if (user.Roles.Count > 0) { ClientScript.RegisterStartupScript(GetType(), "alert", "lmis.notification.error('" + GetGlobalResourceObject("MessagesResource", "X_Error103_InRelation") + @"');", true); return; } BllFactory.Singleton.OrganizationContactInfo.Delete(gvregister.DataKeys[e.RowIndex].Values["UserId"].ToString()); IdentityResult result = manager.Delete(user); if (result.Succeeded) { var result1 = Mgr.GetUsersAdmin(); gvregister.DataSource = result1; gvregister.DataBind(); ClientScript.RegisterStartupScript(GetType(), "alert", "lmis.notification.success('" + GetGlobalResourceObject("MessagesResource", "X_Success") + @"');", true); } else { ClientScript.RegisterStartupScript(GetType(), "alert", "lmis.notification.error('" + result.Errors.FirstOrDefault() + @"');", true); } e.Cancel = true; }